Remove these Wine-only types:

EnumICMProfilesProcCallback
  PEXCEPTION_REGISTRATION_RECORD
Don't test these Wine-only types:
  EMRSETTEXTJUSTIFICATION
  EXCEPTION_REGISTRATION_RECORD
Remove EXCEPTION_FRAME, it doesn't exist at all.
This commit is contained in:
Francois Gouget 2004-08-22 02:07:13 +00:00 committed by Alexandre Julliard
parent 6f4be5494b
commit 493cf88bb6
7 changed files with 12 additions and 51 deletions

View file

@ -1321,15 +1321,6 @@ static void test_pack_EMRSETTEXTCOLOR(void)
TEST_FIELD(EMRSETTEXTCOLOR, COLORREF, crColor, 8, 4, 4);
}
static void test_pack_EMRSETTEXTJUSTIFICATION(void)
{
/* EMRSETTEXTJUSTIFICATION (pack 4) */
TEST_TYPE(EMRSETTEXTJUSTIFICATION, 16, 4);
TEST_FIELD(EMRSETTEXTJUSTIFICATION, EMR, emr, 0, 8, 4);
TEST_FIELD(EMRSETTEXTJUSTIFICATION, INT, nBreakExtra, 8, 4, 4);
TEST_FIELD(EMRSETTEXTJUSTIFICATION, INT, nBreakCount, 12, 4, 4);
}
static void test_pack_EMRSETVIEWPORTEXTEX(void)
{
/* EMRSETVIEWPORTEXTEX (pack 4) */
@ -1574,18 +1565,6 @@ static void test_pack_EXTLOGPEN(void)
TEST_FIELD(EXTLOGPEN, DWORD[1], elpStyleEntry, 24, 4, 4);
}
static void test_pack_EnumICMProfilesProcCallbackA(void)
{
/* EnumICMProfilesProcCallbackA */
TEST_TYPE(EnumICMProfilesProcCallbackA, 4, 4);
}
static void test_pack_EnumICMProfilesProcCallbackW(void)
{
/* EnumICMProfilesProcCallbackW */
TEST_TYPE(EnumICMProfilesProcCallbackW, 4, 4);
}
static void test_pack_FIXED(void)
{
/* FIXED (pack 4) */
@ -3950,7 +3929,6 @@ static void test_pack(void)
test_pack_EMRSETSTRETCHBLTMODE();
test_pack_EMRSETTEXTALIGN();
test_pack_EMRSETTEXTCOLOR();
test_pack_EMRSETTEXTJUSTIFICATION();
test_pack_EMRSETVIEWPORTEXTEX();
test_pack_EMRSETVIEWPORTORGEX();
test_pack_EMRSETWINDOWEXTEX();
@ -3972,8 +3950,6 @@ static void test_pack(void)
test_pack_EXTLOGFONTA();
test_pack_EXTLOGFONTW();
test_pack_EXTLOGPEN();
test_pack_EnumICMProfilesProcCallbackA();
test_pack_EnumICMProfilesProcCallbackW();
test_pack_FIXED();
test_pack_FONTENUMPROCA();
test_pack_FONTENUMPROCW();

View file

@ -54,7 +54,7 @@ typedef struct _SCOPETABLE
typedef struct _MSVCRT_EXCEPTION_FRAME
{
EXCEPTION_REGISTRATION_RECORD *prev;
void (*handler)(PEXCEPTION_RECORD, PEXCEPTION_REGISTRATION_RECORD,
void (*handler)(PEXCEPTION_RECORD, EXCEPTION_REGISTRATION_RECORD*,
PCONTEXT, PEXCEPTION_RECORD);
PSCOPETABLE scopetable;
int trylevel;
@ -346,7 +346,7 @@ void _MSVCRT_longjmp(struct MSVCRT___JUMP_BUFFER *jmp, int retval, CONTEXT86* co
TRACE("cur_frame=%lx\n",cur_frame);
if (cur_frame != jmp->Registration)
_global_unwind2((PEXCEPTION_REGISTRATION_RECORD)jmp->Registration);
_global_unwind2((EXCEPTION_REGISTRATION_RECORD*)jmp->Registration);
if (jmp->Registration)
{

View file

@ -224,7 +224,7 @@ static void EXC_DefaultHandling( EXCEPTION_RECORD *rec, CONTEXT *context )
*/
void WINAPI EXC_RtlRaiseException( EXCEPTION_RECORD *rec, CONTEXT *context )
{
PEXCEPTION_REGISTRATION_RECORD frame, dispatch, nested_frame;
EXCEPTION_REGISTRATION_RECORD *frame, *dispatch, *nested_frame;
EXCEPTION_RECORD newrec;
DWORD res, c;
@ -251,7 +251,7 @@ void WINAPI EXC_RtlRaiseException( EXCEPTION_RECORD *rec, CONTEXT *context )
frame = NtCurrentTeb()->Tib.ExceptionList;
nested_frame = NULL;
while (frame != (PEXCEPTION_REGISTRATION_RECORD)~0UL)
while (frame != (EXCEPTION_REGISTRATION_RECORD*)~0UL)
{
/* Check frame address */
if (((void*)frame < NtCurrentTeb()->Tib.StackLimit) ||
@ -317,11 +317,11 @@ void WINAPI RtlRaiseException( EXCEPTION_RECORD *rec )
/*******************************************************************
* RtlUnwind (NTDLL.@)
*/
void WINAPI EXC_RtlUnwind( PEXCEPTION_REGISTRATION_RECORD pEndFrame, PVOID unusedEip,
void WINAPI EXC_RtlUnwind( EXCEPTION_REGISTRATION_RECORD* pEndFrame, PVOID unusedEip,
PEXCEPTION_RECORD pRecord, PVOID returnEax, CONTEXT *context )
{
EXCEPTION_RECORD record, newrec;
PEXCEPTION_REGISTRATION_RECORD frame, dispatch;
EXCEPTION_REGISTRATION_RECORD *frame, *dispatch;
#ifdef __i386__
context->Eax = (DWORD)returnEax;
@ -344,7 +344,7 @@ void WINAPI EXC_RtlUnwind( PEXCEPTION_REGISTRATION_RECORD pEndFrame, PVOID unuse
/* get chain of exception frames */
frame = NtCurrentTeb()->Tib.ExceptionList;
while ((frame != (PEXCEPTION_REGISTRATION_RECORD)~0UL) && (frame != pEndFrame))
while ((frame != (EXCEPTION_REGISTRATION_RECORD*)~0UL) && (frame != pEndFrame))
{
/* Check frame address */
if (pEndFrame && (frame > pEndFrame))

View file

@ -375,14 +375,6 @@ static void test_pack_EXCEPTION_RECORD(void)
TEST_FIELD(EXCEPTION_RECORD, DWORD[EXCEPTION_MAXIMUM_PARAMETERS], ExceptionInformation, 20, 60, 4);
}
static void test_pack_EXCEPTION_REGISTRATION_RECORD(void)
{
/* EXCEPTION_REGISTRATION_RECORD (pack 4) */
TEST_TYPE(EXCEPTION_REGISTRATION_RECORD, 8, 4);
TEST_FIELD(EXCEPTION_REGISTRATION_RECORD, struct _EXCEPTION_REGISTRATION_RECORD *, Prev, 0, 4, 4);
TEST_FIELD(EXCEPTION_REGISTRATION_RECORD, PEXCEPTION_HANDLER, Handler, 4, 4, 4);
}
static void test_pack_EXECUTION_STATE(void)
{
/* EXECUTION_STATE */
@ -2069,7 +2061,6 @@ static void test_pack(void)
test_pack_DWORD_PTR();
test_pack_EXCEPTION_POINTERS();
test_pack_EXCEPTION_RECORD();
test_pack_EXCEPTION_REGISTRATION_RECORD();
test_pack_EXECUTION_STATE();
test_pack_FARPROC();
test_pack_FLOAT();

View file

@ -434,11 +434,8 @@ DECL_WINELIB_TYPE_AW(LOGCOLORSPACE)
#define CMYK(c,m,y,k) ((COLORREF)((((BYTE)(k)|((WORD)((BYTE)(y))<<8))|(((DWORD)(BYTE)(m))<<16))|(((DWORD)(BYTE)(c))<<24)))
/* ICM stuff */
typedef INT (CALLBACK *EnumICMProfilesProcCallbackA)(LPSTR lpszFilename,LPARAM lParam);
typedef INT (CALLBACK *EnumICMProfilesProcCallbackW)(LPWSTR lpszFilename,LPARAM lParam);
DECL_WINELIB_TYPE_AW(EnumICMProfilesProcCallback)
typedef EnumICMProfilesProcCallbackA ICMENUMPROCA;
typedef EnumICMProfilesProcCallbackW ICMENUMPROCW;
typedef INT (CALLBACK *ICMENUMPROCA)(LPSTR lpszFilename,LPARAM lParam);
typedef INT (CALLBACK *ICMENUMPROCW)(LPWSTR lpszFilename,LPARAM lParam);
DECL_WINELIB_TYPE_AW(ICMENUMPROC)

View file

@ -1505,7 +1505,7 @@ typedef struct _EXCEPTION_REGISTRATION_RECORD
{
struct _EXCEPTION_REGISTRATION_RECORD *Prev;
PEXCEPTION_HANDLER Handler;
} EXCEPTION_REGISTRATION_RECORD, *PEXCEPTION_REGISTRATION_RECORD;
} EXCEPTION_REGISTRATION_RECORD;
/*
* function pointer to a exception filter

View file

@ -140,7 +140,7 @@ EMRSETROP2
EMRSETSTRETCHBLTMODE
EMRSETTEXTALIGN
EMRSETTEXTCOLOR
EMRSETTEXTJUSTIFICATION
!EMRSETTEXTJUSTIFICATION # Wine-only type
EMRSETVIEWPORTEXTEX
EMRSETVIEWPORTORGEX
EMRSETWINDOWEXTEX
@ -162,8 +162,6 @@ ENUMLOGFONTW
EXTLOGFONTA
EXTLOGFONTW
EXTLOGPEN
EnumICMProfilesProcCallbackA
EnumICMProfilesProcCallbackW
FIXED
FONTENUMPROCA
FONTENUMPROCW
@ -651,10 +649,9 @@ DWORD32
DWORD64
DWORDLONG
DWORD_PTR
EXCEPTION_FRAME
EXCEPTION_POINTERS
EXCEPTION_RECORD
EXCEPTION_REGISTRATION_RECORD
!EXCEPTION_REGISTRATION_RECORD # Wine-only type
EXECUTION_STATE
FARPROC
FLOAT