From 4bc1c9730a85c67ee58a0a24a337cb29a4363464 Mon Sep 17 00:00:00 2001 From: "dougt%meer.net" Date: Tue, 5 Apr 2005 22:40:37 +0000 Subject: [PATCH] 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. --- build/wince/shunt/assert.cpp | 2 + build/wince/shunt/build/shunt.vcb | Bin 189440 -> 214016 bytes build/wince/shunt/build/shunt.vcl | 80 +++++++++---- build/wince/shunt/build/shunt.vco | Bin 52736 -> 53760 bytes build/wince/shunt/build/shunt.vcp | 10 +- build/wince/shunt/direct.cpp | 4 + build/wince/shunt/include/mozce_defs.h | 2 +- build/wince/shunt/include/mozce_shunt.h | 37 +++++- build/wince/shunt/io.cpp | 4 + build/wince/shunt/mbstring.cpp | 8 ++ build/wince/shunt/mozce_internal.h | 15 +++ build/wince/shunt/process.cpp | 8 ++ build/wince/shunt/signal.cpp | 4 + build/wince/shunt/stat.cpp | 2 + build/wince/shunt/stdio.cpp | 125 +++++++++++++++++++- build/wince/shunt/stdlib.cpp | 8 ++ build/wince/shunt/string.cpp | 4 + build/wince/shunt/time.cpp | 16 +++ build/wince/shunt/win32.cpp | 108 ++++++++++++++++++ build/wince/shunt/win32A.cpp | 146 +++++++++++++++++++++++- build/wince/shunt/win32W.cpp | 12 ++ 21 files changed, 561 insertions(+), 34 deletions(-) diff --git a/build/wince/shunt/assert.cpp b/build/wince/shunt/assert.cpp index 43219ca2b02..811d42db735 100755 --- a/build/wince/shunt/assert.cpp +++ b/build/wince/shunt/assert.cpp @@ -47,6 +47,8 @@ extern "C" { MOZCE_SHUNT_API void mozce_assert(int inExpression) { + MOZCE_PRECHECK + #ifdef DEBUG mozce_printf("mozce_assert called\n"); #endif diff --git a/build/wince/shunt/build/shunt.vcb b/build/wince/shunt/build/shunt.vcb index 619efee6abca16330485616d53baddef4e2fb45a..5367b5017d6cc838792d942c8299ea26f5b4ff5c 100755 GIT binary patch delta 40404 zcmeHQ34B$>)jxCJO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bRQ;w{)3kg9KXvM5)n_j5{p}GQQ<%|(Uu6$ za~uV@UOuuxFFwQkI*Xs2hzMg4LGJKz2pnkK918yw{Q+;Kt70KMXa|IKc??oQU9!Xgtfa14__K=kqAN+DD0u*oz&HNUe=T@*7m%YwU zuX~Iq`&~YF`J4zBCy3^{Il&^<&35;hCKjsbWB$M!O4Eb%-Wp#d8W(^1CXKH{pSe>C zc|RspjP!|H`7ZIhA^ftaFFp`_C|Uk`;5PnW`sN3DeChZg_knHvEH4|)&R>&y6;jf_ z`~&ZaTmm}bd_ioFJ%4(N#%EtA(+&*Lh-M+8IOY?Z{JKbdSJ=mkzv~vpjl!H)+}Kcu zF?ZMwewyp{mHdGFKow6{^hRH<>N}t2(?o=)6!+0b`R|#rU2vb<%Y(Up>rter?TQ-z o(T@gsgfmPCXC?;3k_Ttogm6;3**0>A9p|T&-HtzB$E{%h1oSsTssI20 diff --git a/build/wince/shunt/build/shunt.vcl b/build/wince/shunt/build/shunt.vcl index 2d1ba6cb7ec..060d0ec25aa 100755 --- a/build/wince/shunt/build/shunt.vcl +++ b/build/wince/shunt/build/shunt.vcl @@ -6,15 +6,22 @@ --------------------Configuration: shunt - Win32 (WCE emulator) Release--------------------

Command Lines

-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\assert.obj .\emulatorRel\direct.obj .\emulatorRel\errno.obj .\emulatorRel\io.obj .\emulatorRel\mbstring.obj +.\emulatorRel\nclog.obj .\emulatorRel\process.obj .\emulatorRel\signal.obj .\emulatorRel\stat.obj @@ -26,10 +33,11 @@ commctrl.lib coredll.lib corelibc.lib /nologo /base:"0x00100000" /stack:0x100000 .\emulatorRel\win32.obj .\emulatorRel\win32A.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"

Output Window

+Compiling... +stdio.cpp Linking... 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--------------------

Command Lines

-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\assert.obj .\emulatorDbg\direct.obj .\emulatorDbg\errno.obj .\emulatorDbg\io.obj .\emulatorDbg\mbstring.obj +.\emulatorDbg\nclog.obj .\emulatorDbg\process.obj .\emulatorDbg\signal.obj .\emulatorDbg\stat.obj @@ -63,10 +78,11 @@ commctrl.lib coredll.lib corelibc.lib /nologo /base:"0x00100000" /stack:0x100000 .\emulatorDbg\win32.obj .\emulatorDbg\win32A.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"

Output Window

+Compiling... +stdio.cpp Linking... LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/PDB:NONE' specification 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--------------------

Command Lines

-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\assert.obj .\ARMV4Rel\direct.obj .\ARMV4Rel\errno.obj .\ARMV4Rel\io.obj .\ARMV4Rel\mbstring.obj +.\ARMV4Rel\nclog.obj .\ARMV4Rel\process.obj .\ARMV4Rel\signal.obj .\ARMV4Rel\stat.obj @@ -101,10 +124,11 @@ commctrl.lib coredll.lib /nologo /base:"0x00100000" /stack:0x1000000 /entry:"_Dl .\ARMV4Rel\win32.obj .\ARMV4Rel\win32A.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"

Output Window

+Compiling... +stdio.cpp Linking... 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--------------------

Command Lines

-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\assert.obj .\ARMV4Dbg\direct.obj .\ARMV4Dbg\errno.obj .\ARMV4Dbg\io.obj .\ARMV4Dbg\mbstring.obj +.\ARMV4Dbg\nclog.obj .\ARMV4Dbg\process.obj .\ARMV4Dbg\signal.obj .\ARMV4Dbg\stat.obj @@ -138,10 +169,11 @@ commctrl.lib coredll.lib /nologo /base:"0x00100000" /stack:0x1000000 /entry:"_Dl .\ARMV4Dbg\win32.obj .\ARMV4Dbg\win32A.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"

Output Window

+Compiling... +stdio.cpp Linking... LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/PDB:NONE' specification 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--------------------

Command Lines

-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\assert.obj .\ARMV4SmartPhone\direct.obj .\ARMV4SmartPhone\errno.obj .\ARMV4SmartPhone\io.obj .\ARMV4SmartPhone\mbstring.obj +.\ARMV4SmartPhone\nclog.obj .\ARMV4SmartPhone\process.obj .\ARMV4SmartPhone\signal.obj .\ARMV4SmartPhone\stat.obj @@ -176,10 +215,11 @@ commctrl.lib coredll.lib /nologo /base:"0x00100000" /stack:0x1000000 /entry:"_Dl .\ARMV4SmartPhone\win32.obj .\ARMV4SmartPhone\win32A.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"

Output Window

+Compiling... +stdio.cpp Linking... Creating library ARMV4SmartPhone/shunt.lib and object ARMV4SmartPhone/shunt.exp diff --git a/build/wince/shunt/build/shunt.vco b/build/wince/shunt/build/shunt.vco index 180278a51a9a93ad296925f8a3631ec997d59676..3073f98e464c07ecf4ae0f94be8177ef85bdcf62 100755 GIT binary patch literal 53760 zcmeHQU2_{(89uV?SpJBUmXMavBwIHhHmO}%{z&XJNo7fHoG-h!iHjo$vb3>9WJ#ly z?W7DdDV+&SF6b~YOfI$aX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`F)xcXxTgqpye0vOC<@n!N z-<}g#O@fSbHFNwg#}ZQ%JIDV%5>I!5r>1+5SES6r=XwTJ%8z^^hvR>xz%fBM?Ek}a z+)CSSwQbd%Z-g(ZrKT*9@PF8_|iLqpGP;!c4d3o-^lnIGycY`-x~@T=lD+u;WJ+%?EiKB z<0OwBf_JGH=YNPKoZy@d{pD;Jq`Wx(ljA>)ApN!A;^g>Gj{jU-(Q=DxpNgIa&i}yq zA2|O5=YPO=EaapLk-R_Ts0}ClA%y+EgOAE*|1bN0+5bz=*SxRtPnb!A2V9EwArrJs}?01ujr+Q@o}wQFT0?JIrG=OMCAA`)N4P= zn2hrlM-Cv6G4upiHyjy0u;eIO1&w8tB1$Esp>JVN!S&vBMZ z4Qimxp$i+JpL$X{He@OJ5{X;)aW%T;@1TVAEP6wy?R`&3<3kqGE9lF2JqgkJgttwr zK8BJP%`qq`kv_|UTAq}i7_yZ77fd9T*XWY^OfSjWdu+&3a^_5U@_AK~)0@2yCKwUUEf01?MZe`(4yo;d-0tLIb!5l_n}Cqc zfXH(2*S_4Y?pI({{WkKB4@6$Fg*7^4dHJ%5TlaApTDIdUAC$84dz1Hc`pA%_^a(oj zE6_8-+V5i@<^iMxU)Z38B%23`Aq(jzkjU>rbP4)vUr5>BFFjXB)ta_$QqtGKTz0aN zpbS}7Z$dCdPdNVCmsKAF%Jm{T18QdWjSCkpy^)`sy;PXP)1Nj!IX6Fhfu8GZ5N zohf86j7bn9AhJ^Ar$4^~{#931@mdg0Ue%dW2EQ%O|Mo@nu&#Oj_rrQ-xL*&01UUce p!*CY34=jP> dwAvailPhys (%d)\n", memStats.dwAvailPhys / 1024); \ +// \ +// nclograw(buffer, strlen(buffer)); \ +//} \ + +#define MOZCE_PRECHECK + #endif /* __mozce_internal_h */ diff --git a/build/wince/shunt/process.cpp b/build/wince/shunt/process.cpp index 83203deac4d..2aa9699dbed 100755 --- a/build/wince/shunt/process.cpp +++ b/build/wince/shunt/process.cpp @@ -49,6 +49,8 @@ extern "C" { MOZCE_SHUNT_API void mozce_abort(void) { + MOZCE_PRECHECK + #ifdef DEBUG mozce_printf("mozce_abort called\n"); #endif @@ -62,6 +64,8 @@ MOZCE_SHUNT_API void mozce_abort(void) MOZCE_SHUNT_API char* mozce_getenv(const char* inName) { + MOZCE_PRECHECK + #ifdef DEBUG mozce_printf("mozce_getenv called (%s)\n", inName); #endif @@ -83,6 +87,8 @@ MOZCE_SHUNT_API char* mozce_getenv(const char* inName) MOZCE_SHUNT_API int mozce_putenv(const char *a) { + MOZCE_PRECHECK + #ifdef DEBUG mozce_printf("mozce_putenv called\n"); #endif @@ -92,6 +98,8 @@ MOZCE_SHUNT_API int mozce_putenv(const char *a) MOZCE_SHUNT_API int mozce_getpid(void) { + MOZCE_PRECHECK + #ifdef DEBUG mozce_printf("mozce_getpid called\n"); #endif diff --git a/build/wince/shunt/signal.cpp b/build/wince/shunt/signal.cpp index 61029f150be..757dad41bdd 100755 --- a/build/wince/shunt/signal.cpp +++ b/build/wince/shunt/signal.cpp @@ -59,6 +59,8 @@ static void defaultSighandler(int inSignal) MOZCE_SHUNT_API int mozce_raise(int inSignal) { + MOZCE_PRECHECK + #ifdef DEBUG mozce_printf("mozce_raise called\n"); #endif @@ -80,6 +82,8 @@ MOZCE_SHUNT_API int mozce_raise(int inSignal) MOZCE_SHUNT_API _sigsig mozce_signal(int inSignal, _sigsig inFunc) { + MOZCE_PRECHECK + #ifdef DEBUG mozce_printf("mozce_signal called\n"); #endif diff --git a/build/wince/shunt/stat.cpp b/build/wince/shunt/stat.cpp index ca934a4de35..82f3e6e206d 100755 --- a/build/wince/shunt/stat.cpp +++ b/build/wince/shunt/stat.cpp @@ -50,6 +50,8 @@ extern "C" { MOZCE_SHUNT_API int mozce_stat(const char* inPath, struct stat* outStats) { + MOZCE_PRECHECK + #ifdef DEBUG mozce_printf("mozce_stat called\n"); #endif diff --git a/build/wince/shunt/stdio.cpp b/build/wince/shunt/stdio.cpp index bfef3c9d22b..0eba793224a 100755 --- a/build/wince/shunt/stdio.cpp +++ b/build/wince/shunt/stdio.cpp @@ -50,6 +50,8 @@ extern "C" { MOZCE_SHUNT_API void mozce_rewind(FILE* inStream) { + MOZCE_PRECHECK + #ifdef DEBUG mozce_printf("mozce_rewind called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_fdopen called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_perror called\n"); #endif @@ -93,6 +99,8 @@ MOZCE_SHUNT_API void mozce_perror(const char* inString) MOZCE_SHUNT_API int mozce_remove(const char* inPath) { + MOZCE_PRECHECK + #ifdef DEBUG mozce_printf("mozce_remove called on %s\n", inPath); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_getcwd called. NOT IMPLEMENTED!!\n"); #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, ...) { - int result; - char buffer[1024]; - unsigned short wBuffer[1024]; - + // DONT CALL IN PRINTF MOZCE_PRECHECK + va_list argp; va_start(argp, format); - - result = _snprintf(buffer, 1023, format, argp); + char buffer[1024]; + int result = _snprintf(buffer, 1023, format, argp); if (result<=0) return result; @@ -143,6 +151,8 @@ MOZCE_SHUNT_API int mozce_printf(const char * format, ...) nclograw(buffer, strlen(buffer)); #endif + unsigned short wBuffer[1024]; + if(0 != a2w_buffer(buffer, -1, wBuffer, sizeof(wBuffer) / sizeof(unsigned short))) { OutputDebugString(wBuffer); @@ -153,6 +163,109 @@ MOZCE_SHUNT_API int mozce_printf(const char * format, ...) 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 { #endif diff --git a/build/wince/shunt/stdlib.cpp b/build/wince/shunt/stdlib.cpp index b943f15c3e1..9205f9addf2 100755 --- a/build/wince/shunt/stdlib.cpp +++ b/build/wince/shunt/stdlib.cpp @@ -51,6 +51,8 @@ extern "C" { MOZCE_SHUNT_API char *mozce_fullpath(char *absPath, const char *relPath, size_t maxLength) { + MOZCE_PRECHECK + #ifdef LOG_CALLS #ifdef DEBUG 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_PRECHECK + #ifdef LOG_CALLS #ifdef DEBUG 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_PRECHECK + #ifdef LOG_CALLS #ifdef DEBUG 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_PRECHECK + #ifdef LOG_CALLS #ifdef DEBUG mozce_printf("mozce_strcmpi called\n"); diff --git a/build/wince/shunt/string.cpp b/build/wince/shunt/string.cpp index 5bf10b953fe..c846ea20a25 100755 --- a/build/wince/shunt/string.cpp +++ b/build/wince/shunt/string.cpp @@ -47,6 +47,8 @@ extern "C" { MOZCE_SHUNT_API char* mozce_strerror(int inErrno) { + MOZCE_PRECHECK + #ifdef DEBUG mozce_printf("mozce_strerror called\n"); #endif @@ -56,6 +58,8 @@ MOZCE_SHUNT_API char* mozce_strerror(int inErrno) MOZCE_SHUNT_API int mozce_wsprintfA(LPTSTR lpOut, LPCTSTR lpFmt, ... ) { + MOZCE_PRECHECK + #ifdef DEBUG mozce_printf("-- mozce_wsprintfA called\n"); #endif diff --git a/build/wince/shunt/time.cpp b/build/wince/shunt/time.cpp index b67fd8ff766..9c531360bb8 100755 --- a/build/wince/shunt/time.cpp +++ b/build/wince/shunt/time.cpp @@ -54,6 +54,8 @@ static struct tm tmStorage; MOZCE_SHUNT_API size_t mozce_strftime(char *, size_t, const char *, const struct tm *) { + MOZCE_PRECHECK + #ifdef DEBUG mozce_printf("mozce_strftime called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("tm* mozce_localtime_r called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("tm* mozce_localtime called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("tm* mozce_gmtime_r called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("tm* mozce_gmtime called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_mktime called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_time called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_ctime called\n"); #endif diff --git a/build/wince/shunt/win32.cpp b/build/wince/shunt/win32.cpp index 957a16580f6..84262dae540 100755 --- a/build/wince/shunt/win32.cpp +++ b/build/wince/shunt/win32.cpp @@ -54,6 +54,8 @@ extern "C" { MOZCE_SHUNT_API int mozce_MulDiv(int inNumber, int inNumerator, int inDenominator) { + MOZCE_PRECHECK + #ifdef DEBUG mozce_printf("mozce_MulDiv called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("-- mozce_GetDIBits called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("-- mozce_SetDIBits called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("-- mozce_CreateDIBitmap called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("-- mozce_SetPolyFillMode called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("-- mozce_SetStretchBltMode called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_ExtSelectClipRgn called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("-- mozce_LineDDA called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_FrameRect called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("-- mozce_SetArcDirection called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("-- mozce_Arc called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("-- mozce_Pie called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("-- mozce_GetFontData called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_GetTextCharset called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_GetTextCharsetInfo called\n"); #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_PRECHECK + static int x = 0; #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_EnumFontFamiliesEx called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_GetMapMode called\n"); #endif @@ -406,6 +442,8 @@ MOZCE_SHUNT_API int mozce_GetMapMode(HDC inDC) MOZCE_SHUNT_API BOOL mozce_GetIconInfo(HICON inIcon, PICONINFO outIconinfo) { + MOZCE_PRECHECK + #ifdef DEBUG mozce_printf("-- mozce_GetIconInfo called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("-- mozce_LPtoDP called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_RegCreateKey called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_WaitMessage called\n"); #endif @@ -471,6 +515,8 @@ MOZCE_SHUNT_API BOOL mozce_WaitMessage(VOID) MOZCE_SHUNT_API BOOL mozce_FlashWindow(HWND inWnd, BOOL inInvert) { + MOZCE_PRECHECK + #ifdef DEBUG mozce_printf("-- mozce_FlashWindow called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_EnumChildWindows called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_EnumThreadWindows called\n"); #endif @@ -616,6 +666,8 @@ MOZCE_SHUNT_API BOOL mozce_EnumThreadWindows(DWORD inThreadID, WNDENUMPROC inFun MOZCE_SHUNT_API BOOL mozce_IsIconic(HWND inWnd) { + MOZCE_PRECHECK + #ifdef DEBUG mozce_printf("-- mozce_IsIconic called\n"); #endif @@ -630,6 +682,8 @@ MOZCE_SHUNT_API BOOL mozce_IsIconic(HWND inWnd) MOZCE_SHUNT_API BOOL mozce_OpenIcon(HWND inWnd) { + MOZCE_PRECHECK + #ifdef DEBUG mozce_printf("-- mozce_OpenIcon called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("-- mozce_SetWindowsHookEx called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("-- mozce_UnhookWindowsHookEx called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("-- mozce_CallNextHookEx called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("-- mozce_InvertRgn called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_GetScrollPos called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_GetScrollRange called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_CoLockObjectExternal called\n"); #endif @@ -771,6 +839,8 @@ MOZCE_SHUNT_API HRESULT mozce_CoLockObjectExternal(IUnknown* inUnk, BOOL inLock, MOZCE_SHUNT_API HRESULT mozce_OleSetClipboard(IDataObject* inDataObj) { + MOZCE_PRECHECK + #ifdef DEBUG mozce_printf("-- mozce_OleSetClipboard called\n"); #endif @@ -785,6 +855,8 @@ MOZCE_SHUNT_API HRESULT mozce_OleSetClipboard(IDataObject* inDataObj) MOZCE_SHUNT_API HRESULT mozce_OleGetClipboard(IDataObject** outDataObj) { + MOZCE_PRECHECK + #ifdef DEBUG mozce_printf("-- mozce_OleGetClipboard called\n"); #endif @@ -803,6 +875,8 @@ MOZCE_SHUNT_API HRESULT mozce_OleGetClipboard(IDataObject** outDataObj) MOZCE_SHUNT_API HRESULT mozce_OleFlushClipboard(void) { + MOZCE_PRECHECK + #ifdef DEBUG mozce_printf("-- mozce_OleFlushClipboard called\n"); #endif @@ -817,6 +891,8 @@ MOZCE_SHUNT_API HRESULT mozce_OleFlushClipboard(void) MOZCE_SHUNT_API HRESULT mozce_OleQueryLinkFromData(IDataObject* inSrcDataObject) { + MOZCE_PRECHECK + #ifdef DEBUG mozce_printf("-- mozce_OleQueryLinkFromData called\n"); #endif @@ -831,6 +907,8 @@ MOZCE_SHUNT_API HRESULT mozce_OleQueryLinkFromData(IDataObject* inSrcDataObject) //LPITEMIDLIST MOZCE_SHUNT_API void* mozce_SHBrowseForFolder(void* /*LPBROWSEINFOS*/ inBI) { + MOZCE_PRECHECK + #ifdef DEBUG mozce_printf("-- mozce_SHBrowseForFolder called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("-- mozce_SetMenu called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("-- mozce_GetUserName called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("-- mozce_GetShortPathName called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("-- mozce_GetEnvironmentVariable called\n"); #endif @@ -893,6 +979,8 @@ MOZCE_SHUNT_API DWORD mozce_GetEnvironmentVariable(LPCSTR lpName, LPCSTR lpBuffe MOZCE_SHUNT_API void mozce_GetSystemTimeAsFileTime(LPFILETIME lpSystemTimeAsFileTime) { + MOZCE_PRECHECK + #ifdef DEBUG mozce_printf("mozce_GetSystemTimeAsFileTime called\n"); #endif @@ -926,6 +1014,8 @@ struct lconv s_locale_conv = MOZCE_SHUNT_API struct lconv * mozce_localeconv(void) { + MOZCE_PRECHECK + #ifdef DEBUG mozce_printf("mozce_localeconv called\n"); #endif @@ -934,6 +1024,8 @@ MOZCE_SHUNT_API struct lconv * mozce_localeconv(void) MOZCE_SHUNT_API DWORD mozce_GetCurrentThreadId(void) { + MOZCE_PRECHECK + #ifdef DEBUG mozce_printf("mozce_GetCurrentThreadId called\n"); #endif @@ -942,6 +1034,8 @@ MOZCE_SHUNT_API DWORD mozce_GetCurrentThreadId(void) MOZCE_SHUNT_API DWORD mozce_TlsAlloc(void) { + MOZCE_PRECHECK + #ifdef DEBUG mozce_printf("mozce_TlsAlloc called\n"); #endif @@ -950,6 +1044,8 @@ MOZCE_SHUNT_API DWORD mozce_TlsAlloc(void) MOZCE_SHUNT_API BOOL mozce_TlsFree(DWORD dwTlsIndex) { + MOZCE_PRECHECK + #ifdef DEBUG mozce_printf("mozce_TlsFree called\n"); #endif @@ -958,6 +1054,8 @@ MOZCE_SHUNT_API BOOL mozce_TlsFree(DWORD dwTlsIndex) MOZCE_SHUNT_API HANDLE mozce_GetCurrentProcess(void) { + MOZCE_PRECHECK + #ifdef DEBUG mozce_printf("mozce_GetCurrentProcess called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_MsgWaitForMultipleObjects called\n"); #endif @@ -1012,6 +1112,8 @@ MOZCE_SHUNT_API DWORD mozce_MsgWaitForMultipleObjects(DWORD nCount, const HANDLE MOZCE_SHUNT_API LONG mozce_GetMessageTime(void) { + MOZCE_PRECHECK + #ifdef DEBUG mozce_printf("mozce_GetMessageTime called\n"); #endif @@ -1021,6 +1123,8 @@ MOZCE_SHUNT_API LONG mozce_GetMessageTime(void) MOZCE_SHUNT_API UINT mozce_GetACP(void) { + MOZCE_PRECHECK + #ifdef DEBUG mozce_printf("mozce_GetACP called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_ExpandEnvironmentStrings called\n"); #endif @@ -1041,6 +1147,8 @@ MOZCE_SHUNT_API DWORD mozce_ExpandEnvironmentStrings(LPCTSTR lpSrc, LPTSTR lpDst MOZCE_SHUNT_API BOOL mozce_GdiFlush(void) { + MOZCE_PRECHECK + return TRUE; } diff --git a/build/wince/shunt/win32A.cpp b/build/wince/shunt/win32A.cpp index 2cf56cd8b99..38a1ad8d1d7 100755 --- a/build/wince/shunt/win32A.cpp +++ b/build/wince/shunt/win32A.cpp @@ -55,6 +55,8 @@ extern "C" { MOZCE_SHUNT_API DWORD mozce_GetModuleFileNameA(HMODULE hModule, LPSTR lpFilename, DWORD nSize) { + MOZCE_PRECHECK + #ifdef DEBUG mozce_printf("mozce_GetModuleFileNameA called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_CreateDirectoryA called (%s)\n", lpPathName); #endif @@ -90,6 +94,8 @@ MOZCE_SHUNT_API BOOL mozce_CreateDirectoryA(LPCSTR lpPathName, LPSECURITY_ATTRIB MOZCE_SHUNT_API BOOL mozce_RemoveDirectoryA(LPCSTR lpPathName) { + MOZCE_PRECHECK + #ifdef DEBUG mozce_printf("mozce_RemoveDirectoryA called\n"); #endif @@ -106,6 +112,8 @@ MOZCE_SHUNT_API BOOL mozce_RemoveDirectoryA(LPCSTR lpPathName) MOZCE_SHUNT_API BOOL mozce_DeleteFileA(LPCSTR lpFileName) { + MOZCE_PRECHECK + #ifdef DEBUG mozce_printf("mozce_DeleteFile called\n"); #endif @@ -122,6 +130,8 @@ MOZCE_SHUNT_API BOOL mozce_DeleteFileA(LPCSTR lpFileName) MOZCE_SHUNT_API BOOL mozce_MoveFileA(LPCSTR lpExistingFileName, LPCSTR lpNewFileName) { + MOZCE_PRECHECK + #ifdef DEBUG mozce_printf("mozce_MoveFileA called (%s)\n", lpExistingFileName); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_CopyFileA called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_CreateFileA called (%s)\n", lpFileName); #endif @@ -181,6 +195,8 @@ MOZCE_SHUNT_API HANDLE mozce_CreateFileA(LPCSTR lpFileName, DWORD dwDesiredAcces MOZCE_SHUNT_API DWORD mozce_GetFileAttributesA(LPCSTR lpFileName) { + MOZCE_PRECHECK + #ifdef DEBUG mozce_printf("mozce_GetFileAttributesA called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_CreateProcessA called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_GetLocaleInfoA called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_GetWindowsDirectoryA called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_GetSystemDirectoryA called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_RegOpenKeyExA called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_RegQueryValueExA called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_MessageBoxA called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_OpenSemaphoreA called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_CreateDCA called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_CreateDCA2 called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_GetTextExtentExPointA called (%d)\n", inLen); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_ExtTextOutA called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("-- mozce_GetGlyphOutlineA called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("-- mozce_GetCurrentDirectoryA called\n"); #endif @@ -599,6 +643,8 @@ MOZCE_SHUNT_API DWORD mozce_GetCurrentDirectoryA(DWORD inBufferLength, LPSTR out MOZCE_SHUNT_API BOOL mozce_SetCurrentDirectoryA(LPCSTR inPathName) { + MOZCE_PRECHECK + #ifdef DEBUG mozce_printf("-- mozce_SetCurrentDirectoryA called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_RegEnumKeyExA called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_GetFileVersionInfoA called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_GetFileVersionInfoSizeA called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_VerQueryValueA called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_LoadStringA called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_OutputDebugStringA called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_DrawTextA called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_SetDlgItemTextA called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_LoadImageA called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_FindWindowA called\n"); #endif @@ -840,6 +906,8 @@ MOZCE_SHUNT_API HWND mozce_FindWindowA(LPCSTR inClass, LPCSTR inWindow) MOZCE_SHUNT_API UINT mozce_RegisterClipboardFormatA(LPCSTR inFormat) { + MOZCE_PRECHECK + #ifdef DEBUG mozce_printf("mozce_RegisterClipboardFormatA called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("-- mozce_GetEnvironmentVariableA called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("-- mozce_SetEnvironmentVariableA called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_SendMessageA called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_GlobalAddAtomA called (%s)\n", lpString); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_PostMessageA called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_GetVersionExA called\n"); #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_PRECHECK + #ifdef LOUD_PEEKMESSAGE #ifdef DEBUG 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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_DefWindowProcA called\n"); #endif @@ -1021,7 +1105,7 @@ MOZCE_SHUNT_API LRESULT mozce_DefWindowProcA(HWND hWnd, UINT Msg, WPARAM wParam, MOZCE_SHUNT_API HWND mozce_CreateWindowExA(DWORD dwExStyle, - LPCSTR lpClassName, + LPCSTR lpClassName, LPCSTR lpWindowName, DWORD dwStyle, int x, int y, @@ -1075,6 +1159,8 @@ MOZCE_SHUNT_API HWND mozce_CreateWindowExA(DWORD dwExStyle, MOZCE_SHUNT_API ATOM mozce_RegisterClassA(CONST WNDCLASSA *lpwc) { + MOZCE_PRECHECK + #ifdef DEBUG mozce_printf("mozce_RegisterClassA called (%s)\n", lpwc->lpszClassName); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_UnregisterClassA called\n"); #endif @@ -1101,6 +1189,8 @@ MOZCE_SHUNT_API BOOL mozce_UnregisterClassA(LPCSTR lpClassName, HINSTANCE hInsta } MOZCE_SHUNT_API UINT mozce_RegisterWindowMessageA(LPCSTR s) { + MOZCE_PRECHECK + #ifdef DEBUG mozce_printf("mozce_RegisterWindowMessageA called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_GetClassInfoA called\n"); #endif @@ -1127,6 +1219,8 @@ MOZCE_SHUNT_API BOOL mozce_GetClassInfoA(HINSTANCE hInstance, LPCSTR lpClassName MOZCE_SHUNT_API HINSTANCE mozce_LoadLibraryA(LPCSTR lpLibFileName) { + MOZCE_PRECHECK + #ifdef DEBUG mozce_printf("mozce_LoadLibraryA called (%s)\n", lpLibFileName); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_GetObjectA called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_GetProcAddressA called (%s)\n", name); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_LoadCursorA called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_GetClassNameA called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("-- mozce_GetOpenFileNameA called\n"); #endif @@ -1247,6 +1351,8 @@ MOZCE_SHUNT_API BOOL mozce_GetOpenFileNameA(LPOPENFILENAMEA lpofna) MOZCE_SHUNT_API BOOL mozce_GetSaveFileNameA(LPOPENFILENAMEA lpofna) { + MOZCE_PRECHECK + #ifdef DEBUG mozce_printf("-- mozce_GetSaveFileNameA called\n"); #endif @@ -1258,6 +1364,8 @@ MOZCE_SHUNT_API BOOL mozce_GetSaveFileNameA(LPOPENFILENAMEA lpofna) MOZCE_SHUNT_API HMODULE mozce_GetModuleHandleA(const char *lpName) { + MOZCE_PRECHECK + #ifdef DEBUG mozce_printf("mozce_GetModuleHandleA called (%s)\n", lpName); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_LoadIconA called\n"); #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_PRECHECK + HRSRC hr; 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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_GetDlgItemTextA called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_CreateEventA called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_LoadMenuA called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_GetPropA called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_SetPropA called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_RemovePropA called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_FindFirstFileA called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_FindNextFileA called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_CreateFileMappingA called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_FormatMessageA called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_CreateSemaphoreA called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("-- mozce_StartDocA called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_CreateFontIndirectA called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("-- mozce_EnumFontFamilies called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_GetTextFaceA called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_GetTextMetricsA called\n"); #endif diff --git a/build/wince/shunt/win32W.cpp b/build/wince/shunt/win32W.cpp index 4a4789e1520..5990673e12e 100755 --- a/build/wince/shunt/win32W.cpp +++ b/build/wince/shunt/win32W.cpp @@ -53,6 +53,8 @@ extern "C" { MOZCE_SHUNT_API UINT mozce_GetWindowsDirectoryW(LPWSTR inBuffer, UINT inSize) { + MOZCE_PRECHECK + #ifdef DEBUG mozce_printf("mozce_GetWindowsDirectoryW called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_GetSystemDirectoryW called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_OpenSemaphoreW called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_GetGlyphOutlineW called\n"); #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_PRECHECK + #ifdef DEBUG mozce_printf("mozce_GetCurrentDirectoryW called\n"); #endif @@ -158,6 +168,8 @@ MOZCE_SHUNT_API DWORD mozce_GetCurrentDirectoryW(DWORD inBufferLength, LPTSTR ou MOZCE_SHUNT_API BOOL mozce_SetCurrentDirectoryW(LPCTSTR inPathName) { + MOZCE_PRECHECK + #ifdef DEBUG mozce_printf("mozce_SetCurrentDirectoryW called\n"); #endif