diff --git a/mozilla/build/wince/shunt/a2w.cpp b/mozilla/build/wince/shunt/a2w.cpp index c6c699f0d63..693d1cf901b 100755 --- a/mozilla/build/wince/shunt/a2w.cpp +++ b/mozilla/build/wince/shunt/a2w.cpp @@ -40,7 +40,7 @@ #include "mozce_internal.h" -int a2w_buffer(LPCSTR inACPString, int inACPChars, LPWSTR outWideString, int inWideChars) +int a2w_buffer(const char* inACPString, int inACPChars, unsigned short* outWideString, int inWideChars) { int retval = 0; @@ -74,7 +74,7 @@ int a2w_buffer(LPCSTR inACPString, int inACPChars, LPWSTR outWideString, int inW } -LPWSTR a2w_malloc(LPCSTR inACPString, int inACPChars, int* outWideChars) +unsigned short* a2w_malloc(const char* inACPString, int inACPChars, int* outWideChars) { LPWSTR retval = NULL; diff --git a/mozilla/build/wince/shunt/build/shunt.vcb b/mozilla/build/wince/shunt/build/shunt.vcb index 1f51590fe92..bec93f2e60d 100755 Binary files a/mozilla/build/wince/shunt/build/shunt.vcb and b/mozilla/build/wince/shunt/build/shunt.vcb differ diff --git a/mozilla/build/wince/shunt/build/shunt.vcl b/mozilla/build/wince/shunt/build/shunt.vcl index a34cbc2d52f..229f260f003 100755 --- a/mozilla/build/wince/shunt/build/shunt.vcl +++ b/mozilla/build/wince/shunt/build/shunt.vcl @@ -3,17 +3,6 @@
diff --git a/mozilla/build/wince/shunt/build/shunt.vco b/mozilla/build/wince/shunt/build/shunt.vco index ed3cf269958..588d3cc411c 100755 Binary files a/mozilla/build/wince/shunt/build/shunt.vco and b/mozilla/build/wince/shunt/build/shunt.vco differ diff --git a/mozilla/build/wince/shunt/build/shunt.vcp b/mozilla/build/wince/shunt/build/shunt.vcp index 4e6fb52b355..4a6f6378ee2 100755 --- a/mozilla/build/wince/shunt/build/shunt.vcp +++ b/mozilla/build/wince/shunt/build/shunt.vcp @@ -2,10 +2,9 @@ # Microsoft eMbedded Visual Tools Generated Build File, Format Version 6.02 # ** DO NOT EDIT ** -# TARGTYPE "Win32 (WCE emulator) Dynamic-Link Library" 0xa602 # TARGTYPE "Win32 (WCE ARMV4) Dynamic-Link Library" 0xa302 -CFG=shunt - Win32 (WCE emulator) Release +CFG=shunt - Win32 (WCE ARMV4) Release !MESSAGE This is not a valid makefile. To build this project using NMAKE, !MESSAGE use the Export Makefile command and run !MESSAGE @@ -14,15 +13,12 @@ CFG=shunt - Win32 (WCE emulator) Release !MESSAGE You can specify a configuration when running NMAKE !MESSAGE by defining the macro CFG on the command line. For example: !MESSAGE -!MESSAGE NMAKE /f "shunt.vcn" CFG="shunt - Win32 (WCE emulator) Release" +!MESSAGE NMAKE /f "shunt.vcn" CFG="shunt - Win32 (WCE ARMV4) Release" !MESSAGE !MESSAGE Possible choices for configuration are: !MESSAGE -!MESSAGE "shunt - Win32 (WCE emulator) Release" (based on "Win32 (WCE emulator) Dynamic-Link Library") -!MESSAGE "shunt - Win32 (WCE emulator) Debug" (based on "Win32 (WCE emulator) Dynamic-Link Library") !MESSAGE "shunt - Win32 (WCE ARMV4) Release" (based on "Win32 (WCE ARMV4) Dynamic-Link Library") !MESSAGE "shunt - Win32 (WCE ARMV4) Debug" (based on "Win32 (WCE ARMV4) Dynamic-Link Library") -!MESSAGE "shunt - Win32 (WCE ARMV4) SmartPhone" (based on "Win32 (WCE ARMV4) Dynamic-Link Library") !MESSAGE # Begin Project @@ -30,78 +26,11 @@ CFG=shunt - Win32 (WCE emulator) Release # PROP Scc_ProjName "" # PROP Scc_LocalPath "" # PROP ATL_Project 2 - -!IF "$(CFG)" == "shunt - Win32 (WCE emulator) Release" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 0 -# PROP BASE Output_Dir "emulatorRel" -# PROP BASE Intermediate_Dir "emulatorRel" -# PROP BASE CPU_ID "{32E52003-403E-442D-BE48-DE10F8C6131D}" -# PROP BASE Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}" -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 0 -# PROP Output_Dir "emulatorRel" -# PROP Intermediate_Dir "emulatorRel" -# PROP CPU_ID "{32E52003-403E-442D-BE48-DE10F8C6131D}" -# PROP Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}" -# PROP Ignore_Export_Lib 0 -# PROP Target_Dir "" -RSC=rc.exe -# ADD BASE RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "NDEBUG" /d "$(CePlatform)" /d "_X86_" /d "x86" /d "_i386_" /r -# ADD RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "NDEBUG" /d "$(CePlatform)" /d "_X86_" /d "x86" /d "_i386_" /r -CPP=cl.exe -# ADD BASE CPP /nologo /W3 /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "_i386_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "_X86_" /D "x86" /D "NDEBUG" /D "SHUNT_EXPORTS" /Yu"stdafx.h" /Gs8192 /GF /O2 /c -# ADD CPP /nologo /W3 /I "../include" /D "_i386_" /D "_X86_" /D "x86" /D "NDEBUG" /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "SHUNT_EXPORTS" /D "MOZCE_SHUNT_EXPORTS" /Gs8192 /GF /O2 /c -# SUBTRACT CPP /Gf /Gy /YX /Yc /Yu +CPP=clarm.exe MTL=midl.exe -# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32 -# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32 -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -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 LINK32 $(CEx86Corelibc) commctrl.lib coredll.lib uuid.lib /nologo /base:"0x00100000" /stack:0x5000000 /entry:"_DllMainCRTStartup" /dll /pdb:none /nodefaultlib:"OLDNAMES.lib" /nodefaultlib:$(CENoDefaultLib) /subsystem:$(CESubsystem) /MACHINE:IX86 -# SUBTRACT LINK32 /map - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE emulator) Debug" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 1 -# PROP BASE Output_Dir "emulatorDbg" -# PROP BASE Intermediate_Dir "emulatorDbg" -# PROP BASE CPU_ID "{32E52003-403E-442D-BE48-DE10F8C6131D}" -# PROP BASE Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}" -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 1 -# PROP Output_Dir "emulatorDbg" -# PROP Intermediate_Dir "emulatorDbg" -# PROP CPU_ID "{32E52003-403E-442D-BE48-DE10F8C6131D}" -# PROP Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}" -# PROP Ignore_Export_Lib 0 -# PROP Target_Dir "" RSC=rc.exe -# ADD BASE RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "DEBUG" /d "$(CePlatform)" /d "_X86_" /d "x86" /d "_i386_" /r -# ADD RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "DEBUG" /d "$(CePlatform)" /d "_X86_" /d "x86" /d "_i386_" /r -CPP=cl.exe -# ADD BASE CPP /nologo /W3 /Zi /Od /D "DEBUG" /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "_i386_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "_X86_" /D "x86" /D "SHUNT_EXPORTS" /Yu"stdafx.h" /Gs8192 /GF /c -# ADD CPP /nologo /W3 /Zi /Od /I "../include" /D "DEBUG" /D "_i386_" /D "_X86_" /D "x86" /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "SHUNT_EXPORTS" /D "MOZCE_SHUNT_EXPORTS" /Gs8192 /GF /c -# SUBTRACT CPP /Gf /Gy /YX /Yc /Yu -MTL=midl.exe -# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32 -# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32 -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -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 LINK32 $(CEx86Corelibc) commctrl.lib coredll.lib uuid.lib /nologo /base:"0x00100000" /stack:0x5000000 /entry:"_DllMainCRTStartup" /dll /pdb:none /debug /nodefaultlib:"OLDNAMES.lib" /nodefaultlib:$(CENoDefaultLib) /subsystem:$(CESubsystem) /MACHINE:IX86 -# SUBTRACT LINK32 /map -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) Release" +!IF "$(CFG)" == "shunt - Win32 (WCE ARMV4) Release" # PROP BASE Use_MFC 0 # PROP BASE Use_Debug_Libraries 0 @@ -118,14 +47,11 @@ LINK32=link.exe # PROP Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}" # PROP Ignore_Export_Lib 0 # PROP Target_Dir "" -RSC=rc.exe # ADD BASE RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "NDEBUG" /d "UNICODE" /d "_UNICODE" /d "$(CePlatform)" /d "ARM" /d "_ARM_" /d "ARMV4" /r # ADD RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "NDEBUG" /d "UNICODE" /d "_UNICODE" /d "$(CePlatform)" /d "ARM" /d "_ARM_" /d "ARMV4" /r -CPP=clarm.exe # ADD BASE CPP /nologo /W3 /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "ARM" /D "_ARM_" /D "ARMV4" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "NDEBUG" /D "SHUNT_EXPORTS" /Yu"stdafx.h" /O2 /M$(CECrtMT) /c -# ADD CPP /nologo /W3 /I "../include" /D "ARM" /D "_ARM_" /D "ARMV4" /D "NDEBUG" /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "SHUNT_EXPORTS" /D "MOZCE_SHUNT_EXPORTS" /FR /O2 /M$(CECrtMT) /c -# SUBTRACT CPP /Gf /Gy /YX /Yc /Yu -MTL=midl.exe +# ADD CPP /nologo /W3 /Oxt /I "../include" /D "ARM" /D "_ARM_" /D "ARMV4" /D "NDEBUG" /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "SHUNT_EXPORTS" /D "MOZCE_SHUNT_EXPORTS" /FR /M$(CECrtMT) /c +# SUBTRACT CPP /YX /Yc /Yu # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32 # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32 BSC32=bscmake.exe @@ -133,8 +59,7 @@ BSC32=bscmake.exe # ADD BSC32 /nologo 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 LINK32 commctrl.lib coredll.lib uuid.lib /nologo /base:"0x00100000" /stack:0x5000000 /entry:"_DllMainCRTStartup" /dll /pdb:none /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /align:"4096" /MACHINE:ARM -# SUBTRACT LINK32 /map +# ADD LINK32 commctrl.lib coredll.lib ole32.lib uuid.lib /nologo /base:"0x00100000" /stack:0x10000,0x1000 /entry:"_DllMainCRTStartup" /dll /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /align:"4096" /MACHINE:ARM !ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) Debug" @@ -153,14 +78,11 @@ LINK32=link.exe # PROP Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}" # PROP Ignore_Export_Lib 0 # PROP Target_Dir "" -RSC=rc.exe # ADD BASE RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "DEBUG" /d "UNICODE" /d "_UNICODE" /d "$(CePlatform)" /d "ARM" /d "_ARM_" /d "ARMV4" /r # ADD RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "DEBUG" /d "UNICODE" /d "_UNICODE" /d "$(CePlatform)" /d "ARM" /d "_ARM_" /d "ARMV4" /r -CPP=clarm.exe # ADD BASE CPP /nologo /W3 /Zi /Od /D "DEBUG" /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "ARM" /D "_ARM_" /D "ARMV4" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "SHUNT_EXPORTS" /Yu"stdafx.h" /M$(CECrtMTDebug) /c # ADD CPP /nologo /W3 /Zi /Od /I "../include" /D "DEBUG" /D "ARM" /D "_ARM_" /D "ARMV4" /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "SHUNT_EXPORTS" /D "MOZCE_SHUNT_EXPORTS" /M$(CECrtMTDebug) /c # SUBTRACT CPP /Gf /Gy /YX /Yc /Yu -MTL=midl.exe # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32 # ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32 BSC32=bscmake.exe @@ -168,892 +90,172 @@ BSC32=bscmake.exe # ADD BSC32 /nologo 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 LINK32 commctrl.lib coredll.lib uuid.lib /nologo /base:"0x00100000" /stack:0x5000000 /entry:"_DllMainCRTStartup" /dll /pdb:none /debug /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /align:"4096" /MACHINE:ARM -# SUBTRACT LINK32 /map - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) SmartPhone" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 0 -# PROP BASE Output_Dir "ARMV4SmartPhone" -# PROP BASE Intermediate_Dir "ARMV4SmartPhone" -# PROP BASE CPU_ID "{ECBEA43D-CD7B-4852-AD55-D4227B5D624B}" -# PROP BASE Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}" -# PROP BASE Ignore_Export_Lib 0 -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 0 -# PROP Output_Dir "ARMV4SmartPhone" -# PROP Intermediate_Dir "ARMV4SmartPhone" -# PROP CPU_ID "{ECBEA43D-CD7B-4852-AD55-D4227B5D624B}" -# PROP Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}" -# PROP Ignore_Export_Lib 0 -# PROP Target_Dir "" -RSC=rc.exe -# ADD BASE RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "NDEBUG" /d "UNICODE" /d "_UNICODE" /d "$(CePlatform)" /d "ARM" /d "_ARM_" /d "ARMV4" /r -# ADD RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "NDEBUG" /d "UNICODE" /d "_UNICODE" /d "$(CePlatform)" /d "ARM" /d "_ARM_" /d "ARMV4" /r -CPP=clarm.exe -# ADD BASE CPP /nologo /W3 /D "ARM" /D "_ARM_" /D "ARMV4" /D "NDEBUG" /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "SHUNT_EXPORTS" /D "MOZCE_SHUNT_EXPORTS" /FR /O2 /M$(CECrtMT) /c -# SUBTRACT BASE CPP /Gf /Gy /YX /Yc /Yu -# ADD CPP /nologo /W3 /I "../include" /D "ARM" /D "_ARM_" /D "ARMV4" /D "NDEBUG" /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "SHUNT_EXPORTS" /D "MOZCE_SHUNT_EXPORTS" /FR /O2 /M$(CECrtMT) /c -# SUBTRACT CPP /Gf /Gy /YX /Yc /Yu -MTL=midl.exe -# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32 -# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32 -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -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 -# SUBTRACT BASE LINK32 /map -# ADD LINK32 commctrl.lib coredll.lib uuid.lib /nologo /base:"0x00100000" /stack:0x5000000 /entry:"_DllMainCRTStartup" /dll /pdb:none /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /align:"4096" /MACHINE:ARM -# SUBTRACT LINK32 /map +# ADD LINK32 commctrl.lib coredll.lib ole32.lib uuid.lib /nologo /base:"0x00100000" /stack:0x10000,0x1000 /entry:"_DllMainCRTStartup" /dll /debug /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /align:"4096" /MACHINE:ARM !ENDIF # Begin Target -# Name "shunt - Win32 (WCE emulator) Release" -# Name "shunt - Win32 (WCE emulator) Debug" # Name "shunt - Win32 (WCE ARMV4) Release" # Name "shunt - Win32 (WCE ARMV4) Debug" -# Name "shunt - Win32 (WCE ARMV4) SmartPhone" # Begin Group "Source Files" # PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" # Begin Source File SOURCE=..\a2w.cpp - -!IF "$(CFG)" == "shunt - Win32 (WCE emulator) Release" - DEP_CPP_A2W_C=\ "..\include\mozce_defs.h"\ "..\mozce_internal.h"\ - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE emulator) Debug" - -DEP_CPP_A2W_C=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) Release" - -DEP_CPP_A2W_C=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) Debug" - -DEP_CPP_A2W_C=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) SmartPhone" - -DEP_CPP_A2W_C=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ENDIF - # End Source File # Begin Source File SOURCE=..\assert.cpp - -!IF "$(CFG)" == "shunt - Win32 (WCE emulator) Release" - DEP_CPP_ASSER=\ "..\include\mozce_defs.h"\ "..\mozce_internal.h"\ - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE emulator) Debug" - -DEP_CPP_ASSER=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) Release" - -DEP_CPP_ASSER=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) Debug" - -DEP_CPP_ASSER=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) SmartPhone" - -DEP_CPP_ASSER=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ENDIF - # End Source File # Begin Source File SOURCE=..\clipboard.cpp - -!IF "$(CFG)" == "shunt - Win32 (WCE emulator) Release" - DEP_CPP_CLIPB=\ "..\include\mozce_defs.h"\ "..\mozce_internal.h"\ - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE emulator) Debug" - -DEP_CPP_CLIPB=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) Release" - -DEP_CPP_CLIPB=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) Debug" - -DEP_CPP_CLIPB=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) SmartPhone" - -DEP_CPP_CLIPB=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ENDIF - # End Source File # Begin Source File SOURCE=..\direct.cpp - -!IF "$(CFG)" == "shunt - Win32 (WCE emulator) Release" - DEP_CPP_DIREC=\ "..\include\mozce_defs.h"\ "..\mozce_internal.h"\ - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE emulator) Debug" - -DEP_CPP_DIREC=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) Release" - -DEP_CPP_DIREC=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) Debug" - -DEP_CPP_DIREC=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) SmartPhone" - -DEP_CPP_DIREC=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ENDIF - # End Source File # Begin Source File SOURCE=..\errno.cpp - -!IF "$(CFG)" == "shunt - Win32 (WCE emulator) Release" - DEP_CPP_ERRNO=\ "..\include\mozce_defs.h"\ "..\mozce_internal.h"\ - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE emulator) Debug" - -DEP_CPP_ERRNO=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) Release" - -DEP_CPP_ERRNO=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) Debug" - -DEP_CPP_ERRNO=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) SmartPhone" - -DEP_CPP_ERRNO=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ENDIF - # End Source File # Begin Source File SOURCE=..\io.cpp - -!IF "$(CFG)" == "shunt - Win32 (WCE emulator) Release" - DEP_CPP_IO_CP=\ "..\include\mozce_defs.h"\ "..\mozce_internal.h"\ - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE emulator) Debug" - -DEP_CPP_IO_CP=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) Release" - -DEP_CPP_IO_CP=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) Debug" - -DEP_CPP_IO_CP=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) SmartPhone" - -DEP_CPP_IO_CP=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ENDIF - # End Source File # Begin Source File SOURCE=..\mbstring.cpp - -!IF "$(CFG)" == "shunt - Win32 (WCE emulator) Release" - DEP_CPP_MBSTR=\ "..\include\mozce_defs.h"\ "..\mozce_internal.h"\ - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE emulator) Debug" - -DEP_CPP_MBSTR=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) Release" - -DEP_CPP_MBSTR=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) Debug" - -DEP_CPP_MBSTR=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) SmartPhone" - -DEP_CPP_MBSTR=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ENDIF - # End Source File # Begin Source File SOURCE=..\nclog.cpp - -!IF "$(CFG)" == "shunt - Win32 (WCE emulator) Release" - DEP_CPP_NCLOG=\ "..\include\mozce_defs.h"\ "..\mozce_internal.h"\ - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE emulator) Debug" - -DEP_CPP_NCLOG=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) Release" - -DEP_CPP_NCLOG=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) Debug" - -DEP_CPP_NCLOG=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) SmartPhone" - -DEP_CPP_NCLOG=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ENDIF - # End Source File # Begin Source File SOURCE=..\process.cpp - -!IF "$(CFG)" == "shunt - Win32 (WCE emulator) Release" - -DEP_CPP_PROCE=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - -NODEP_CPP_PROCE=\ - ".\funcs.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE emulator) Debug" - -DEP_CPP_PROCE=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - -NODEP_CPP_PROCE=\ - ".\funcs.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) Release" - -DEP_CPP_PROCE=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - -NODEP_CPP_PROCE=\ - ".\funcs.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) Debug" - DEP_CPP_PROCE=\ "..\include\mozce_defs.h"\ "..\mozce_internal.h"\ {$(INCLUDE)}"kfuncs.h"\ - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) SmartPhone" - -DEP_CPP_PROCE=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - -NODEP_CPP_PROCE=\ - ".\funcs.h"\ - - -!ENDIF - # End Source File # Begin Source File SOURCE=..\signal.cpp - -!IF "$(CFG)" == "shunt - Win32 (WCE emulator) Release" - DEP_CPP_SIGNA=\ "..\include\mozce_defs.h"\ "..\mozce_internal.h"\ - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE emulator) Debug" - -DEP_CPP_SIGNA=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) Release" - -DEP_CPP_SIGNA=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) Debug" - -DEP_CPP_SIGNA=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) SmartPhone" - -DEP_CPP_SIGNA=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ENDIF - # End Source File # Begin Source File SOURCE=..\stat.cpp - -!IF "$(CFG)" == "shunt - Win32 (WCE emulator) Release" - DEP_CPP_STAT_=\ "..\include\mozce_defs.h"\ "..\include\time_conversions.h"\ "..\mozce_internal.h"\ - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE emulator) Debug" - -DEP_CPP_STAT_=\ - "..\include\mozce_defs.h"\ - "..\include\time_conversions.h"\ - "..\mozce_internal.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) Release" - -DEP_CPP_STAT_=\ - "..\include\mozce_defs.h"\ - "..\include\time_conversions.h"\ - "..\mozce_internal.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) Debug" - -DEP_CPP_STAT_=\ - "..\include\mozce_defs.h"\ - "..\include\time_conversions.h"\ - "..\mozce_internal.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) SmartPhone" - -DEP_CPP_STAT_=\ - "..\include\mozce_defs.h"\ - "..\include\time_conversions.h"\ - "..\mozce_internal.h"\ - - -!ENDIF - # End Source File # Begin Source File SOURCE=..\stdio.cpp - -!IF "$(CFG)" == "shunt - Win32 (WCE emulator) Release" - DEP_CPP_STDIO=\ "..\include\mozce_defs.h"\ "..\mozce_internal.h"\ - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE emulator) Debug" - -DEP_CPP_STDIO=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) Release" - -DEP_CPP_STDIO=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) Debug" - -DEP_CPP_STDIO=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) SmartPhone" - -DEP_CPP_STDIO=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ENDIF - # End Source File # Begin Source File SOURCE=..\stdlib.cpp - -!IF "$(CFG)" == "shunt - Win32 (WCE emulator) Release" - DEP_CPP_STDLI=\ "..\include\mozce_defs.h"\ "..\mozce_internal.h"\ - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE emulator) Debug" - -DEP_CPP_STDLI=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) Release" - -DEP_CPP_STDLI=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) Debug" - -DEP_CPP_STDLI=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) SmartPhone" - -DEP_CPP_STDLI=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ENDIF - # End Source File # Begin Source File SOURCE=..\string.cpp - -!IF "$(CFG)" == "shunt - Win32 (WCE emulator) Release" - DEP_CPP_STRIN=\ "..\include\mozce_defs.h"\ "..\mozce_internal.h"\ - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE emulator) Debug" - -DEP_CPP_STRIN=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) Release" - -DEP_CPP_STRIN=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) Debug" - -DEP_CPP_STRIN=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) SmartPhone" - -DEP_CPP_STRIN=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ENDIF - # End Source File # Begin Source File SOURCE=..\time.cpp - -!IF "$(CFG)" == "shunt - Win32 (WCE emulator) Release" - DEP_CPP_TIME_=\ "..\include\mozce_defs.h"\ "..\include\time_conversions.h"\ "..\mozce_internal.h"\ - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE emulator) Debug" - -DEP_CPP_TIME_=\ - "..\include\mozce_defs.h"\ - "..\include\time_conversions.h"\ - "..\mozce_internal.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) Release" - -DEP_CPP_TIME_=\ - "..\include\mozce_defs.h"\ - "..\include\time_conversions.h"\ - "..\mozce_internal.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) Debug" - -DEP_CPP_TIME_=\ - "..\include\mozce_defs.h"\ - "..\include\time_conversions.h"\ - "..\mozce_internal.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) SmartPhone" - -DEP_CPP_TIME_=\ - "..\include\mozce_defs.h"\ - "..\include\time_conversions.h"\ - "..\mozce_internal.h"\ - - -!ENDIF - # End Source File # Begin Source File SOURCE=..\w2a.cpp - -!IF "$(CFG)" == "shunt - Win32 (WCE emulator) Release" - DEP_CPP_W2A_C=\ "..\include\mozce_defs.h"\ "..\mozce_internal.h"\ - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE emulator) Debug" - -DEP_CPP_W2A_C=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) Release" - -DEP_CPP_W2A_C=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) Debug" - -DEP_CPP_W2A_C=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) SmartPhone" - -DEP_CPP_W2A_C=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ENDIF - # End Source File # Begin Source File SOURCE=..\win32.cpp - -!IF "$(CFG)" == "shunt - Win32 (WCE emulator) Release" - -DEP_CPP_WIN32=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - -NODEP_CPP_WIN32=\ - ".\funcs.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE emulator) Debug" - -DEP_CPP_WIN32=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - -NODEP_CPP_WIN32=\ - ".\funcs.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) Release" - -DEP_CPP_WIN32=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - -NODEP_CPP_WIN32=\ - ".\funcs.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) Debug" - DEP_CPP_WIN32=\ "..\include\mozce_defs.h"\ "..\mozce_internal.h"\ {$(INCLUDE)}"kfuncs.h"\ - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) SmartPhone" - -DEP_CPP_WIN32=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - -NODEP_CPP_WIN32=\ - ".\funcs.h"\ - - -!ENDIF - # End Source File # Begin Source File SOURCE=..\win32A.cpp - -!IF "$(CFG)" == "shunt - Win32 (WCE emulator) Release" - DEP_CPP_WIN32A=\ "..\include\mozce_defs.h"\ "..\mozce_internal.h"\ - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE emulator) Debug" - -DEP_CPP_WIN32A=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) Release" - -DEP_CPP_WIN32A=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) Debug" - -DEP_CPP_WIN32A=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) SmartPhone" - -DEP_CPP_WIN32A=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ENDIF - # End Source File # Begin Source File SOURCE=..\win32W.cpp - -!IF "$(CFG)" == "shunt - Win32 (WCE emulator) Release" - DEP_CPP_WIN32W=\ "..\include\mozce_defs.h"\ "..\mozce_internal.h"\ - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE emulator) Debug" - -DEP_CPP_WIN32W=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) Release" - -DEP_CPP_WIN32W=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) Debug" - -DEP_CPP_WIN32W=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ELSEIF "$(CFG)" == "shunt - Win32 (WCE ARMV4) SmartPhone" - -DEP_CPP_WIN32W=\ - "..\include\mozce_defs.h"\ - "..\mozce_internal.h"\ - - -!ENDIF - # End Source File # End Group # Begin Group "Header Files" diff --git a/mozilla/build/wince/shunt/include/mozce_defs.h b/mozilla/build/wince/shunt/include/mozce_defs.h index 28dfeaede2c..8f4512f051a 100755 --- a/mozilla/build/wince/shunt/include/mozce_defs.h +++ b/mozilla/build/wince/shunt/include/mozce_defs.h @@ -34,8 +34,18 @@ * * ***** END LICENSE BLOCK ***** */ -#ifndef MOZCE_DEFS -#define MOZCE_DEFS +#ifndef _MOZCE_DEFS +#define _MOZCE_DEFS + +#ifndef MOZCE_STATIC_BUILD +#ifdef MOZCE_SHUNT_EXPORTS +#define MOZCE_SHUNT_API __declspec(dllexport) +#else +#define MOZCE_SHUNT_API __declspec(dllimport) +#endif +#else +#define MOZCE_SHUNT_API +#endif //#define USE_NC_LOGGING 1 @@ -59,53 +69,249 @@ #undef max #endif -#ifdef MOZCE_SHUNT_EXPORTS -#define MOZCE_SHUNT_API __declspec(dllexport) -#else -#define MOZCE_SHUNT_API __declspec(dllimport) -#endif - - ////////////////////////////////////////////////////////// // Various Definations ////////////////////////////////////////////////////////// // for errors.h -#define EINVAL __LINE__ -#define EAGAIN __LINE__ -#define EINTR __LINE__ -#define ENOMEM __LINE__ -#define EBADF __LINE__ -#define EFAULT __LINE__ -#define EACCES __LINE__ -#define EIO __LINE__ -#define ENOTDIR __LINE__ -#define EDEADLOCK __LINE__ -#define EFBIG __LINE__ -#define ENOSPC __LINE__ -#define EPIPE __LINE__ -#define ESPIPE __LINE__ -#define EISDIR __LINE__ -#define ENOENT __LINE__ -#define EROFS __LINE__ -#define EBUSY __LINE__ -#define EXDEV __LINE__ -#define EEXIST __LINE__ -#define ENFILE __LINE__ -#define EDEADLK __LINE__ -#define ERANGE __LINE__ -#define EPERM __LINE__ -#define ENOSYS __LINE__ + +#ifdef EPERM +#undef EPERM +#endif +#define EPERM 1 /* Operation not permitted */ + +#ifdef ENOENT +#undef ENOENT +#endif +#define ENOENT 2 /* No such file or directory */ + +#ifdef ESRCH +#undef ESRCH +#endif +#define ESRCH 3 /* No such process */ + +#ifdef EINTR +#undef EINTR +#endif +#define EINTR 4 /* Interrupted system call */ + +#ifdef EIO +#undef EIO +#endif +#define EIO 5 /* Input/output error */ + +#ifdef ENXIO +#undef ENXIO +#endif +#define ENXIO 6 /* Device not configured */ + +#ifdef E2BIG +#undef E2BIG +#endif +#define E2BIG 7 /* Argument list too long */ + +#ifdef ENOEXEC +#undef ENOEXEC +#endif +#define ENOEXEC 8 /* Exec format error */ + +#ifdef EBADF +#undef EBADF +#endif +#define EBADF 9 /* Bad file descriptor */ + +#ifdef ECHILD +#undef ECHILD +#endif +#define ECHILD 10 /* No child processes */ + +#ifdef EDEADLK +#undef EDEADLK +#endif +#define EDEADLK 11 /* Resource deadlock avoided */ + +#ifdef was +#undef was +#endif + /* 11 was EAGAIN */ + +#ifdef ENOMEM +#undef ENOMEM +#endif +#define ENOMEM 12 /* Cannot allocate memory */ + +#ifdef EACCES +#undef EACCES +#endif +#define EACCES 13 /* Permission denied */ + +#ifdef EFAULT +#undef EFAULT +#endif +#define EFAULT 14 /* Bad address */ + +#ifdef ENOTBLK +#undef ENOTBLK +#endif +#define ENOTBLK 15 /* Block device required */ + +#ifdef EBUSY +#undef EBUSY +#endif +#define EBUSY 16 /* Device busy */ + +#ifdef EEXIST +#undef EEXIST +#endif +#define EEXIST 17 /* File exists */ + +#ifdef EXDEV +#undef EXDEV +#endif +#define EXDEV 18 /* Cross-device link */ + +#ifdef ENODEV +#undef ENODEV +#endif +#define ENODEV 19 /* Operation not supported by device */ + +#ifdef ENOTDIR +#undef ENOTDIR +#endif +#define ENOTDIR 20 /* Not a directory */ + +#ifdef EISDIR +#undef EISDIR +#endif +#define EISDIR 21 /* Is a directory */ + +#ifdef EINVAL +#undef EINVAL +#endif +#define EINVAL 22 /* Invalid argument */ + +#ifdef ENFILE +#undef ENFILE +#endif +#define ENFILE 23 /* Too many open files in system */ + +#ifdef EMFILE +#undef EMFILE +#endif +#define EMFILE 24 /* Too many open files */ + +#ifdef ENOTTY +#undef ENOTTY +#endif +#define ENOTTY 25 /* Inappropriate ioctl for device */ + +#ifdef ETXTBSY +#undef ETXTBSY +#endif +#define ETXTBSY 26 /* Text file busy */ + +#ifdef EFBIG +#undef EFBIG +#endif +#define EFBIG 27 /* File too large */ + +#ifdef ENOSPC +#undef ENOSPC +#endif +#define ENOSPC 28 /* No space left on device */ + +#ifdef ESPIPE +#undef ESPIPE +#endif +#define ESPIPE 29 /* Illegal seek */ + +#ifdef EROFS +#undef EROFS +#endif +#define EROFS 30 /* Read-only file system */ + +#ifdef EMLINK +#undef EMLINK +#endif +#define EMLINK 31 /* Too many links */ + +#ifdef EPIPE +#undef EPIPE +#endif +#define EPIPE 32 /* Broken pipe */ + +#ifdef EDOM +#undef EDOM +#endif +#define EDOM 33 /* Numerical argument out of domain */ + +#ifdef ERANGE +#undef ERANGE +#endif +#define ERANGE 34 /* Result too large */ + +#ifdef EAGAIN +#undef EAGAIN +#endif +#define EAGAIN 35 /* Resource temporarily unavailable */ + +// in winsock.h + +#ifdef EBADRPC +#undef EBADRPC +#endif +#define EBADRPC 72 /* RPC struct is bad */ + +#ifdef ERPCMISMATCH +#undef ERPCMISMATCH +#endif +#define ERPCMISMATCH 73 /* RPC version wrong */ + +#ifdef EPROGUNAVAIL +#undef EPROGUNAVAIL +#endif +#define EPROGUNAVAIL 74 /* RPC prog. not avail */ + +#ifdef EPROGMISMATCH +#undef EPROGMISMATCH +#endif +#define EPROGMISMATCH 75 /* Program version wrong */ + +#ifdef EPROCUNAVAIL +#undef EPROCUNAVAIL +#endif +#define EPROCUNAVAIL 76 /* Bad procedure for program */ + +#ifdef ENOLCK +#undef ENOLCK +#endif +#define ENOLCK 77 /* No locks available */ + +#ifdef ENOSYS +#undef ENOSYS +#endif +#define ENOSYS 78 /* Function not implemented */ + +#ifdef EOVERFLOW +#undef EOVERFLOW +#endif +#define EOVERFLOW 79 /* Value too large to be stored in data type */ + +// From cderr.h +#ifdef FNERR_INVALIDFILENAME +#undef FNERR_INVALIDFILENAME +#endif +#define FNERR_INVALIDFILENAME 0x3002 // From signal.h #define SIGABRT 0 #define SIGSEGV 1 #define _SIGCOUNT 2 /* LAST ONE, SIZES BUFFER */ -typedef void (*_sigsig)(int inSignal); - // From stdio.h +#define _MAX_FNAME 256 + #define BUFSIZ 512 #define O_RDONLY 0x0000 // open for reading only #define O_WRONLY 0x0001 // open for writing only @@ -126,16 +332,12 @@ typedef void (*_sigsig)(int inSignal); #define _O_WRONLY O_WRONLY // From stdlib.h -#define _MAX_DRIVE MAX_PATH -#define _MAX_DIR MAX_PATH -#define _MAX_EXT MAX_PATH -#define _MAX_FNAME MAX_PATH #define _MAX_PATH MAX_PATH // From sys/types.h typedef int ptrdiff_t; typedef long _off_t; - +typedef long off_t; // From sys/stat.h #if !defined(_STAT_DEFINED) @@ -144,7 +346,7 @@ typedef long _off_t; #define _S_IFREG 0100000 /* stat, is a normal file */ #define _S_IREAD 0000400 /* stat, can read */ #define _S_IWRITE 0000200 /* stat, can write */ -#define _S_IEXEC 0000100 +#define _S_IEXEC 0000100 struct mozce_stat { @@ -162,11 +364,8 @@ struct mozce_stat // From time.h -#ifdef MOZCE_SHUNT_EXPORTS +#define _TM_DEFINED struct tm { -#else -struct mozce_tm { -#endif int tm_sec; int tm_min; int tm_hour; @@ -179,13 +378,6 @@ struct mozce_tm { }; -struct mozce_lconv { - const char* thousandsSeparator; - const char* decimalSeparator; - const char* numGrouping; -}; - - typedef struct mozce_GLYPHMETRICS { UINT gmBlackBoxX; @@ -193,21 +385,7 @@ typedef struct mozce_GLYPHMETRICS POINT gmptGlyphOrigin; short gmCellIncX; short gmCellIncY; -} mozce_GLYPHMETRICS; - - -typedef struct mozce_FIXED { - WORD fract; - short value; -} mozce_FIXED; - -typedef struct mozce_MAT2 { - mozce_FIXED eM11; - mozce_FIXED eM12; - mozce_FIXED eM21; - mozce_FIXED eM22; -} mozce_MAT2; - +} mozce_GLYPHMETRICS; typedef struct mozce_PANOSE { BYTE bFamilyType; @@ -257,7 +435,9 @@ typedef struct mozce_OUTLINETEXTMETRIC PSTR otmpStyleName; PSTR otmpFullName; } mozce_OUTLINETEXTMETRIC; - + + +#define SW_SHOWMINIMIZED 2 #define GGO_METRICS 0 #define GGO_GLYPH_INDEX 1 @@ -272,25 +452,12 @@ typedef struct mozce_OUTLINETEXTMETRIC #define DISPID_WINDOWRESIZE (__LINE__ + 3000) /* 110 */ #define DISPID_WINDOWACTIVATE (__LINE__ + 3000) /* 111 */ - #define CBM_INIT 4 #ifndef MM_TEXT #define MM_TEXT 1 #endif - -typedef struct _BLENDFUNCTION -{ - BYTE BlendOp; - BYTE BlendFlags; - BYTE SourceConstantAlpha; - BYTE AlphaFormat; -} BLENDFUNCTION, *PBLENDFUNCTION, *LPBLENDFUNCTION; - -#define AC_SRC_OVER 0 - - #ifndef SM_CYVTHUMB #define SM_CYVTHUMB 9 #endif @@ -312,4 +479,87 @@ typedef struct _BLENDFUNCTION #define LR_LOADFROMFILE 0 #endif +#ifndef MA_NOACTIVATE +#define MA_NOACTIVATE 1 +#endif + +#ifndef MA_ACTIVATE +#define MA_ACTIVATE 1 +#endif + +#ifndef WM_MOUSEACTIVATE +#define WM_MOUSEACTIVATE WM_ACTIVATE +#endif + +typedef struct WINDOWPLACEMENT +{ + UINT length; + UINT flags; + UINT showCmd; + POINT ptMinPosition; + POINT ptMaxPosition; + RECT rcNormalPosition; +} WINDOWPLACEMENT, *PWINDOWPLACEMENT, *LPWINDOWPLACEMENT; + +typedef void (*_sigsig)(int inSignal); + + +typedef struct mozce_FIXED { + WORD fract; + short value; +} mozce_FIXED; + +typedef struct mozce_MAT2 { + mozce_FIXED eM11; + mozce_FIXED eM12; + mozce_FIXED eM21; + mozce_FIXED eM22; +} mozce_MAT2; + + +//#if 0 + +#ifdef _BLENDFUNCTION +#undef _BLENDFUNCTION +#endif + +#ifdef BLENDFUNCTION +#undef BLENDFUNCTION +#endif + +#ifdef PBLENDFUNCTION +#undef PBLENDFUNCTION +#endif + +typedef struct _BLENDFUNCTION +{ + BYTE BlendOp; + BYTE BlendFlags; + BYTE SourceConstantAlpha; + BYTE AlphaFormat; +}BLENDFUNCTION,*PBLENDFUNCTION; + +//#endif + + +// +// currentlly defined blend function +// + +#define AC_SRC_OVER 0x00 + +// +// alpha format flags +// + +#define AC_SRC_ALPHA 0x01 + + +struct color{ + unsigned char Red; + unsigned char Green; + unsigned char Blue; + double Alpha; +}; + #endif diff --git a/mozilla/build/wince/shunt/include/mozce_shunt.h b/mozilla/build/wince/shunt/include/mozce_shunt.h index 590958dbadf..63f28b92319 100755 --- a/mozilla/build/wince/shunt/include/mozce_shunt.h +++ b/mozilla/build/wince/shunt/include/mozce_shunt.h @@ -50,6 +50,8 @@ // Function Mapping ////////////////////////////////////////////////////////// +#ifndef MOZCE_SHUNT_EXPORTS + // From asswert.cpp #ifdef _assert #undef _assert @@ -113,27 +115,6 @@ #endif #define _fileno mozce_fileno -// math.cpp -/* - #define fd_acos acos - #define fd_asin asin - #define fd_atan atan - #define fd_cos cos - #define fd_sin sin - #define fd_tan tan - #define fd_exp exp - #define fd_log log - #define fd_sqrt sqrt - #define fd_ceil ceil - #define fd_fabs fabs - #define fd_floor floor - #define fd_fmod fmod - #define fd_atan2 atan2 - #define fd_copysign _copysign - #define fd_pow pow - -*/ - // From mbstring.cpp #ifdef _mbsinc #undef _mbsinc @@ -187,6 +168,10 @@ #endif #define getpid mozce_getpid +#ifdef _getpid +#undef _getpid +#endif +#define _getpid mozce_getpid // From signal.cpp #ifdef raise @@ -386,17 +371,11 @@ #endif #define ctime mozce_ctime - #ifdef localeconv #undef localeconv #endif #define localeconv mozce_localeconv -//#ifdef lconv -//#undef lconv -//#endif -//#define lconv mozce_lconv - // From win32.cpp #ifdef Arc @@ -414,6 +393,11 @@ #endif #define CreateDIBitmap mozce_CreateDIBitmap +#ifdef CommDlgExtendedError +#undef CommDlgExtendedError +#endif +#define CommDlgExtendedError mozce_CommDlgExtendedError + #ifdef EnumChildWindows #undef EnumChildWindows #endif @@ -437,7 +421,18 @@ #ifdef ExpandEnvironmentStrings #undef ExpandEnvironmentStrings #endif -#define ExpandEnvironmentStrings mozce_ExpandEnvironmentStrings + +#ifdef ExpandEnvironmentStringsA +#undef ExpandEnvironmentStringsA +#endif + +#ifdef ExpandEnvironmentStringsW +#undef ExpandEnvironmentStringsW +#endif + +#define ExpandEnvironmentStrings mozce_ExpandEnvironmentStrings +#define ExpandEnvironmentStringsA mozce_ExpandEnvironmentStrings +#define ExpandEnvironmentStringsW mozce_ExpandEnvironmentStringsW #ifdef FIXED #undef FIXED @@ -464,22 +459,6 @@ #endif #define GLYPHMETRICS mozce_GLYPHMETRICS -#ifdef GetCurrentProcess -#undef GetCurrentProcess -#endif -#define GetCurrentProcess mozce_GetCurrentProcess - -#ifdef GetCurrentProcessId -#undef GetCurrentProcessId -#endif -#define GetCurrentProcessId mozce_GetCurrentProcessId - -#ifdef GetCurrentThreadId -#undef GetCurrentThreadId -#endif -#define GetCurrentThreadId mozce_GetCurrentThreadId - - #ifdef GetDIBits #undef GetDIBits #endif @@ -510,6 +489,11 @@ #endif #define GetMapMode mozce_GetMapMode +#ifdef GetMessageA +#undef GetMessageA +#endif +#define GetMessageA GetMessageW + #ifdef GetMessageTime #undef GetMessageTime #endif @@ -555,6 +539,12 @@ #endif #define GetUserName mozce_GetUserName + +#ifdef GetWindowPlacement +#undef GetWindowPlacement +#endif +#define GetWindowPlacement mozce_GetWindowPlacement + #ifdef InvertRgn #undef InvertRgn #endif @@ -565,11 +555,6 @@ #endif #define IsIconic mozce_IsIconic -#ifdef LINEDDAPROC -#undef LINEDDAPROC -#endif -#define LINEDDAPROC mozce_LINEDDAPROC - #ifdef LPtoDP #undef LPtoDP #endif @@ -590,11 +575,6 @@ #endif #define MAT2 mozce_MAT2 -#ifdef MsgWaitForMultipleObjects -#undef MsgWaitForMultipleObjects -#endif -#define MsgWaitForMultipleObjects mozce_MsgWaitForMultipleObjects - #ifdef MulDiv #undef MulDiv #endif @@ -615,6 +595,12 @@ #endif #define Pie mozce_Pie +#ifdef PeekMessageA +#undef PeekMessageA +#endif +#define PeekMessageA PeekMessageW + + #ifdef RegCreateKey #undef RegCreateKey #endif @@ -655,15 +641,10 @@ #endif #define SetWindowTextA mozce_SetWindowTextA -#ifdef TlsAlloc -#undef TlsAlloc +#ifdef ShellExecute +#undef ShellExecute #endif -#define TlsAlloc mozce_TlsAlloc - -#ifdef TlsFree -#undef TlsFree -#endif -#define TlsFree mozce_TlsFree +#define ShellExecute mozce_ShellExecute #ifdef UnhookWindowsHookEx #undef UnhookWindowsHookEx @@ -685,6 +666,21 @@ #endif #define IsClipboardFormatAvailable mozce_IsClipboardFormatAvailable +#ifdef CoInitialize +#undef CoInitialize +#endif +#define CoInitialize mozce_CoInitialize + +#ifdef OleInitialize +#undef OleInitialize +#endif +#define OleInitialize mozce_OleInitialize + +#ifdef OleUninitialize +#undef OleUninitialize +#endif +#define OleUninitialize mozce_OleUninitialize + #ifdef OleFlushClipboard #undef OleFlushClipboard #endif @@ -705,6 +701,10 @@ #endif #define OleSetClipboard mozce_OleSetClipboard +#ifdef AlphaBlend +#undef AlphaBlend +#endif +#define AlphaBlend mozce_AlphaBlend // From win32a.cpp @@ -956,6 +956,11 @@ #endif #define GlobalAddAtomA mozce_GlobalAddAtomA +#ifdef LoadBitmapA +#undef LoadBitmapA +#endif +#define LoadBitmapA mozce_LoadBitmapA + #ifdef LoadCursorA #undef LoadCursorA #endif @@ -1006,11 +1011,6 @@ #endif #define OutputDebugStringA mozce_OutputDebugStringA -#ifdef PeekMessageA -#undef PeekMessageA -#endif -#define PeekMessageA mozce_PeekMessageA - #ifdef PostMessageA #undef PostMessageA #endif @@ -1132,11 +1132,6 @@ #endif #define SystemParametersInfoA SystemParametersInfoW -#ifdef GetMessageA -#undef GetMessageA -#endif -#define GetMessageA GetMessageW - #ifdef DispatchMessageA #undef DispatchMessageA #endif @@ -1172,6 +1167,7 @@ #define FindNextFile FindNextFileW +#if 1 #ifdef GetProp #undef GetProp @@ -1188,6 +1184,7 @@ #endif #define RemoveProp mozce_RemovePropA +#endif // From win32w.cpp @@ -1226,6 +1223,7 @@ #endif #define SetCurrentDirectoryW mozce_SetCurrentDirectoryW +#endif // MOZCE_SHUNT_EXPORTS ////////////////////////////////////////////////////////// // Function Declarations @@ -1268,7 +1266,7 @@ extern "C" { MOZCE_SHUNT_API _sigsig mozce_signal(int inSignal, _sigsig inFunc); // From stat.cpp - MOZCE_SHUNT_API int mozce_stat(const char *, struct _stat *); + MOZCE_SHUNT_API int mozce_stat(const char *inPath, struct mozce_stat * outStat); // From stdio.cpp MOZCE_SHUNT_API int mozce_access(const char *path, int mode); @@ -1307,22 +1305,37 @@ extern "C" { MOZCE_SHUNT_API struct tm* mozce_gmtime(const time_t* inTimeT); MOZCE_SHUNT_API time_t mozce_mktime(struct tm* inTM); MOZCE_SHUNT_API size_t mozce_strftime(char *strDest, size_t maxsize, const char *format, const struct tm *timeptr); - - MOZCE_SHUNT_API struct lconv * mozce_localeconv(void); // from win32.cpp + MOZCE_SHUNT_API BOOL mozce_AlphaBlend( HDC hdcDest, + int nXOriginDest, + int nYOriginDest, + int nWidthDest, + int nHeightDest, + HDC hdcSrc, + int nXOriginSrc, + int nYOriginSrc, + int nWidthSrc, + int nHeightSrc, + BLENDFUNCTION blendFunction); + + + MOZCE_SHUNT_API struct lconv * mozce_localeconv(void); + VOID CALLBACK mozce_LineDDAProc(int X, int Y, LPARAM lpData); typedef void (*mozce_LINEDDAPROC) (int X, int Y, LPARAM lpData); MOZCE_SHUNT_API int mozce_MulDiv(int inNumber, int inNumerator, int inDenominator); 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_SetDIBits(HDC inDC, HBITMAP inBMP, UINT inStartScan, UINT inScanLines, CONST LPVOID inBits, CONST LPBITMAPINFO inInfo, UINT inUsage); + MOZCE_SHUNT_API DWORD mozce_CommDlgExtendedError(void); MOZCE_SHUNT_API HBITMAP mozce_CreateDIBitmap(HDC inDC, CONST BITMAPINFOHEADER *inBMIH, DWORD inInit, CONST VOID *inBInit, CONST BITMAPINFO *inBMI, UINT inUsage); 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_ExtSelectClipRgn(HDC inDC, HRGN inRGN, int inMode); MOZCE_SHUNT_API DWORD mozce_ExpandEnvironmentStrings(LPCTSTR lpSrc, LPTSTR lpDst, DWORD nSize); + MOZCE_SHUNT_API DWORD mozce_ExpandEnvironmentStringsW(const unsigned short * lpSrc, const unsigned short * lpDst, DWORD nSize); MOZCE_SHUNT_API BOOL mozce_LineDDA(int inXStart, int inYStart, int inXEnd, int inYEnd, mozce_LINEDDAPROC inLineFunc, LPARAM inData); MOZCE_SHUNT_API int mozce_FrameRect(HDC inDC, CONST RECT *inRect, HBRUSH inBrush); @@ -1334,7 +1347,7 @@ extern "C" { 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_GetOutlineTextMetrics(HDC inDC, UINT inData, void* outOTM); - MOZCE_SHUNT_API int mozce_EnumFontFamiliesEx(HDC inDC, LPLOGFONT inLogfont, FONTENUMPROC inFunc, LPARAM inParam, DWORD inFlags); + MOZCE_SHUNT_API int mozce_EnumFontFamiliesEx(HDC inDC, const LOGFONTA* inLogfont, FONTENUMPROC inFunc, LPARAM inParam, DWORD inFlags); MOZCE_SHUNT_API int mozce_GetMapMode(HDC inDC); MOZCE_SHUNT_API BOOL mozce_GetIconInfo(HICON inIcon, PICONINFO outIconinfo); MOZCE_SHUNT_API BOOL mozce_LPtoDP(HDC inDC, LPPOINT inoutPoints, int inCount); @@ -1346,12 +1359,18 @@ extern "C" { MOZCE_SHUNT_API BOOL mozce_IsIconic(HWND inWnd); 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 HINSTANCE mozce_ShellExecute(HWND hwnd, LPCSTR lpOperation, LPCSTR lpFile, LPCSTR lpParameters, LPCSTR lpDirectory, INT nShowCmd); 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 BOOL mozce_GetWindowPlacement(HWND window, WINDOWPLACEMENT *lpwndpl); MOZCE_SHUNT_API BOOL mozce_InvertRgn(HDC inDC, HRGN inRGN); 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 HRESULT mozce_CoLockObjectExternal(IUnknown* inUnk, BOOL inLock, BOOL inLastUnlockReleases); + MOZCE_SHUNT_API HRESULT mozce_CoInitialize(LPVOID pvReserved); + MOZCE_SHUNT_API LRESULT mozce_OleInitialize(LPVOID pvReserved); + MOZCE_SHUNT_API void mozce_OleUninitialize();; MOZCE_SHUNT_API HRESULT mozce_OleSetClipboard(IDataObject* inDataObj); MOZCE_SHUNT_API HRESULT mozce_OleGetClipboard(IDataObject** outDataObj); MOZCE_SHUNT_API HRESULT mozce_OleFlushClipboard(void); @@ -1366,22 +1385,18 @@ extern "C" { MOZCE_SHUNT_API HMENU mozce_LoadMenuA(HINSTANCE hInstance, LPCSTR lpMenuName); MOZCE_SHUNT_API void mozce_GetSystemTimeAsFileTime(LPFILETIME lpSystemTimeAsFileTime); - MOZCE_SHUNT_API DWORD mozce_GetFullPathName(LPCTSTR lpFileName, DWORD nBufferLength, LPTSTR lpBuffer, LPTSTR* lpFilePart); + MOZCE_SHUNT_API DWORD mozce_GetFullPathName(const char* lpFileName, DWORD nBufferLength, const char* lpBuffer, const char** lpFilePart); MOZCE_SHUNT_API UINT mozce_GetACP(void); - MOZCE_SHUNT_API HANDLE mozce_GetCurrentProcess(void); - MOZCE_SHUNT_API HANDLE mozce_GetCurrentProcessId(void); - MOZCE_SHUNT_API DWORD mozce_TlsAlloc(void); - MOZCE_SHUNT_API BOOL mozce_TlsFree(DWORD dwTlsIndex); - MOZCE_SHUNT_API DWORD GetCurrentThreadId(void); - - MOZCE_SHUNT_API DWORD mozce_MsgWaitForMultipleObjects(DWORD nCount, const HANDLE* pHandles, BOOL bWaitAll, DWORD dwMilliseconds, DWORD dwWakeMask); + MOZCE_SHUNT_API BOOL mozce_PeekMessage(LPMSG lpMsg, HWND hWnd, UINT wMsgFilterMin, UINT wMsgFilterMax, UINT wRemoveMsg); + MOZCE_SHUNT_API BOOL mozce_GetMessage(LPMSG lpMsg, HWND hWnd, UINT wMsgFilterMin, UINT wMsgFilterMax); MOZCE_SHUNT_API LONG mozce_GetMessageTime(void); - + // from win32a.cpp 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 ATOM mozce_GlobalAddAtomA(LPCSTR lpString); MOZCE_SHUNT_API ATOM mozce_RegisterClassA(CONST WNDCLASSA *lpwc); MOZCE_SHUNT_API BOOL mozce_CopyFileA(LPCSTR lpExistingFileName, LPCSTR lpNewFileName, BOOL bFailIfExists); @@ -1389,17 +1404,17 @@ extern "C" { MOZCE_SHUNT_API BOOL mozce_RemoveDirectoryA(LPCSTR lpPathName); MOZCE_SHUNT_API HANDLE mozce_CreateMutexA(LPSECURITY_ATTRIBUTES lpMutexAttributes, BOOL bInitialOwner, LPCSTR lpName); 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_ExtTextOutA(HDC inDC, int inX, int inY, UINT inOptions, LPCRECT inRect, LPCSTR inString, UINT inCount, const LPINT inDx); - MOZCE_SHUNT_API BOOL mozce_TextOutA(HDC hdc, int nXStart, int nYStart, LPCSTR lpString, int cbString); + + MOZCE_SHUNT_API BOOL mozce_ExtTextOutA(HDC inDC, int inX, int inY, UINT inOptions, LPCRECT inRect, const char* inString, UINT inCount, const LPINT inDx); + MOZCE_SHUNT_API BOOL mozce_TextOutA(HDC hdc, int nXStart, int nYStart, const char* lpString, int cbString); MOZCE_SHUNT_API BOOL mozce_GetClassInfoA(HINSTANCE hInstance, LPCSTR lpClassName, LPWNDCLASS lpWndClass); MOZCE_SHUNT_API int mozce_GetClassNameA(HWND hWnd, LPTSTR lpClassName, int nMaxCount); MOZCE_SHUNT_API BOOL mozce_GetFileVersionInfoA(LPSTR inFilename, DWORD inHandle, DWORD inLen, LPVOID outData); - MOZCE_SHUNT_API BOOL mozce_GetTextExtentExPointA(HDC inDC, LPCSTR inStr, int inLen, int inMaxExtent, LPINT outFit, LPINT outDx, LPSIZE inSize); + MOZCE_SHUNT_API BOOL mozce_GetTextExtentExPointA(HDC inDC, const char* inStr, int inLen, int inMaxExtent, LPINT outFit, LPINT outDx, LPSIZE inSize); MOZCE_SHUNT_API BOOL mozce_GetVersionExA(LPOSVERSIONINFOA lpv); MOZCE_SHUNT_API BOOL mozce_DeleteFileA(LPCSTR lpFileName); MOZCE_SHUNT_API BOOL mozce_MoveFileA(LPCSTR lpExistingFileName, LPCSTR lpNewFileName); - MOZCE_SHUNT_API BOOL mozce_PeekMessageA(LPMSG lpMsg, HWND hWnd, UINT wMsgFilterMin, UINT wMsgFilterMax, UINT wRemoveMsg); MOZCE_SHUNT_API BOOL mozce_SetCurrentDirectoryA(LPCSTR inPathName); MOZCE_SHUNT_API BOOL mozce_VerQueryValueA(const LPVOID inBlock, LPSTR inSubBlock, LPVOID *outBuffer, PUINT outLen); MOZCE_SHUNT_API BOOL mozce_UnregisterClassA(LPCSTR lpClassName, HINSTANCE hInstance); @@ -1423,7 +1438,7 @@ extern "C" { MOZCE_SHUNT_API LONG mozce_RegSetValueExA(HKEY hKey, const char *valname, DWORD dwReserved, DWORD dwType, const BYTE* lpData, DWORD dwSize); MOZCE_SHUNT_API LONG mozce_RegCreateKeyExA(HKEY hKey, const char *subkey, DWORD dwRes, LPSTR lpszClass, DWORD ulOptions, REGSAM samDesired, LPSECURITY_ATTRIBUTES sec_att, PHKEY phkResult, DWORD *lpdwDisp); - MOZCE_SHUNT_API LONG mozce_RegDeleteValueA(HKEY hKey, LPCTSTR lpValueName); + MOZCE_SHUNT_API LONG mozce_RegDeleteValueA(HKEY hKey, const char* lpValueName); MOZCE_SHUNT_API LRESULT mozce_DefWindowProcA(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam); MOZCE_SHUNT_API LRESULT mozce_PostMessageA(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam); @@ -1441,6 +1456,7 @@ extern "C" { MOZCE_SHUNT_API HINSTANCE mozce_LoadLibraryA(LPCSTR lpLibFileName); MOZCE_SHUNT_API int mozce_GetObjectA(HGDIOBJ hgdiobj, int cbBuffer, LPVOID lpvObject); MOZCE_SHUNT_API FARPROC mozce_GetProcAddressA(HMODULE hMod, const char *name); + MOZCE_SHUNT_API HBITMAP mozce_LoadBitmapA(HINSTANCE hInstance, LPCSTR lpCursorName); MOZCE_SHUNT_API HCURSOR mozce_LoadCursorA(HINSTANCE hInstance, LPCSTR lpCursorName); MOZCE_SHUNT_API int mozce_StartDocA(HDC hdc, CONST DOCINFO* lpdi); @@ -1459,22 +1475,22 @@ extern "C" { MOZCE_SHUNT_API BOOL mozce_SetDlgItemTextA(HWND hwndDlg, int idControl, LPCSTR lpsz); MOZCE_SHUNT_API HANDLE mozce_CreateEventA(LPSECURITY_ATTRIBUTES lpEventAttributes, BOOL bManualReset, BOOL bInitialState, const char *lpName); - 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 HANDLE mozce_RemovePropA(HWND hWnd, LPCSTR lpString); + MOZCE_SHUNT_API HANDLE mozce_GetPropA(HWND hWnd, const char* lpString); + MOZCE_SHUNT_API BOOL mozce_SetPropA(HWND hWnd, const char* lpString, HANDLE hData); + MOZCE_SHUNT_API HANDLE mozce_RemovePropA(HWND hWnd, const char* lpString); - MOZCE_SHUNT_API HANDLE mozce_FindFirstFileA(LPCSTR lpFileName, LPWIN32_FIND_DATA lpFindFileData); - MOZCE_SHUNT_API BOOL mozce_FindNextFileA(HANDLE hFindFile, LPWIN32_FIND_DATA lpFindFileData); + MOZCE_SHUNT_API HANDLE mozce_FindFirstFileA(const char* lpFileName, LPWIN32_FIND_DATAA lpFindFileData); + MOZCE_SHUNT_API BOOL mozce_FindNextFileA(HANDLE hFindFile, WIN32_FIND_DATAA* lpFindFileData); MOZCE_SHUNT_API HANDLE mozce_CreateFileMappingA(HANDLE hFile, LPSECURITY_ATTRIBUTES lpFileMappingAttributes, DWORD flProtect, DWORD dwMaximumSizeHigh, DWORD dwMaximumSizeLow, LPCSTR lpName); MOZCE_SHUNT_API DWORD mozce_FormatMessageA(DWORD dwFlags, LPCVOID lpSource, DWORD dwMessageId, DWORD dwLanguageId, LPSTR lpBuffer, DWORD nSize, va_list* Arguments); MOZCE_SHUNT_API HANDLE mozce_CreateSemaphoreA(LPSECURITY_ATTRIBUTES lpSemaphoreAttributes, LONG lInitialCount, LONG lMaximumCount, LPCSTR lpName); - MOZCE_SHUNT_API HFONT mozce_CreateFontIndirectA(CONST LOGFONT* lplf); - MOZCE_SHUNT_API int mozce_EnumFontFamiliesA(HDC hdc, LPCTSTR lpszFamily, FONTENUMPROC lpEnumFontFamProc, LPARAM lParam); - MOZCE_SHUNT_API int mozce_GetTextFaceA(HDC hdc, int nCount, LPTSTR lpFaceName); - MOZCE_SHUNT_API BOOL mozce_GetTextMetricsA(HDC hdc, LPTEXTMETRIC lptm); + MOZCE_SHUNT_API HFONT mozce_CreateFontIndirectA(CONST LOGFONTA* lplf); + MOZCE_SHUNT_API int mozce_EnumFontFamiliesA(HDC hdc, const char* lpszFamily, FONTENUMPROC lpEnumFontFamProc, LPARAM lParam); + MOZCE_SHUNT_API int mozce_GetTextFaceA(HDC hdc, int nCount, const char* lpFaceName); + MOZCE_SHUNT_API BOOL mozce_GetTextMetricsA(HDC hdc, TEXTMETRICA* lptm); MOZCE_SHUNT_API BOOL mozce_SetWindowTextA(HWND hWnd, LPCSTR lpString); @@ -1482,7 +1498,7 @@ extern "C" { // From win32w.cpp MOZCE_SHUNT_API BOOL mozce_SetCurrentDirectoryW(LPCTSTR inPathName); MOZCE_SHUNT_API DWORD mozce_GetCurrentDirectoryW(DWORD inBufferLength, LPTSTR outBuffer); - MOZCE_SHUNT_API DWORD mozce_GetGlyphOutlineW(HDC inDC, WCHAR inChar, UINT inFormat, void* inGM, DWORD inBufferSize, LPVOID outBuffer, CONST void* inMAT2); + MOZCE_SHUNT_API DWORD mozce_GetGlyphOutlineW(HDC inDC, WCHAR inChar, UINT inFormat, void* inGM, DWORD inBufferSize, LPVOID outBuffer, CONST VOID* inMAT2); MOZCE_SHUNT_API HANDLE mozce_OpenSemaphoreW(DWORD inDesiredAccess, BOOL inInheritHandle, LPCWSTR inName); MOZCE_SHUNT_API UINT mozce_GetSystemDirectoryW(LPWSTR inBuffer, UINT inSize); MOZCE_SHUNT_API UINT mozce_GetWindowsDirectoryW(LPWSTR inBuffer, UINT inSize); diff --git a/mozilla/build/wince/shunt/mbstring.cpp b/mozilla/build/wince/shunt/mbstring.cpp index 9b20bec38ac..e348149917b 100755 --- a/mozilla/build/wince/shunt/mbstring.cpp +++ b/mozilla/build/wince/shunt/mbstring.cpp @@ -51,7 +51,7 @@ extern "C" { ** Right now, bail with a default implementation. */ -// #define LOG_CALLS +#define LOG_CALLS MOZCE_SHUNT_API unsigned char* mozce_mbsinc(const unsigned char* inCurrent) { diff --git a/mozilla/build/wince/shunt/mozce_internal.h b/mozilla/build/wince/shunt/mozce_internal.h index da4452ae3f9..49258ad444c 100755 --- a/mozilla/build/wince/shunt/mozce_internal.h +++ b/mozilla/build/wince/shunt/mozce_internal.h @@ -68,7 +68,7 @@ ** included a terminating character for the conversion). */ -int a2w_buffer(LPCSTR inACPString, int inACPChars, LPWSTR outWideString, int inWideChars); +int a2w_buffer(const char* inACPString, int inACPChars, unsigned short* outWideString, int inWideChars); /* ** Perform the requested conversion using heap memory. @@ -94,7 +94,7 @@ int a2w_buffer(LPCSTR inACPString, int inACPChars, LPWSTR outWideString, int inW ** NULL on failure. */ -LPWSTR a2w_malloc(LPCSTR inACPString, int inACPChars, int* outWideChars); +unsigned short* a2w_malloc(const char* inACPString, int inACPChars, int* outWideChars); /* ** Perform the requested conversion using the buffer provided. @@ -116,7 +116,7 @@ LPWSTR a2w_malloc(LPCSTR inACPString, int inACPChars, int* outWideChars); ** should the string be terminated (i.e. if inWideChars ** included a terminating character for the conversion). */ -int w2a_buffer(LPCWSTR inWideString, int inWideChars, LPSTR outACPString, int inACPChars); +int w2a_buffer(const unsigned short* inWideString, int inWideChars, char* outACPString, int inACPChars); /* ** Perform the requested conversion using heap memory. @@ -141,7 +141,7 @@ int w2a_buffer(LPCWSTR inWideString, int inWideChars, LPSTR outACPString, int in ** NULL on failure. */ -LPSTR w2a_malloc(LPCWSTR inWideString, int inWideChars, int* outACPChars); +char* w2a_malloc(unsigned short* inWideString, int inWideChars, int* outACPChars); void dumpMemoryInfo(); @@ -154,13 +154,13 @@ void dumpMemoryInfo(); extern "C" { #endif - MOZCE_SHUNT_API int mozce_printf(const char *, ...); + MOZCE_SHUNT_API int mozce_printf(const char *, ...); #ifdef __cplusplus }; #endif -void nclog (const char *fmt, ...); +int nclog (const char *fmt, ...); void nclograw(const char* data, long length); //#define MOZCE_PRECHECK \ diff --git a/mozilla/build/wince/shunt/nclog.cpp b/mozilla/build/wince/shunt/nclog.cpp index 3fa355dcda1..ac3f889a198 100755 --- a/mozilla/build/wince/shunt/nclog.cpp +++ b/mozilla/build/wince/shunt/nclog.cpp @@ -44,6 +44,8 @@ #include "mozce_internal.h" +#define USE_NC_LOGGING + #ifdef USE_NC_LOGGING @@ -77,17 +79,33 @@ static bool wsa_init() WSADATA wd; BOOL bc=true; - if (0 != WSAStartup(0x101, &wd)) goto error; + if (0 != WSAStartup(0x101, &wd)) + { + MessageBox(0, L"WSAStartup failed", L"ERROR", 0); + goto error; + } wsa_socket=socket(PF_INET, SOCK_DGRAM, 0); - if (wsa_socket == INVALID_SOCKET) goto error; + if (wsa_socket == INVALID_SOCKET) + { + MessageBox(0, L"socket failed", L"ERROR", 0); + goto error; + } r=setsockopt(wsa_socket, SOL_SOCKET, SO_BROADCAST, (char*)&bc, sizeof(bc)); - if (r!=0) goto error; + if (r!=0) + { + MessageBox(0, L"setsockopt failed", L"ERROR", 0); + goto error; + } + if (wsa_bind(9998)) return true; // bind to default port. - error: + + MessageBox(0, L"Can Not Bind To Port", L"ERROR", 0); + +error: if (wsa_socket != INVALID_SOCKET) closesocket(wsa_socket); return false; - + } // can be called externally to select a different port for operations @@ -104,7 +122,7 @@ static void wsa_send(const char *x) } // format input, convert to 8-bit and send. -void nclog (const char *fmt, ...) +int nclog (const char *fmt, ...) { va_list vl; va_start(vl,fmt); @@ -112,7 +130,7 @@ void nclog (const char *fmt, ...) sprintf(buf,fmt,vl); wsa_init(); wsa_send(buf); - + return 0; } void nclograw(const char* data, long length) diff --git a/mozilla/build/wince/shunt/process.cpp b/mozilla/build/wince/shunt/process.cpp index 883dc596f5e..fe2e1256290 100755 --- a/mozilla/build/wince/shunt/process.cpp +++ b/mozilla/build/wince/shunt/process.cpp @@ -1,5 +1,6 @@ /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * + * ***** BEG LICENSE BLOCK ***** * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * @@ -58,7 +59,7 @@ MOZCE_SHUNT_API void mozce_abort(void) #if defined(DEBUG) DebugBreak(); #endif - TerminateProcess(GetCurrentProcess(), 3); + TerminateProcess((HANDLE) GetCurrentProcessId(), 3); } @@ -71,9 +72,8 @@ MOZCE_SHUNT_API char* mozce_getenv(const char* inName) #endif char* retval = NULL; - + #ifdef DEBUG_NSPR_ALL - if (!strcmp(inName, "NSPR_LOG_MODULES")) return "all:5"; @@ -87,7 +87,10 @@ MOZCE_SHUNT_API char* mozce_getenv(const char* inName) if (!strcmp(inName, "NS_TIMELINE_ENABLE")) return "1"; -#endif +#endif + + if (!_stricmp(inName, "tmp")) + return "/Temp"; return retval; } diff --git a/mozilla/build/wince/shunt/stat.cpp b/mozilla/build/wince/shunt/stat.cpp index 5d11a6ed47f..1a399f110c6 100755 --- a/mozilla/build/wince/shunt/stat.cpp +++ b/mozilla/build/wince/shunt/stat.cpp @@ -48,7 +48,7 @@ extern "C" { #endif -MOZCE_SHUNT_API int mozce_stat(const char* inPath, struct stat* outStats) +MOZCE_SHUNT_API int mozce_stat(const char* inPath, struct mozce_stat* outStats) { MOZCE_PRECHECK diff --git a/mozilla/build/wince/shunt/stdio.cpp b/mozilla/build/wince/shunt/stdio.cpp index 6ec1800ce0a..1050fd2e4f0 100755 --- a/mozilla/build/wince/shunt/stdio.cpp +++ b/mozilla/build/wince/shunt/stdio.cpp @@ -128,7 +128,7 @@ MOZCE_SHUNT_API FILE* mozce_fdopen(int fd, const char* inMode) if(fd < 0 || fd >= MAXFDS || _fdtab[fd].fd == -1) - return 0; + return 0; return _fdtab[fd].file; } @@ -180,10 +180,10 @@ MOZCE_SHUNT_API char* mozce_getcwd(char* buff, size_t size) #ifdef DEBUG mozce_printf("mozce_getcwd called.\n"); #endif - + int i; unsigned short dir[MAX_PATH]; GetModuleFileName(GetModuleHandle (NULL), dir, MAX_PATH); - for (int i = _tcslen(dir); i && dir[i] != TEXT('\\'); i--) {} + for (i = _tcslen(dir); i && dir[i] != TEXT('\\'); i--) {} dir[i + 1] = TCHAR('\0'); w2a_buffer(dir, -1, buff, size); @@ -193,6 +193,24 @@ MOZCE_SHUNT_API char* mozce_getcwd(char* buff, size_t size) MOZCE_SHUNT_API int mozce_printf(const char * format, ...) { + //#ifdef DEBUG +#define MAX_CHARS_IN_VARIABLE_STRING 1024 + + char buf[MAX_CHARS_IN_VARIABLE_STRING]; + + TCHAR tBuf[MAX_CHARS_IN_VARIABLE_STRING]; + + va_list ptr; + va_start(ptr,format); + vsprintf(buf,format,ptr); + + mbstowcs(tBuf, buf, MAX_CHARS_IN_VARIABLE_STRING); + + OutputDebugString(tBuf); + + return 1; + //#endif + return 0; } @@ -274,7 +292,7 @@ MOZCE_SHUNT_API int mozce_close(int fd) if(fd < 0 || fd >= MAXFDS || _fdtab[fd].fd == -1) - return -1; + return -1; fclose(_fdtab[fd].file); @@ -292,7 +310,7 @@ MOZCE_SHUNT_API size_t mozce_read(int fd, void* buffer, size_t count) #endif if(fd < 0 || fd >= MAXFDS || _fdtab[fd].fd == -1) - return -1; + return -1; size_t num = fread(buffer, 1, count, _fdtab[fd].file); @@ -312,7 +330,7 @@ MOZCE_SHUNT_API size_t mozce_write(int fd, const void* buffer, size_t count) #endif if(fd < 0 || fd >= MAXFDS || _fdtab[fd].fd == -1) - return -1; + return -1; size_t num = fwrite(buffer, 1, count, _fdtab[fd].file); if (ferror(_fdtab[fd].file)) @@ -343,7 +361,7 @@ MOZCE_SHUNT_API int mozce_lseek(int fd, int offset, int whence) if(fd < 0 || fd >= MAXFDS || _fdtab[fd].fd == -1) - return -1; + return -1; int newpos = -1; int error = fseek(_fdtab[fd].file, offset, whence); @@ -369,9 +387,9 @@ MOZCE_SHUNT_API int mozce_fileno(FILE* f) for(fd = 0; fd < MAXFDS; fd++) { if(_fdtab[fd].file == f) - { + { return _fdtab[fd].fd; - } + } } return (int) fileno(f); diff --git a/mozilla/build/wince/shunt/stdlib.cpp b/mozilla/build/wince/shunt/stdlib.cpp index 602fbdd2064..34655996ab5 100755 --- a/mozilla/build/wince/shunt/stdlib.cpp +++ b/mozilla/build/wince/shunt/stdlib.cpp @@ -41,6 +41,10 @@ #includeBuild Log
---------------------Configuration: shunt - Win32 (WCE ARMV4) SmartPhone-------------------- -
-Command Lines
- - - - - -Results
-shunt.dll - 0 error(s), 0 warning(s) ---------------------Configuration: shunt - Win32 (WCE ARMV4) Debug--------------------
Command Lines
@@ -22,17 +11,6 @@ shunt.dll - 0 error(s), 0 warning(s) -Results
-shunt.dll - 0 error(s), 0 warning(s) ----------------------Configuration: shunt - Win32 (WCE emulator) Release-------------------- -
-Command Lines
- - - - -Results
shunt.dll - 0 error(s), 0 warning(s)@@ -44,17 +22,6 @@ shunt.dll - 0 error(s), 0 warning(s) -
Results
-shunt.dll - 0 error(s), 0 warning(s) ----------------------Configuration: shunt - Win32 (WCE emulator) Debug-------------------- -
-Command Lines
- - - - -Results
shunt.dll - 0 error(s), 0 warning(s)