Adding a PRECHECK block to all mozce function to allow debugging per function

call.  By default, this is not used

Implemented open, close, read, write, unlink, and lseek.
This commit is contained in:
dougt%meer.net 2005-04-05 22:40:37 +00:00
Родитель 364190fdcf
Коммит 4bc1c9730a
21 изменённых файлов: 561 добавлений и 34 удалений

Просмотреть файл

@ -47,6 +47,8 @@ extern "C" {
MOZCE_SHUNT_API void mozce_assert(int inExpression) MOZCE_SHUNT_API void mozce_assert(int inExpression)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_assert called\n"); mozce_printf("mozce_assert called\n");
#endif #endif

Двоичные данные
build/wince/shunt/build/shunt.vcb

Двоичный файл не отображается.

Просмотреть файл

@ -6,15 +6,22 @@
--------------------Configuration: shunt - Win32 (WCE emulator) Release-------------------- --------------------Configuration: shunt - Win32 (WCE emulator) Release--------------------
</h3> </h3>
<h3>Command Lines</h3> <h3>Command Lines</h3>
Creating temporary file "C:\DOCUME~1\dougt\LOCALS~1\Temp\RSP2BE.tmp" with contents Creating temporary file "C:\DOCUME~1\dougt\LOCALS~1\Temp\RSP3362.tmp" with contents
[ [
commctrl.lib coredll.lib corelibc.lib /nologo /base:"0x00100000" /stack:0x1000000 /entry:"_DllMainCRTStartup" /dll /pdb:none /incremental:no /nodefaultlib:"OLDNAMES.lib" /nodefaultlib:libc.lib /nodefaultlib:libcd.lib /nodefaultlib:libcmt.lib /nodefaultlib:libcmtd.lib /nodefaultlib:msvcrt.lib /nodefaultlib:msvcrtd.lib /out:"emulatorRel/shunt.dll" /implib:"emulatorRel/shunt.lib" /subsystem:windowsce,4.20 /MACHINE:IX86 /nologo /W3 /I "../include" /D "_i386_" /D "_X86_" /D "x86" /D "NDEBUG" /D _WIN32_WCE=420 /D "WIN32_PLATFORM_PSPC=400" /D UNDER_CE=420 /D "UNICODE" /D "_UNICODE" /D "SHUNT_EXPORTS" /D "MOZCE_SHUNT_EXPORTS" /Fo"emulatorRel/" /Gs8192 /GF /O2 /c
"C:\builds\wince\mozilla\build\wince\shunt\stdio.cpp"
]
Creating command line "cl.exe @C:\DOCUME~1\dougt\LOCALS~1\Temp\RSP3362.tmp"
Creating temporary file "C:\DOCUME~1\dougt\LOCALS~1\Temp\RSP3363.tmp" with contents
[
commctrl.lib coredll.lib corelibc.lib /nologo /base:"0x00100000" /stack:0x5000000 /entry:"_DllMainCRTStartup" /dll /pdb:none /incremental:no /nodefaultlib:"OLDNAMES.lib" /nodefaultlib:libc.lib /nodefaultlib:libcd.lib /nodefaultlib:libcmt.lib /nodefaultlib:libcmtd.lib /nodefaultlib:msvcrt.lib /nodefaultlib:msvcrtd.lib /out:"emulatorRel/shunt.dll" /implib:"emulatorRel/shunt.lib" /subsystem:windowsce,4.20 /MACHINE:IX86
.\emulatorRel\a2w.obj .\emulatorRel\a2w.obj
.\emulatorRel\assert.obj .\emulatorRel\assert.obj
.\emulatorRel\direct.obj .\emulatorRel\direct.obj
.\emulatorRel\errno.obj .\emulatorRel\errno.obj
.\emulatorRel\io.obj .\emulatorRel\io.obj
.\emulatorRel\mbstring.obj .\emulatorRel\mbstring.obj
.\emulatorRel\nclog.obj
.\emulatorRel\process.obj .\emulatorRel\process.obj
.\emulatorRel\signal.obj .\emulatorRel\signal.obj
.\emulatorRel\stat.obj .\emulatorRel\stat.obj
@ -26,10 +33,11 @@ commctrl.lib coredll.lib corelibc.lib /nologo /base:"0x00100000" /stack:0x100000
.\emulatorRel\win32.obj .\emulatorRel\win32.obj
.\emulatorRel\win32A.obj .\emulatorRel\win32A.obj
.\emulatorRel\win32W.obj .\emulatorRel\win32W.obj
.\emulatorRel\nclog.obj
] ]
Creating command line "link.exe @C:\DOCUME~1\dougt\LOCALS~1\Temp\RSP2BE.tmp" Creating command line "link.exe @C:\DOCUME~1\dougt\LOCALS~1\Temp\RSP3363.tmp"
<h3>Output Window</h3> <h3>Output Window</h3>
Compiling...
stdio.cpp
Linking... Linking...
Creating library emulatorRel/shunt.lib and object emulatorRel/shunt.exp Creating library emulatorRel/shunt.lib and object emulatorRel/shunt.exp
@ -43,15 +51,22 @@ shunt.dll - 0 error(s), 0 warning(s)
--------------------Configuration: shunt - Win32 (WCE emulator) Debug-------------------- --------------------Configuration: shunt - Win32 (WCE emulator) Debug--------------------
</h3> </h3>
<h3>Command Lines</h3> <h3>Command Lines</h3>
Creating temporary file "C:\DOCUME~1\dougt\LOCALS~1\Temp\RSP2C2.tmp" with contents Creating temporary file "C:\DOCUME~1\dougt\LOCALS~1\Temp\RSP3367.tmp" with contents
[ [
commctrl.lib coredll.lib corelibc.lib /nologo /base:"0x00100000" /stack:0x1000000 /entry:"_DllMainCRTStartup" /dll /pdb:none /incremental:yes /debug /nodefaultlib:"OLDNAMES.lib" /nodefaultlib:libc.lib /nodefaultlib:libcd.lib /nodefaultlib:libcmt.lib /nodefaultlib:libcmtd.lib /nodefaultlib:msvcrt.lib /nodefaultlib:msvcrtd.lib /out:"emulatorDbg/shunt.dll" /implib:"emulatorDbg/shunt.lib" /subsystem:windowsce,4.20 /MACHINE:IX86 /nologo /W3 /Zi /Od /I "../include" /D "DEBUG" /D "_i386_" /D "_X86_" /D "x86" /D _WIN32_WCE=420 /D "WIN32_PLATFORM_PSPC=400" /D UNDER_CE=420 /D "UNICODE" /D "_UNICODE" /D "SHUNT_EXPORTS" /D "MOZCE_SHUNT_EXPORTS" /Fo"emulatorDbg/" /Fd"emulatorDbg/" /Gs8192 /GF /c
"C:\builds\wince\mozilla\build\wince\shunt\stdio.cpp"
]
Creating command line "cl.exe @C:\DOCUME~1\dougt\LOCALS~1\Temp\RSP3367.tmp"
Creating temporary file "C:\DOCUME~1\dougt\LOCALS~1\Temp\RSP3368.tmp" with contents
[
commctrl.lib coredll.lib corelibc.lib /nologo /base:"0x00100000" /stack:0x5000000 /entry:"_DllMainCRTStartup" /dll /pdb:none /incremental:yes /debug /nodefaultlib:"OLDNAMES.lib" /nodefaultlib:libc.lib /nodefaultlib:libcd.lib /nodefaultlib:libcmt.lib /nodefaultlib:libcmtd.lib /nodefaultlib:msvcrt.lib /nodefaultlib:msvcrtd.lib /out:"emulatorDbg/shunt.dll" /implib:"emulatorDbg/shunt.lib" /subsystem:windowsce,4.20 /MACHINE:IX86
.\emulatorDbg\a2w.obj .\emulatorDbg\a2w.obj
.\emulatorDbg\assert.obj .\emulatorDbg\assert.obj
.\emulatorDbg\direct.obj .\emulatorDbg\direct.obj
.\emulatorDbg\errno.obj .\emulatorDbg\errno.obj
.\emulatorDbg\io.obj .\emulatorDbg\io.obj
.\emulatorDbg\mbstring.obj .\emulatorDbg\mbstring.obj
.\emulatorDbg\nclog.obj
.\emulatorDbg\process.obj .\emulatorDbg\process.obj
.\emulatorDbg\signal.obj .\emulatorDbg\signal.obj
.\emulatorDbg\stat.obj .\emulatorDbg\stat.obj
@ -63,10 +78,11 @@ commctrl.lib coredll.lib corelibc.lib /nologo /base:"0x00100000" /stack:0x100000
.\emulatorDbg\win32.obj .\emulatorDbg\win32.obj
.\emulatorDbg\win32A.obj .\emulatorDbg\win32A.obj
.\emulatorDbg\win32W.obj .\emulatorDbg\win32W.obj
.\emulatorDbg\nclog.obj
] ]
Creating command line "link.exe @C:\DOCUME~1\dougt\LOCALS~1\Temp\RSP2C2.tmp" Creating command line "link.exe @C:\DOCUME~1\dougt\LOCALS~1\Temp\RSP3368.tmp"
<h3>Output Window</h3> <h3>Output Window</h3>
Compiling...
stdio.cpp
Linking... Linking...
LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/PDB:NONE' specification LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/PDB:NONE' specification
Creating library emulatorDbg/shunt.lib and object emulatorDbg/shunt.exp Creating library emulatorDbg/shunt.lib and object emulatorDbg/shunt.exp
@ -81,15 +97,22 @@ shunt.dll - 0 error(s), 1 warning(s)
--------------------Configuration: shunt - Win32 (WCE ARMV4) Release-------------------- --------------------Configuration: shunt - Win32 (WCE ARMV4) Release--------------------
</h3> </h3>
<h3>Command Lines</h3> <h3>Command Lines</h3>
Creating temporary file "C:\DOCUME~1\dougt\LOCALS~1\Temp\RSP2C6.tmp" with contents Creating temporary file "C:\DOCUME~1\dougt\LOCALS~1\Temp\RSP336C.tmp" with contents
[ [
commctrl.lib coredll.lib /nologo /base:"0x00100000" /stack:0x1000000 /entry:"_DllMainCRTStartup" /dll /pdb:none /incremental:no /nodefaultlib:"libc.lib /nodefaultlib:libcd.lib /nodefaultlib:libcmt.lib /nodefaultlib:libcmtd.lib /nodefaultlib:msvcrt.lib /nodefaultlib:msvcrtd.lib" /out:"ARMV4Rel/shunt.dll" /implib:"ARMV4Rel/shunt.lib" /subsystem:windowsce,4.20 /align:"4096" /MACHINE:ARM /nologo /W3 /I "../include" /D "ARM" /D "_ARM_" /D "ARMV4" /D "NDEBUG" /D _WIN32_WCE=420 /D "WIN32_PLATFORM_PSPC=400" /D UNDER_CE=420 /D "UNICODE" /D "_UNICODE" /D "SHUNT_EXPORTS" /D "MOZCE_SHUNT_EXPORTS" /FR"ARMV4Rel/" /Fo"ARMV4Rel/" /O2 /MC /c
"C:\builds\wince\mozilla\build\wince\shunt\stdio.cpp"
]
Creating command line "clarm.exe @C:\DOCUME~1\dougt\LOCALS~1\Temp\RSP336C.tmp"
Creating temporary file "C:\DOCUME~1\dougt\LOCALS~1\Temp\RSP336D.tmp" with contents
[
commctrl.lib coredll.lib /nologo /base:"0x00100000" /stack:0x5000000 /entry:"_DllMainCRTStartup" /dll /pdb:none /incremental:no /nodefaultlib:"libc.lib /nodefaultlib:libcd.lib /nodefaultlib:libcmt.lib /nodefaultlib:libcmtd.lib /nodefaultlib:msvcrt.lib /nodefaultlib:msvcrtd.lib" /out:"ARMV4Rel/shunt.dll" /implib:"ARMV4Rel/shunt.lib" /subsystem:windowsce,4.20 /align:"4096" /MACHINE:ARM
.\ARMV4Rel\a2w.obj .\ARMV4Rel\a2w.obj
.\ARMV4Rel\assert.obj .\ARMV4Rel\assert.obj
.\ARMV4Rel\direct.obj .\ARMV4Rel\direct.obj
.\ARMV4Rel\errno.obj .\ARMV4Rel\errno.obj
.\ARMV4Rel\io.obj .\ARMV4Rel\io.obj
.\ARMV4Rel\mbstring.obj .\ARMV4Rel\mbstring.obj
.\ARMV4Rel\nclog.obj
.\ARMV4Rel\process.obj .\ARMV4Rel\process.obj
.\ARMV4Rel\signal.obj .\ARMV4Rel\signal.obj
.\ARMV4Rel\stat.obj .\ARMV4Rel\stat.obj
@ -101,10 +124,11 @@ commctrl.lib coredll.lib /nologo /base:"0x00100000" /stack:0x1000000 /entry:"_Dl
.\ARMV4Rel\win32.obj .\ARMV4Rel\win32.obj
.\ARMV4Rel\win32A.obj .\ARMV4Rel\win32A.obj
.\ARMV4Rel\win32W.obj .\ARMV4Rel\win32W.obj
.\ARMV4Rel\nclog.obj
] ]
Creating command line "link.exe @C:\DOCUME~1\dougt\LOCALS~1\Temp\RSP2C6.tmp" Creating command line "link.exe @C:\DOCUME~1\dougt\LOCALS~1\Temp\RSP336D.tmp"
<h3>Output Window</h3> <h3>Output Window</h3>
Compiling...
stdio.cpp
Linking... Linking...
Creating library ARMV4Rel/shunt.lib and object ARMV4Rel/shunt.exp Creating library ARMV4Rel/shunt.lib and object ARMV4Rel/shunt.exp
@ -118,15 +142,22 @@ shunt.dll - 0 error(s), 0 warning(s)
--------------------Configuration: shunt - Win32 (WCE ARMV4) Debug-------------------- --------------------Configuration: shunt - Win32 (WCE ARMV4) Debug--------------------
</h3> </h3>
<h3>Command Lines</h3> <h3>Command Lines</h3>
Creating temporary file "C:\DOCUME~1\dougt\LOCALS~1\Temp\RSP2CA.tmp" with contents Creating temporary file "C:\DOCUME~1\dougt\LOCALS~1\Temp\RSP3371.tmp" with contents
[ [
commctrl.lib coredll.lib /nologo /base:"0x00100000" /stack:0x1000000 /entry:"_DllMainCRTStartup" /dll /pdb:none /incremental:yes /debug /nodefaultlib:"libc.lib /nodefaultlib:libcd.lib /nodefaultlib:libcmt.lib /nodefaultlib:libcmtd.lib /nodefaultlib:msvcrt.lib /nodefaultlib:msvcrtd.lib" /out:"ARMV4Dbg/shunt.dll" /implib:"ARMV4Dbg/shunt.lib" /subsystem:windowsce,4.20 /align:"4096" /MACHINE:ARM /nologo /W3 /Zi /Od /I "../include" /D "DEBUG" /D "ARM" /D "_ARM_" /D "ARMV4" /D _WIN32_WCE=420 /D "WIN32_PLATFORM_PSPC=400" /D UNDER_CE=420 /D "UNICODE" /D "_UNICODE" /D "SHUNT_EXPORTS" /D "MOZCE_SHUNT_EXPORTS" /Fo"ARMV4Dbg/" /Fd"ARMV4Dbg/" /MC /c
"C:\builds\wince\mozilla\build\wince\shunt\stdio.cpp"
]
Creating command line "clarm.exe @C:\DOCUME~1\dougt\LOCALS~1\Temp\RSP3371.tmp"
Creating temporary file "C:\DOCUME~1\dougt\LOCALS~1\Temp\RSP3372.tmp" with contents
[
commctrl.lib coredll.lib /nologo /base:"0x00100000" /stack:0x5000000 /entry:"_DllMainCRTStartup" /dll /pdb:none /incremental:yes /debug /nodefaultlib:"libc.lib /nodefaultlib:libcd.lib /nodefaultlib:libcmt.lib /nodefaultlib:libcmtd.lib /nodefaultlib:msvcrt.lib /nodefaultlib:msvcrtd.lib" /out:"ARMV4Dbg/shunt.dll" /implib:"ARMV4Dbg/shunt.lib" /subsystem:windowsce,4.20 /align:"4096" /MACHINE:ARM
.\ARMV4Dbg\a2w.obj .\ARMV4Dbg\a2w.obj
.\ARMV4Dbg\assert.obj .\ARMV4Dbg\assert.obj
.\ARMV4Dbg\direct.obj .\ARMV4Dbg\direct.obj
.\ARMV4Dbg\errno.obj .\ARMV4Dbg\errno.obj
.\ARMV4Dbg\io.obj .\ARMV4Dbg\io.obj
.\ARMV4Dbg\mbstring.obj .\ARMV4Dbg\mbstring.obj
.\ARMV4Dbg\nclog.obj
.\ARMV4Dbg\process.obj .\ARMV4Dbg\process.obj
.\ARMV4Dbg\signal.obj .\ARMV4Dbg\signal.obj
.\ARMV4Dbg\stat.obj .\ARMV4Dbg\stat.obj
@ -138,10 +169,11 @@ commctrl.lib coredll.lib /nologo /base:"0x00100000" /stack:0x1000000 /entry:"_Dl
.\ARMV4Dbg\win32.obj .\ARMV4Dbg\win32.obj
.\ARMV4Dbg\win32A.obj .\ARMV4Dbg\win32A.obj
.\ARMV4Dbg\win32W.obj .\ARMV4Dbg\win32W.obj
.\ARMV4Dbg\nclog.obj
] ]
Creating command line "link.exe @C:\DOCUME~1\dougt\LOCALS~1\Temp\RSP2CA.tmp" Creating command line "link.exe @C:\DOCUME~1\dougt\LOCALS~1\Temp\RSP3372.tmp"
<h3>Output Window</h3> <h3>Output Window</h3>
Compiling...
stdio.cpp
Linking... Linking...
LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/PDB:NONE' specification LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/PDB:NONE' specification
Creating library ARMV4Dbg/shunt.lib and object ARMV4Dbg/shunt.exp Creating library ARMV4Dbg/shunt.lib and object ARMV4Dbg/shunt.exp
@ -156,15 +188,22 @@ shunt.dll - 0 error(s), 1 warning(s)
--------------------Configuration: shunt - Win32 (WCE ARMV4) SmartPhone-------------------- --------------------Configuration: shunt - Win32 (WCE ARMV4) SmartPhone--------------------
</h3> </h3>
<h3>Command Lines</h3> <h3>Command Lines</h3>
Creating temporary file "C:\DOCUME~1\dougt\LOCALS~1\Temp\RSP2CE.tmp" with contents Creating temporary file "C:\DOCUME~1\dougt\LOCALS~1\Temp\RSP3376.tmp" with contents
[ [
commctrl.lib coredll.lib /nologo /base:"0x00100000" /stack:0x1000000 /entry:"_DllMainCRTStartup" /dll /pdb:none /incremental:no /nodefaultlib:"libc.lib /nodefaultlib:libcd.lib /nodefaultlib:libcmt.lib /nodefaultlib:libcmtd.lib /nodefaultlib:msvcrt.lib /nodefaultlib:msvcrtd.lib" /out:"ARMV4SmartPhone/shunt.dll" /implib:"ARMV4SmartPhone/shunt.lib" /subsystem:windowsce,4.20 /align:"4096" /MACHINE:ARM /nologo /W3 /I "../include" /D "ARM" /D "_ARM_" /D "ARMV4" /D "NDEBUG" /D _WIN32_WCE=420 /D "WIN32_PLATFORM_PSPC=400" /D UNDER_CE=420 /D "UNICODE" /D "_UNICODE" /D "SHUNT_EXPORTS" /D "MOZCE_SHUNT_EXPORTS" /FR"ARMV4SmartPhone/" /Fo"ARMV4SmartPhone/" /O2 /MC /c
"C:\builds\wince\mozilla\build\wince\shunt\stdio.cpp"
]
Creating command line "clarm.exe @C:\DOCUME~1\dougt\LOCALS~1\Temp\RSP3376.tmp"
Creating temporary file "C:\DOCUME~1\dougt\LOCALS~1\Temp\RSP3377.tmp" with contents
[
commctrl.lib coredll.lib /nologo /base:"0x00100000" /stack:0x5000000 /entry:"_DllMainCRTStartup" /dll /pdb:none /incremental:no /nodefaultlib:"libc.lib /nodefaultlib:libcd.lib /nodefaultlib:libcmt.lib /nodefaultlib:libcmtd.lib /nodefaultlib:msvcrt.lib /nodefaultlib:msvcrtd.lib" /out:"ARMV4SmartPhone/shunt.dll" /implib:"ARMV4SmartPhone/shunt.lib" /subsystem:windowsce,4.20 /align:"4096" /MACHINE:ARM
.\ARMV4SmartPhone\a2w.obj .\ARMV4SmartPhone\a2w.obj
.\ARMV4SmartPhone\assert.obj .\ARMV4SmartPhone\assert.obj
.\ARMV4SmartPhone\direct.obj .\ARMV4SmartPhone\direct.obj
.\ARMV4SmartPhone\errno.obj .\ARMV4SmartPhone\errno.obj
.\ARMV4SmartPhone\io.obj .\ARMV4SmartPhone\io.obj
.\ARMV4SmartPhone\mbstring.obj .\ARMV4SmartPhone\mbstring.obj
.\ARMV4SmartPhone\nclog.obj
.\ARMV4SmartPhone\process.obj .\ARMV4SmartPhone\process.obj
.\ARMV4SmartPhone\signal.obj .\ARMV4SmartPhone\signal.obj
.\ARMV4SmartPhone\stat.obj .\ARMV4SmartPhone\stat.obj
@ -176,10 +215,11 @@ commctrl.lib coredll.lib /nologo /base:"0x00100000" /stack:0x1000000 /entry:"_Dl
.\ARMV4SmartPhone\win32.obj .\ARMV4SmartPhone\win32.obj
.\ARMV4SmartPhone\win32A.obj .\ARMV4SmartPhone\win32A.obj
.\ARMV4SmartPhone\win32W.obj .\ARMV4SmartPhone\win32W.obj
.\ARMV4SmartPhone\nclog.obj
] ]
Creating command line "link.exe @C:\DOCUME~1\dougt\LOCALS~1\Temp\RSP2CE.tmp" Creating command line "link.exe @C:\DOCUME~1\dougt\LOCALS~1\Temp\RSP3377.tmp"
<h3>Output Window</h3> <h3>Output Window</h3>
Compiling...
stdio.cpp
Linking... Linking...
Creating library ARMV4SmartPhone/shunt.lib and object ARMV4SmartPhone/shunt.exp Creating library ARMV4SmartPhone/shunt.lib and object ARMV4SmartPhone/shunt.exp

Двоичные данные
build/wince/shunt/build/shunt.vco

Двоичный файл не отображается.

Просмотреть файл

@ -63,7 +63,7 @@ BSC32=bscmake.exe
# ADD BSC32 /nologo # ADD BSC32 /nologo
LINK32=link.exe LINK32=link.exe
# ADD BASE LINK32 commctrl.lib coredll.lib $(CEx86Corelibc) /nologo /base:"0x00100000" /stack:0x10000,0x1000 /entry:"_DllMainCRTStartup" /dll /nodefaultlib:"OLDNAMES.lib" /nodefaultlib:$(CENoDefaultLib) /subsystem:$(CESubsystem) /MACHINE:IX86 # ADD BASE LINK32 commctrl.lib coredll.lib $(CEx86Corelibc) /nologo /base:"0x00100000" /stack:0x10000,0x1000 /entry:"_DllMainCRTStartup" /dll /nodefaultlib:"OLDNAMES.lib" /nodefaultlib:$(CENoDefaultLib) /subsystem:$(CESubsystem) /MACHINE:IX86
# ADD LINK32 commctrl.lib coredll.lib $(CEx86Corelibc) /nologo /base:"0x00100000" /stack:0x1000000 /entry:"_DllMainCRTStartup" /dll /pdb:none /nodefaultlib:"OLDNAMES.lib" /nodefaultlib:$(CENoDefaultLib) /subsystem:$(CESubsystem) /MACHINE:IX86 # ADD LINK32 commctrl.lib coredll.lib $(CEx86Corelibc) /nologo /base:"0x00100000" /stack:0x5000000 /entry:"_DllMainCRTStartup" /dll /pdb:none /nodefaultlib:"OLDNAMES.lib" /nodefaultlib:$(CENoDefaultLib) /subsystem:$(CESubsystem) /MACHINE:IX86
# SUBTRACT LINK32 /map # SUBTRACT LINK32 /map
!ELSEIF "$(CFG)" == "shunt - Win32 (WCE emulator) Debug" !ELSEIF "$(CFG)" == "shunt - Win32 (WCE emulator) Debug"
@ -98,7 +98,7 @@ BSC32=bscmake.exe
# ADD BSC32 /nologo # ADD BSC32 /nologo
LINK32=link.exe LINK32=link.exe
# ADD BASE LINK32 commctrl.lib coredll.lib $(CEx86Corelibc) /nologo /base:"0x00100000" /stack:0x10000,0x1000 /entry:"_DllMainCRTStartup" /dll /debug /nodefaultlib:"OLDNAMES.lib" /nodefaultlib:$(CENoDefaultLib) /subsystem:$(CESubsystem) /MACHINE:IX86 # ADD BASE LINK32 commctrl.lib coredll.lib $(CEx86Corelibc) /nologo /base:"0x00100000" /stack:0x10000,0x1000 /entry:"_DllMainCRTStartup" /dll /debug /nodefaultlib:"OLDNAMES.lib" /nodefaultlib:$(CENoDefaultLib) /subsystem:$(CESubsystem) /MACHINE:IX86
# ADD LINK32 commctrl.lib coredll.lib $(CEx86Corelibc) /nologo /base:"0x00100000" /stack:0x1000000 /entry:"_DllMainCRTStartup" /dll /pdb:none /debug /nodefaultlib:"OLDNAMES.lib" /nodefaultlib:$(CENoDefaultLib) /subsystem:$(CESubsystem) /MACHINE:IX86 # ADD LINK32 commctrl.lib coredll.lib $(CEx86Corelibc) /nologo /base:"0x00100000" /stack:0x5000000 /entry:"_DllMainCRTStartup" /dll /pdb:none /debug /nodefaultlib:"OLDNAMES.lib" /nodefaultlib:$(CENoDefaultLib) /subsystem:$(CESubsystem) /MACHINE:IX86
# SUBTRACT LINK32 /map # SUBTRACT LINK32 /map
!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) Release" !ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) Release"
@ -133,7 +133,7 @@ BSC32=bscmake.exe
# ADD BSC32 /nologo # ADD BSC32 /nologo
LINK32=link.exe LINK32=link.exe
# ADD BASE LINK32 commctrl.lib coredll.lib /nologo /base:"0x00100000" /stack:0x10000,0x1000 /entry:"_DllMainCRTStartup" /dll /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /align:"4096" /MACHINE:ARM # ADD BASE LINK32 commctrl.lib coredll.lib /nologo /base:"0x00100000" /stack:0x10000,0x1000 /entry:"_DllMainCRTStartup" /dll /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /align:"4096" /MACHINE:ARM
# ADD LINK32 commctrl.lib coredll.lib /nologo /base:"0x00100000" /stack:0x1000000 /entry:"_DllMainCRTStartup" /dll /pdb:none /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /align:"4096" /MACHINE:ARM # ADD LINK32 commctrl.lib coredll.lib /nologo /base:"0x00100000" /stack:0x5000000 /entry:"_DllMainCRTStartup" /dll /pdb:none /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /align:"4096" /MACHINE:ARM
# SUBTRACT LINK32 /map # SUBTRACT LINK32 /map
!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) Debug" !ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) Debug"
@ -168,7 +168,7 @@ BSC32=bscmake.exe
# ADD BSC32 /nologo # ADD BSC32 /nologo
LINK32=link.exe LINK32=link.exe
# ADD BASE LINK32 commctrl.lib coredll.lib /nologo /base:"0x00100000" /stack:0x10000,0x1000 /entry:"_DllMainCRTStartup" /dll /debug /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /align:"4096" /MACHINE:ARM # ADD BASE LINK32 commctrl.lib coredll.lib /nologo /base:"0x00100000" /stack:0x10000,0x1000 /entry:"_DllMainCRTStartup" /dll /debug /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /align:"4096" /MACHINE:ARM
# ADD LINK32 commctrl.lib coredll.lib /nologo /base:"0x00100000" /stack:0x1000000 /entry:"_DllMainCRTStartup" /dll /pdb:none /debug /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /align:"4096" /MACHINE:ARM # ADD LINK32 commctrl.lib coredll.lib /nologo /base:"0x00100000" /stack:0x5000000 /entry:"_DllMainCRTStartup" /dll /pdb:none /debug /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /align:"4096" /MACHINE:ARM
# SUBTRACT LINK32 /map # SUBTRACT LINK32 /map
!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) SmartPhone" !ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) SmartPhone"
@ -206,7 +206,7 @@ BSC32=bscmake.exe
LINK32=link.exe LINK32=link.exe
# ADD BASE LINK32 commctrl.lib coredll.lib /nologo /base:"0x00100000" /stack:0x1000000 /entry:"_DllMainCRTStartup" /dll /pdb:none /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /align:"4096" /MACHINE:ARM # ADD BASE LINK32 commctrl.lib coredll.lib /nologo /base:"0x00100000" /stack:0x1000000 /entry:"_DllMainCRTStartup" /dll /pdb:none /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /align:"4096" /MACHINE:ARM
# SUBTRACT BASE LINK32 /map # SUBTRACT BASE LINK32 /map
# ADD LINK32 commctrl.lib coredll.lib /nologo /base:"0x00100000" /stack:0x1000000 /entry:"_DllMainCRTStartup" /dll /pdb:none /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /align:"4096" /MACHINE:ARM # ADD LINK32 commctrl.lib coredll.lib /nologo /base:"0x00100000" /stack:0x5000000 /entry:"_DllMainCRTStartup" /dll /pdb:none /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /align:"4096" /MACHINE:ARM
# SUBTRACT LINK32 /map # SUBTRACT LINK32 /map
!ENDIF !ENDIF

Просмотреть файл

@ -49,6 +49,8 @@ extern "C" {
MOZCE_SHUNT_API int mozce_mkdir(const char* inDirname) MOZCE_SHUNT_API int mozce_mkdir(const char* inDirname)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_mkdir called\n"); mozce_printf("mozce_mkdir called\n");
#endif #endif
@ -74,6 +76,8 @@ MOZCE_SHUNT_API int mozce_mkdir(const char* inDirname)
MOZCE_SHUNT_API int mozce_rmdir(const char* inDirname) MOZCE_SHUNT_API int mozce_rmdir(const char* inDirname)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_rmdir called (%s)\n", inDirname); mozce_printf("mozce_rmdir called (%s)\n", inDirname);
#endif #endif

Просмотреть файл

@ -37,7 +37,7 @@
#ifndef MOZCE_DEFS #ifndef MOZCE_DEFS
#define MOZCE_DEFS #define MOZCE_DEFS
// #define USE_NC_LOGGING 1 #define USE_NC_LOGGING 1
#define NOMINMAX #define NOMINMAX

Просмотреть файл

@ -215,12 +215,40 @@
#endif #endif
#define getcwd mozce_getcwd #define getcwd mozce_getcwd
#ifdef printf #ifdef printf
#undef printf #undef printf
#endif #endif
#define printf mozce_printf #define printf mozce_printf
#ifdef open
#undef open
#endif
#define open mozce_open
#ifdef close
#undef close
#endif
#define close mozce_close
#ifdef read
#undef read
#endif
#define read mozce_read
#ifdef write
#undef write
#endif
#define write mozce_write
#ifdef unlink
#undef unlink
#endif
#define unlink mozce_unlink
#ifdef lseek
#undef lseek
#endif
#define lseek mozce_lseek
// From stdlib.cpp // From stdlib.cpp
#ifdef _fullpath #ifdef _fullpath
@ -1156,6 +1184,13 @@ extern "C" {
MOZCE_SHUNT_API int mozce_printf(const char *, ...); MOZCE_SHUNT_API int mozce_printf(const char *, ...);
MOZCE_SHUNT_API int mozce_open(const char *pathname, int flags, int mode);
MOZCE_SHUNT_API int mozce_close(int fp);
MOZCE_SHUNT_API size_t mozce_read(int fp, void* buffer, size_t count);
MOZCE_SHUNT_API size_t mozce_write(int fp, const void* buffer, size_t count);
MOZCE_SHUNT_API int mozce_unlink(const char *pathname);
MOZCE_SHUNT_API int mozce_lseek(int fildes, int offset, int whence);
// From stdlib.cpp // From stdlib.cpp
MOZCE_SHUNT_API void mozce_splitpath(const char* inPath, char* outDrive, char* outDir, char* outFname, char* outExt); MOZCE_SHUNT_API void mozce_splitpath(const char* inPath, char* outDrive, char* outDir, char* outFname, char* outExt);

Просмотреть файл

@ -48,6 +48,8 @@ extern "C" {
MOZCE_SHUNT_API int mozce_chmod(const char* inFilename, int inMode) MOZCE_SHUNT_API int mozce_chmod(const char* inFilename, int inMode)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_chmod called\n"); mozce_printf("mozce_chmod called\n");
#endif #endif
@ -90,6 +92,8 @@ MOZCE_SHUNT_API int mozce_chmod(const char* inFilename, int inMode)
MOZCE_SHUNT_API int mozce_isatty(int inHandle) MOZCE_SHUNT_API int mozce_isatty(int inHandle)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_isatty called\n"); mozce_printf("mozce_isatty called\n");
#endif #endif

Просмотреть файл

@ -55,6 +55,8 @@ extern "C" {
MOZCE_SHUNT_API unsigned char* mozce_mbsinc(const unsigned char* inCurrent) MOZCE_SHUNT_API unsigned char* mozce_mbsinc(const unsigned char* inCurrent)
{ {
MOZCE_PRECHECK
#ifdef LOG_CALLS #ifdef LOG_CALLS
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_mbsinc called\n"); mozce_printf("mozce_mbsinc called\n");
@ -67,6 +69,8 @@ MOZCE_SHUNT_API unsigned char* mozce_mbsinc(const unsigned char* inCurrent)
MOZCE_SHUNT_API unsigned char* mozce_mbspbrk(const unsigned char* inString, const unsigned char* inStrCharSet) MOZCE_SHUNT_API unsigned char* mozce_mbspbrk(const unsigned char* inString, const unsigned char* inStrCharSet)
{ {
MOZCE_PRECHECK
#ifdef LOG_CALLS #ifdef LOG_CALLS
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_mbspbrk called\n"); mozce_printf("mozce_mbspbrk called\n");
@ -84,6 +88,8 @@ MOZCE_SHUNT_API unsigned char* mozce_mbspbrk(const unsigned char* inString, cons
MOZCE_SHUNT_API unsigned char* mozce_mbsrchr(const unsigned char* inString, unsigned int inC) MOZCE_SHUNT_API unsigned char* mozce_mbsrchr(const unsigned char* inString, unsigned int inC)
{ {
MOZCE_PRECHECK
#ifdef LOG_CALLS #ifdef LOG_CALLS
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_mbsrchr called\n"); mozce_printf("mozce_mbsrchr called\n");
@ -96,6 +102,8 @@ MOZCE_SHUNT_API unsigned char* mozce_mbsrchr(const unsigned char* inString, unsi
MOZCE_SHUNT_API unsigned char* mozce_mbschr(const unsigned char* inString, unsigned int inC) MOZCE_SHUNT_API unsigned char* mozce_mbschr(const unsigned char* inString, unsigned int inC)
{ {
MOZCE_PRECHECK
#ifdef LOG_CALLS #ifdef LOG_CALLS
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_mbschr called\n"); mozce_printf("mozce_mbschr called\n");

Просмотреть файл

@ -163,4 +163,19 @@ extern "C" {
void nclog (const char *fmt, ...); void nclog (const char *fmt, ...);
void nclograw(const char* data, long length); void nclograw(const char* data, long length);
//#define MOZCE_PRECHECK \
//{ \
// MEMORYSTATUS memStats; \
// memStats.dwLength = sizeof( memStats); \
// \
// GlobalMemoryStatus( (LPMEMORYSTATUS)&memStats ); \
// \
// char buffer[100]; \
// sprintf(buffer, ">> dwAvailPhys (%d)\n", memStats.dwAvailPhys / 1024); \
// \
// nclograw(buffer, strlen(buffer)); \
//} \
#define MOZCE_PRECHECK
#endif /* __mozce_internal_h */ #endif /* __mozce_internal_h */

Просмотреть файл

@ -49,6 +49,8 @@ extern "C" {
MOZCE_SHUNT_API void mozce_abort(void) MOZCE_SHUNT_API void mozce_abort(void)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_abort called\n"); mozce_printf("mozce_abort called\n");
#endif #endif
@ -62,6 +64,8 @@ MOZCE_SHUNT_API void mozce_abort(void)
MOZCE_SHUNT_API char* mozce_getenv(const char* inName) MOZCE_SHUNT_API char* mozce_getenv(const char* inName)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_getenv called (%s)\n", inName); mozce_printf("mozce_getenv called (%s)\n", inName);
#endif #endif
@ -83,6 +87,8 @@ MOZCE_SHUNT_API char* mozce_getenv(const char* inName)
MOZCE_SHUNT_API int mozce_putenv(const char *a) MOZCE_SHUNT_API int mozce_putenv(const char *a)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_putenv called\n"); mozce_printf("mozce_putenv called\n");
#endif #endif
@ -92,6 +98,8 @@ MOZCE_SHUNT_API int mozce_putenv(const char *a)
MOZCE_SHUNT_API int mozce_getpid(void) MOZCE_SHUNT_API int mozce_getpid(void)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_getpid called\n"); mozce_printf("mozce_getpid called\n");
#endif #endif

Просмотреть файл

@ -59,6 +59,8 @@ static void defaultSighandler(int inSignal)
MOZCE_SHUNT_API int mozce_raise(int inSignal) MOZCE_SHUNT_API int mozce_raise(int inSignal)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_raise called\n"); mozce_printf("mozce_raise called\n");
#endif #endif
@ -80,6 +82,8 @@ MOZCE_SHUNT_API int mozce_raise(int inSignal)
MOZCE_SHUNT_API _sigsig mozce_signal(int inSignal, _sigsig inFunc) MOZCE_SHUNT_API _sigsig mozce_signal(int inSignal, _sigsig inFunc)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_signal called\n"); mozce_printf("mozce_signal called\n");
#endif #endif

Просмотреть файл

@ -50,6 +50,8 @@ extern "C" {
MOZCE_SHUNT_API int mozce_stat(const char* inPath, struct stat* outStats) MOZCE_SHUNT_API int mozce_stat(const char* inPath, struct stat* outStats)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_stat called\n"); mozce_printf("mozce_stat called\n");
#endif #endif

Просмотреть файл

@ -50,6 +50,8 @@ extern "C" {
MOZCE_SHUNT_API void mozce_rewind(FILE* inStream) MOZCE_SHUNT_API void mozce_rewind(FILE* inStream)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_rewind called\n"); mozce_printf("mozce_rewind called\n");
#endif #endif
@ -60,6 +62,8 @@ MOZCE_SHUNT_API void mozce_rewind(FILE* inStream)
MOZCE_SHUNT_API FILE* mozce_fdopen(int inFD, const char* inMode) MOZCE_SHUNT_API FILE* mozce_fdopen(int inFD, const char* inMode)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_fdopen called\n"); mozce_printf("mozce_fdopen called\n");
#endif #endif
@ -83,6 +87,8 @@ MOZCE_SHUNT_API FILE* mozce_fdopen(int inFD, const char* inMode)
MOZCE_SHUNT_API void mozce_perror(const char* inString) MOZCE_SHUNT_API void mozce_perror(const char* inString)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_perror called\n"); mozce_printf("mozce_perror called\n");
#endif #endif
@ -93,6 +99,8 @@ MOZCE_SHUNT_API void mozce_perror(const char* inString)
MOZCE_SHUNT_API int mozce_remove(const char* inPath) MOZCE_SHUNT_API int mozce_remove(const char* inPath)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_remove called on %s\n", inPath); mozce_printf("mozce_remove called on %s\n", inPath);
#endif #endif
@ -118,6 +126,8 @@ MOZCE_SHUNT_API int mozce_remove(const char* inPath)
MOZCE_SHUNT_API char* mozce_getcwd(char* buff, size_t size) MOZCE_SHUNT_API char* mozce_getcwd(char* buff, size_t size)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_getcwd called. NOT IMPLEMENTED!!\n"); mozce_printf("mozce_getcwd called. NOT IMPLEMENTED!!\n");
#endif #endif
@ -126,15 +136,13 @@ MOZCE_SHUNT_API char* mozce_getcwd(char* buff, size_t size)
MOZCE_SHUNT_API int mozce_printf(const char * format, ...) MOZCE_SHUNT_API int mozce_printf(const char * format, ...)
{ {
int result; // DONT CALL IN PRINTF MOZCE_PRECHECK
char buffer[1024];
unsigned short wBuffer[1024];
va_list argp; va_list argp;
va_start(argp, format); va_start(argp, format);
char buffer[1024];
result = _snprintf(buffer, 1023, format, argp); int result = _snprintf(buffer, 1023, format, argp);
if (result<=0) if (result<=0)
return result; return result;
@ -143,6 +151,8 @@ MOZCE_SHUNT_API int mozce_printf(const char * format, ...)
nclograw(buffer, strlen(buffer)); nclograw(buffer, strlen(buffer));
#endif #endif
unsigned short wBuffer[1024];
if(0 != a2w_buffer(buffer, -1, wBuffer, sizeof(wBuffer) / sizeof(unsigned short))) if(0 != a2w_buffer(buffer, -1, wBuffer, sizeof(wBuffer) / sizeof(unsigned short)))
{ {
OutputDebugString(wBuffer); OutputDebugString(wBuffer);
@ -153,6 +163,109 @@ MOZCE_SHUNT_API int mozce_printf(const char * format, ...)
return result; return result;
} }
MOZCE_SHUNT_API int mozce_open(const char *pathname, int flags, int mode)
{
MOZCE_PRECHECK
#ifdef DEBUG
mozce_printf("mozce_open called\n");
#endif
if (mode | O_RDONLY)
{
return (int) fopen(pathname, "r");
}
if (mode | O_RDWR && mode | O_CREAT)
{
return (int) fopen(pathname, "w+");
}
if (mode | O_RDWR && mode | O_APPEND)
{
return (int) fopen(pathname, "a+");
}
if (mode | O_RDWR)
{
return (int) fopen(pathname, "r+");
}
if (mode | O_WRONLY && mode | O_CREAT)
{
return (int) fopen(pathname, "w+");
}
if (mode | O_WRONLY && mode | O_APPEND)
{
return (int) fopen(pathname, "a");
}
if (mode | O_WRONLY)
{
return (int) fopen(pathname, "w");
}
#ifdef DEBUG
mozce_printf("-- Unsupported mode!\n");
#endif
return 0;
}
MOZCE_SHUNT_API int mozce_close(int fp)
{
MOZCE_PRECHECK
#ifdef DEBUG
mozce_printf("mozce_close called\n");
#endif
return fclose((FILE*) fp);
}
MOZCE_SHUNT_API size_t mozce_read(int fp, void* buffer, size_t count)
{
MOZCE_PRECHECK
#ifdef DEBUG
mozce_printf("mozce_read called\n");
#endif
return fread(buffer, count, 1, (void*)fp);
}
MOZCE_SHUNT_API size_t mozce_write(int fp, const void* buffer, size_t count)
{
MOZCE_PRECHECK
#ifdef DEBUG
mozce_printf("mozce_write called\n");
#endif
return fwrite(buffer, count, 1, (void*)fp);
}
MOZCE_SHUNT_API int mozce_unlink(const char *pathname)
{
MOZCE_PRECHECK
#ifdef DEBUG
mozce_printf("mozce_unlink called\n");
#endif
return mozce_remove(pathname);
}
MOZCE_SHUNT_API int mozce_lseek(int fildes, int offset, int whence)
{
MOZCE_PRECHECK
#ifdef DEBUG
mozce_printf("mozce_lseek called\n");
#endif
return fseek((FILE*) fildes, offset, whence);
}
#if 0 #if 0
{ {
#endif #endif

Просмотреть файл

@ -51,6 +51,8 @@ extern "C" {
MOZCE_SHUNT_API char *mozce_fullpath(char *absPath, const char *relPath, size_t maxLength) MOZCE_SHUNT_API char *mozce_fullpath(char *absPath, const char *relPath, size_t maxLength)
{ {
MOZCE_PRECHECK
#ifdef LOG_CALLS #ifdef LOG_CALLS
#ifdef DEBUG #ifdef DEBUG
mozce_printf("*mozce_fullpath called\n"); mozce_printf("*mozce_fullpath called\n");
@ -61,6 +63,8 @@ MOZCE_SHUNT_API char *mozce_fullpath(char *absPath, const char *relPath, size_t
MOZCE_SHUNT_API void mozce_splitpath(const char* inPath, char* outDrive, char* outDir, char* outFname, char* outExt) MOZCE_SHUNT_API void mozce_splitpath(const char* inPath, char* outDrive, char* outDir, char* outFname, char* outExt)
{ {
MOZCE_PRECHECK
#ifdef LOG_CALLS #ifdef LOG_CALLS
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_splitpath called\n"); mozce_printf("mozce_splitpath called\n");
@ -170,6 +174,8 @@ MOZCE_SHUNT_API void mozce_splitpath(const char* inPath, char* outDrive, char* o
MOZCE_SHUNT_API void mozce_makepath(char* outPath, const char* inDrive, const char* inDir, const char* inFname, const char* inExt) MOZCE_SHUNT_API void mozce_makepath(char* outPath, const char* inDrive, const char* inDir, const char* inFname, const char* inExt)
{ {
MOZCE_PRECHECK
#ifdef LOG_CALLS #ifdef LOG_CALLS
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_makepath called\n"); mozce_printf("mozce_makepath called\n");
@ -198,6 +204,8 @@ MOZCE_SHUNT_API void mozce_makepath(char* outPath, const char* inDrive, const ch
MOZCE_SHUNT_API int mozce_strcmpi(const char *dest, const char *src) MOZCE_SHUNT_API int mozce_strcmpi(const char *dest, const char *src)
{ {
MOZCE_PRECHECK
#ifdef LOG_CALLS #ifdef LOG_CALLS
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_strcmpi called\n"); mozce_printf("mozce_strcmpi called\n");

Просмотреть файл

@ -47,6 +47,8 @@ extern "C" {
MOZCE_SHUNT_API char* mozce_strerror(int inErrno) MOZCE_SHUNT_API char* mozce_strerror(int inErrno)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_strerror called\n"); mozce_printf("mozce_strerror called\n");
#endif #endif
@ -56,6 +58,8 @@ MOZCE_SHUNT_API char* mozce_strerror(int inErrno)
MOZCE_SHUNT_API int mozce_wsprintfA(LPTSTR lpOut, LPCTSTR lpFmt, ... ) MOZCE_SHUNT_API int mozce_wsprintfA(LPTSTR lpOut, LPCTSTR lpFmt, ... )
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("-- mozce_wsprintfA called\n"); mozce_printf("-- mozce_wsprintfA called\n");
#endif #endif

Просмотреть файл

@ -54,6 +54,8 @@ static struct tm tmStorage;
MOZCE_SHUNT_API size_t mozce_strftime(char *, size_t, const char *, const struct tm *) MOZCE_SHUNT_API size_t mozce_strftime(char *, size_t, const char *, const struct tm *)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_strftime called\n"); mozce_printf("mozce_strftime called\n");
#endif #endif
@ -64,6 +66,8 @@ MOZCE_SHUNT_API size_t mozce_strftime(char *, size_t, const char *, const struct
MOZCE_SHUNT_API struct tm* mozce_localtime_r(const time_t* inTimeT,struct tm* outRetval) MOZCE_SHUNT_API struct tm* mozce_localtime_r(const time_t* inTimeT,struct tm* outRetval)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("tm* mozce_localtime_r called\n"); mozce_printf("tm* mozce_localtime_r called\n");
#endif #endif
@ -113,6 +117,8 @@ MOZCE_SHUNT_API struct tm* mozce_localtime_r(const time_t* inTimeT,struct tm* ou
MOZCE_SHUNT_API struct tm* mozce_localtime(const time_t* inTimeT) MOZCE_SHUNT_API struct tm* mozce_localtime(const time_t* inTimeT)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("tm* mozce_localtime called\n"); mozce_printf("tm* mozce_localtime called\n");
#endif #endif
@ -123,6 +129,8 @@ MOZCE_SHUNT_API struct tm* mozce_localtime(const time_t* inTimeT)
MOZCE_SHUNT_API struct tm* mozce_gmtime_r(const time_t* inTimeT, struct tm* outRetval) MOZCE_SHUNT_API struct tm* mozce_gmtime_r(const time_t* inTimeT, struct tm* outRetval)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("tm* mozce_gmtime_r called\n"); mozce_printf("tm* mozce_gmtime_r called\n");
#endif #endif
@ -172,6 +180,8 @@ MOZCE_SHUNT_API struct tm* mozce_gmtime_r(const time_t* inTimeT, struct tm* outR
MOZCE_SHUNT_API struct tm* mozce_gmtime(const time_t* inTimeT) MOZCE_SHUNT_API struct tm* mozce_gmtime(const time_t* inTimeT)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("tm* mozce_gmtime called\n"); mozce_printf("tm* mozce_gmtime called\n");
#endif #endif
@ -182,6 +192,8 @@ MOZCE_SHUNT_API struct tm* mozce_gmtime(const time_t* inTimeT)
MOZCE_SHUNT_API time_t mozce_mktime(struct tm* inTM) MOZCE_SHUNT_API time_t mozce_mktime(struct tm* inTM)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_mktime called\n"); mozce_printf("mozce_mktime called\n");
#endif #endif
@ -223,6 +235,8 @@ MOZCE_SHUNT_API time_t mozce_mktime(struct tm* inTM)
MOZCE_SHUNT_API time_t mozce_time(time_t* inStorage) MOZCE_SHUNT_API time_t mozce_time(time_t* inStorage)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_time called\n"); mozce_printf("mozce_time called\n");
#endif #endif
@ -242,6 +256,8 @@ MOZCE_SHUNT_API time_t mozce_time(time_t* inStorage)
MOZCE_SHUNT_API char* mozce_ctime(const time_t* timer) MOZCE_SHUNT_API char* mozce_ctime(const time_t* timer)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_ctime called\n"); mozce_printf("mozce_ctime called\n");
#endif #endif

Просмотреть файл

@ -54,6 +54,8 @@ extern "C" {
MOZCE_SHUNT_API int mozce_MulDiv(int inNumber, int inNumerator, int inDenominator) MOZCE_SHUNT_API int mozce_MulDiv(int inNumber, int inNumerator, int inDenominator)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_MulDiv called\n"); mozce_printf("mozce_MulDiv called\n");
#endif #endif
@ -67,6 +69,8 @@ MOZCE_SHUNT_API int mozce_MulDiv(int inNumber, int inNumerator, int inDenominato
MOZCE_SHUNT_API int mozce_GetDIBits(HDC inDC, HBITMAP inBMP, UINT inStartScan, UINT inScanLines, LPVOID inBits, LPBITMAPINFO inInfo, UINT inUsage) MOZCE_SHUNT_API int mozce_GetDIBits(HDC inDC, HBITMAP inBMP, UINT inStartScan, UINT inScanLines, LPVOID inBits, LPBITMAPINFO inInfo, UINT inUsage)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("-- mozce_GetDIBits called\n"); mozce_printf("-- mozce_GetDIBits called\n");
#endif #endif
@ -81,6 +85,8 @@ MOZCE_SHUNT_API int mozce_GetDIBits(HDC inDC, HBITMAP inBMP, UINT inStartScan, U
MOZCE_SHUNT_API int mozce_SetDIBits(HDC inDC, HBITMAP inBMP, UINT inStartScan, UINT inScanLines, CONST LPVOID inBits, CONST LPBITMAPINFO inInfo, UINT inUsage) MOZCE_SHUNT_API int mozce_SetDIBits(HDC inDC, HBITMAP inBMP, UINT inStartScan, UINT inScanLines, CONST LPVOID inBits, CONST LPBITMAPINFO inInfo, UINT inUsage)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("-- mozce_SetDIBits called\n"); mozce_printf("-- mozce_SetDIBits called\n");
#endif #endif
@ -95,6 +101,8 @@ MOZCE_SHUNT_API int mozce_SetDIBits(HDC inDC, HBITMAP inBMP, UINT inStartScan, U
MOZCE_SHUNT_API HBITMAP mozce_CreateDIBitmap(HDC inDC, CONST BITMAPINFOHEADER *inBMIH, DWORD inInit, CONST VOID *inBInit, CONST BITMAPINFO *inBMI, UINT inUsage) MOZCE_SHUNT_API HBITMAP mozce_CreateDIBitmap(HDC inDC, CONST BITMAPINFOHEADER *inBMIH, DWORD inInit, CONST VOID *inBInit, CONST BITMAPINFO *inBMI, UINT inUsage)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("-- mozce_CreateDIBitmap called\n"); mozce_printf("-- mozce_CreateDIBitmap called\n");
#endif #endif
@ -107,6 +115,8 @@ MOZCE_SHUNT_API HBITMAP mozce_CreateDIBitmap(HDC inDC, CONST BITMAPINFOHEADER *i
MOZCE_SHUNT_API int mozce_SetPolyFillMode(HDC inDC, int inPolyFillMode) MOZCE_SHUNT_API int mozce_SetPolyFillMode(HDC inDC, int inPolyFillMode)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("-- mozce_SetPolyFillMode called\n"); mozce_printf("-- mozce_SetPolyFillMode called\n");
#endif #endif
@ -121,6 +131,8 @@ MOZCE_SHUNT_API int mozce_SetPolyFillMode(HDC inDC, int inPolyFillMode)
MOZCE_SHUNT_API int mozce_SetStretchBltMode(HDC inDC, int inStretchMode) MOZCE_SHUNT_API int mozce_SetStretchBltMode(HDC inDC, int inStretchMode)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("-- mozce_SetStretchBltMode called\n"); mozce_printf("-- mozce_SetStretchBltMode called\n");
#endif #endif
@ -135,6 +147,8 @@ MOZCE_SHUNT_API int mozce_SetStretchBltMode(HDC inDC, int inStretchMode)
MOZCE_SHUNT_API int mozce_ExtSelectClipRgn(HDC inDC, HRGN inRGN, int inMode) MOZCE_SHUNT_API int mozce_ExtSelectClipRgn(HDC inDC, HRGN inRGN, int inMode)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_ExtSelectClipRgn called\n"); mozce_printf("mozce_ExtSelectClipRgn called\n");
#endif #endif
@ -171,6 +185,8 @@ typedef VOID CALLBACK LINEDDAPROC(
MOZCE_SHUNT_API BOOL mozce_LineDDA(int inXStart, int inYStart, int inXEnd, int inYEnd, LINEDDAPROC inLineFunc, LPARAM inData) MOZCE_SHUNT_API BOOL mozce_LineDDA(int inXStart, int inYStart, int inXEnd, int inYEnd, LINEDDAPROC inLineFunc, LPARAM inData)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("-- mozce_LineDDA called\n"); mozce_printf("-- mozce_LineDDA called\n");
#endif #endif
@ -185,6 +201,8 @@ MOZCE_SHUNT_API BOOL mozce_LineDDA(int inXStart, int inYStart, int inXEnd, int i
MOZCE_SHUNT_API int mozce_FrameRect(HDC inDC, CONST RECT *inRect, HBRUSH inBrush) MOZCE_SHUNT_API int mozce_FrameRect(HDC inDC, CONST RECT *inRect, HBRUSH inBrush)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_FrameRect called\n"); mozce_printf("mozce_FrameRect called\n");
#endif #endif
@ -221,6 +239,8 @@ MOZCE_SHUNT_API int mozce_FrameRect(HDC inDC, CONST RECT *inRect, HBRUSH inBrush
MOZCE_SHUNT_API int mozce_SetArcDirection(HDC inDC, int inArcDirection) MOZCE_SHUNT_API int mozce_SetArcDirection(HDC inDC, int inArcDirection)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("-- mozce_SetArcDirection called\n"); mozce_printf("-- mozce_SetArcDirection called\n");
#endif #endif
@ -235,6 +255,8 @@ MOZCE_SHUNT_API int mozce_SetArcDirection(HDC inDC, int inArcDirection)
MOZCE_SHUNT_API BOOL mozce_Arc(HDC inDC, int inLeftRect, int inTopRect, int inRightRect, int inBottomRect, int inXStartArc, int inYStartArc, int inXEndArc, int inYEndArc) MOZCE_SHUNT_API BOOL mozce_Arc(HDC inDC, int inLeftRect, int inTopRect, int inRightRect, int inBottomRect, int inXStartArc, int inYStartArc, int inXEndArc, int inYEndArc)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("-- mozce_Arc called\n"); mozce_printf("-- mozce_Arc called\n");
#endif #endif
@ -249,6 +271,8 @@ MOZCE_SHUNT_API BOOL mozce_Arc(HDC inDC, int inLeftRect, int inTopRect, int inRi
MOZCE_SHUNT_API BOOL mozce_Pie(HDC inDC, int inLeftRect, int inTopRect, int inRightRect, int inBottomRect, int inXRadial1, int inYRadial1, int inXRadial2, int inYRadial2) MOZCE_SHUNT_API BOOL mozce_Pie(HDC inDC, int inLeftRect, int inTopRect, int inRightRect, int inBottomRect, int inXRadial1, int inYRadial1, int inXRadial2, int inYRadial2)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("-- mozce_Pie called\n"); mozce_printf("-- mozce_Pie called\n");
#endif #endif
@ -263,6 +287,8 @@ MOZCE_SHUNT_API BOOL mozce_Pie(HDC inDC, int inLeftRect, int inTopRect, int inRi
MOZCE_SHUNT_API DWORD mozce_GetFontData(HDC inDC, DWORD inTable, DWORD inOffset, LPVOID outBuffer, DWORD inData) MOZCE_SHUNT_API DWORD mozce_GetFontData(HDC inDC, DWORD inTable, DWORD inOffset, LPVOID outBuffer, DWORD inData)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("-- mozce_GetFontData called\n"); mozce_printf("-- mozce_GetFontData called\n");
#endif #endif
@ -276,6 +302,8 @@ MOZCE_SHUNT_API DWORD mozce_GetFontData(HDC inDC, DWORD inTable, DWORD inOffset,
MOZCE_SHUNT_API UINT mozce_GetTextCharset(HDC inDC) MOZCE_SHUNT_API UINT mozce_GetTextCharset(HDC inDC)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_GetTextCharset called\n"); mozce_printf("mozce_GetTextCharset called\n");
#endif #endif
@ -294,6 +322,8 @@ MOZCE_SHUNT_API UINT mozce_GetTextCharset(HDC inDC)
MOZCE_SHUNT_API UINT mozce_GetTextCharsetInfo(HDC inDC, LPFONTSIGNATURE outSig, DWORD inFlags) MOZCE_SHUNT_API UINT mozce_GetTextCharsetInfo(HDC inDC, LPFONTSIGNATURE outSig, DWORD inFlags)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_GetTextCharsetInfo called\n"); mozce_printf("mozce_GetTextCharsetInfo called\n");
#endif #endif
@ -310,6 +340,8 @@ MOZCE_SHUNT_API UINT mozce_GetTextCharsetInfo(HDC inDC, LPFONTSIGNATURE outSig,
MOZCE_SHUNT_API UINT mozce_GetOutlineTextMetrics(HDC inDC, UINT inData, void* outOTM) MOZCE_SHUNT_API UINT mozce_GetOutlineTextMetrics(HDC inDC, UINT inData, void* outOTM)
{ {
MOZCE_PRECHECK
static int x = 0; static int x = 0;
#ifdef DEBUG #ifdef DEBUG
@ -358,6 +390,8 @@ static int CALLBACK collectProc(CONST LOGFONT* inLF, CONST TEXTMETRIC* inTM, DWO
MOZCE_SHUNT_API int mozce_EnumFontFamiliesEx(HDC inDC, LPLOGFONT inLogfont, FONTENUMPROC inFunc, LPARAM inParam, DWORD inFlags) MOZCE_SHUNT_API int mozce_EnumFontFamiliesEx(HDC inDC, LPLOGFONT inLogfont, FONTENUMPROC inFunc, LPARAM inParam, DWORD inFlags)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_EnumFontFamiliesEx called\n"); mozce_printf("mozce_EnumFontFamiliesEx called\n");
#endif #endif
@ -395,6 +429,8 @@ MOZCE_SHUNT_API int mozce_EnumFontFamiliesEx(HDC inDC, LPLOGFONT inLogfont, FONT
MOZCE_SHUNT_API int mozce_GetMapMode(HDC inDC) MOZCE_SHUNT_API int mozce_GetMapMode(HDC inDC)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_GetMapMode called\n"); mozce_printf("mozce_GetMapMode called\n");
#endif #endif
@ -406,6 +442,8 @@ MOZCE_SHUNT_API int mozce_GetMapMode(HDC inDC)
MOZCE_SHUNT_API BOOL mozce_GetIconInfo(HICON inIcon, PICONINFO outIconinfo) MOZCE_SHUNT_API BOOL mozce_GetIconInfo(HICON inIcon, PICONINFO outIconinfo)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("-- mozce_GetIconInfo called\n"); mozce_printf("-- mozce_GetIconInfo called\n");
#endif #endif
@ -425,6 +463,8 @@ MOZCE_SHUNT_API BOOL mozce_GetIconInfo(HICON inIcon, PICONINFO outIconinfo)
MOZCE_SHUNT_API BOOL mozce_LPtoDP(HDC inDC, LPPOINT inoutPoints, int inCount) MOZCE_SHUNT_API BOOL mozce_LPtoDP(HDC inDC, LPPOINT inoutPoints, int inCount)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("-- mozce_LPtoDP called\n"); mozce_printf("-- mozce_LPtoDP called\n");
#endif #endif
@ -437,6 +477,8 @@ MOZCE_SHUNT_API BOOL mozce_LPtoDP(HDC inDC, LPPOINT inoutPoints, int inCount)
MOZCE_SHUNT_API LONG mozce_RegCreateKey(HKEY inKey, LPCTSTR inSubKey, PHKEY outResult) MOZCE_SHUNT_API LONG mozce_RegCreateKey(HKEY inKey, LPCTSTR inSubKey, PHKEY outResult)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_RegCreateKey called\n"); mozce_printf("mozce_RegCreateKey called\n");
#endif #endif
@ -452,6 +494,8 @@ MOZCE_SHUNT_API LONG mozce_RegCreateKey(HKEY inKey, LPCTSTR inSubKey, PHKEY outR
MOZCE_SHUNT_API BOOL mozce_WaitMessage(VOID) MOZCE_SHUNT_API BOOL mozce_WaitMessage(VOID)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_WaitMessage called\n"); mozce_printf("mozce_WaitMessage called\n");
#endif #endif
@ -471,6 +515,8 @@ MOZCE_SHUNT_API BOOL mozce_WaitMessage(VOID)
MOZCE_SHUNT_API BOOL mozce_FlashWindow(HWND inWnd, BOOL inInvert) MOZCE_SHUNT_API BOOL mozce_FlashWindow(HWND inWnd, BOOL inInvert)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("-- mozce_FlashWindow called\n"); mozce_printf("-- mozce_FlashWindow called\n");
#endif #endif
@ -529,6 +575,8 @@ static BOOL ECWHelper(HWND inParent, ECWWindows* inChildren, BOOL inRecurse)
MOZCE_SHUNT_API BOOL mozce_EnumChildWindows(HWND inParent, WNDENUMPROC inFunc, LPARAM inParam) MOZCE_SHUNT_API BOOL mozce_EnumChildWindows(HWND inParent, WNDENUMPROC inFunc, LPARAM inParam)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_EnumChildWindows called\n"); mozce_printf("mozce_EnumChildWindows called\n");
#endif #endif
@ -575,6 +623,8 @@ MOZCE_SHUNT_API BOOL mozce_EnumChildWindows(HWND inParent, WNDENUMPROC inFunc, L
MOZCE_SHUNT_API BOOL mozce_EnumThreadWindows(DWORD inThreadID, WNDENUMPROC inFunc, LPARAM inParam) MOZCE_SHUNT_API BOOL mozce_EnumThreadWindows(DWORD inThreadID, WNDENUMPROC inFunc, LPARAM inParam)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_EnumThreadWindows called\n"); mozce_printf("mozce_EnumThreadWindows called\n");
#endif #endif
@ -616,6 +666,8 @@ MOZCE_SHUNT_API BOOL mozce_EnumThreadWindows(DWORD inThreadID, WNDENUMPROC inFun
MOZCE_SHUNT_API BOOL mozce_IsIconic(HWND inWnd) MOZCE_SHUNT_API BOOL mozce_IsIconic(HWND inWnd)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("-- mozce_IsIconic called\n"); mozce_printf("-- mozce_IsIconic called\n");
#endif #endif
@ -630,6 +682,8 @@ MOZCE_SHUNT_API BOOL mozce_IsIconic(HWND inWnd)
MOZCE_SHUNT_API BOOL mozce_OpenIcon(HWND inWnd) MOZCE_SHUNT_API BOOL mozce_OpenIcon(HWND inWnd)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("-- mozce_OpenIcon called\n"); mozce_printf("-- mozce_OpenIcon called\n");
#endif #endif
@ -644,6 +698,8 @@ MOZCE_SHUNT_API BOOL mozce_OpenIcon(HWND inWnd)
MOZCE_SHUNT_API HHOOK mozce_SetWindowsHookEx(int inType, void* inFunc, HINSTANCE inMod, DWORD inThreadId) MOZCE_SHUNT_API HHOOK mozce_SetWindowsHookEx(int inType, void* inFunc, HINSTANCE inMod, DWORD inThreadId)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("-- mozce_SetWindowsHookEx called\n"); mozce_printf("-- mozce_SetWindowsHookEx called\n");
#endif #endif
@ -658,6 +714,8 @@ MOZCE_SHUNT_API HHOOK mozce_SetWindowsHookEx(int inType, void* inFunc, HINSTANCE
MOZCE_SHUNT_API BOOL mozce_UnhookWindowsHookEx(HHOOK inHook) MOZCE_SHUNT_API BOOL mozce_UnhookWindowsHookEx(HHOOK inHook)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("-- mozce_UnhookWindowsHookEx called\n"); mozce_printf("-- mozce_UnhookWindowsHookEx called\n");
#endif #endif
@ -672,6 +730,8 @@ MOZCE_SHUNT_API BOOL mozce_UnhookWindowsHookEx(HHOOK inHook)
MOZCE_SHUNT_API LRESULT mozce_CallNextHookEx(HHOOK inHook, int inCode, WPARAM wParam, LPARAM lParam) MOZCE_SHUNT_API LRESULT mozce_CallNextHookEx(HHOOK inHook, int inCode, WPARAM wParam, LPARAM lParam)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("-- mozce_CallNextHookEx called\n"); mozce_printf("-- mozce_CallNextHookEx called\n");
#endif #endif
@ -686,6 +746,8 @@ MOZCE_SHUNT_API LRESULT mozce_CallNextHookEx(HHOOK inHook, int inCode, WPARAM wP
MOZCE_SHUNT_API BOOL mozce_InvertRgn(HDC inDC, HRGN inRGN) MOZCE_SHUNT_API BOOL mozce_InvertRgn(HDC inDC, HRGN inRGN)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("-- mozce_InvertRgn called\n"); mozce_printf("-- mozce_InvertRgn called\n");
#endif #endif
@ -700,6 +762,8 @@ MOZCE_SHUNT_API BOOL mozce_InvertRgn(HDC inDC, HRGN inRGN)
MOZCE_SHUNT_API int mozce_GetScrollPos(HWND inWnd, int inBar) MOZCE_SHUNT_API int mozce_GetScrollPos(HWND inWnd, int inBar)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_GetScrollPos called\n"); mozce_printf("mozce_GetScrollPos called\n");
#endif #endif
@ -718,6 +782,8 @@ MOZCE_SHUNT_API int mozce_GetScrollPos(HWND inWnd, int inBar)
MOZCE_SHUNT_API BOOL mozce_GetScrollRange(HWND inWnd, int inBar, LPINT outMinPos, LPINT outMaxPos) MOZCE_SHUNT_API BOOL mozce_GetScrollRange(HWND inWnd, int inBar, LPINT outMinPos, LPINT outMaxPos)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_GetScrollRange called\n"); mozce_printf("mozce_GetScrollRange called\n");
#endif #endif
@ -743,6 +809,8 @@ MOZCE_SHUNT_API BOOL mozce_GetScrollRange(HWND inWnd, int inBar, LPINT outMinPos
MOZCE_SHUNT_API HRESULT mozce_CoLockObjectExternal(IUnknown* inUnk, BOOL inLock, BOOL inLastUnlockReleases) MOZCE_SHUNT_API HRESULT mozce_CoLockObjectExternal(IUnknown* inUnk, BOOL inLock, BOOL inLastUnlockReleases)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_CoLockObjectExternal called\n"); mozce_printf("mozce_CoLockObjectExternal called\n");
#endif #endif
@ -771,6 +839,8 @@ MOZCE_SHUNT_API HRESULT mozce_CoLockObjectExternal(IUnknown* inUnk, BOOL inLock,
MOZCE_SHUNT_API HRESULT mozce_OleSetClipboard(IDataObject* inDataObj) MOZCE_SHUNT_API HRESULT mozce_OleSetClipboard(IDataObject* inDataObj)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("-- mozce_OleSetClipboard called\n"); mozce_printf("-- mozce_OleSetClipboard called\n");
#endif #endif
@ -785,6 +855,8 @@ MOZCE_SHUNT_API HRESULT mozce_OleSetClipboard(IDataObject* inDataObj)
MOZCE_SHUNT_API HRESULT mozce_OleGetClipboard(IDataObject** outDataObj) MOZCE_SHUNT_API HRESULT mozce_OleGetClipboard(IDataObject** outDataObj)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("-- mozce_OleGetClipboard called\n"); mozce_printf("-- mozce_OleGetClipboard called\n");
#endif #endif
@ -803,6 +875,8 @@ MOZCE_SHUNT_API HRESULT mozce_OleGetClipboard(IDataObject** outDataObj)
MOZCE_SHUNT_API HRESULT mozce_OleFlushClipboard(void) MOZCE_SHUNT_API HRESULT mozce_OleFlushClipboard(void)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("-- mozce_OleFlushClipboard called\n"); mozce_printf("-- mozce_OleFlushClipboard called\n");
#endif #endif
@ -817,6 +891,8 @@ MOZCE_SHUNT_API HRESULT mozce_OleFlushClipboard(void)
MOZCE_SHUNT_API HRESULT mozce_OleQueryLinkFromData(IDataObject* inSrcDataObject) MOZCE_SHUNT_API HRESULT mozce_OleQueryLinkFromData(IDataObject* inSrcDataObject)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("-- mozce_OleQueryLinkFromData called\n"); mozce_printf("-- mozce_OleQueryLinkFromData called\n");
#endif #endif
@ -831,6 +907,8 @@ MOZCE_SHUNT_API HRESULT mozce_OleQueryLinkFromData(IDataObject* inSrcDataObject)
//LPITEMIDLIST //LPITEMIDLIST
MOZCE_SHUNT_API void* mozce_SHBrowseForFolder(void* /*LPBROWSEINFOS*/ inBI) MOZCE_SHUNT_API void* mozce_SHBrowseForFolder(void* /*LPBROWSEINFOS*/ inBI)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("-- mozce_SHBrowseForFolder called\n"); mozce_printf("-- mozce_SHBrowseForFolder called\n");
#endif #endif
@ -842,6 +920,8 @@ MOZCE_SHUNT_API void* mozce_SHBrowseForFolder(void* /*LPBROWSEINFOS*/ inBI)
MOZCE_SHUNT_API BOOL mozce_SetMenu(HWND inWnd, HMENU inMenu) MOZCE_SHUNT_API BOOL mozce_SetMenu(HWND inWnd, HMENU inMenu)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("-- mozce_SetMenu called\n"); mozce_printf("-- mozce_SetMenu called\n");
#endif #endif
@ -852,6 +932,8 @@ MOZCE_SHUNT_API BOOL mozce_SetMenu(HWND inWnd, HMENU inMenu)
MOZCE_SHUNT_API BOOL mozce_GetUserName(LPTSTR inBuffer, LPDWORD inoutSize) MOZCE_SHUNT_API BOOL mozce_GetUserName(LPTSTR inBuffer, LPDWORD inoutSize)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("-- mozce_GetUserName called\n"); mozce_printf("-- mozce_GetUserName called\n");
#endif #endif
@ -867,6 +949,8 @@ MOZCE_SHUNT_API BOOL mozce_GetUserName(LPTSTR inBuffer, LPDWORD inoutSize)
MOZCE_SHUNT_API DWORD mozce_GetShortPathName(LPCTSTR inLongPath, LPTSTR outShortPath, DWORD inBufferSize) MOZCE_SHUNT_API DWORD mozce_GetShortPathName(LPCTSTR inLongPath, LPTSTR outShortPath, DWORD inBufferSize)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("-- mozce_GetShortPathName called\n"); mozce_printf("-- mozce_GetShortPathName called\n");
#endif #endif
@ -880,6 +964,8 @@ MOZCE_SHUNT_API DWORD mozce_GetShortPathName(LPCTSTR inLongPath, LPTSTR outShort
MOZCE_SHUNT_API DWORD mozce_GetEnvironmentVariable(LPCSTR lpName, LPCSTR lpBuffer, DWORD nSize) MOZCE_SHUNT_API DWORD mozce_GetEnvironmentVariable(LPCSTR lpName, LPCSTR lpBuffer, DWORD nSize)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("-- mozce_GetEnvironmentVariable called\n"); mozce_printf("-- mozce_GetEnvironmentVariable called\n");
#endif #endif
@ -893,6 +979,8 @@ MOZCE_SHUNT_API DWORD mozce_GetEnvironmentVariable(LPCSTR lpName, LPCSTR lpBuffe
MOZCE_SHUNT_API void mozce_GetSystemTimeAsFileTime(LPFILETIME lpSystemTimeAsFileTime) MOZCE_SHUNT_API void mozce_GetSystemTimeAsFileTime(LPFILETIME lpSystemTimeAsFileTime)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_GetSystemTimeAsFileTime called\n"); mozce_printf("mozce_GetSystemTimeAsFileTime called\n");
#endif #endif
@ -926,6 +1014,8 @@ struct lconv s_locale_conv =
MOZCE_SHUNT_API struct lconv * mozce_localeconv(void) MOZCE_SHUNT_API struct lconv * mozce_localeconv(void)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_localeconv called\n"); mozce_printf("mozce_localeconv called\n");
#endif #endif
@ -934,6 +1024,8 @@ MOZCE_SHUNT_API struct lconv * mozce_localeconv(void)
MOZCE_SHUNT_API DWORD mozce_GetCurrentThreadId(void) MOZCE_SHUNT_API DWORD mozce_GetCurrentThreadId(void)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_GetCurrentThreadId called\n"); mozce_printf("mozce_GetCurrentThreadId called\n");
#endif #endif
@ -942,6 +1034,8 @@ MOZCE_SHUNT_API DWORD mozce_GetCurrentThreadId(void)
MOZCE_SHUNT_API DWORD mozce_TlsAlloc(void) MOZCE_SHUNT_API DWORD mozce_TlsAlloc(void)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_TlsAlloc called\n"); mozce_printf("mozce_TlsAlloc called\n");
#endif #endif
@ -950,6 +1044,8 @@ MOZCE_SHUNT_API DWORD mozce_TlsAlloc(void)
MOZCE_SHUNT_API BOOL mozce_TlsFree(DWORD dwTlsIndex) MOZCE_SHUNT_API BOOL mozce_TlsFree(DWORD dwTlsIndex)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_TlsFree called\n"); mozce_printf("mozce_TlsFree called\n");
#endif #endif
@ -958,6 +1054,8 @@ MOZCE_SHUNT_API BOOL mozce_TlsFree(DWORD dwTlsIndex)
MOZCE_SHUNT_API HANDLE mozce_GetCurrentProcess(void) MOZCE_SHUNT_API HANDLE mozce_GetCurrentProcess(void)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_GetCurrentProcess called\n"); mozce_printf("mozce_GetCurrentProcess called\n");
#endif #endif
@ -1003,6 +1101,8 @@ MOZCE_SHUNT_API DWORD mozce_GetFullPathName(LPCSTR lpFileName,
MOZCE_SHUNT_API DWORD mozce_MsgWaitForMultipleObjects(DWORD nCount, const HANDLE* pHandles, BOOL bWaitAll, DWORD dwMilliseconds, DWORD dwWakeMask) MOZCE_SHUNT_API DWORD mozce_MsgWaitForMultipleObjects(DWORD nCount, const HANDLE* pHandles, BOOL bWaitAll, DWORD dwMilliseconds, DWORD dwWakeMask)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_MsgWaitForMultipleObjects called\n"); mozce_printf("mozce_MsgWaitForMultipleObjects called\n");
#endif #endif
@ -1012,6 +1112,8 @@ MOZCE_SHUNT_API DWORD mozce_MsgWaitForMultipleObjects(DWORD nCount, const HANDLE
MOZCE_SHUNT_API LONG mozce_GetMessageTime(void) MOZCE_SHUNT_API LONG mozce_GetMessageTime(void)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_GetMessageTime called\n"); mozce_printf("mozce_GetMessageTime called\n");
#endif #endif
@ -1021,6 +1123,8 @@ MOZCE_SHUNT_API LONG mozce_GetMessageTime(void)
MOZCE_SHUNT_API UINT mozce_GetACP(void) MOZCE_SHUNT_API UINT mozce_GetACP(void)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_GetACP called\n"); mozce_printf("mozce_GetACP called\n");
#endif #endif
@ -1032,6 +1136,8 @@ MOZCE_SHUNT_API UINT mozce_GetACP(void)
MOZCE_SHUNT_API DWORD mozce_ExpandEnvironmentStrings(LPCTSTR lpSrc, LPTSTR lpDst, DWORD nSize) MOZCE_SHUNT_API DWORD mozce_ExpandEnvironmentStrings(LPCTSTR lpSrc, LPTSTR lpDst, DWORD nSize)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_ExpandEnvironmentStrings called\n"); mozce_printf("mozce_ExpandEnvironmentStrings called\n");
#endif #endif
@ -1041,6 +1147,8 @@ MOZCE_SHUNT_API DWORD mozce_ExpandEnvironmentStrings(LPCTSTR lpSrc, LPTSTR lpDst
MOZCE_SHUNT_API BOOL mozce_GdiFlush(void) MOZCE_SHUNT_API BOOL mozce_GdiFlush(void)
{ {
MOZCE_PRECHECK
return TRUE; return TRUE;
} }

Просмотреть файл

@ -55,6 +55,8 @@ extern "C" {
MOZCE_SHUNT_API DWORD mozce_GetModuleFileNameA(HMODULE hModule, LPSTR lpFilename, DWORD nSize) MOZCE_SHUNT_API DWORD mozce_GetModuleFileNameA(HMODULE hModule, LPSTR lpFilename, DWORD nSize)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_GetModuleFileNameA called\n"); mozce_printf("mozce_GetModuleFileNameA called\n");
#endif #endif
@ -73,6 +75,8 @@ MOZCE_SHUNT_API DWORD mozce_GetModuleFileNameA(HMODULE hModule, LPSTR lpFilename
MOZCE_SHUNT_API BOOL mozce_CreateDirectoryA(LPCSTR lpPathName, LPSECURITY_ATTRIBUTES lpSecurityAttributes) MOZCE_SHUNT_API BOOL mozce_CreateDirectoryA(LPCSTR lpPathName, LPSECURITY_ATTRIBUTES lpSecurityAttributes)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_CreateDirectoryA called (%s)\n", lpPathName); mozce_printf("mozce_CreateDirectoryA called (%s)\n", lpPathName);
#endif #endif
@ -90,6 +94,8 @@ MOZCE_SHUNT_API BOOL mozce_CreateDirectoryA(LPCSTR lpPathName, LPSECURITY_ATTRIB
MOZCE_SHUNT_API BOOL mozce_RemoveDirectoryA(LPCSTR lpPathName) MOZCE_SHUNT_API BOOL mozce_RemoveDirectoryA(LPCSTR lpPathName)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_RemoveDirectoryA called\n"); mozce_printf("mozce_RemoveDirectoryA called\n");
#endif #endif
@ -106,6 +112,8 @@ MOZCE_SHUNT_API BOOL mozce_RemoveDirectoryA(LPCSTR lpPathName)
MOZCE_SHUNT_API BOOL mozce_DeleteFileA(LPCSTR lpFileName) MOZCE_SHUNT_API BOOL mozce_DeleteFileA(LPCSTR lpFileName)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_DeleteFile called\n"); mozce_printf("mozce_DeleteFile called\n");
#endif #endif
@ -122,6 +130,8 @@ MOZCE_SHUNT_API BOOL mozce_DeleteFileA(LPCSTR lpFileName)
MOZCE_SHUNT_API BOOL mozce_MoveFileA(LPCSTR lpExistingFileName, LPCSTR lpNewFileName) MOZCE_SHUNT_API BOOL mozce_MoveFileA(LPCSTR lpExistingFileName, LPCSTR lpNewFileName)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_MoveFileA called (%s)\n", lpExistingFileName); mozce_printf("mozce_MoveFileA called (%s)\n", lpExistingFileName);
#endif #endif
@ -140,6 +150,8 @@ MOZCE_SHUNT_API BOOL mozce_MoveFileA(LPCSTR lpExistingFileName, LPCSTR lpNewFile
MOZCE_SHUNT_API BOOL mozce_CopyFileA(LPCSTR lpExistingFileName, LPCSTR lpNewFileName, BOOL bFailIfExists) MOZCE_SHUNT_API BOOL mozce_CopyFileA(LPCSTR lpExistingFileName, LPCSTR lpNewFileName, BOOL bFailIfExists)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_CopyFileA called\n"); mozce_printf("mozce_CopyFileA called\n");
#endif #endif
@ -158,6 +170,8 @@ MOZCE_SHUNT_API BOOL mozce_CopyFileA(LPCSTR lpExistingFileName, LPCSTR lpNewFile
MOZCE_SHUNT_API HANDLE mozce_CreateFileA(LPCSTR lpFileName, DWORD dwDesiredAccess, DWORD dwShareMode, LPSECURITY_ATTRIBUTES lpSecurityAttributes, DWORD dwCreationDisposition, DWORD dwFlagsAndAttributes, HANDLE hTemplateFile) MOZCE_SHUNT_API HANDLE mozce_CreateFileA(LPCSTR lpFileName, DWORD dwDesiredAccess, DWORD dwShareMode, LPSECURITY_ATTRIBUTES lpSecurityAttributes, DWORD dwCreationDisposition, DWORD dwFlagsAndAttributes, HANDLE hTemplateFile)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_CreateFileA called (%s)\n", lpFileName); mozce_printf("mozce_CreateFileA called (%s)\n", lpFileName);
#endif #endif
@ -181,6 +195,8 @@ MOZCE_SHUNT_API HANDLE mozce_CreateFileA(LPCSTR lpFileName, DWORD dwDesiredAcces
MOZCE_SHUNT_API DWORD mozce_GetFileAttributesA(LPCSTR lpFileName) MOZCE_SHUNT_API DWORD mozce_GetFileAttributesA(LPCSTR lpFileName)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_GetFileAttributesA called\n"); mozce_printf("mozce_GetFileAttributesA called\n");
#endif #endif
@ -198,6 +214,8 @@ MOZCE_SHUNT_API DWORD mozce_GetFileAttributesA(LPCSTR lpFileName)
MOZCE_SHUNT_API BOOL mozce_CreateProcessA(LPCSTR pszImageName, LPCSTR pszCmdLine, LPSECURITY_ATTRIBUTES psaProcess, LPSECURITY_ATTRIBUTES psaThread, BOOL fInheritHandles, DWORD fdwCreate, LPVOID pvEnvironment, LPSTR pszCurDir, LPSTARTUPINFO psiStartInfo, LPPROCESS_INFORMATION pProcInfo) MOZCE_SHUNT_API BOOL mozce_CreateProcessA(LPCSTR pszImageName, LPCSTR pszCmdLine, LPSECURITY_ATTRIBUTES psaProcess, LPSECURITY_ATTRIBUTES psaThread, BOOL fInheritHandles, DWORD fdwCreate, LPVOID pvEnvironment, LPSTR pszCurDir, LPSTARTUPINFO psiStartInfo, LPPROCESS_INFORMATION pProcInfo)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_CreateProcessA called\n"); mozce_printf("mozce_CreateProcessA called\n");
#endif #endif
@ -227,6 +245,8 @@ MOZCE_SHUNT_API BOOL mozce_CreateProcessA(LPCSTR pszImageName, LPCSTR pszCmdLine
MOZCE_SHUNT_API int mozce_GetLocaleInfoA(LCID Locale, LCTYPE LCType, LPSTR lpLCData, int cchData) MOZCE_SHUNT_API int mozce_GetLocaleInfoA(LCID Locale, LCTYPE LCType, LPSTR lpLCData, int cchData)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_GetLocaleInfoA called\n"); mozce_printf("mozce_GetLocaleInfoA called\n");
#endif #endif
@ -276,6 +296,8 @@ MOZCE_SHUNT_API int mozce_GetLocaleInfoA(LCID Locale, LCTYPE LCType, LPSTR lpLCD
MOZCE_SHUNT_API UINT mozce_GetWindowsDirectoryA(LPSTR inBuffer, UINT inSize) MOZCE_SHUNT_API UINT mozce_GetWindowsDirectoryA(LPSTR inBuffer, UINT inSize)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_GetWindowsDirectoryA called\n"); mozce_printf("mozce_GetWindowsDirectoryA called\n");
#endif #endif
@ -298,6 +320,8 @@ MOZCE_SHUNT_API UINT mozce_GetWindowsDirectoryA(LPSTR inBuffer, UINT inSize)
MOZCE_SHUNT_API UINT mozce_GetSystemDirectoryA(LPSTR inBuffer, UINT inSize) MOZCE_SHUNT_API UINT mozce_GetSystemDirectoryA(LPSTR inBuffer, UINT inSize)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_GetSystemDirectoryA called\n"); mozce_printf("mozce_GetSystemDirectoryA called\n");
#endif #endif
@ -318,6 +342,8 @@ MOZCE_SHUNT_API UINT mozce_GetSystemDirectoryA(LPSTR inBuffer, UINT inSize)
MOZCE_SHUNT_API LONG mozce_RegOpenKeyExA(HKEY inKey, LPCSTR inSubKey, DWORD inOptions, REGSAM inSAM, PHKEY outResult) MOZCE_SHUNT_API LONG mozce_RegOpenKeyExA(HKEY inKey, LPCSTR inSubKey, DWORD inOptions, REGSAM inSAM, PHKEY outResult)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_RegOpenKeyExA called\n"); mozce_printf("mozce_RegOpenKeyExA called\n");
#endif #endif
@ -336,6 +362,8 @@ MOZCE_SHUNT_API LONG mozce_RegOpenKeyExA(HKEY inKey, LPCSTR inSubKey, DWORD inOp
MOZCE_SHUNT_API LONG mozce_RegQueryValueExA(HKEY inKey, LPCSTR inValueName, LPDWORD inReserved, LPDWORD outType, LPBYTE inoutBData, LPDWORD inoutDData) MOZCE_SHUNT_API LONG mozce_RegQueryValueExA(HKEY inKey, LPCSTR inValueName, LPDWORD inReserved, LPDWORD outType, LPBYTE inoutBData, LPDWORD inoutDData)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_RegQueryValueExA called\n"); mozce_printf("mozce_RegQueryValueExA called\n");
#endif #endif
@ -379,6 +407,8 @@ MOZCE_SHUNT_API LONG mozce_RegQueryValueExA(HKEY inKey, LPCSTR inValueName, LPDW
MOZCE_SHUNT_API int mozce_MessageBoxA(HWND inWnd, LPCSTR inText, LPCSTR inCaption, UINT uType) MOZCE_SHUNT_API int mozce_MessageBoxA(HWND inWnd, LPCSTR inText, LPCSTR inCaption, UINT uType)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_MessageBoxA called\n"); mozce_printf("mozce_MessageBoxA called\n");
#endif #endif
@ -404,6 +434,8 @@ MOZCE_SHUNT_API int mozce_MessageBoxA(HWND inWnd, LPCSTR inText, LPCSTR inCaptio
MOZCE_SHUNT_API HANDLE mozce_OpenSemaphoreA(DWORD inDesiredAccess, BOOL inInheritHandle, LPCSTR inName) MOZCE_SHUNT_API HANDLE mozce_OpenSemaphoreA(DWORD inDesiredAccess, BOOL inInheritHandle, LPCSTR inName)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_OpenSemaphoreA called\n"); mozce_printf("mozce_OpenSemaphoreA called\n");
#endif #endif
@ -424,6 +456,8 @@ MOZCE_SHUNT_API HANDLE mozce_OpenSemaphoreA(DWORD inDesiredAccess, BOOL inInheri
MOZCE_SHUNT_API HDC mozce_CreateDCA(LPCSTR inDriver, LPCSTR inDevice, LPCSTR inOutput, CONST DEVMODEA* inInitData) MOZCE_SHUNT_API HDC mozce_CreateDCA(LPCSTR inDriver, LPCSTR inDevice, LPCSTR inOutput, CONST DEVMODEA* inInitData)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_CreateDCA called\n"); mozce_printf("mozce_CreateDCA called\n");
#endif #endif
@ -489,6 +523,8 @@ MOZCE_SHUNT_API HDC mozce_CreateDCA(LPCSTR inDriver, LPCSTR inDevice, LPCSTR inO
MOZCE_SHUNT_API HDC mozce_CreateDCA2(LPCSTR inDriver, LPCSTR inDevice, LPCSTR inOutput, CONST DEVMODE* inInitData) MOZCE_SHUNT_API HDC mozce_CreateDCA2(LPCSTR inDriver, LPCSTR inDevice, LPCSTR inOutput, CONST DEVMODE* inInitData)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_CreateDCA2 called\n"); mozce_printf("mozce_CreateDCA2 called\n");
#endif #endif
@ -522,6 +558,8 @@ MOZCE_SHUNT_API HDC mozce_CreateDCA2(LPCSTR inDriver, LPCSTR inDevice, LPCSTR in
MOZCE_SHUNT_API BOOL mozce_GetTextExtentExPointA(HDC inDC, char* inStr, int inLen, int inMaxExtent, LPINT outFit, LPINT outDx, LPSIZE inSize) MOZCE_SHUNT_API BOOL mozce_GetTextExtentExPointA(HDC inDC, char* inStr, int inLen, int inMaxExtent, LPINT outFit, LPINT outDx, LPSIZE inSize)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_GetTextExtentExPointA called (%d)\n", inLen); mozce_printf("mozce_GetTextExtentExPointA called (%d)\n", inLen);
#endif #endif
@ -547,6 +585,8 @@ MOZCE_SHUNT_API BOOL mozce_GetTextExtentExPointA(HDC inDC, char* inStr, int inLe
MOZCE_SHUNT_API BOOL mozce_ExtTextOutA(HDC inDC, int inX, int inY, UINT inOptions, const LPRECT inRect, LPCSTR inString, UINT inCount, const LPINT inDx) MOZCE_SHUNT_API BOOL mozce_ExtTextOutA(HDC inDC, int inX, int inY, UINT inOptions, const LPRECT inRect, LPCSTR inString, UINT inCount, const LPINT inDx)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_ExtTextOutA called\n"); mozce_printf("mozce_ExtTextOutA called\n");
#endif #endif
@ -568,6 +608,8 @@ MOZCE_SHUNT_API BOOL mozce_ExtTextOutA(HDC inDC, int inX, int inY, UINT inOption
} }
MOZCE_SHUNT_API DWORD mozce_GetGlyphOutlineA(HDC inDC, CHAR inChar, UINT inFormat, void* inGM, DWORD inBufferSize, LPVOID outBuffer, CONST mozce_MAT2* inMAT2) MOZCE_SHUNT_API DWORD mozce_GetGlyphOutlineA(HDC inDC, CHAR inChar, UINT inFormat, void* inGM, DWORD inBufferSize, LPVOID outBuffer, CONST mozce_MAT2* inMAT2)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("-- mozce_GetGlyphOutlineA called\n"); mozce_printf("-- mozce_GetGlyphOutlineA called\n");
#endif #endif
@ -581,6 +623,8 @@ MOZCE_SHUNT_API DWORD mozce_GetGlyphOutlineA(HDC inDC, CHAR inChar, UINT inForma
MOZCE_SHUNT_API DWORD mozce_GetCurrentDirectoryA(DWORD inBufferLength, LPSTR outBuffer) MOZCE_SHUNT_API DWORD mozce_GetCurrentDirectoryA(DWORD inBufferLength, LPSTR outBuffer)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("-- mozce_GetCurrentDirectoryA called\n"); mozce_printf("-- mozce_GetCurrentDirectoryA called\n");
#endif #endif
@ -599,6 +643,8 @@ MOZCE_SHUNT_API DWORD mozce_GetCurrentDirectoryA(DWORD inBufferLength, LPSTR out
MOZCE_SHUNT_API BOOL mozce_SetCurrentDirectoryA(LPCSTR inPathName) MOZCE_SHUNT_API BOOL mozce_SetCurrentDirectoryA(LPCSTR inPathName)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("-- mozce_SetCurrentDirectoryA called\n"); mozce_printf("-- mozce_SetCurrentDirectoryA called\n");
#endif #endif
@ -611,6 +657,8 @@ MOZCE_SHUNT_API BOOL mozce_SetCurrentDirectoryA(LPCSTR inPathName)
MOZCE_SHUNT_API LONG mozce_RegEnumKeyExA(HKEY inKey, DWORD inIndex, LPSTR outName, LPDWORD inoutName, LPDWORD inReserved, LPSTR outClass, LPDWORD inoutClass, PFILETIME inLastWriteTime) MOZCE_SHUNT_API LONG mozce_RegEnumKeyExA(HKEY inKey, DWORD inIndex, LPSTR outName, LPDWORD inoutName, LPDWORD inReserved, LPSTR outClass, LPDWORD inoutClass, PFILETIME inLastWriteTime)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_RegEnumKeyExA called\n"); mozce_printf("mozce_RegEnumKeyExA called\n");
#endif #endif
@ -656,6 +704,8 @@ MOZCE_SHUNT_API LONG mozce_RegEnumKeyExA(HKEY inKey, DWORD inIndex, LPSTR outNam
MOZCE_SHUNT_API BOOL mozce_GetFileVersionInfoA(LPSTR inFilename, DWORD inHandle, DWORD inLen, LPVOID outData) MOZCE_SHUNT_API BOOL mozce_GetFileVersionInfoA(LPSTR inFilename, DWORD inHandle, DWORD inLen, LPVOID outData)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_GetFileVersionInfoA called\n"); mozce_printf("mozce_GetFileVersionInfoA called\n");
#endif #endif
@ -673,6 +723,8 @@ MOZCE_SHUNT_API BOOL mozce_GetFileVersionInfoA(LPSTR inFilename, DWORD inHandle,
MOZCE_SHUNT_API DWORD mozce_GetFileVersionInfoSizeA(LPSTR inFilename, LPDWORD outHandle) MOZCE_SHUNT_API DWORD mozce_GetFileVersionInfoSizeA(LPSTR inFilename, LPDWORD outHandle)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_GetFileVersionInfoSizeA called\n"); mozce_printf("mozce_GetFileVersionInfoSizeA called\n");
#endif #endif
@ -691,6 +743,8 @@ MOZCE_SHUNT_API DWORD mozce_GetFileVersionInfoSizeA(LPSTR inFilename, LPDWORD ou
MOZCE_SHUNT_API BOOL mozce_VerQueryValueA(const LPVOID inBlock, LPSTR inSubBlock, LPVOID *outBuffer, PUINT outLen) MOZCE_SHUNT_API BOOL mozce_VerQueryValueA(const LPVOID inBlock, LPSTR inSubBlock, LPVOID *outBuffer, PUINT outLen)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_VerQueryValueA called\n"); mozce_printf("mozce_VerQueryValueA called\n");
#endif #endif
@ -710,6 +764,8 @@ MOZCE_SHUNT_API BOOL mozce_VerQueryValueA(const LPVOID inBlock, LPSTR inSubBlock
MOZCE_SHUNT_API int mozce_LoadStringA(HINSTANCE inInstance, UINT inID, LPSTR outBuffer, int inBufferMax) MOZCE_SHUNT_API int mozce_LoadStringA(HINSTANCE inInstance, UINT inID, LPSTR outBuffer, int inBufferMax)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_LoadStringA called\n"); mozce_printf("mozce_LoadStringA called\n");
#endif #endif
@ -736,6 +792,8 @@ MOZCE_SHUNT_API int mozce_LoadStringA(HINSTANCE inInstance, UINT inID, LPSTR out
MOZCE_SHUNT_API VOID mozce_OutputDebugStringA(LPCSTR inOutputString) MOZCE_SHUNT_API VOID mozce_OutputDebugStringA(LPCSTR inOutputString)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_OutputDebugStringA called\n"); mozce_printf("mozce_OutputDebugStringA called\n");
#endif #endif
@ -753,6 +811,8 @@ MOZCE_SHUNT_API VOID mozce_OutputDebugStringA(LPCSTR inOutputString)
MOZCE_SHUNT_API int mozce_DrawTextA(HDC inDC, LPCSTR inString, int inCount, LPRECT inRect, UINT inFormat) MOZCE_SHUNT_API int mozce_DrawTextA(HDC inDC, LPCSTR inString, int inCount, LPRECT inRect, UINT inFormat)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_DrawTextA called\n"); mozce_printf("mozce_DrawTextA called\n");
#endif #endif
@ -772,6 +832,8 @@ MOZCE_SHUNT_API int mozce_DrawTextA(HDC inDC, LPCSTR inString, int inCount, LPRE
MOZCE_SHUNT_API BOOL mozce_SetDlgItemTextA(HWND inDlg, int inIDDlgItem, LPCSTR inString) MOZCE_SHUNT_API BOOL mozce_SetDlgItemTextA(HWND inDlg, int inIDDlgItem, LPCSTR inString)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_SetDlgItemTextA called\n"); mozce_printf("mozce_SetDlgItemTextA called\n");
#endif #endif
@ -790,6 +852,8 @@ MOZCE_SHUNT_API BOOL mozce_SetDlgItemTextA(HWND inDlg, int inIDDlgItem, LPCSTR i
MOZCE_SHUNT_API HANDLE mozce_LoadImageA(HINSTANCE inInst, LPCSTR inName, UINT inType, int inCX, int inCY, UINT inLoad) MOZCE_SHUNT_API HANDLE mozce_LoadImageA(HINSTANCE inInst, LPCSTR inName, UINT inType, int inCX, int inCY, UINT inLoad)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_LoadImageA called\n"); mozce_printf("mozce_LoadImageA called\n");
#endif #endif
@ -809,6 +873,8 @@ MOZCE_SHUNT_API HANDLE mozce_LoadImageA(HINSTANCE inInst, LPCSTR inName, UINT in
MOZCE_SHUNT_API HWND mozce_FindWindowA(LPCSTR inClass, LPCSTR inWindow) MOZCE_SHUNT_API HWND mozce_FindWindowA(LPCSTR inClass, LPCSTR inWindow)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_FindWindowA called\n"); mozce_printf("mozce_FindWindowA called\n");
#endif #endif
@ -840,6 +906,8 @@ MOZCE_SHUNT_API HWND mozce_FindWindowA(LPCSTR inClass, LPCSTR inWindow)
MOZCE_SHUNT_API UINT mozce_RegisterClipboardFormatA(LPCSTR inFormat) MOZCE_SHUNT_API UINT mozce_RegisterClipboardFormatA(LPCSTR inFormat)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_RegisterClipboardFormatA called\n"); mozce_printf("mozce_RegisterClipboardFormatA called\n");
#endif #endif
@ -859,6 +927,8 @@ MOZCE_SHUNT_API UINT mozce_RegisterClipboardFormatA(LPCSTR inFormat)
MOZCE_SHUNT_API DWORD mozce_GetEnvironmentVariableA(LPSTR lpName, LPSTR lpBuffer, DWORD nSize) MOZCE_SHUNT_API DWORD mozce_GetEnvironmentVariableA(LPSTR lpName, LPSTR lpBuffer, DWORD nSize)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("-- mozce_GetEnvironmentVariableA called\n"); mozce_printf("-- mozce_GetEnvironmentVariableA called\n");
#endif #endif
@ -872,6 +942,8 @@ MOZCE_SHUNT_API DWORD mozce_GetEnvironmentVariableA(LPSTR lpName, LPSTR lpBuffer
MOZCE_SHUNT_API DWORD mozce_SetEnvironmentVariableA(LPSTR lpName, LPSTR lpBuffer) MOZCE_SHUNT_API DWORD mozce_SetEnvironmentVariableA(LPSTR lpName, LPSTR lpBuffer)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("-- mozce_SetEnvironmentVariableA called\n"); mozce_printf("-- mozce_SetEnvironmentVariableA called\n");
#endif #endif
@ -886,6 +958,8 @@ MOZCE_SHUNT_API DWORD mozce_SetEnvironmentVariableA(LPSTR lpName, LPSTR lpBuffer
MOZCE_SHUNT_API LRESULT mozce_SendMessageA(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) MOZCE_SHUNT_API LRESULT mozce_SendMessageA(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_SendMessageA called\n"); mozce_printf("mozce_SendMessageA called\n");
#endif #endif
@ -958,6 +1032,8 @@ MOZCE_SHUNT_API LRESULT mozce_SendMessageA(HWND hWnd, UINT msg, WPARAM wParam, L
MOZCE_SHUNT_API ATOM mozce_GlobalAddAtomA(LPCSTR lpString) MOZCE_SHUNT_API ATOM mozce_GlobalAddAtomA(LPCSTR lpString)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_GlobalAddAtomA called (%s)\n", lpString); mozce_printf("mozce_GlobalAddAtomA called (%s)\n", lpString);
#endif #endif
@ -974,6 +1050,8 @@ MOZCE_SHUNT_API ATOM mozce_GlobalAddAtomA(LPCSTR lpString)
MOZCE_SHUNT_API LRESULT mozce_PostMessageA(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) MOZCE_SHUNT_API LRESULT mozce_PostMessageA(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_PostMessageA called\n"); mozce_printf("mozce_PostMessageA called\n");
#endif #endif
@ -983,6 +1061,8 @@ MOZCE_SHUNT_API LRESULT mozce_PostMessageA(HWND hWnd, UINT msg, WPARAM wParam, L
MOZCE_SHUNT_API BOOL mozce_GetVersionExA(LPOSVERSIONINFOA lpv) MOZCE_SHUNT_API BOOL mozce_GetVersionExA(LPOSVERSIONINFOA lpv)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_GetVersionExA called\n"); mozce_printf("mozce_GetVersionExA called\n");
#endif #endif
@ -1000,6 +1080,8 @@ MOZCE_SHUNT_API BOOL mozce_GetVersionExA(LPOSVERSIONINFOA lpv)
MOZCE_SHUNT_API BOOL mozce_PeekMessageA(LPMSG lpMsg, HWND hWnd, UINT wMsgFilterMin, UINT wMsgFilterMax, UINT wRemoveMsg) MOZCE_SHUNT_API BOOL mozce_PeekMessageA(LPMSG lpMsg, HWND hWnd, UINT wMsgFilterMin, UINT wMsgFilterMax, UINT wRemoveMsg)
{ {
MOZCE_PRECHECK
#ifdef LOUD_PEEKMESSAGE #ifdef LOUD_PEEKMESSAGE
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_PeekMessageA called\n"); mozce_printf("mozce_PeekMessageA called\n");
@ -1012,6 +1094,8 @@ MOZCE_SHUNT_API BOOL mozce_PeekMessageA(LPMSG lpMsg, HWND hWnd, UINT wMsgFilterM
MOZCE_SHUNT_API LRESULT mozce_DefWindowProcA(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam) MOZCE_SHUNT_API LRESULT mozce_DefWindowProcA(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_DefWindowProcA called\n"); mozce_printf("mozce_DefWindowProcA called\n");
#endif #endif
@ -1075,6 +1159,8 @@ MOZCE_SHUNT_API HWND mozce_CreateWindowExA(DWORD dwExStyle,
MOZCE_SHUNT_API ATOM mozce_RegisterClassA(CONST WNDCLASSA *lpwc) MOZCE_SHUNT_API ATOM mozce_RegisterClassA(CONST WNDCLASSA *lpwc)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_RegisterClassA called (%s)\n", lpwc->lpszClassName); mozce_printf("mozce_RegisterClassA called (%s)\n", lpwc->lpszClassName);
#endif #endif
@ -1091,6 +1177,8 @@ MOZCE_SHUNT_API ATOM mozce_RegisterClassA(CONST WNDCLASSA *lpwc)
MOZCE_SHUNT_API BOOL mozce_UnregisterClassA(LPCSTR lpClassName, HINSTANCE hInstance) MOZCE_SHUNT_API BOOL mozce_UnregisterClassA(LPCSTR lpClassName, HINSTANCE hInstance)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_UnregisterClassA called\n"); mozce_printf("mozce_UnregisterClassA called\n");
#endif #endif
@ -1101,6 +1189,8 @@ MOZCE_SHUNT_API BOOL mozce_UnregisterClassA(LPCSTR lpClassName, HINSTANCE hInsta
} }
MOZCE_SHUNT_API UINT mozce_RegisterWindowMessageA(LPCSTR s) MOZCE_SHUNT_API UINT mozce_RegisterWindowMessageA(LPCSTR s)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_RegisterWindowMessageA called\n"); mozce_printf("mozce_RegisterWindowMessageA called\n");
#endif #endif
@ -1114,6 +1204,8 @@ MOZCE_SHUNT_API UINT mozce_RegisterWindowMessageA(LPCSTR s)
MOZCE_SHUNT_API BOOL mozce_GetClassInfoA(HINSTANCE hInstance, LPCSTR lpClassName, LPWNDCLASS lpWndClass) MOZCE_SHUNT_API BOOL mozce_GetClassInfoA(HINSTANCE hInstance, LPCSTR lpClassName, LPWNDCLASS lpWndClass)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_GetClassInfoA called\n"); mozce_printf("mozce_GetClassInfoA called\n");
#endif #endif
@ -1127,6 +1219,8 @@ MOZCE_SHUNT_API BOOL mozce_GetClassInfoA(HINSTANCE hInstance, LPCSTR lpClassName
MOZCE_SHUNT_API HINSTANCE mozce_LoadLibraryA(LPCSTR lpLibFileName) MOZCE_SHUNT_API HINSTANCE mozce_LoadLibraryA(LPCSTR lpLibFileName)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_LoadLibraryA called (%s)\n", lpLibFileName); mozce_printf("mozce_LoadLibraryA called (%s)\n", lpLibFileName);
#endif #endif
@ -1151,6 +1245,8 @@ MOZCE_SHUNT_API HINSTANCE mozce_LoadLibraryA(LPCSTR lpLibFileName)
MOZCE_SHUNT_API int mozce_GetObjectA(HGDIOBJ hgdiobj, int cbBuffer, LPVOID lpvObject) MOZCE_SHUNT_API int mozce_GetObjectA(HGDIOBJ hgdiobj, int cbBuffer, LPVOID lpvObject)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_GetObjectA called\n"); mozce_printf("mozce_GetObjectA called\n");
#endif #endif
@ -1173,6 +1269,8 @@ MOZCE_SHUNT_API int mozce_GetObjectA(HGDIOBJ hgdiobj, int cbBuffer, LPVOID lpvOb
MOZCE_SHUNT_API FARPROC mozce_GetProcAddressA(HMODULE hMod, const char *name) MOZCE_SHUNT_API FARPROC mozce_GetProcAddressA(HMODULE hMod, const char *name)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_GetProcAddressA called (%s)\n", name); mozce_printf("mozce_GetProcAddressA called (%s)\n", name);
#endif #endif
@ -1192,6 +1290,8 @@ MOZCE_SHUNT_API FARPROC mozce_GetProcAddressA(HMODULE hMod, const char *name)
MOZCE_SHUNT_API HCURSOR mozce_LoadCursorA(HINSTANCE hInstance, LPCSTR lpCursorName) MOZCE_SHUNT_API HCURSOR mozce_LoadCursorA(HINSTANCE hInstance, LPCSTR lpCursorName)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_LoadCursorA called\n"); mozce_printf("mozce_LoadCursorA called\n");
#endif #endif
@ -1219,6 +1319,8 @@ MOZCE_SHUNT_API HCURSOR mozce_LoadCursorA(HINSTANCE hInstance, LPCSTR lpCursorNa
MOZCE_SHUNT_API int mozce_GetClassNameA(HWND hWnd, LPTSTR lpClassName, int nMaxCount) MOZCE_SHUNT_API int mozce_GetClassNameA(HWND hWnd, LPTSTR lpClassName, int nMaxCount)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_GetClassNameA called\n"); mozce_printf("mozce_GetClassNameA called\n");
#endif #endif
@ -1237,6 +1339,8 @@ MOZCE_SHUNT_API int mozce_GetClassNameA(HWND hWnd, LPTSTR lpClassName, int nMaxC
MOZCE_SHUNT_API BOOL mozce_GetOpenFileNameA(LPOPENFILENAMEA lpofna) MOZCE_SHUNT_API BOOL mozce_GetOpenFileNameA(LPOPENFILENAMEA lpofna)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("-- mozce_GetOpenFileNameA called\n"); mozce_printf("-- mozce_GetOpenFileNameA called\n");
#endif #endif
@ -1247,6 +1351,8 @@ MOZCE_SHUNT_API BOOL mozce_GetOpenFileNameA(LPOPENFILENAMEA lpofna)
MOZCE_SHUNT_API BOOL mozce_GetSaveFileNameA(LPOPENFILENAMEA lpofna) MOZCE_SHUNT_API BOOL mozce_GetSaveFileNameA(LPOPENFILENAMEA lpofna)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("-- mozce_GetSaveFileNameA called\n"); mozce_printf("-- mozce_GetSaveFileNameA called\n");
#endif #endif
@ -1258,6 +1364,8 @@ MOZCE_SHUNT_API BOOL mozce_GetSaveFileNameA(LPOPENFILENAMEA lpofna)
MOZCE_SHUNT_API HMODULE mozce_GetModuleHandleA(const char *lpName) MOZCE_SHUNT_API HMODULE mozce_GetModuleHandleA(const char *lpName)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_GetModuleHandleA called (%s)\n", lpName); mozce_printf("mozce_GetModuleHandleA called (%s)\n", lpName);
#endif #endif
@ -1274,6 +1382,8 @@ MOZCE_SHUNT_API HMODULE mozce_GetModuleHandleA(const char *lpName)
MOZCE_SHUNT_API HICON mozce_LoadIconA(HINSTANCE hInstance, LPCSTR lpIconName) MOZCE_SHUNT_API HICON mozce_LoadIconA(HINSTANCE hInstance, LPCSTR lpIconName)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_LoadIconA called\n"); mozce_printf("mozce_LoadIconA called\n");
#endif #endif
@ -1297,6 +1407,8 @@ MOZCE_SHUNT_API HICON mozce_LoadIconA(HINSTANCE hInstance, LPCSTR lpIconName)
MOZCE_SHUNT_API HRSRC mozce_FindResourceA(HMODULE hModule, LPCSTR lpName, LPCSTR lpType) MOZCE_SHUNT_API HRSRC mozce_FindResourceA(HMODULE hModule, LPCSTR lpName, LPCSTR lpType)
{ {
MOZCE_PRECHECK
HRSRC hr; HRSRC hr;
if (! IS_INTRESOURCE(lpName) && IS_INTRESOURCE(lpType)) if (! IS_INTRESOURCE(lpName) && IS_INTRESOURCE(lpType))
{ {
@ -1321,6 +1433,8 @@ MOZCE_SHUNT_API HRSRC mozce_FindResourceA(HMODULE hModule, LPCSTR lpName, LPCS
MOZCE_SHUNT_API UINT mozce_GetDlgItemTextA(HWND hDlg, int nIDDlgItem, LPSTR lpString, int nMaxCount) MOZCE_SHUNT_API UINT mozce_GetDlgItemTextA(HWND hDlg, int nIDDlgItem, LPSTR lpString, int nMaxCount)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_GetDlgItemTextA called\n"); mozce_printf("mozce_GetDlgItemTextA called\n");
#endif #endif
@ -1340,6 +1454,8 @@ MOZCE_SHUNT_API UINT mozce_GetDlgItemTextA(HWND hDlg, int nIDDlgItem, LPSTR lpSt
MOZCE_SHUNT_API HANDLE mozce_CreateEventA(LPSECURITY_ATTRIBUTES lpEventAttributes, BOOL bManualReset, BOOL bInitialState, const char *lpName) MOZCE_SHUNT_API HANDLE mozce_CreateEventA(LPSECURITY_ATTRIBUTES lpEventAttributes, BOOL bManualReset, BOOL bInitialState, const char *lpName)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_CreateEventA called\n"); mozce_printf("mozce_CreateEventA called\n");
#endif #endif
@ -1365,6 +1481,8 @@ MOZCE_SHUNT_API HANDLE mozce_CreateEventA(LPSECURITY_ATTRIBUTES lpEventAttribute
MOZCE_SHUNT_API HMENU mozce_LoadMenuA(HINSTANCE hInstance, LPCSTR lpMenuName) MOZCE_SHUNT_API HMENU mozce_LoadMenuA(HINSTANCE hInstance, LPCSTR lpMenuName)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_LoadMenuA called\n"); mozce_printf("mozce_LoadMenuA called\n");
#endif #endif
@ -1388,6 +1506,8 @@ MOZCE_SHUNT_API HMENU mozce_LoadMenuA(HINSTANCE hInstance, LPCSTR lpMenuName)
MOZCE_SHUNT_API HANDLE mozce_GetPropA(HWND hWnd, LPCSTR lpString) MOZCE_SHUNT_API HANDLE mozce_GetPropA(HWND hWnd, LPCSTR lpString)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_GetPropA called\n"); mozce_printf("mozce_GetPropA called\n");
#endif #endif
@ -1407,6 +1527,8 @@ MOZCE_SHUNT_API HANDLE mozce_GetPropA(HWND hWnd, LPCSTR lpString)
MOZCE_SHUNT_API BOOL mozce_SetPropA(HWND hWnd, LPCSTR lpString, HANDLE hData) MOZCE_SHUNT_API BOOL mozce_SetPropA(HWND hWnd, LPCSTR lpString, HANDLE hData)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_SetPropA called\n"); mozce_printf("mozce_SetPropA called\n");
#endif #endif
@ -1428,6 +1550,8 @@ MOZCE_SHUNT_API BOOL mozce_SetPropA(HWND hWnd, LPCSTR lpString, HANDLE hData)
MOZCE_SHUNT_API HANDLE mozce_RemovePropA(HWND hWnd, LPCSTR lpString) MOZCE_SHUNT_API HANDLE mozce_RemovePropA(HWND hWnd, LPCSTR lpString)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_RemovePropA called\n"); mozce_printf("mozce_RemovePropA called\n");
#endif #endif
@ -1448,6 +1572,8 @@ MOZCE_SHUNT_API HANDLE mozce_RemovePropA(HWND hWnd, LPCSTR lpString)
MOZCE_SHUNT_API HANDLE mozce_FindFirstFileA(LPCSTR lpFileName, LPWIN32_FIND_DATAA lpFindFileData) MOZCE_SHUNT_API HANDLE mozce_FindFirstFileA(LPCSTR lpFileName, LPWIN32_FIND_DATAA lpFindFileData)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_FindFirstFileA called\n"); mozce_printf("mozce_FindFirstFileA called\n");
#endif #endif
@ -1484,6 +1610,8 @@ MOZCE_SHUNT_API HANDLE mozce_FindFirstFileA(LPCSTR lpFileName, LPWIN32_FIND_DATA
MOZCE_SHUNT_API BOOL mozce_FindNextFileA(HANDLE hFindFile, LPWIN32_FIND_DATAA lpFindFileData) MOZCE_SHUNT_API BOOL mozce_FindNextFileA(HANDLE hFindFile, LPWIN32_FIND_DATAA lpFindFileData)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_FindNextFileA called\n"); mozce_printf("mozce_FindNextFileA called\n");
#endif #endif
@ -1519,6 +1647,8 @@ MOZCE_SHUNT_API BOOL mozce_FindNextFileA(HANDLE hFindFile, LPWIN32_FIND_DATAA lp
MOZCE_SHUNT_API HANDLE mozce_CreateFileMappingA(HANDLE hFile, LPSECURITY_ATTRIBUTES lpFileMappingAttributes, DWORD flProtect, DWORD dwMaximumSizeHigh, DWORD dwMaximumSizeLow, LPCSTR lpName) MOZCE_SHUNT_API HANDLE mozce_CreateFileMappingA(HANDLE hFile, LPSECURITY_ATTRIBUTES lpFileMappingAttributes, DWORD flProtect, DWORD dwMaximumSizeHigh, DWORD dwMaximumSizeLow, LPCSTR lpName)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_CreateFileMappingA called\n"); mozce_printf("mozce_CreateFileMappingA called\n");
#endif #endif
@ -1535,6 +1665,8 @@ MOZCE_SHUNT_API HANDLE mozce_CreateFileMappingA(HANDLE hFile, LPSECURITY_ATTRIBU
MOZCE_SHUNT_API DWORD mozce_FormatMessageA(DWORD dwFlags, LPCVOID lpSource, DWORD dwMessageId, DWORD dwLanguageId, LPSTR lpBuffer, DWORD nSize, va_list* Arguments) MOZCE_SHUNT_API DWORD mozce_FormatMessageA(DWORD dwFlags, LPCVOID lpSource, DWORD dwMessageId, DWORD dwLanguageId, LPSTR lpBuffer, DWORD nSize, va_list* Arguments)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_FormatMessageA called\n"); mozce_printf("mozce_FormatMessageA called\n");
#endif #endif
@ -1550,6 +1682,8 @@ MOZCE_SHUNT_API DWORD mozce_FormatMessageA(DWORD dwFlags, LPCVOID lpSource, DWOR
MOZCE_SHUNT_API HANDLE mozce_CreateSemaphoreA(LPSECURITY_ATTRIBUTES lpSemaphoreAttributes, LONG lInitialCount, LONG lMaximumCount, LPCSTR lpName) MOZCE_SHUNT_API HANDLE mozce_CreateSemaphoreA(LPSECURITY_ATTRIBUTES lpSemaphoreAttributes, LONG lInitialCount, LONG lMaximumCount, LPCSTR lpName)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_CreateSemaphoreA called\n"); mozce_printf("mozce_CreateSemaphoreA called\n");
#endif #endif
@ -1569,6 +1703,8 @@ MOZCE_SHUNT_API HANDLE mozce_CreateSemaphoreA(LPSECURITY_ATTRIBUTES lpSemaphoreA
MOZCE_SHUNT_API int mozce_StartDocA(HDC hdc, CONST DOCINFO* lpdi) MOZCE_SHUNT_API int mozce_StartDocA(HDC hdc, CONST DOCINFO* lpdi)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("-- mozce_StartDocA called\n"); mozce_printf("-- mozce_StartDocA called\n");
#endif #endif
@ -1582,6 +1718,8 @@ MOZCE_SHUNT_API int mozce_StartDocA(HDC hdc, CONST DOCINFO* lpdi)
MOZCE_SHUNT_API HFONT mozce_CreateFontIndirectA(CONST LOGFONTA* lplf) MOZCE_SHUNT_API HFONT mozce_CreateFontIndirectA(CONST LOGFONTA* lplf)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_CreateFontIndirectA called\n"); mozce_printf("mozce_CreateFontIndirectA called\n");
#endif #endif
@ -1615,6 +1753,8 @@ MOZCE_SHUNT_API HFONT mozce_CreateFontIndirectA(CONST LOGFONTA* lplf)
MOZCE_SHUNT_API int mozce_EnumFontFamiliesA(HDC hdc, LPCTSTR lpszFamily, FONTENUMPROC lpEnumFontFamProc, LPARAM lParam) MOZCE_SHUNT_API int mozce_EnumFontFamiliesA(HDC hdc, LPCTSTR lpszFamily, FONTENUMPROC lpEnumFontFamProc, LPARAM lParam)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("-- mozce_EnumFontFamilies called\n"); mozce_printf("-- mozce_EnumFontFamilies called\n");
#endif #endif
@ -1624,6 +1764,8 @@ MOZCE_SHUNT_API int mozce_EnumFontFamiliesA(HDC hdc, LPCTSTR lpszFamily, FONTENU
MOZCE_SHUNT_API int mozce_GetTextFaceA(HDC hdc, int nCount, LPSTR lpFaceName) MOZCE_SHUNT_API int mozce_GetTextFaceA(HDC hdc, int nCount, LPSTR lpFaceName)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_GetTextFaceA called\n"); mozce_printf("mozce_GetTextFaceA called\n");
#endif #endif
@ -1654,6 +1796,8 @@ MOZCE_SHUNT_API int mozce_GetTextFaceA(HDC hdc, int nCount, LPSTR lpFaceName)
MOZCE_SHUNT_API BOOL mozce_GetTextMetricsA(HDC hdc, LPTEXTMETRICA lptma) MOZCE_SHUNT_API BOOL mozce_GetTextMetricsA(HDC hdc, LPTEXTMETRICA lptma)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_GetTextMetricsA called\n"); mozce_printf("mozce_GetTextMetricsA called\n");
#endif #endif

Просмотреть файл

@ -53,6 +53,8 @@ extern "C" {
MOZCE_SHUNT_API UINT mozce_GetWindowsDirectoryW(LPWSTR inBuffer, UINT inSize) MOZCE_SHUNT_API UINT mozce_GetWindowsDirectoryW(LPWSTR inBuffer, UINT inSize)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_GetWindowsDirectoryW called\n"); mozce_printf("mozce_GetWindowsDirectoryW called\n");
#endif #endif
@ -75,6 +77,8 @@ MOZCE_SHUNT_API UINT mozce_GetWindowsDirectoryW(LPWSTR inBuffer, UINT inSize)
MOZCE_SHUNT_API UINT mozce_GetSystemDirectoryW(LPWSTR inBuffer, UINT inSize) MOZCE_SHUNT_API UINT mozce_GetSystemDirectoryW(LPWSTR inBuffer, UINT inSize)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_GetSystemDirectoryW called\n"); mozce_printf("mozce_GetSystemDirectoryW called\n");
#endif #endif
@ -97,6 +101,8 @@ MOZCE_SHUNT_API UINT mozce_GetSystemDirectoryW(LPWSTR inBuffer, UINT inSize)
MOZCE_SHUNT_API HANDLE mozce_OpenSemaphoreW(DWORD inDesiredAccess, BOOL inInheritHandle, LPCWSTR inName) MOZCE_SHUNT_API HANDLE mozce_OpenSemaphoreW(DWORD inDesiredAccess, BOOL inInheritHandle, LPCWSTR inName)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_OpenSemaphoreW called\n"); mozce_printf("mozce_OpenSemaphoreW called\n");
#endif #endif
@ -125,6 +131,8 @@ MOZCE_SHUNT_API HANDLE mozce_OpenSemaphoreW(DWORD inDesiredAccess, BOOL inInheri
MOZCE_SHUNT_API DWORD mozce_GetGlyphOutlineW(HDC inDC, WCHAR inChar, UINT inFormat, void* inGM, DWORD inBufferSize, LPVOID outBuffer, CONST mozce_MAT2* inMAT2) MOZCE_SHUNT_API DWORD mozce_GetGlyphOutlineW(HDC inDC, WCHAR inChar, UINT inFormat, void* inGM, DWORD inBufferSize, LPVOID outBuffer, CONST mozce_MAT2* inMAT2)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_GetGlyphOutlineW called\n"); mozce_printf("mozce_GetGlyphOutlineW called\n");
#endif #endif
@ -139,6 +147,8 @@ MOZCE_SHUNT_API DWORD mozce_GetGlyphOutlineW(HDC inDC, WCHAR inChar, UINT inForm
MOZCE_SHUNT_API DWORD mozce_GetCurrentDirectoryW(DWORD inBufferLength, LPTSTR outBuffer) MOZCE_SHUNT_API DWORD mozce_GetCurrentDirectoryW(DWORD inBufferLength, LPTSTR outBuffer)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_GetCurrentDirectoryW called\n"); mozce_printf("mozce_GetCurrentDirectoryW called\n");
#endif #endif
@ -158,6 +168,8 @@ MOZCE_SHUNT_API DWORD mozce_GetCurrentDirectoryW(DWORD inBufferLength, LPTSTR ou
MOZCE_SHUNT_API BOOL mozce_SetCurrentDirectoryW(LPCTSTR inPathName) MOZCE_SHUNT_API BOOL mozce_SetCurrentDirectoryW(LPCTSTR inPathName)
{ {
MOZCE_PRECHECK
#ifdef DEBUG #ifdef DEBUG
mozce_printf("mozce_SetCurrentDirectoryW called\n"); mozce_printf("mozce_SetCurrentDirectoryW called\n");
#endif #endif