Commit 58cd87ab authored by Alexandre Julliard's avatar Alexandre Julliard

winedos: Internal functions don't need to be WINAPI.

parent 2b07ae5e
...@@ -190,11 +190,11 @@ static void WINAPI ASPI_DOS_func(CONTEXT86 *context) ...@@ -190,11 +190,11 @@ static void WINAPI ASPI_DOS_func(CONTEXT86 *context)
/********************************************************************** /**********************************************************************
* ASPIHandler (WINEDOS.@) * ASPIHandler
* *
* returns the address of a real mode callback to ASPI_DOS_func() * returns the address of a real mode callback to ASPI_DOS_func()
*/ */
void WINAPI DOSVM_ASPIHandler( CONTEXT86 *context ) void DOSVM_ASPIHandler( CONTEXT86 *context )
{ {
FARPROC16 *p = CTX_SEG_OFF_TO_LIN(context, context->SegDs, context->Edx); FARPROC16 *p = CTX_SEG_OFF_TO_LIN(context, context->SegDs, context->Edx);
TRACE("DOS ASPI opening\n"); TRACE("DOS ASPI opening\n");
......
...@@ -345,24 +345,23 @@ typedef struct ...@@ -345,24 +345,23 @@ typedef struct
} WINEDEV; } WINEDEV;
/* module.c */ /* module.c */
extern void WINAPI MZ_LoadImage( LPCSTR filename, HANDLE hFile ); extern BOOL MZ_Exec( CONTEXT86 *context, LPCSTR filename, BYTE func, LPVOID paramblk );
extern BOOL WINAPI MZ_Exec( CONTEXT86 *context, LPCSTR filename, BYTE func, LPVOID paramblk ); extern void MZ_Exit( CONTEXT86 *context, BOOL cs_psp, WORD retval );
extern void WINAPI MZ_Exit( CONTEXT86 *context, BOOL cs_psp, WORD retval ); extern BOOL MZ_Current( void );
extern BOOL WINAPI MZ_Current( void ); extern void MZ_AllocDPMITask( void );
extern void WINAPI MZ_AllocDPMITask( void ); extern void MZ_RunInThread( PAPCFUNC proc, ULONG_PTR arg );
extern void WINAPI MZ_RunInThread( PAPCFUNC proc, ULONG_PTR arg );
extern BOOL DOSVM_IsWin16(void); extern BOOL DOSVM_IsWin16(void);
extern void DOSVM_Exit( WORD retval ); extern void DOSVM_Exit( WORD retval );
/* dosvm.c */ /* dosvm.c */
extern void DOSVM_SendQueuedEvents( CONTEXT86 * ); extern void DOSVM_SendQueuedEvents( CONTEXT86 * );
extern void WINAPI DOSVM_AcknowledgeIRQ( CONTEXT86 * ); extern void WINAPI DOSVM_AcknowledgeIRQ( CONTEXT86 * );
extern INT WINAPI DOSVM_Enter( CONTEXT86 *context ); extern INT DOSVM_Enter( CONTEXT86 *context );
extern void WINAPI DOSVM_Wait( CONTEXT86 * ); extern void DOSVM_Wait( CONTEXT86 * );
extern DWORD WINAPI DOSVM_Loop( HANDLE hThread ); extern DWORD DOSVM_Loop( HANDLE hThread );
extern void WINAPI DOSVM_QueueEvent( INT irq, INT priority, DOSRELAY relay, LPVOID data ); extern void DOSVM_QueueEvent( INT irq, INT priority, DOSRELAY relay, LPVOID data );
extern void WINAPI DOSVM_PIC_ioport_out( WORD port, BYTE val ); extern void DOSVM_PIC_ioport_out( WORD port, BYTE val );
extern void WINAPI DOSVM_SetTimer( UINT ticks ); extern void DOSVM_SetTimer( UINT ticks );
/* devices.c */ /* devices.c */
extern void DOSDEV_InstallDOSDevices(void); extern void DOSDEV_InstallDOSDevices(void);
...@@ -377,7 +376,7 @@ extern void DMA_ioport_out( WORD port, BYTE val ); ...@@ -377,7 +376,7 @@ extern void DMA_ioport_out( WORD port, BYTE val );
extern BYTE DMA_ioport_in( WORD port ); extern BYTE DMA_ioport_in( WORD port );
/* dosaspi.c */ /* dosaspi.c */
extern void WINAPI DOSVM_ASPIHandler(CONTEXT86*); extern void DOSVM_ASPIHandler(CONTEXT86*);
/* dosconf.c */ /* dosconf.c */
extern DOSCONF *DOSCONF_GetConfig( void ); extern DOSCONF *DOSCONF_GetConfig( void );
...@@ -411,12 +410,12 @@ extern LPVOID DOSVM_AllocDataUMB(DWORD, WORD *, WORD *); ...@@ -411,12 +410,12 @@ extern LPVOID DOSVM_AllocDataUMB(DWORD, WORD *, WORD *);
/* int09.c */ /* int09.c */
extern void WINAPI DOSVM_Int09Handler(CONTEXT86*); extern void WINAPI DOSVM_Int09Handler(CONTEXT86*);
extern void WINAPI DOSVM_Int09SendScan(BYTE scan,BYTE ascii); extern void DOSVM_Int09SendScan(BYTE scan,BYTE ascii);
extern BYTE WINAPI DOSVM_Int09ReadScan(BYTE*ascii); extern BYTE DOSVM_Int09ReadScan(BYTE*ascii);
/* int10.c */ /* int10.c */
extern void WINAPI DOSVM_Int10Handler(CONTEXT86*); extern void WINAPI DOSVM_Int10Handler(CONTEXT86*);
extern void WINAPI DOSVM_PutChar(BYTE ascii); extern void DOSVM_PutChar(BYTE ascii);
/* int13.c */ /* int13.c */
extern void WINAPI DOSVM_Int13Handler(CONTEXT86*); extern void WINAPI DOSVM_Int13Handler(CONTEXT86*);
...@@ -426,8 +425,8 @@ extern void WINAPI DOSVM_Int15Handler(CONTEXT86*); ...@@ -426,8 +425,8 @@ extern void WINAPI DOSVM_Int15Handler(CONTEXT86*);
/* int16.c */ /* int16.c */
extern void WINAPI DOSVM_Int16Handler(CONTEXT86*); extern void WINAPI DOSVM_Int16Handler(CONTEXT86*);
extern BOOL WINAPI DOSVM_Int16ReadChar( BYTE *, BYTE *, CONTEXT86 * ); extern BOOL DOSVM_Int16ReadChar( BYTE *, BYTE *, CONTEXT86 * );
extern int WINAPI DOSVM_Int16AddChar(BYTE ascii,BYTE scan); extern int DOSVM_Int16AddChar(BYTE ascii,BYTE scan);
/* int21.c */ /* int21.c */
extern void WINAPI DOSVM_Int21Handler(CONTEXT86*); extern void WINAPI DOSVM_Int21Handler(CONTEXT86*);
...@@ -448,23 +447,23 @@ extern void MSCDEX_InstallCDROM(void); ...@@ -448,23 +447,23 @@ extern void MSCDEX_InstallCDROM(void);
extern void WINAPI DOSVM_Int31Handler(CONTEXT86*); extern void WINAPI DOSVM_Int31Handler(CONTEXT86*);
extern void WINAPI DOSVM_RawModeSwitchHandler(CONTEXT86*); extern void WINAPI DOSVM_RawModeSwitchHandler(CONTEXT86*);
extern BOOL DOSVM_IsDos32(void); extern BOOL DOSVM_IsDos32(void);
extern FARPROC16 WINAPI DPMI_AllocInternalRMCB(RMCBPROC); extern FARPROC16 DPMI_AllocInternalRMCB(RMCBPROC);
extern int DPMI_CallRMProc(CONTEXT86*,LPWORD,int,int); extern int DPMI_CallRMProc(CONTEXT86*,LPWORD,int,int);
extern BOOL DOSVM_CheckWrappers(CONTEXT86*); extern BOOL DOSVM_CheckWrappers(CONTEXT86*);
/* int33.c */ /* int33.c */
extern void WINAPI DOSVM_Int33Handler(CONTEXT86*); extern void WINAPI DOSVM_Int33Handler(CONTEXT86*);
extern void WINAPI DOSVM_Int33Message(UINT,WPARAM,LPARAM); extern void DOSVM_Int33Message(UINT,WPARAM,LPARAM);
extern void WINAPI DOSVM_Int33Console(MOUSE_EVENT_RECORD*); extern void DOSVM_Int33Console(MOUSE_EVENT_RECORD*);
/* int67.c */ /* int67.c */
extern void WINAPI DOSVM_Int67Handler(CONTEXT86*); extern void WINAPI DOSVM_Int67Handler(CONTEXT86*);
extern void WINAPI EMS_Ioctl_Handler(CONTEXT86*); extern void EMS_Ioctl_Handler(CONTEXT86*);
/* interrupts.c */ /* interrupts.c */
extern void WINAPI DOSVM_CallBuiltinHandler( CONTEXT86 *, BYTE ); extern void WINAPI DOSVM_CallBuiltinHandler( CONTEXT86 *, BYTE );
extern BOOL WINAPI DOSVM_EmulateInterruptPM( CONTEXT86 *, BYTE ); extern BOOL WINAPI DOSVM_EmulateInterruptPM( CONTEXT86 *, BYTE );
extern BOOL WINAPI DOSVM_EmulateInterruptRM( CONTEXT86 *, BYTE ); extern BOOL DOSVM_EmulateInterruptRM( CONTEXT86 *, BYTE );
extern FARPROC16 DOSVM_GetPMHandler16( BYTE ); extern FARPROC16 DOSVM_GetPMHandler16( BYTE );
extern FARPROC48 DOSVM_GetPMHandler48( BYTE ); extern FARPROC48 DOSVM_GetPMHandler48( BYTE );
extern FARPROC16 DOSVM_GetRMHandler( BYTE ); extern FARPROC16 DOSVM_GetRMHandler( BYTE );
...@@ -491,6 +490,6 @@ extern char IO_pp_init(void); ...@@ -491,6 +490,6 @@ extern char IO_pp_init(void);
extern void WINAPI DOSVM_Int08Handler(CONTEXT86*); extern void WINAPI DOSVM_Int08Handler(CONTEXT86*);
/* xms.c */ /* xms.c */
extern void WINAPI XMS_Handler(CONTEXT86*); extern void XMS_Handler(CONTEXT86*);
#endif /* __WINE_DOSEXE_H */ #endif /* __WINE_DOSEXE_H */
...@@ -251,7 +251,7 @@ void DOSVM_SendQueuedEvents( CONTEXT86 *context ) ...@@ -251,7 +251,7 @@ void DOSVM_SendQueuedEvents( CONTEXT86 *context )
/*********************************************************************** /***********************************************************************
* QueueEvent (WINEDOS.@) * QueueEvent (WINEDOS.@)
*/ */
void WINAPI DOSVM_QueueEvent( INT irq, INT priority, DOSRELAY relay, LPVOID data) void DOSVM_QueueEvent( INT irq, INT priority, DOSRELAY relay, LPVOID data)
{ {
LPDOSEVENT event, cur, prev; LPDOSEVENT event, cur, prev;
BOOL old_pending; BOOL old_pending;
...@@ -385,7 +385,7 @@ static void DOSVM_ProcessMessage(MSG *msg) ...@@ -385,7 +385,7 @@ static void DOSVM_ProcessMessage(MSG *msg)
* interrupts and waits until some asynchronous event has been * interrupts and waits until some asynchronous event has been
* processed. * processed.
*/ */
void WINAPI DOSVM_Wait( CONTEXT86 *waitctx ) void DOSVM_Wait( CONTEXT86 *waitctx )
{ {
if (DOSVM_HasPendingEvents()) if (DOSVM_HasPendingEvents())
{ {
...@@ -461,7 +461,7 @@ void WINAPI DOSVM_Wait( CONTEXT86 *waitctx ) ...@@ -461,7 +461,7 @@ void WINAPI DOSVM_Wait( CONTEXT86 *waitctx )
} }
DWORD WINAPI DOSVM_Loop( HANDLE hThread ) DWORD DOSVM_Loop( HANDLE hThread )
{ {
HANDLE objs[2]; HANDLE objs[2];
int count = 0; int count = 0;
...@@ -569,7 +569,7 @@ static LONG WINAPI exception_handler(EXCEPTION_POINTERS *eptr) ...@@ -569,7 +569,7 @@ static LONG WINAPI exception_handler(EXCEPTION_POINTERS *eptr)
return EXCEPTION_CONTINUE_SEARCH; return EXCEPTION_CONTINUE_SEARCH;
} }
INT WINAPI DOSVM_Enter( CONTEXT86 *context ) INT DOSVM_Enter( CONTEXT86 *context )
{ {
INT ret = 0; INT ret = 0;
if (!ISV86(context)) if (!ISV86(context))
...@@ -592,7 +592,7 @@ INT WINAPI DOSVM_Enter( CONTEXT86 *context ) ...@@ -592,7 +592,7 @@ INT WINAPI DOSVM_Enter( CONTEXT86 *context )
/*********************************************************************** /***********************************************************************
* OutPIC (WINEDOS.@) * OutPIC (WINEDOS.@)
*/ */
void WINAPI DOSVM_PIC_ioport_out( WORD port, BYTE val) void DOSVM_PIC_ioport_out( WORD port, BYTE val)
{ {
if (port != 0x20) if (port != 0x20)
{ {
...@@ -644,7 +644,7 @@ void WINAPI DOSVM_PIC_ioport_out( WORD port, BYTE val) ...@@ -644,7 +644,7 @@ void WINAPI DOSVM_PIC_ioport_out( WORD port, BYTE val)
/*********************************************************************** /***********************************************************************
* Enter (WINEDOS.@) * Enter (WINEDOS.@)
*/ */
INT WINAPI DOSVM_Enter( CONTEXT86 *context ) INT DOSVM_Enter( CONTEXT86 *context )
{ {
SetLastError( ERROR_NOT_SUPPORTED ); SetLastError( ERROR_NOT_SUPPORTED );
return -1; return -1;
...@@ -653,17 +653,17 @@ INT WINAPI DOSVM_Enter( CONTEXT86 *context ) ...@@ -653,17 +653,17 @@ INT WINAPI DOSVM_Enter( CONTEXT86 *context )
/*********************************************************************** /***********************************************************************
* Wait (WINEDOS.@) * Wait (WINEDOS.@)
*/ */
void WINAPI DOSVM_Wait( CONTEXT86 *waitctx ) { } void DOSVM_Wait( CONTEXT86 *waitctx ) { }
/*********************************************************************** /***********************************************************************
* OutPIC (WINEDOS.@) * OutPIC (WINEDOS.@)
*/ */
void WINAPI DOSVM_PIC_ioport_out( WORD port, BYTE val) {} void DOSVM_PIC_ioport_out( WORD port, BYTE val) {}
/*********************************************************************** /***********************************************************************
* QueueEvent (WINEDOS.@) * QueueEvent (WINEDOS.@)
*/ */
void WINAPI DOSVM_QueueEvent( INT irq, INT priority, DOSRELAY relay, LPVOID data) void DOSVM_QueueEvent( INT irq, INT priority, DOSRELAY relay, LPVOID data)
{ {
if (irq<0) { if (irq<0) {
/* callback event, perform it with dummy context */ /* callback event, perform it with dummy context */
......
...@@ -224,7 +224,7 @@ static void KbdRelay( CONTEXT86 *context, void *data ) ...@@ -224,7 +224,7 @@ static void KbdRelay( CONTEXT86 *context, void *data )
} }
} }
void WINAPI DOSVM_Int09SendScan( BYTE scan, BYTE ascii ) void DOSVM_Int09SendScan( BYTE scan, BYTE ascii )
{ {
if (kbdinfo.queuelen == QUEUELEN) { if (kbdinfo.queuelen == QUEUELEN) {
ERR("keyboard queue overflow\n"); ERR("keyboard queue overflow\n");
...@@ -237,10 +237,7 @@ void WINAPI DOSVM_Int09SendScan( BYTE scan, BYTE ascii ) ...@@ -237,10 +237,7 @@ void WINAPI DOSVM_Int09SendScan( BYTE scan, BYTE ascii )
DOSVM_QueueEvent(1,DOS_PRIORITY_KEYBOARD,KbdRelay,NULL); DOSVM_QueueEvent(1,DOS_PRIORITY_KEYBOARD,KbdRelay,NULL);
} }
/********************************************************************** BYTE DOSVM_Int09ReadScan( BYTE*ascii )
* KbdReadScan (WINEDOS.@)
*/
BYTE WINAPI DOSVM_Int09ReadScan( BYTE*ascii )
{ {
if (ascii) *ascii = kbdinfo.ascii[0]; if (ascii) *ascii = kbdinfo.ascii[0];
return kbdinfo.queue[0]; return kbdinfo.queue[0];
......
...@@ -1447,7 +1447,7 @@ void WINAPI DOSVM_Int10Handler( CONTEXT86 *context ) ...@@ -1447,7 +1447,7 @@ void WINAPI DOSVM_Int10Handler( CONTEXT86 *context )
* Write single character to VGA console at the current * Write single character to VGA console at the current
* cursor position and updates the BIOS cursor position. * cursor position and updates the BIOS cursor position.
*/ */
void WINAPI DOSVM_PutChar( BYTE ascii ) void DOSVM_PutChar( BYTE ascii )
{ {
BIOSDATA *data = DOSVM_BiosData(); BIOSDATA *data = DOSVM_BiosData();
unsigned xpos, ypos; unsigned xpos, ypos;
......
...@@ -160,7 +160,7 @@ void WINAPI DOSVM_Int16Handler( CONTEXT86 *context ) ...@@ -160,7 +160,7 @@ void WINAPI DOSVM_Int16Handler( CONTEXT86 *context )
* Return value will always be TRUE and returned keystroke will be * Return value will always be TRUE and returned keystroke will be
* removed from buffer. * removed from buffer.
*/ */
int WINAPI DOSVM_Int16ReadChar(BYTE *ascii, BYTE *scan, CONTEXT86 *waitctx) int DOSVM_Int16ReadChar(BYTE *ascii, BYTE *scan, CONTEXT86 *waitctx)
{ {
BIOSDATA *data = DOSVM_BiosData(); BIOSDATA *data = DOSVM_BiosData();
WORD CurOfs = data->NextKbdCharPtr; WORD CurOfs = data->NextKbdCharPtr;
...@@ -195,7 +195,7 @@ int WINAPI DOSVM_Int16ReadChar(BYTE *ascii, BYTE *scan, CONTEXT86 *waitctx) ...@@ -195,7 +195,7 @@ int WINAPI DOSVM_Int16ReadChar(BYTE *ascii, BYTE *scan, CONTEXT86 *waitctx)
return TRUE; return TRUE;
} }
int WINAPI DOSVM_Int16AddChar(BYTE ascii,BYTE scan) int DOSVM_Int16AddChar(BYTE ascii,BYTE scan)
{ {
BIOSDATA *data = DOSVM_BiosData(); BIOSDATA *data = DOSVM_BiosData();
WORD CurOfs = data->FirstKbdCharPtr; WORD CurOfs = data->FirstKbdCharPtr;
......
...@@ -272,13 +272,12 @@ struct magic_device ...@@ -272,13 +272,12 @@ struct magic_device
}; };
static void INT21_IoctlScsiMgrHandler( CONTEXT86 * ); static void INT21_IoctlScsiMgrHandler( CONTEXT86 * );
static void INT21_IoctlEMSHandler( CONTEXT86 * );
static void INT21_IoctlHPScanHandler( CONTEXT86 * ); static void INT21_IoctlHPScanHandler( CONTEXT86 * );
static struct magic_device magic_devices[] = static struct magic_device magic_devices[] =
{ {
{ {'s','c','s','i','m','g','r','$',0}, NULL, { { 0, 0 } }, INT21_IoctlScsiMgrHandler }, { {'s','c','s','i','m','g','r','$',0}, NULL, { { 0, 0 } }, INT21_IoctlScsiMgrHandler },
{ {'e','m','m','x','x','x','x','0',0}, NULL, { { 0, 0 } }, INT21_IoctlEMSHandler }, { {'e','m','m','x','x','x','x','0',0}, NULL, { { 0, 0 } }, EMS_Ioctl_Handler },
{ {'h','p','s','c','a','n',0}, NULL, { { 0, 0 } }, INT21_IoctlHPScanHandler }, { {'h','p','s','c','a','n',0}, NULL, { { 0, 0 } }, INT21_IoctlHPScanHandler },
}; };
...@@ -2692,17 +2691,6 @@ static void INT21_IoctlScsiMgrHandler( CONTEXT86 *context ) ...@@ -2692,17 +2691,6 @@ static void INT21_IoctlScsiMgrHandler( CONTEXT86 *context )
/*********************************************************************** /***********************************************************************
* INT21_IoctlEMSHandler
*
* IOCTL handler for the EMXXXX0 device.
*/
static void INT21_IoctlEMSHandler( CONTEXT86 *context )
{
EMS_Ioctl_Handler(context);
}
/***********************************************************************
* INT21_IoctlHPScanHandler * INT21_IoctlHPScanHandler
* *
* IOCTL handler for the HPSCAN device. * IOCTL handler for the HPSCAN device.
......
...@@ -675,7 +675,7 @@ static RMCB *DPMI_AllocRMCB( void ) ...@@ -675,7 +675,7 @@ static RMCB *DPMI_AllocRMCB( void )
} }
FARPROC16 WINAPI DPMI_AllocInternalRMCB( RMCBPROC proc ) FARPROC16 DPMI_AllocInternalRMCB( RMCBPROC proc )
{ {
RMCB *NewRMCB = DPMI_AllocRMCB(); RMCB *NewRMCB = DPMI_AllocRMCB();
......
...@@ -285,7 +285,7 @@ static void QueueMouseRelay(DWORD mx, DWORD my, WORD mask) ...@@ -285,7 +285,7 @@ static void QueueMouseRelay(DWORD mx, DWORD my, WORD mask)
} }
} }
void WINAPI DOSVM_Int33Message(UINT message,WPARAM wParam,LPARAM lParam) void DOSVM_Int33Message(UINT message,WPARAM wParam,LPARAM lParam)
{ {
WORD mask = 0; WORD mask = 0;
unsigned Height, Width, SX=1, SY=1; unsigned Height, Width, SX=1, SY=1;
...@@ -329,7 +329,7 @@ void WINAPI DOSVM_Int33Message(UINT message,WPARAM wParam,LPARAM lParam) ...@@ -329,7 +329,7 @@ void WINAPI DOSVM_Int33Message(UINT message,WPARAM wParam,LPARAM lParam)
mask); mask);
} }
void WINAPI DOSVM_Int33Console(MOUSE_EVENT_RECORD *record) void DOSVM_Int33Console(MOUSE_EVENT_RECORD *record)
{ {
unsigned Height, Width; unsigned Height, Width;
WORD mask = 0; WORD mask = 0;
......
...@@ -461,7 +461,7 @@ void WINAPI DOSVM_Int67Handler( CONTEXT86 *context ) ...@@ -461,7 +461,7 @@ void WINAPI DOSVM_Int67Handler( CONTEXT86 *context )
* *
* Handler for interrupt 21h IOCTL routine for device "EMMXXXX0". * Handler for interrupt 21h IOCTL routine for device "EMMXXXX0".
*/ */
void WINAPI EMS_Ioctl_Handler( CONTEXT86 *context ) void EMS_Ioctl_Handler( CONTEXT86 *context )
{ {
assert(AH_reg(context) == 0x44); assert(AH_reg(context) == 0x44);
......
...@@ -445,7 +445,7 @@ void DOSVM_HardwareInterruptPM( CONTEXT86 *context, BYTE intnum ) ...@@ -445,7 +445,7 @@ void DOSVM_HardwareInterruptPM( CONTEXT86 *context, BYTE intnum )
* Returns FALSE if this interrupt was caused by return * Returns FALSE if this interrupt was caused by return
* from real mode wrapper. * from real mode wrapper.
*/ */
BOOL WINAPI DOSVM_EmulateInterruptRM( CONTEXT86 *context, BYTE intnum ) BOOL DOSVM_EmulateInterruptRM( CONTEXT86 *context, BYTE intnum )
{ {
TRACE_(relay)("Call DOS int 0x%02x ret=%04x:%08x\n" TRACE_(relay)("Call DOS int 0x%02x ret=%04x:%08x\n"
" eax=%08x ebx=%08x ecx=%08x edx=%08x\n" " eax=%08x ebx=%08x ecx=%08x edx=%08x\n"
......
...@@ -449,7 +449,7 @@ void WINAPI wine_load_dos_exe( LPCSTR filename, LPCSTR cmdline ) ...@@ -449,7 +449,7 @@ void WINAPI wine_load_dos_exe( LPCSTR filename, LPCSTR cmdline )
* *
* this may only be called from existing DOS processes * this may only be called from existing DOS processes
*/ */
BOOL WINAPI MZ_Exec( CONTEXT86 *context, LPCSTR filename, BYTE func, LPVOID paramblk ) BOOL MZ_Exec( CONTEXT86 *context, LPCSTR filename, BYTE func, LPVOID paramblk )
{ {
DWORD binType; DWORD binType;
STARTUPINFOA st; STARTUPINFOA st;
...@@ -598,7 +598,7 @@ BOOL WINAPI MZ_Exec( CONTEXT86 *context, LPCSTR filename, BYTE func, LPVOID para ...@@ -598,7 +598,7 @@ BOOL WINAPI MZ_Exec( CONTEXT86 *context, LPCSTR filename, BYTE func, LPVOID para
/*********************************************************************** /***********************************************************************
* MZ_AllocDPMITask * MZ_AllocDPMITask
*/ */
void WINAPI MZ_AllocDPMITask( void ) void MZ_AllocDPMITask( void )
{ {
MZ_InitMemory(); MZ_InitMemory();
MZ_InitTask(); MZ_InitTask();
...@@ -607,7 +607,7 @@ void WINAPI MZ_AllocDPMITask( void ) ...@@ -607,7 +607,7 @@ void WINAPI MZ_AllocDPMITask( void )
/*********************************************************************** /***********************************************************************
* MZ_RunInThread * MZ_RunInThread
*/ */
void WINAPI MZ_RunInThread( PAPCFUNC proc, ULONG_PTR arg ) void MZ_RunInThread( PAPCFUNC proc, ULONG_PTR arg )
{ {
if (loop_thread) { if (loop_thread) {
DOS_SPC spc; DOS_SPC spc;
...@@ -710,7 +710,7 @@ static void MZ_Launch( LPCSTR cmdtail, int length ) ...@@ -710,7 +710,7 @@ static void MZ_Launch( LPCSTR cmdtail, int length )
/*********************************************************************** /***********************************************************************
* MZ_Exit * MZ_Exit
*/ */
void WINAPI MZ_Exit( CONTEXT86 *context, BOOL cs_psp, WORD retval ) void MZ_Exit( CONTEXT86 *context, BOOL cs_psp, WORD retval )
{ {
if (DOSVM_psp) { if (DOSVM_psp) {
WORD psp_seg = cs_psp ? context->SegCs : DOSVM_psp; WORD psp_seg = cs_psp ? context->SegCs : DOSVM_psp;
...@@ -750,7 +750,7 @@ void WINAPI MZ_Exit( CONTEXT86 *context, BOOL cs_psp, WORD retval ) ...@@ -750,7 +750,7 @@ void WINAPI MZ_Exit( CONTEXT86 *context, BOOL cs_psp, WORD retval )
/*********************************************************************** /***********************************************************************
* MZ_Current * MZ_Current
*/ */
BOOL WINAPI MZ_Current( void ) BOOL MZ_Current( void )
{ {
return (dosvm_pid != 0); /* FIXME: do a better check */ return (dosvm_pid != 0); /* FIXME: do a better check */
} }
...@@ -769,7 +769,7 @@ void WINAPI wine_load_dos_exe( LPCSTR filename, LPCSTR cmdline ) ...@@ -769,7 +769,7 @@ void WINAPI wine_load_dos_exe( LPCSTR filename, LPCSTR cmdline )
/*********************************************************************** /***********************************************************************
* MZ_Exec * MZ_Exec
*/ */
BOOL WINAPI MZ_Exec( CONTEXT86 *context, LPCSTR filename, BYTE func, LPVOID paramblk ) BOOL MZ_Exec( CONTEXT86 *context, LPCSTR filename, BYTE func, LPVOID paramblk )
{ {
/* can't happen */ /* can't happen */
SetLastError(ERROR_BAD_FORMAT); SetLastError(ERROR_BAD_FORMAT);
...@@ -779,7 +779,7 @@ BOOL WINAPI MZ_Exec( CONTEXT86 *context, LPCSTR filename, BYTE func, LPVOID para ...@@ -779,7 +779,7 @@ BOOL WINAPI MZ_Exec( CONTEXT86 *context, LPCSTR filename, BYTE func, LPVOID para
/*********************************************************************** /***********************************************************************
* MZ_AllocDPMITask * MZ_AllocDPMITask
*/ */
void WINAPI MZ_AllocDPMITask( void ) void MZ_AllocDPMITask( void )
{ {
FIXME("Actual real-mode calls not supported on this platform!\n"); FIXME("Actual real-mode calls not supported on this platform!\n");
} }
...@@ -787,7 +787,7 @@ void WINAPI MZ_AllocDPMITask( void ) ...@@ -787,7 +787,7 @@ void WINAPI MZ_AllocDPMITask( void )
/*********************************************************************** /***********************************************************************
* MZ_RunInThread * MZ_RunInThread
*/ */
void WINAPI MZ_RunInThread( PAPCFUNC proc, ULONG_PTR arg ) void MZ_RunInThread( PAPCFUNC proc, ULONG_PTR arg )
{ {
proc(arg); proc(arg);
} }
...@@ -795,7 +795,7 @@ void WINAPI MZ_RunInThread( PAPCFUNC proc, ULONG_PTR arg ) ...@@ -795,7 +795,7 @@ void WINAPI MZ_RunInThread( PAPCFUNC proc, ULONG_PTR arg )
/*********************************************************************** /***********************************************************************
* MZ_Exit * MZ_Exit
*/ */
void WINAPI MZ_Exit( CONTEXT86 *context, BOOL cs_psp, WORD retval ) void MZ_Exit( CONTEXT86 *context, BOOL cs_psp, WORD retval )
{ {
DOSVM_Exit( retval ); DOSVM_Exit( retval );
} }
...@@ -803,7 +803,7 @@ void WINAPI MZ_Exit( CONTEXT86 *context, BOOL cs_psp, WORD retval ) ...@@ -803,7 +803,7 @@ void WINAPI MZ_Exit( CONTEXT86 *context, BOOL cs_psp, WORD retval )
/*********************************************************************** /***********************************************************************
* MZ_Current * MZ_Current
*/ */
BOOL WINAPI MZ_Current( void ) BOOL MZ_Current( void )
{ {
return FALSE; return FALSE;
} }
......
...@@ -144,7 +144,7 @@ static void WINAPI TIMER_DoSetTimer( ULONG_PTR arg ) ...@@ -144,7 +144,7 @@ static void WINAPI TIMER_DoSetTimer( ULONG_PTR arg )
/*********************************************************************** /***********************************************************************
* DOSVM_SetTimer * DOSVM_SetTimer
*/ */
void WINAPI DOSVM_SetTimer( UINT ticks ) void DOSVM_SetTimer( UINT ticks )
{ {
/* PIT interprets zero as a maximum length delay. */ /* PIT interprets zero as a maximum length delay. */
if (ticks == 0) if (ticks == 0)
......
...@@ -60,7 +60,7 @@ static BYTE * XMS_Offset( MOVEOFS *ofs ) ...@@ -60,7 +60,7 @@ static BYTE * XMS_Offset( MOVEOFS *ofs )
* XMS_Handler * XMS_Handler
*/ */
void WINAPI XMS_Handler( CONTEXT86 *context ) void XMS_Handler( CONTEXT86 *context )
{ {
switch(AH_reg(context)) switch(AH_reg(context))
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment