зеркало из https://github.com/mozilla/pjs.git
not part of default build. updating wince shunt layer: upgrading to window mobile v6 sdk removing mozce_ prefix from functions removing stub fuctions which are not supported on windows mobile v6 upgrading tools to work with msys and v6 sdk. removing old visual studio projects. patch by atotic, r=dougt.
This commit is contained in:
Родитель
f99ee5179a
Коммит
1234637e7a
|
@ -1,30 +0,0 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 9.00
|
||||
# Visual Studio 2005
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mozce_shunt", "mozce_shunt.vcproj", "{8A44014F-AAE6-4232-B8AC-584EBEB83C28}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Pocket PC 2003 (ARMV4) = Debug|Pocket PC 2003 (ARMV4)
|
||||
Debug|Smartphone 2003 (ARMV4) = Debug|Smartphone 2003 (ARMV4)
|
||||
Release|Pocket PC 2003 (ARMV4) = Release|Pocket PC 2003 (ARMV4)
|
||||
Release|Smartphone 2003 (ARMV4) = Release|Smartphone 2003 (ARMV4)
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{8A44014F-AAE6-4232-B8AC-584EBEB83C28}.Debug|Pocket PC 2003 (ARMV4).ActiveCfg = Debug|Pocket PC 2003 (ARMV4)
|
||||
{8A44014F-AAE6-4232-B8AC-584EBEB83C28}.Debug|Pocket PC 2003 (ARMV4).Build.0 = Debug|Pocket PC 2003 (ARMV4)
|
||||
{8A44014F-AAE6-4232-B8AC-584EBEB83C28}.Debug|Pocket PC 2003 (ARMV4).Deploy.0 = Debug|Pocket PC 2003 (ARMV4)
|
||||
{8A44014F-AAE6-4232-B8AC-584EBEB83C28}.Debug|Smartphone 2003 (ARMV4).ActiveCfg = Debug|Smartphone 2003 (ARMV4)
|
||||
{8A44014F-AAE6-4232-B8AC-584EBEB83C28}.Debug|Smartphone 2003 (ARMV4).Build.0 = Debug|Smartphone 2003 (ARMV4)
|
||||
{8A44014F-AAE6-4232-B8AC-584EBEB83C28}.Debug|Smartphone 2003 (ARMV4).Deploy.0 = Debug|Smartphone 2003 (ARMV4)
|
||||
{8A44014F-AAE6-4232-B8AC-584EBEB83C28}.Release|Pocket PC 2003 (ARMV4).ActiveCfg = Release|Pocket PC 2003 (ARMV4)
|
||||
{8A44014F-AAE6-4232-B8AC-584EBEB83C28}.Release|Pocket PC 2003 (ARMV4).Build.0 = Release|Pocket PC 2003 (ARMV4)
|
||||
{8A44014F-AAE6-4232-B8AC-584EBEB83C28}.Release|Pocket PC 2003 (ARMV4).Deploy.0 = Release|Pocket PC 2003 (ARMV4)
|
||||
{8A44014F-AAE6-4232-B8AC-584EBEB83C28}.Release|Smartphone 2003 (ARMV4).ActiveCfg = Release|Smartphone 2003 (ARMV4)
|
||||
{8A44014F-AAE6-4232-B8AC-584EBEB83C28}.Release|Smartphone 2003 (ARMV4).Build.0 = Release|Smartphone 2003 (ARMV4)
|
||||
{8A44014F-AAE6-4232-B8AC-584EBEB83C28}.Release|Smartphone 2003 (ARMV4).Deploy.0 = Release|Smartphone 2003 (ARMV4)
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
|
@ -1,459 +0,0 @@
|
|||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="8.00"
|
||||
Name="mozce_shunt"
|
||||
ProjectGUID="{8A44014F-AAE6-4232-B8AC-584EBEB83C28}"
|
||||
RootNamespace="mozce_shunt"
|
||||
Keyword="Win32Proj"
|
||||
>
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Pocket PC 2003 (ARMV4)"
|
||||
/>
|
||||
<Platform
|
||||
Name="Smartphone 2003 (ARMV4)"
|
||||
/>
|
||||
</Platforms>
|
||||
<ToolFiles>
|
||||
</ToolFiles>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Pocket PC 2003 (ARMV4)"
|
||||
OutputDirectory="$(PlatformName)\Debug"
|
||||
IntermediateDirectory="$(PlatformName)\Debug"
|
||||
ConfigurationType="2"
|
||||
CharacterSet="1"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
ExecutionBucket="7"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="../../include"
|
||||
PreprocessorDefinitions="MOZCE_SHUNT_EXPORTS;_WIN32_WCE=$(CEVER);UNDER_CE=$(CEVER);WINCE;$(PLATFORMDEFINES);_DEBUG;DEBUG;_WINDOWS;_USRDLL;MOZCE_SHUNT_EXPORTS;$(ARCHFAM);$(_ARCHFAM_);_UNICODE;UNICODE"
|
||||
MinimalRebuild="true"
|
||||
ExceptionHandling="0"
|
||||
RuntimeLibrary="1"
|
||||
BufferSecurityCheck="false"
|
||||
FloatingPointModel="2"
|
||||
DisableLanguageExtensions="false"
|
||||
TreatWChar_tAsBuiltInType="false"
|
||||
RuntimeTypeInfo="false"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
DebugInformationFormat="3"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
PreprocessorDefinitions="_DEBUG;_UNICODE;UNICODE;_WIN32_WCE;UNDER_CE"
|
||||
Culture="1033"
|
||||
AdditionalIncludeDirectories="$(IntDir)"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalOptions=" /subsystem:windowsce,4.20 /machine:ARM /ARMPADCODE"
|
||||
OutputFile="$(OutDir)/mozce_shunt.dll"
|
||||
LinkIncremental="2"
|
||||
IgnoreDefaultLibraryNames="OLDNAMES"
|
||||
DelayLoadDLLs="$(NOINHERIT)"
|
||||
GenerateDebugInformation="true"
|
||||
ProgramDatabaseFile="$(OutDir)/mozce_shunt.pdb"
|
||||
SubSystem="0"
|
||||
ImportLibrary="$(OutDir)/mozce_shunt.lib"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCodeSignTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
<DeploymentTool
|
||||
ForceDirty="-1"
|
||||
RemoteDirectory="\bin"
|
||||
RegisterOutput="0"
|
||||
AdditionalFiles=""
|
||||
/>
|
||||
<DebuggerTool
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Debug|Smartphone 2003 (ARMV4)"
|
||||
OutputDirectory="$(PlatformName)\Debug"
|
||||
IntermediateDirectory="$(PlatformName)\Debug"
|
||||
ConfigurationType="2"
|
||||
CharacterSet="1"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
ExecutionBucket="7"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="../../include"
|
||||
PreprocessorDefinitions="MOZCE_SHUNT_EXPORTS;_WIN32_WCE=$(CEVER);UNDER_CE=$(CEVER);WINCE;$(PLATFORMDEFINES);_DEBUG;DEBUG;_WINDOWS;_USRDLL;MOZCE_SHUNT_EXPORTS;$(ARCHFAM);$(_ARCHFAM_);_UNICODE;UNICODE"
|
||||
MinimalRebuild="true"
|
||||
ExceptionHandling="0"
|
||||
RuntimeLibrary="1"
|
||||
BufferSecurityCheck="false"
|
||||
TreatWChar_tAsBuiltInType="false"
|
||||
RuntimeTypeInfo="false"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
DebugInformationFormat="3"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
PreprocessorDefinitions="_DEBUG;_UNICODE;UNICODE;_WIN32_WCE;UNDER_CE"
|
||||
Culture="1033"
|
||||
AdditionalIncludeDirectories="$(IntDir)"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalOptions=" /subsystem:windowsce,4.20 /machine:ARM /ARMPADCODE"
|
||||
OutputFile="$(OutDir)/mozce_shunt.dll"
|
||||
LinkIncremental="2"
|
||||
IgnoreDefaultLibraryNames="oldnames"
|
||||
DelayLoadDLLs="$(NOINHERIT)"
|
||||
GenerateDebugInformation="true"
|
||||
ProgramDatabaseFile="$(OutDir)/mozce_shunt.pdb"
|
||||
SubSystem="0"
|
||||
ImportLibrary="$(OutDir)/mozce_shunt.lib"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCodeSignTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
<DeploymentTool
|
||||
ForceDirty="-1"
|
||||
RemoteDirectory=""
|
||||
RegisterOutput="0"
|
||||
AdditionalFiles=""
|
||||
/>
|
||||
<DebuggerTool
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Pocket PC 2003 (ARMV4)"
|
||||
OutputDirectory="$(PlatformName)\Release"
|
||||
IntermediateDirectory="$(PlatformName)\Release"
|
||||
ConfigurationType="2"
|
||||
CharacterSet="1"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
ExecutionBucket="7"
|
||||
Optimization="2"
|
||||
AdditionalIncludeDirectories="../../include"
|
||||
PreprocessorDefinitions="MOZCE_SHUNT_EXPORTS;_WIN32_WCE=$(CEVER);UNDER_CE=$(CEVER);WINCE;$(PLATFORMDEFINES);NDEBUG;_WINDOWS;_USRDLL;MOZCE_SHUNT_EXPORTS;$(ARCHFAM);$(_ARCHFAM_);_UNICODE;UNICODE"
|
||||
ExceptionHandling="0"
|
||||
RuntimeLibrary="0"
|
||||
BufferSecurityCheck="false"
|
||||
DisableLanguageExtensions="false"
|
||||
TreatWChar_tAsBuiltInType="false"
|
||||
RuntimeTypeInfo="false"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
DebugInformationFormat="3"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
PreprocessorDefinitions="NDEBUG;_UNICODE;UNICODE;_WIN32_WCE;UNDER_CE"
|
||||
Culture="1033"
|
||||
AdditionalIncludeDirectories="$(IntDir)"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalOptions=" /subsystem:windowsce,4.20 /machine:ARM /ARMPADCODE"
|
||||
OutputFile="$(OutDir)/mozce_shunt.dll"
|
||||
LinkIncremental="1"
|
||||
IgnoreDefaultLibraryNames="OLDNAMES"
|
||||
DelayLoadDLLs="$(NOINHERIT)"
|
||||
GenerateDebugInformation="true"
|
||||
ProgramDatabaseFile="$(OutDir)/mozce_shunt.pdb"
|
||||
SubSystem="0"
|
||||
OptimizeReferences="2"
|
||||
EnableCOMDATFolding="2"
|
||||
ImportLibrary="$(OutDir)/mozce_shunt.lib"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCodeSignTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
<DeploymentTool
|
||||
ForceDirty="-1"
|
||||
RemoteDirectory="\windows"
|
||||
RegisterOutput="0"
|
||||
AdditionalFiles=""
|
||||
/>
|
||||
<DebuggerTool
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Smartphone 2003 (ARMV4)"
|
||||
OutputDirectory="$(PlatformName)\Release"
|
||||
IntermediateDirectory="$(PlatformName)\Release"
|
||||
ConfigurationType="2"
|
||||
CharacterSet="1"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
ExecutionBucket="7"
|
||||
Optimization="2"
|
||||
AdditionalIncludeDirectories="../../include"
|
||||
PreprocessorDefinitions="MOZCE_SHUNT_EXPORTS;_WIN32_WCE=$(CEVER);UNDER_CE=$(CEVER);WINCE;$(PLATFORMDEFINES);NDEBUG;_WINDOWS;_USRDLL;MOZCE_SHUNT_EXPORTS;$(ARCHFAM);$(_ARCHFAM_);_UNICODE;UNICODE"
|
||||
ExceptionHandling="0"
|
||||
RuntimeLibrary="0"
|
||||
BufferSecurityCheck="false"
|
||||
TreatWChar_tAsBuiltInType="false"
|
||||
RuntimeTypeInfo="false"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
DebugInformationFormat="3"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
PreprocessorDefinitions="NDEBUG;_UNICODE;UNICODE;_WIN32_WCE;UNDER_CE"
|
||||
Culture="1033"
|
||||
AdditionalIncludeDirectories="$(IntDir)"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalOptions=" /subsystem:windowsce,4.20 /machine:ARM /ARMPADCODE"
|
||||
OutputFile="$(OutDir)/mozce_shunt.dll"
|
||||
LinkIncremental="1"
|
||||
IgnoreDefaultLibraryNames="oldnames"
|
||||
DelayLoadDLLs="$(NOINHERIT)"
|
||||
GenerateDebugInformation="true"
|
||||
ProgramDatabaseFile="$(OutDir)/mozce_shunt.pdb"
|
||||
SubSystem="0"
|
||||
OptimizeReferences="2"
|
||||
EnableCOMDATFolding="2"
|
||||
ImportLibrary="$(OutDir)/mozce_shunt.lib"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCodeSignTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
<DeploymentTool
|
||||
ForceDirty="-1"
|
||||
RemoteDirectory=""
|
||||
RegisterOutput="0"
|
||||
AdditionalFiles=""
|
||||
/>
|
||||
<DebuggerTool
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
</References>
|
||||
<Files>
|
||||
<Filter
|
||||
Name="Source Files"
|
||||
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
|
||||
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
|
||||
>
|
||||
<File
|
||||
RelativePath="..\..\a2w.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\assert.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\clipboard.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\direct.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\errno.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\io.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\mbstring.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\nclog.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\process.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\signal.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\stat.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\stdio.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\stdlib.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\string.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\time.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\w2a.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\win32.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\win32A.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\win32W.cpp"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
Двоичные данные
build/wince/shunt/build/shunt.vcb
Двоичные данные
build/wince/shunt/build/shunt.vcb
Двоичный файл не отображается.
|
@ -1,29 +0,0 @@
|
|||
<html>
|
||||
<body>
|
||||
<pre>
|
||||
<h1>Build Log</h1>
|
||||
<h3>
|
||||
--------------------Configuration: shunt - Win32 (WCE ARMV4) Debug--------------------
|
||||
</h3>
|
||||
<h3>Command Lines</h3>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h3>Results</h3>
|
||||
shunt.dll - 0 error(s), 0 warning(s)
|
||||
<h3>
|
||||
--------------------Configuration: shunt - Win32 (WCE ARMV4) Release--------------------
|
||||
</h3>
|
||||
<h3>Command Lines</h3>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h3>Results</h3>
|
||||
shunt.dll - 0 error(s), 0 warning(s)
|
||||
</pre>
|
||||
</body>
|
||||
</html>
|
Двоичные данные
build/wince/shunt/build/shunt.vco
Двоичные данные
build/wince/shunt/build/shunt.vco
Двоичный файл не отображается.
|
@ -1,394 +0,0 @@
|
|||
# Microsoft eMbedded Visual Tools Project File - Name="shunt" - Package Owner=<4>
|
||||
# Microsoft eMbedded Visual Tools Generated Build File, Format Version 6.02
|
||||
# ** DO NOT EDIT **
|
||||
|
||||
# TARGTYPE "Win32 (WCE ARMV4) Dynamic-Link Library" 0xa302
|
||||
|
||||
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
|
||||
!MESSAGE NMAKE /f "shunt.vcn".
|
||||
!MESSAGE
|
||||
!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 ARMV4) Release"
|
||||
!MESSAGE
|
||||
!MESSAGE Possible choices for configuration are:
|
||||
!MESSAGE
|
||||
!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
|
||||
|
||||
# Begin Project
|
||||
# PROP AllowPerConfigDependencies 0
|
||||
# PROP Scc_ProjName ""
|
||||
# PROP Scc_LocalPath ""
|
||||
# PROP ATL_Project 2
|
||||
CPP=clarm.exe
|
||||
MTL=midl.exe
|
||||
RSC=rc.exe
|
||||
|
||||
!IF "$(CFG)" == "shunt - Win32 (WCE ARMV4) Release"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 0
|
||||
# PROP BASE Output_Dir "ARMV4Rel"
|
||||
# PROP BASE Intermediate_Dir "ARMV4Rel"
|
||||
# PROP BASE CPU_ID "{ECBEA43D-CD7B-4852-AD55-D4227B5D624B}"
|
||||
# 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 "ARMV4Rel"
|
||||
# PROP Intermediate_Dir "ARMV4Rel"
|
||||
# PROP CPU_ID "{ECBEA43D-CD7B-4852-AD55-D4227B5D624B}"
|
||||
# PROP Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# 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
|
||||
# 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 /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
|
||||
# ADD BASE BSC32 /nologo
|
||||
# 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 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"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 1
|
||||
# PROP BASE Output_Dir "ARMV4Dbg"
|
||||
# PROP BASE Intermediate_Dir "ARMV4Dbg"
|
||||
# PROP BASE CPU_ID "{ECBEA43D-CD7B-4852-AD55-D4227B5D624B}"
|
||||
# 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 "ARMV4Dbg"
|
||||
# PROP Intermediate_Dir "ARMV4Dbg"
|
||||
# PROP CPU_ID "{ECBEA43D-CD7B-4852-AD55-D4227B5D624B}"
|
||||
# PROP Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# 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
|
||||
# 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
|
||||
# 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 /nologo /base:"0x00100000" /stack:0x10000,0x1000 /entry:"_DllMainCRTStartup" /dll /debug /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /align:"4096" /MACHINE:ARM
|
||||
# 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 ARMV4) Release"
|
||||
# Name "shunt - Win32 (WCE ARMV4) Debug"
|
||||
# Begin Group "Source Files"
|
||||
|
||||
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\a2w.cpp
|
||||
DEP_CPP_A2W_C=\
|
||||
"..\include\mozce_defs.h"\
|
||||
"..\mozce_internal.h"\
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\assert.cpp
|
||||
DEP_CPP_ASSER=\
|
||||
"..\include\mozce_defs.h"\
|
||||
"..\mozce_internal.h"\
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\clipboard.cpp
|
||||
DEP_CPP_CLIPB=\
|
||||
"..\include\mozce_defs.h"\
|
||||
"..\mozce_internal.h"\
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\direct.cpp
|
||||
DEP_CPP_DIREC=\
|
||||
"..\include\mozce_defs.h"\
|
||||
"..\mozce_internal.h"\
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\errno.cpp
|
||||
DEP_CPP_ERRNO=\
|
||||
"..\include\mozce_defs.h"\
|
||||
"..\mozce_internal.h"\
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\io.cpp
|
||||
DEP_CPP_IO_CP=\
|
||||
"..\include\mozce_defs.h"\
|
||||
"..\mozce_internal.h"\
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\mbstring.cpp
|
||||
DEP_CPP_MBSTR=\
|
||||
"..\include\mozce_defs.h"\
|
||||
"..\mozce_internal.h"\
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\nclog.cpp
|
||||
DEP_CPP_NCLOG=\
|
||||
"..\include\mozce_defs.h"\
|
||||
"..\mozce_internal.h"\
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\process.cpp
|
||||
DEP_CPP_PROCE=\
|
||||
"..\include\mozce_defs.h"\
|
||||
"..\mozce_internal.h"\
|
||||
{$(INCLUDE)}"kfuncs.h"\
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\signal.cpp
|
||||
DEP_CPP_SIGNA=\
|
||||
"..\include\mozce_defs.h"\
|
||||
"..\mozce_internal.h"\
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\stat.cpp
|
||||
DEP_CPP_STAT_=\
|
||||
"..\include\mozce_defs.h"\
|
||||
"..\include\time_conversions.h"\
|
||||
"..\mozce_internal.h"\
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\stdio.cpp
|
||||
DEP_CPP_STDIO=\
|
||||
"..\include\mozce_defs.h"\
|
||||
"..\mozce_internal.h"\
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\stdlib.cpp
|
||||
DEP_CPP_STDLI=\
|
||||
"..\include\mozce_defs.h"\
|
||||
"..\mozce_internal.h"\
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\string.cpp
|
||||
DEP_CPP_STRIN=\
|
||||
"..\include\mozce_defs.h"\
|
||||
"..\mozce_internal.h"\
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\time.cpp
|
||||
DEP_CPP_TIME_=\
|
||||
"..\include\mozce_defs.h"\
|
||||
"..\include\time_conversions.h"\
|
||||
"..\mozce_internal.h"\
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\w2a.cpp
|
||||
DEP_CPP_W2A_C=\
|
||||
"..\include\mozce_defs.h"\
|
||||
"..\mozce_internal.h"\
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\win32.cpp
|
||||
DEP_CPP_WIN32=\
|
||||
"..\include\mozce_defs.h"\
|
||||
"..\mozce_internal.h"\
|
||||
{$(INCLUDE)}"kfuncs.h"\
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\win32A.cpp
|
||||
DEP_CPP_WIN32A=\
|
||||
"..\include\mozce_defs.h"\
|
||||
"..\mozce_internal.h"\
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\win32W.cpp
|
||||
DEP_CPP_WIN32W=\
|
||||
"..\include\mozce_defs.h"\
|
||||
"..\mozce_internal.h"\
|
||||
|
||||
# End Source File
|
||||
# End Group
|
||||
# Begin Group "Header Files"
|
||||
|
||||
# PROP Default_Filter "h;hpp;hxx;hm;inl"
|
||||
# Begin Group "sys"
|
||||
|
||||
# PROP Default_Filter ""
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\include\sys\socket.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\include\sys\stat.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\include\sys\timeb.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\include\sys\types.h
|
||||
# End Source File
|
||||
# End Group
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\include\assert.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\include\crtdbg.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\include\ddeml.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\include\direct.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\include\dlgs.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\include\errno.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\include\fcntl.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\include\intshcut.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\include\io.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\include\mbstring.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\include\mozce_defs.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\mozce_internal.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\include\mozce_shunt.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\include\new.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\include\process.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\include\rasdlg.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\include\signal.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\include\time.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\include\time_conversions.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\include\varargs.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\include\winresrc.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\include\winsock2.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\include\winspool.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\include\winsvc.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\include\zmouse.h
|
||||
# End Source File
|
||||
# End Group
|
||||
# Begin Group "Resource Files"
|
||||
|
||||
# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
|
||||
# End Group
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\ReadMe.txt
|
||||
# End Source File
|
||||
# End Target
|
||||
# End Project
|
|
@ -1,29 +0,0 @@
|
|||
Microsoft eMbedded Visual Tools Workspace File, Format Version 4.00
|
||||
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
|
||||
|
||||
###############################################################################
|
||||
|
||||
Project: "shunt"=.\shunt.vcp - Package Owner=<4>
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<4>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
Global:
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<3>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 9.00
|
||||
# Visual Studio 2005
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "static", "static.vcproj", "{082BAB06-D10F-4C57-B123-F84DC06C246D}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
|
||||
Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{082BAB06-D10F-4C57-B123-F84DC06C246D}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
|
||||
{082BAB06-D10F-4C57-B123-F84DC06C246D}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Build.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
|
||||
{082BAB06-D10F-4C57-B123-F84DC06C246D}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Deploy.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
|
||||
{082BAB06-D10F-4C57-B123-F84DC06C246D}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
|
||||
{082BAB06-D10F-4C57-B123-F84DC06C246D}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Build.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
|
||||
{082BAB06-D10F-4C57-B123-F84DC06C246D}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Deploy.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
|
@ -1,254 +0,0 @@
|
|||
# Microsoft eMbedded Visual Tools Project File - Name="static" - Package Owner=<4>
|
||||
# Microsoft eMbedded Visual Tools Generated Build File, Format Version 6.02
|
||||
# ** DO NOT EDIT **
|
||||
|
||||
# TARGTYPE "Win32 (WCE ARMV4) Static Library" 0xa304
|
||||
|
||||
CFG=static - Win32 (WCE ARMV4) Debug
|
||||
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
|
||||
!MESSAGE use the Export Makefile command and run
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "static.vcn".
|
||||
!MESSAGE
|
||||
!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 "static.vcn" CFG="static - Win32 (WCE ARMV4) Debug"
|
||||
!MESSAGE
|
||||
!MESSAGE Possible choices for configuration are:
|
||||
!MESSAGE
|
||||
!MESSAGE "static - Win32 (WCE ARMV4) Release" (based on "Win32 (WCE ARMV4) Static Library")
|
||||
!MESSAGE "static - Win32 (WCE ARMV4) Debug" (based on "Win32 (WCE ARMV4) Static Library")
|
||||
!MESSAGE
|
||||
|
||||
# Begin Project
|
||||
# PROP AllowPerConfigDependencies 0
|
||||
# PROP Scc_ProjName ""
|
||||
# PROP Scc_LocalPath ""
|
||||
# PROP ATL_Project 2
|
||||
CPP=clarm.exe
|
||||
|
||||
!IF "$(CFG)" == "static - Win32 (WCE ARMV4) Release"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 0
|
||||
# PROP BASE Output_Dir "ARMV4Rel"
|
||||
# PROP BASE Intermediate_Dir "ARMV4Rel"
|
||||
# PROP BASE CPU_ID "{ECBEA43D-CD7B-4852-AD55-D4227B5D624B}"
|
||||
# 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 "ARMV4Rel"
|
||||
# PROP Intermediate_Dir "ARMV4Rel"
|
||||
# PROP CPU_ID "{ECBEA43D-CD7B-4852-AD55-D4227B5D624B}"
|
||||
# PROP Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}"
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "NDEBUG" /D "ARM" /D "_ARM_" /D "ARMV4" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "_LIB" /YX /O2 /M$(CECrtMT) /c
|
||||
# ADD CPP /nologo /W3 /Gy /I "..\..\\" /I "..\..\include" /D "NDEBUG" /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "ARM" /D "_ARM_" /D "ARMV4" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "_LIB" /D "MOZCE_SHUNT_EXPORTS" /O2 /M$(CECrtMT) /c
|
||||
# SUBTRACT CPP /YX
|
||||
LIB32=link.exe -lib
|
||||
# ADD BASE LIB32 /nologo
|
||||
# ADD LIB32 /nologo /out:"ARMV4Rel\shunt.lib"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
|
||||
!ELSEIF "$(CFG)" == "static - Win32 (WCE ARMV4) Debug"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 1
|
||||
# PROP BASE Output_Dir "ARMV4Dbg"
|
||||
# PROP BASE Intermediate_Dir "ARMV4Dbg"
|
||||
# PROP BASE CPU_ID "{ECBEA43D-CD7B-4852-AD55-D4227B5D624B}"
|
||||
# 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 "ARMV4Dbg"
|
||||
# PROP Intermediate_Dir "ARMV4Dbg"
|
||||
# PROP CPU_ID "{ECBEA43D-CD7B-4852-AD55-D4227B5D624B}"
|
||||
# PROP Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}"
|
||||
# PROP Target_Dir ""
|
||||
# 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 "_LIB" /YX /M$(CECrtMTDebug) /c
|
||||
# ADD CPP /nologo /W3 /Zi /Od /Gy /I "..\..\\" /I "..\..\include" /D "DEBUG" /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "ARM" /D "_ARM_" /D "ARMV4" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "_LIB" /D "MOZCE_SHUNT_EXPORTS" /M$(CECrtMTDebug) /c
|
||||
# SUBTRACT CPP /YX
|
||||
LIB32=link.exe -lib
|
||||
# ADD BASE LIB32 /nologo
|
||||
# ADD LIB32 /nologo /out:"ARMV4Dbg\shunt.lib"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
|
||||
!ENDIF
|
||||
|
||||
# Begin Target
|
||||
|
||||
# Name "static - Win32 (WCE ARMV4) Release"
|
||||
# Name "static - Win32 (WCE ARMV4) Debug"
|
||||
# Begin Group "Source Files"
|
||||
|
||||
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\a2w.cpp
|
||||
DEP_CPP_A2W_C=\
|
||||
"..\..\include\mozce_defs.h"\
|
||||
"..\..\mozce_internal.h"\
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\assert.cpp
|
||||
DEP_CPP_ASSER=\
|
||||
"..\..\include\mozce_defs.h"\
|
||||
"..\..\mozce_internal.h"\
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\clipboard.cpp
|
||||
DEP_CPP_CLIPB=\
|
||||
"..\..\include\mozce_defs.h"\
|
||||
"..\..\mozce_internal.h"\
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\direct.cpp
|
||||
DEP_CPP_DIREC=\
|
||||
"..\..\include\mozce_defs.h"\
|
||||
"..\..\mozce_internal.h"\
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\errno.cpp
|
||||
DEP_CPP_ERRNO=\
|
||||
"..\..\include\mozce_defs.h"\
|
||||
"..\..\mozce_internal.h"\
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\io.cpp
|
||||
DEP_CPP_IO_CP=\
|
||||
"..\..\include\mozce_defs.h"\
|
||||
"..\..\mozce_internal.h"\
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\mbstring.cpp
|
||||
DEP_CPP_MBSTR=\
|
||||
"..\..\include\mozce_defs.h"\
|
||||
"..\..\mozce_internal.h"\
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\nclog.cpp
|
||||
DEP_CPP_NCLOG=\
|
||||
"..\..\include\mozce_defs.h"\
|
||||
"..\..\mozce_internal.h"\
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\process.cpp
|
||||
DEP_CPP_PROCE=\
|
||||
"..\..\include\mozce_defs.h"\
|
||||
"..\..\mozce_internal.h"\
|
||||
{$(INCLUDE)}"kfuncs.h"\
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\signal.cpp
|
||||
DEP_CPP_SIGNA=\
|
||||
"..\..\include\mozce_defs.h"\
|
||||
"..\..\mozce_internal.h"\
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\stat.cpp
|
||||
DEP_CPP_STAT_=\
|
||||
"..\..\include\mozce_defs.h"\
|
||||
"..\..\include\time_conversions.h"\
|
||||
"..\..\mozce_internal.h"\
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\stdio.cpp
|
||||
DEP_CPP_STDIO=\
|
||||
"..\..\include\mozce_defs.h"\
|
||||
"..\..\mozce_internal.h"\
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\stdlib.cpp
|
||||
DEP_CPP_STDLI=\
|
||||
"..\..\include\mozce_defs.h"\
|
||||
"..\..\mozce_internal.h"\
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\string.cpp
|
||||
DEP_CPP_STRIN=\
|
||||
"..\..\include\mozce_defs.h"\
|
||||
"..\..\mozce_internal.h"\
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\time.cpp
|
||||
DEP_CPP_TIME_=\
|
||||
"..\..\include\mozce_defs.h"\
|
||||
"..\..\include\time_conversions.h"\
|
||||
"..\..\mozce_internal.h"\
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\w2a.cpp
|
||||
DEP_CPP_W2A_C=\
|
||||
"..\..\include\mozce_defs.h"\
|
||||
"..\..\mozce_internal.h"\
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\win32.cpp
|
||||
DEP_CPP_WIN32=\
|
||||
"..\..\include\mozce_defs.h"\
|
||||
"..\..\mozce_internal.h"\
|
||||
{$(INCLUDE)}"kfuncs.h"\
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\win32A.cpp
|
||||
DEP_CPP_WIN32A=\
|
||||
"..\..\include\mozce_defs.h"\
|
||||
"..\..\mozce_internal.h"\
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\win32W.cpp
|
||||
DEP_CPP_WIN32W=\
|
||||
"..\..\include\mozce_defs.h"\
|
||||
"..\..\mozce_internal.h"\
|
||||
|
||||
# End Source File
|
||||
# End Group
|
||||
# Begin Group "Header Files"
|
||||
|
||||
# PROP Default_Filter "h;hpp;hxx;hm;inl"
|
||||
# End Group
|
||||
# End Target
|
||||
# End Project
|
|
@ -1,277 +0,0 @@
|
|||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="8.00"
|
||||
Name="static"
|
||||
ProjectGUID="{082BAB06-D10F-4C57-B123-F84DC06C246D}"
|
||||
RootNamespace="static"
|
||||
Keyword="Win32Proj"
|
||||
>
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Windows Mobile 5.0 Pocket PC SDK (ARMV4I)"
|
||||
/>
|
||||
</Platforms>
|
||||
<ToolFiles>
|
||||
</ToolFiles>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)"
|
||||
OutputDirectory="$(PlatformName)\Debug"
|
||||
IntermediateDirectory="$(PlatformName)\Debug"
|
||||
ConfigurationType="4"
|
||||
CharacterSet="1"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
ExecutionBucket="7"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="..\..\include"
|
||||
PreprocessorDefinitions="_WIN32_WCE=$(CEVER);UNDER_CE=$(CEVER);WINCE;$(PLATFORMDEFINES);_DEBUG;DEBUG;_LIB;$(ARCHFAM);$(_ARCHFAM_);MOZCE_STATIC_BUILD"
|
||||
MinimalRebuild="true"
|
||||
ExceptionHandling="0"
|
||||
RuntimeLibrary="1"
|
||||
EnableFunctionLevelLinking="true"
|
||||
TreatWChar_tAsBuiltInType="false"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
DebugInformationFormat="3"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
PreprocessorDefinitions="_DEBUG;_UNICODE;UNICODE;_WIN32_WCE;UNDER_CE"
|
||||
Culture="1033"
|
||||
AdditionalIncludeDirectories="$(IntDir)"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLibrarianTool"
|
||||
AdditionalOptions=" /subsystem:windowsce,5.01 /machine:THUMB"
|
||||
OutputFile="$(InputDir)/shunt_dbg.lib"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCodeSignTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
<DeploymentTool
|
||||
ForceDirty="-1"
|
||||
RemoteDirectory=""
|
||||
RegisterOutput="0"
|
||||
AdditionalFiles=""
|
||||
/>
|
||||
<DebuggerTool
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)"
|
||||
OutputDirectory="$(PlatformName)\Release"
|
||||
IntermediateDirectory="$(PlatformName)\Release"
|
||||
ConfigurationType="4"
|
||||
CharacterSet="1"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
ExecutionBucket="7"
|
||||
Optimization="2"
|
||||
AdditionalIncludeDirectories="..\..\include"
|
||||
PreprocessorDefinitions="_WIN32_WCE=$(CEVER);UNDER_CE=$(CEVER);WINCE;$(PLATFORMDEFINES);NDEBUG;_LIB;$(ARCHFAM);$(_ARCHFAM_);"
|
||||
ExceptionHandling="0"
|
||||
RuntimeLibrary="0"
|
||||
TreatWChar_tAsBuiltInType="false"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
DebugInformationFormat="3"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
PreprocessorDefinitions="NDEBUG;_UNICODE;UNICODE;_WIN32_WCE;UNDER_CE"
|
||||
Culture="1033"
|
||||
AdditionalIncludeDirectories="$(IntDir)"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLibrarianTool"
|
||||
AdditionalOptions=" /subsystem:windowsce,5.01 /machine:THUMB"
|
||||
OutputFile="$(InputDir)/shunt.lib"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCodeSignTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
<DeploymentTool
|
||||
ForceDirty="-1"
|
||||
RemoteDirectory=""
|
||||
RegisterOutput="0"
|
||||
AdditionalFiles=""
|
||||
/>
|
||||
<DebuggerTool
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
</References>
|
||||
<Files>
|
||||
<Filter
|
||||
Name="Source Files"
|
||||
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
|
||||
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
|
||||
>
|
||||
<File
|
||||
RelativePath="..\..\a2w.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\assert.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\clipboard.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\direct.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\errno.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\io.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\mbstring.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\nclog.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\process.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\signal.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\stat.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\stdio.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\stdlib.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\string.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\time.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\w2a.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\win32.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\win32A.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\win32W.cpp"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Header Files"
|
||||
Filter="h;hpp;hxx;hm;inl;inc;xsd"
|
||||
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
|
||||
>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Resource Files"
|
||||
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
|
||||
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
|
||||
>
|
||||
</Filter>
|
||||
<File
|
||||
RelativePath=".\ReadMe.txt"
|
||||
>
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
|
@ -1,29 +0,0 @@
|
|||
Microsoft eMbedded Visual Tools Workspace File, Format Version 4.00
|
||||
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
|
||||
|
||||
###############################################################################
|
||||
|
||||
Project: "static"=.\static.vcp - Package Owner=<4>
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<4>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
Global:
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<3>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
|
@ -1,46 +1,30 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 9.00
|
||||
# Visual Studio 2005
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mozce_shunt_static", "mozce_shunt_static.vcproj", "{082BAB06-D10F-4C57-B123-F84DC06C246D}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Pocket PC 2003 (ARMV4) = Debug|Pocket PC 2003 (ARMV4)
|
||||
Debug|Smartphone 2003 (ARMV4) = Debug|Smartphone 2003 (ARMV4)
|
||||
Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
|
||||
Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I) = Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I)
|
||||
Release|Pocket PC 2003 (ARMV4) = Release|Pocket PC 2003 (ARMV4)
|
||||
Release|Smartphone 2003 (ARMV4) = Release|Smartphone 2003 (ARMV4)
|
||||
Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
|
||||
Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I) = Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I)
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{082BAB06-D10F-4C57-B123-F84DC06C246D}.Debug|Pocket PC 2003 (ARMV4).ActiveCfg = Debug|Pocket PC 2003 (ARMV4)
|
||||
{082BAB06-D10F-4C57-B123-F84DC06C246D}.Debug|Pocket PC 2003 (ARMV4).Build.0 = Debug|Pocket PC 2003 (ARMV4)
|
||||
{082BAB06-D10F-4C57-B123-F84DC06C246D}.Debug|Pocket PC 2003 (ARMV4).Deploy.0 = Debug|Pocket PC 2003 (ARMV4)
|
||||
{082BAB06-D10F-4C57-B123-F84DC06C246D}.Debug|Smartphone 2003 (ARMV4).ActiveCfg = Debug|Smartphone 2003 (ARMV4)
|
||||
{082BAB06-D10F-4C57-B123-F84DC06C246D}.Debug|Smartphone 2003 (ARMV4).Build.0 = Debug|Smartphone 2003 (ARMV4)
|
||||
{082BAB06-D10F-4C57-B123-F84DC06C246D}.Debug|Smartphone 2003 (ARMV4).Deploy.0 = Debug|Smartphone 2003 (ARMV4)
|
||||
{082BAB06-D10F-4C57-B123-F84DC06C246D}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
|
||||
{082BAB06-D10F-4C57-B123-F84DC06C246D}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Build.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
|
||||
{082BAB06-D10F-4C57-B123-F84DC06C246D}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Deploy.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
|
||||
{082BAB06-D10F-4C57-B123-F84DC06C246D}.Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I).ActiveCfg = Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I)
|
||||
{082BAB06-D10F-4C57-B123-F84DC06C246D}.Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I).Build.0 = Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I)
|
||||
{082BAB06-D10F-4C57-B123-F84DC06C246D}.Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I).Deploy.0 = Debug|Windows Mobile 5.0 Smartphone SDK (ARMV4I)
|
||||
{082BAB06-D10F-4C57-B123-F84DC06C246D}.Release|Pocket PC 2003 (ARMV4).ActiveCfg = Release|Pocket PC 2003 (ARMV4)
|
||||
{082BAB06-D10F-4C57-B123-F84DC06C246D}.Release|Pocket PC 2003 (ARMV4).Build.0 = Release|Pocket PC 2003 (ARMV4)
|
||||
{082BAB06-D10F-4C57-B123-F84DC06C246D}.Release|Pocket PC 2003 (ARMV4).Deploy.0 = Release|Pocket PC 2003 (ARMV4)
|
||||
{082BAB06-D10F-4C57-B123-F84DC06C246D}.Release|Smartphone 2003 (ARMV4).ActiveCfg = Release|Smartphone 2003 (ARMV4)
|
||||
{082BAB06-D10F-4C57-B123-F84DC06C246D}.Release|Smartphone 2003 (ARMV4).Build.0 = Release|Smartphone 2003 (ARMV4)
|
||||
{082BAB06-D10F-4C57-B123-F84DC06C246D}.Release|Smartphone 2003 (ARMV4).Deploy.0 = Release|Smartphone 2003 (ARMV4)
|
||||
{082BAB06-D10F-4C57-B123-F84DC06C246D}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
|
||||
{082BAB06-D10F-4C57-B123-F84DC06C246D}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Build.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
|
||||
{082BAB06-D10F-4C57-B123-F84DC06C246D}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Deploy.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
|
||||
{082BAB06-D10F-4C57-B123-F84DC06C246D}.Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I).ActiveCfg = Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I)
|
||||
{082BAB06-D10F-4C57-B123-F84DC06C246D}.Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I).Build.0 = Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I)
|
||||
{082BAB06-D10F-4C57-B123-F84DC06C246D}.Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I).Deploy.0 = Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I)
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 9.00
|
||||
# Visual Studio 2005
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mozce_shunt_static", "mozce_shunt_static.vcproj", "{082BAB06-D10F-4C57-B123-F84DC06C246D}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Windows Mobile 6 Professional SDK (ARMV4I) = Debug|Windows Mobile 6 Professional SDK (ARMV4I)
|
||||
Debug|Windows Mobile 6 Standard SDK (ARMV4I) = Debug|Windows Mobile 6 Standard SDK (ARMV4I)
|
||||
Release|Windows Mobile 6 Professional SDK (ARMV4I) = Release|Windows Mobile 6 Professional SDK (ARMV4I)
|
||||
Release|Windows Mobile 6 Standard SDK (ARMV4I) = Release|Windows Mobile 6 Standard SDK (ARMV4I)
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{082BAB06-D10F-4C57-B123-F84DC06C246D}.Debug|Windows Mobile 6 Professional SDK (ARMV4I).ActiveCfg = Debug|Windows Mobile 6 Professional SDK (ARMV4I)
|
||||
{082BAB06-D10F-4C57-B123-F84DC06C246D}.Debug|Windows Mobile 6 Professional SDK (ARMV4I).Build.0 = Debug|Windows Mobile 6 Professional SDK (ARMV4I)
|
||||
{082BAB06-D10F-4C57-B123-F84DC06C246D}.Debug|Windows Mobile 6 Professional SDK (ARMV4I).Deploy.0 = Debug|Windows Mobile 6 Professional SDK (ARMV4I)
|
||||
{082BAB06-D10F-4C57-B123-F84DC06C246D}.Debug|Windows Mobile 6 Standard SDK (ARMV4I).ActiveCfg = Debug|Windows Mobile 6 Standard SDK (ARMV4I)
|
||||
{082BAB06-D10F-4C57-B123-F84DC06C246D}.Debug|Windows Mobile 6 Standard SDK (ARMV4I).Build.0 = Debug|Windows Mobile 6 Standard SDK (ARMV4I)
|
||||
{082BAB06-D10F-4C57-B123-F84DC06C246D}.Debug|Windows Mobile 6 Standard SDK (ARMV4I).Deploy.0 = Debug|Windows Mobile 6 Standard SDK (ARMV4I)
|
||||
{082BAB06-D10F-4C57-B123-F84DC06C246D}.Release|Windows Mobile 6 Professional SDK (ARMV4I).ActiveCfg = Release|Windows Mobile 6 Professional SDK (ARMV4I)
|
||||
{082BAB06-D10F-4C57-B123-F84DC06C246D}.Release|Windows Mobile 6 Professional SDK (ARMV4I).Build.0 = Release|Windows Mobile 6 Professional SDK (ARMV4I)
|
||||
{082BAB06-D10F-4C57-B123-F84DC06C246D}.Release|Windows Mobile 6 Professional SDK (ARMV4I).Deploy.0 = Release|Windows Mobile 6 Professional SDK (ARMV4I)
|
||||
{082BAB06-D10F-4C57-B123-F84DC06C246D}.Release|Windows Mobile 6 Standard SDK (ARMV4I).ActiveCfg = Release|Windows Mobile 6 Standard SDK (ARMV4I)
|
||||
{082BAB06-D10F-4C57-B123-F84DC06C246D}.Release|Windows Mobile 6 Standard SDK (ARMV4I).Build.0 = Release|Windows Mobile 6 Standard SDK (ARMV4I)
|
||||
{082BAB06-D10F-4C57-B123-F84DC06C246D}.Release|Windows Mobile 6 Standard SDK (ARMV4I).Deploy.0 = Release|Windows Mobile 6 Standard SDK (ARMV4I)
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -1,310 +1,311 @@
|
|||
/* ***** BEGIN LICENSE BLOCK *****
|
||||
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
*
|
||||
* The contents of this file are subject to the Mozilla Public License Version
|
||||
* 1.1 (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
* http://www.mozilla.org/MPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
* for the specific language governing rights and limitations under the
|
||||
* License.
|
||||
*
|
||||
* The Original Code is WinCE Shunt
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* Douglas F. Turner II <dougt@meer.net>
|
||||
* Portions created by the Initial Developer are Copyright (C) 2005
|
||||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*
|
||||
* Alternatively, the contents of this file may be used under the terms of
|
||||
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
* in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
* of those above. If you wish to allow use of your version of this file only
|
||||
* under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
* use your version of this file under the terms of the MPL, indicate your
|
||||
* decision by deleting the provisions above and replace them with the notice
|
||||
* and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
* the provisions above, a recipient may use your version of this file under
|
||||
* the terms of any one of the MPL, the GPL or the LGPL.
|
||||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
#include "mozce_internal.h"
|
||||
|
||||
extern "C" {
|
||||
#if 0
|
||||
}
|
||||
#endif
|
||||
|
||||
static IDataObject* gDataObject = NULL;
|
||||
static HWND gClipboardWND = NULL; /* we may need to free this */
|
||||
|
||||
void oleSetup()
|
||||
{
|
||||
if (gClipboardWND)
|
||||
return;
|
||||
|
||||
WNDCLASS wndclass;
|
||||
ZeroMemory( &wndclass, sizeof(WNDCLASS));
|
||||
|
||||
|
||||
wndclass.style = CS_GLOBALCLASS;
|
||||
wndclass.lpfnWndProc = DefWindowProc;
|
||||
wndclass.lpszClassName = L"OLE_CLIPBOARD";
|
||||
|
||||
RegisterClass(&wndclass);
|
||||
|
||||
gClipboardWND = CreateWindow(L"OLE_Clipboard",
|
||||
0,
|
||||
0,
|
||||
CW_USEDEFAULT, CW_USEDEFAULT,
|
||||
CW_USEDEFAULT, CW_USEDEFAULT,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0);
|
||||
}
|
||||
|
||||
class ClipDataObj : public IDataObject
|
||||
{
|
||||
public:
|
||||
ClipDataObj()
|
||||
{
|
||||
mRefCnt = 0;
|
||||
}
|
||||
|
||||
~ClipDataObj()
|
||||
{
|
||||
}
|
||||
|
||||
STDMETHODIMP_(ULONG) AddRef()
|
||||
{
|
||||
mRefCnt++;
|
||||
return mRefCnt;
|
||||
}
|
||||
|
||||
STDMETHODIMP QueryInterface(REFIID iid, void **ppvObject)
|
||||
{
|
||||
// check to see what interface has been requested
|
||||
if(iid == IID_IDataObject || iid == IID_IUnknown)
|
||||
{
|
||||
AddRef();
|
||||
*ppvObject = this;
|
||||
return S_OK;
|
||||
}
|
||||
else
|
||||
{
|
||||
*ppvObject = 0;
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
}
|
||||
|
||||
STDMETHODIMP_(ULONG) Release()
|
||||
{
|
||||
mRefCnt--;
|
||||
if (mRefCnt == 0)
|
||||
{
|
||||
delete this;
|
||||
return 0;
|
||||
}
|
||||
|
||||
return mRefCnt;
|
||||
}
|
||||
|
||||
STDMETHODIMP GetData (FORMATETC *pFormatEtc, STGMEDIUM *pMedium)
|
||||
{
|
||||
|
||||
oleSetup();
|
||||
|
||||
BOOL b = OpenClipboard(gClipboardWND);
|
||||
|
||||
if (!b)
|
||||
return E_FAIL;
|
||||
|
||||
HANDLE hData = GetClipboardData(pFormatEtc->cfFormat);
|
||||
|
||||
LPVOID src = GlobalLock(hData);
|
||||
if(src) {
|
||||
ULONG size = GlobalSize(hData);
|
||||
HANDLE hDest = GlobalAlloc(GHND, size);
|
||||
LPVOID dest = GlobalLock(hDest);
|
||||
memcpy(dest, src, size);
|
||||
|
||||
GlobalUnlock(hDest);
|
||||
GlobalUnlock(hData);
|
||||
|
||||
hData = hDest;
|
||||
}
|
||||
|
||||
pMedium->tymed = (hData == 0) ? TYMED_NULL : TYMED_HGLOBAL;
|
||||
pMedium->hGlobal = (HGLOBAL)hData;
|
||||
pMedium->pUnkForRelease = NULL;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
STDMETHODIMP GetDataHere (LPFORMATETC pFE, LPSTGMEDIUM pSTM)
|
||||
{
|
||||
return DATA_E_FORMATETC;
|
||||
}
|
||||
|
||||
STDMETHODIMP QueryGetData (LPFORMATETC pFE)
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
STDMETHODIMP GetCanonicalFormatEtc (LPFORMATETC pFE, LPFORMATETC pCanonFE)
|
||||
{
|
||||
pFE->ptd = NULL;
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
STDMETHODIMP SetData (LPFORMATETC pFE, LPSTGMEDIUM pSTM, BOOL release)
|
||||
{
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
STDMETHODIMP EnumFormatEtc (DWORD dwDirection, LPENUMFORMATETC* ppEnum)
|
||||
{
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
STDMETHODIMP DAdvise (LPFORMATETC pFE, DWORD flags, LPADVISESINK pAdvise, DWORD* pConn)
|
||||
{
|
||||
return OLE_E_ADVISENOTSUPPORTED;
|
||||
}
|
||||
|
||||
STDMETHODIMP DUnadvise (DWORD pConn)
|
||||
{
|
||||
return OLE_E_ADVISENOTSUPPORTED;
|
||||
}
|
||||
|
||||
STDMETHODIMP EnumDAdvise (LPENUMSTATDATA *ppEnum)
|
||||
{
|
||||
return OLE_E_ADVISENOTSUPPORTED;
|
||||
}
|
||||
private:
|
||||
LONG mRefCnt;
|
||||
};
|
||||
|
||||
|
||||
|
||||
MOZCE_SHUNT_API HRESULT mozce_OleSetClipboard(IDataObject * pDataObj)
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
|
||||
oleSetup();
|
||||
|
||||
if (gDataObject)
|
||||
gDataObject->Release();
|
||||
|
||||
gDataObject = pDataObj;
|
||||
|
||||
if (pDataObj)
|
||||
{
|
||||
BOOL b = OpenClipboard(gClipboardWND);
|
||||
|
||||
if (!b)
|
||||
return E_FAIL;
|
||||
|
||||
EmptyClipboard();
|
||||
|
||||
pDataObj->AddRef();
|
||||
|
||||
IEnumFORMATETC* enumerator = NULL;
|
||||
pDataObj->EnumFormatEtc(DATADIR_GET, &enumerator);
|
||||
if (!enumerator)
|
||||
return S_OK;
|
||||
|
||||
FORMATETC etc;
|
||||
|
||||
while (S_OK == enumerator->Next(1, &etc, NULL))
|
||||
{
|
||||
if ( etc.tymed == TYMED_HGLOBAL )
|
||||
{
|
||||
|
||||
STGMEDIUM medium;
|
||||
pDataObj->GetData(&etc, &medium);
|
||||
SetClipboardData( etc.cfFormat, medium.hGlobal);
|
||||
}
|
||||
}
|
||||
|
||||
enumerator->Release();
|
||||
|
||||
CloseClipboard();
|
||||
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
MOZCE_SHUNT_API HRESULT mozce_OleGetClipboard(IDataObject ** pDataObj)
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
oleSetup();
|
||||
|
||||
if (pDataObj)
|
||||
*pDataObj = gDataObject;
|
||||
|
||||
if (!*pDataObj)
|
||||
{
|
||||
*pDataObj = new ClipDataObj();
|
||||
if (!*pDataObj)
|
||||
return E_FAIL;
|
||||
|
||||
gDataObject = *pDataObj;
|
||||
}
|
||||
|
||||
(*pDataObj)->AddRef();
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
MOZCE_SHUNT_API HRESULT mozce_OleFlushClipboard()
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
oleSetup();
|
||||
|
||||
mozce_OleSetClipboard(NULL);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
MOZCE_SHUNT_API BOOL mozce_IsClipboardFormatAvailable(UINT format)
|
||||
{
|
||||
if (gClipboardWND)
|
||||
{
|
||||
BOOL b = OpenClipboard(gClipboardWND);
|
||||
if (!b)
|
||||
return E_FAIL;
|
||||
|
||||
IEnumFORMATETC* enumerator = NULL;
|
||||
gDataObject->EnumFormatEtc(DATADIR_GET, &enumerator);
|
||||
if (!enumerator)
|
||||
return S_OK;
|
||||
|
||||
FORMATETC etc;
|
||||
|
||||
while (S_OK == enumerator->Next(1, &etc, NULL))
|
||||
{
|
||||
if ( etc.cfFormat == format)
|
||||
{
|
||||
enumerator->Release();
|
||||
CloseClipboard();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
enumerator->Release();
|
||||
CloseClipboard();
|
||||
}
|
||||
|
||||
return IsClipboardFormatAvailable(format);
|
||||
}
|
||||
|
||||
#if 0
|
||||
{
|
||||
#endif
|
||||
} /* extern "C" */
|
||||
/* ***** BEGIN LICENSE BLOCK *****
|
||||
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
*
|
||||
* The contents of this file are subject to the Mozilla Public License Version
|
||||
* 1.1 (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
* http://www.mozilla.org/MPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
* for the specific language governing rights and limitations under the
|
||||
* License.
|
||||
*
|
||||
* The Original Code is WinCE Shunt
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* Douglas F. Turner II <dougt@meer.net>
|
||||
* Portions created by the Initial Developer are Copyright (C) 2005
|
||||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*
|
||||
* Alternatively, the contents of this file may be used under the terms of
|
||||
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
* in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
* of those above. If you wish to allow use of your version of this file only
|
||||
* under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
* use your version of this file under the terms of the MPL, indicate your
|
||||
* decision by deleting the provisions above and replace them with the notice
|
||||
* and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
* the provisions above, a recipient may use your version of this file under
|
||||
* the terms of any one of the MPL, the GPL or the LGPL.
|
||||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
#include "mozce_internal.h"
|
||||
|
||||
extern "C" {
|
||||
#if 0
|
||||
}
|
||||
#endif
|
||||
|
||||
static IDataObject* gDataObject = NULL;
|
||||
static HWND gClipboardWND = NULL; /* we may need to free this */
|
||||
|
||||
void oleSetup()
|
||||
{
|
||||
if (gClipboardWND)
|
||||
return;
|
||||
|
||||
WNDCLASS wndclass;
|
||||
ZeroMemory( &wndclass, sizeof(WNDCLASS));
|
||||
|
||||
|
||||
wndclass.style = CS_GLOBALCLASS;
|
||||
wndclass.lpfnWndProc = DefWindowProc;
|
||||
wndclass.lpszClassName = L"OLE_CLIPBOARD";
|
||||
|
||||
RegisterClass(&wndclass);
|
||||
|
||||
gClipboardWND = CreateWindow(L"OLE_Clipboard",
|
||||
0,
|
||||
0,
|
||||
CW_USEDEFAULT, CW_USEDEFAULT,
|
||||
CW_USEDEFAULT, CW_USEDEFAULT,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0);
|
||||
}
|
||||
|
||||
class ClipDataObj : public IDataObject
|
||||
{
|
||||
public:
|
||||
ClipDataObj()
|
||||
{
|
||||
mRefCnt = 0;
|
||||
}
|
||||
|
||||
~ClipDataObj()
|
||||
{
|
||||
}
|
||||
|
||||
STDMETHODIMP_(ULONG) AddRef()
|
||||
{
|
||||
mRefCnt++;
|
||||
return mRefCnt;
|
||||
}
|
||||
|
||||
STDMETHODIMP QueryInterface(REFIID iid, void **ppvObject)
|
||||
{
|
||||
// check to see what interface has been requested
|
||||
if(iid == IID_IDataObject || iid == IID_IUnknown)
|
||||
{
|
||||
AddRef();
|
||||
*ppvObject = this;
|
||||
return S_OK;
|
||||
}
|
||||
else
|
||||
{
|
||||
*ppvObject = 0;
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
}
|
||||
|
||||
STDMETHODIMP_(ULONG) Release()
|
||||
{
|
||||
mRefCnt--;
|
||||
if (mRefCnt == 0)
|
||||
{
|
||||
delete this;
|
||||
return 0;
|
||||
}
|
||||
|
||||
return mRefCnt;
|
||||
}
|
||||
|
||||
STDMETHODIMP GetData (FORMATETC *pFormatEtc, STGMEDIUM *pMedium)
|
||||
{
|
||||
|
||||
oleSetup();
|
||||
|
||||
BOOL b = OpenClipboard(gClipboardWND);
|
||||
|
||||
if (!b)
|
||||
return E_FAIL;
|
||||
|
||||
HANDLE hData = GetClipboardData(pFormatEtc->cfFormat);
|
||||
|
||||
LPVOID src = GlobalLock(hData);
|
||||
if(src) {
|
||||
ULONG size = GlobalSize(hData);
|
||||
HANDLE hDest = GlobalAlloc(GHND, size);
|
||||
LPVOID dest = GlobalLock(hDest);
|
||||
memcpy(dest, src, size);
|
||||
|
||||
GlobalUnlock(hDest);
|
||||
GlobalUnlock(hData);
|
||||
|
||||
hData = hDest;
|
||||
}
|
||||
|
||||
pMedium->tymed = (hData == 0) ? TYMED_NULL : TYMED_HGLOBAL;
|
||||
pMedium->hGlobal = (HGLOBAL)hData;
|
||||
pMedium->pUnkForRelease = NULL;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
STDMETHODIMP GetDataHere (LPFORMATETC pFE, LPSTGMEDIUM pSTM)
|
||||
{
|
||||
return DATA_E_FORMATETC;
|
||||
}
|
||||
|
||||
STDMETHODIMP QueryGetData (LPFORMATETC pFE)
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
STDMETHODIMP GetCanonicalFormatEtc (LPFORMATETC pFE, LPFORMATETC pCanonFE)
|
||||
{
|
||||
pFE->ptd = NULL;
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
STDMETHODIMP SetData (LPFORMATETC pFE, LPSTGMEDIUM pSTM, BOOL release)
|
||||
{
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
STDMETHODIMP EnumFormatEtc (DWORD dwDirection, LPENUMFORMATETC* ppEnum)
|
||||
{
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
STDMETHODIMP DAdvise (LPFORMATETC pFE, DWORD flags, LPADVISESINK pAdvise, DWORD* pConn)
|
||||
{
|
||||
return OLE_E_ADVISENOTSUPPORTED;
|
||||
}
|
||||
|
||||
STDMETHODIMP DUnadvise (DWORD pConn)
|
||||
{
|
||||
return OLE_E_ADVISENOTSUPPORTED;
|
||||
}
|
||||
|
||||
STDMETHODIMP EnumDAdvise (LPENUMSTATDATA *ppEnum)
|
||||
{
|
||||
return OLE_E_ADVISENOTSUPPORTED;
|
||||
}
|
||||
private:
|
||||
LONG mRefCnt;
|
||||
};
|
||||
|
||||
|
||||
|
||||
MOZCE_SHUNT_API HRESULT OleSetClipboard(IDataObject * pDataObj)
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
|
||||
oleSetup();
|
||||
|
||||
if (gDataObject)
|
||||
gDataObject->Release();
|
||||
|
||||
gDataObject = pDataObj;
|
||||
|
||||
if (pDataObj)
|
||||
{
|
||||
BOOL b = OpenClipboard(gClipboardWND);
|
||||
|
||||
if (!b)
|
||||
return E_FAIL;
|
||||
|
||||
EmptyClipboard();
|
||||
|
||||
pDataObj->AddRef();
|
||||
|
||||
IEnumFORMATETC* enumerator = NULL;
|
||||
pDataObj->EnumFormatEtc(DATADIR_GET, &enumerator);
|
||||
if (!enumerator)
|
||||
return S_OK;
|
||||
|
||||
FORMATETC etc;
|
||||
|
||||
while (S_OK == enumerator->Next(1, &etc, NULL))
|
||||
{
|
||||
if ( etc.tymed == TYMED_HGLOBAL )
|
||||
{
|
||||
|
||||
STGMEDIUM medium;
|
||||
pDataObj->GetData(&etc, &medium);
|
||||
SetClipboardData( etc.cfFormat, medium.hGlobal);
|
||||
}
|
||||
}
|
||||
|
||||
enumerator->Release();
|
||||
|
||||
CloseClipboard();
|
||||
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
// dougt?? do we need this clipboard function
|
||||
MOZCE_SHUNT_API HRESULT OleGetClipboard(IDataObject ** pDataObj)
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
oleSetup();
|
||||
|
||||
if (pDataObj)
|
||||
*pDataObj = gDataObject;
|
||||
|
||||
if (!*pDataObj)
|
||||
{
|
||||
*pDataObj = new ClipDataObj();
|
||||
if (!*pDataObj)
|
||||
return E_FAIL;
|
||||
|
||||
gDataObject = *pDataObj;
|
||||
}
|
||||
|
||||
(*pDataObj)->AddRef();
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
MOZCE_SHUNT_API HRESULT OleFlushClipboard()
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
oleSetup();
|
||||
|
||||
OleSetClipboard(NULL);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
MOZCE_SHUNT_API BOOL IsClipboardFormatAvailable(UINT format)
|
||||
{
|
||||
if (gClipboardWND)
|
||||
{
|
||||
BOOL b = OpenClipboard(gClipboardWND);
|
||||
if (!b)
|
||||
return E_FAIL;
|
||||
|
||||
IEnumFORMATETC* enumerator = NULL;
|
||||
gDataObject->EnumFormatEtc(DATADIR_GET, &enumerator);
|
||||
if (!enumerator)
|
||||
return S_OK;
|
||||
|
||||
FORMATETC etc;
|
||||
|
||||
while (S_OK == enumerator->Next(1, &etc, NULL))
|
||||
{
|
||||
if ( etc.cfFormat == format)
|
||||
{
|
||||
enumerator->Release();
|
||||
CloseClipboard();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
enumerator->Release();
|
||||
CloseClipboard();
|
||||
}
|
||||
|
||||
return IsClipboardFormatAvailable(format);
|
||||
}
|
||||
|
||||
#if 0
|
||||
{
|
||||
#endif
|
||||
} /* extern "C" */
|
||||
|
|
|
@ -47,12 +47,12 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
|
||||
MOZCE_SHUNT_API int mozce_mkdir(const char* inDirname)
|
||||
MOZCE_SHUNT_API int mkdir(const char* inDirname)
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
|
||||
#ifdef DEBUG
|
||||
mozce_printf("mozce_mkdir called\n");
|
||||
mozce_printf("mkdir called\n");
|
||||
#endif
|
||||
|
||||
int retval = -1;
|
||||
|
@ -74,12 +74,12 @@ MOZCE_SHUNT_API int mozce_mkdir(const char* inDirname)
|
|||
}
|
||||
|
||||
|
||||
MOZCE_SHUNT_API int mozce_rmdir(const char* inDirname)
|
||||
MOZCE_SHUNT_API int rmdir(const char* inDirname)
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
|
||||
#ifdef DEBUG
|
||||
mozce_printf("mozce_rmdir called (%s)\n", inDirname);
|
||||
mozce_printf("rmdir called (%s)\n", inDirname);
|
||||
#endif
|
||||
|
||||
int retval = -1;
|
||||
|
|
|
@ -45,7 +45,7 @@ extern "C" {
|
|||
}
|
||||
#endif
|
||||
|
||||
MOZCE_SHUNT_API int mozce_errno = 0;
|
||||
MOZCE_SHUNT_API int errno = 0;
|
||||
|
||||
#if 0
|
||||
{
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
#include "mozce_shunt.h"
|
|
@ -1 +0,0 @@
|
|||
#include "mozce_shunt.h"
|
|
@ -1 +0,0 @@
|
|||
#include "mozce_shunt.h"
|
|
@ -37,6 +37,8 @@
|
|||
#ifndef _MOZCE_DEFS
|
||||
#define _MOZCE_DEFS
|
||||
|
||||
#include <bldver.h> // for build version macros
|
||||
|
||||
#ifndef MOZCE_STATIC_BUILD
|
||||
#ifdef MOZCE_SHUNT_EXPORTS
|
||||
#define MOZCE_SHUNT_API __declspec(dllexport)
|
||||
|
@ -66,14 +68,6 @@
|
|||
#endif
|
||||
#define HINSTANCE_ERROR -1
|
||||
|
||||
#if defined(min)
|
||||
#undef min
|
||||
#endif
|
||||
|
||||
#if defined(max)
|
||||
#undef max
|
||||
#endif
|
||||
|
||||
#ifdef IDI_APPLICATION
|
||||
#undef IDI_APPLICATION
|
||||
#endif
|
||||
|
@ -87,236 +81,46 @@
|
|||
// Various Definations
|
||||
//////////////////////////////////////////////////////////
|
||||
|
||||
// for errors.h
|
||||
|
||||
#ifdef EPERM
|
||||
#undef EPERM
|
||||
// From errno.h
|
||||
#define EPERM 1
|
||||
#define ENOENT 2
|
||||
#define ESRCH 3
|
||||
#define EINTR 4
|
||||
#define EIO 5
|
||||
#define ENXIO 6
|
||||
#define E2BIG 7
|
||||
#define ENOEXEC 8
|
||||
#define EBADF 9
|
||||
#define ECHILD 10
|
||||
#define EAGAIN 11
|
||||
#define ENOMEM 12
|
||||
#define EACCES 13
|
||||
#define EFAULT 14
|
||||
#define EBUSY 16
|
||||
#define EEXIST 17
|
||||
#define EXDEV 18
|
||||
#define ENODEV 19
|
||||
#define ENOTDIR 20
|
||||
#define EISDIR 21
|
||||
#define ENFILE 23
|
||||
#define EMFILE 24
|
||||
#define ENOTTY 25
|
||||
#define EFBIG 27
|
||||
#define ENOSPC 28
|
||||
#define ESPIPE 29
|
||||
#define EROFS 30
|
||||
#define EMLINK 31
|
||||
#define EPIPE 32
|
||||
#define EDOM 33
|
||||
#define EDEADLK 36
|
||||
#ifndef ENAMETOOLONG
|
||||
#define ENAMETOOLONG 38
|
||||
#endif
|
||||
#define EPERM 1 /* Operation not permitted */
|
||||
|
||||
#ifdef ENOENT
|
||||
#undef ENOENT
|
||||
#define ENOLCK 39
|
||||
#define ENOSYS 40
|
||||
#ifndef ENOTEMPTY
|
||||
#define ENOTEMPTY 41
|
||||
#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 */
|
||||
|
||||
#ifdef ENOTEMPTY
|
||||
#undef ENOTEMPTY
|
||||
#endif
|
||||
#define ENOTEMPTY 39 /* Directory not empty */
|
||||
|
||||
|
||||
// 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
|
||||
|
@ -351,6 +155,8 @@
|
|||
#define _O_TRUNC O_TRUNC
|
||||
#define _O_WRONLY O_WRONLY
|
||||
|
||||
#define _IONBF 0x0004
|
||||
|
||||
// From stdlib.h
|
||||
#define _MAX_PATH MAX_PATH
|
||||
|
||||
|
@ -368,7 +174,7 @@ typedef long off_t;
|
|||
#define _S_IWRITE 0000200 /* stat, can write */
|
||||
#define _S_IEXEC 0000100
|
||||
|
||||
struct mozce_stat
|
||||
struct stat
|
||||
{
|
||||
unsigned short st_mode;
|
||||
_off_t st_size;
|
||||
|
@ -377,8 +183,7 @@ struct mozce_stat
|
|||
time_t st_mtime;
|
||||
};
|
||||
|
||||
#define _stat mozce_stat
|
||||
#define stat mozce_stat
|
||||
#define _stat stat
|
||||
#endif /* _STAT_DEFINED */
|
||||
|
||||
#ifdef HANDLE_FLAG_INHERIT
|
||||
|
@ -386,79 +191,15 @@ struct mozce_stat
|
|||
#endif
|
||||
#define HANDLE_FLAG_INHERIT 0x00000001
|
||||
|
||||
// From time.h
|
||||
|
||||
#define _TM_DEFINED
|
||||
struct tm {
|
||||
int tm_sec;
|
||||
int tm_min;
|
||||
int tm_hour;
|
||||
int tm_mday;
|
||||
int tm_mon;
|
||||
int tm_year;
|
||||
int tm_wday;
|
||||
int tm_yday;
|
||||
int tm_isdst;
|
||||
};
|
||||
|
||||
|
||||
typedef struct mozce_GLYPHMETRICS
|
||||
typedef struct GLYPHMETRICS
|
||||
{
|
||||
UINT gmBlackBoxX;
|
||||
UINT gmBlackBoxY;
|
||||
POINT gmptGlyphOrigin;
|
||||
short gmCellIncX;
|
||||
short gmCellIncY;
|
||||
} mozce_GLYPHMETRICS;
|
||||
|
||||
typedef struct mozce_PANOSE {
|
||||
BYTE bFamilyType;
|
||||
BYTE bSerifStyle;
|
||||
BYTE bWeight;
|
||||
BYTE bProportion;
|
||||
BYTE bContrast;
|
||||
BYTE bStrokeVariation;
|
||||
BYTE bArmStyle;
|
||||
BYTE bLetterform;
|
||||
BYTE bMidline;
|
||||
BYTE bXHeight;
|
||||
} mozce_PANOSE;
|
||||
|
||||
typedef struct mozce_OUTLINETEXTMETRIC
|
||||
{
|
||||
UINT otmSize;
|
||||
TEXTMETRIC otmTextMetrics;
|
||||
BYTE otmFiller;
|
||||
mozce_PANOSE otmPanoseNumber;
|
||||
UINT otmfsSelection;
|
||||
UINT otmfsType;
|
||||
int otmsCharSlopeRise;
|
||||
int otmsCharSlopeRun;
|
||||
int otmItalicAngle;
|
||||
UINT otmEMSquare;
|
||||
int otmAscent;
|
||||
int otmDescent;
|
||||
UINT otmLineGap;
|
||||
UINT otmsCapEmHeight;
|
||||
UINT otmsXHeight;
|
||||
RECT otmrcFontBox;
|
||||
int otmMacAscent;
|
||||
int otmMacDescent;
|
||||
UINT otmMacLineGap;
|
||||
UINT otmusMinimumPPEM;
|
||||
POINT otmptSubscriptSize;
|
||||
POINT otmptSubscriptOffset;
|
||||
POINT otmptSuperscriptSize;
|
||||
POINT otmptSuperscriptOffset;
|
||||
UINT otmsStrikeoutSize;
|
||||
int otmsStrikeoutPosition;
|
||||
int otmsUnderscoreSize;
|
||||
int otmsUnderscorePosition;
|
||||
PSTR otmpFamilyName;
|
||||
PSTR otmpFaceName;
|
||||
PSTR otmpStyleName;
|
||||
PSTR otmpFullName;
|
||||
} mozce_OUTLINETEXTMETRIC;
|
||||
} GLYPHMETRICS;
|
||||
|
||||
|
||||
#define SW_SHOWMINIMIZED 2
|
||||
|
@ -528,50 +269,17 @@ typedef struct WINDOWPLACEMENT
|
|||
typedef void (*_sigsig)(int inSignal);
|
||||
|
||||
|
||||
typedef struct mozce_FIXED {
|
||||
typedef struct FIXED {
|
||||
WORD fract;
|
||||
short value;
|
||||
} mozce_FIXED;
|
||||
} FIXED;
|
||||
|
||||
typedef struct mozce_MAT2 {
|
||||
mozce_FIXED eM11;
|
||||
mozce_FIXED eM12;
|
||||
mozce_FIXED eM21;
|
||||
mozce_FIXED eM22;
|
||||
} mozce_MAT2;
|
||||
|
||||
|
||||
#if UNDER_CE<501
|
||||
|
||||
// These are already defined the 5.0 SDK. You will needed
|
||||
// these defines if you are using another SDK
|
||||
|
||||
#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
|
||||
//
|
||||
typedef struct MAT2 {
|
||||
FIXED eM11;
|
||||
FIXED eM12;
|
||||
FIXED eM21;
|
||||
FIXED eM22;
|
||||
} MAT2;
|
||||
|
||||
#define AC_SRC_OVER 0x00
|
||||
|
||||
|
@ -603,6 +311,456 @@ struct color{
|
|||
#define LPRASPBDLG void*
|
||||
#define LPRASDIALDLG void*
|
||||
|
||||
/* Graphics Modes */
|
||||
#define GM_COMPATIBLE 1
|
||||
#define GM_ADVANCED 2
|
||||
|
||||
//
|
||||
// usp10.h: unicode
|
||||
//
|
||||
typedef void *SCRIPT_CACHE;
|
||||
|
||||
typedef struct tag_SCRIPT_STATE {
|
||||
WORD uBidiLevel :5;
|
||||
WORD fOverrideDirection :1;
|
||||
WORD fInhibitSymSwap :1;
|
||||
WORD fCharShape :1;
|
||||
WORD fDigitSubstitute :1;
|
||||
WORD fInhibitLigate :1;
|
||||
WORD fDisplayZWG :1;
|
||||
WORD fArabicNumContext :1;
|
||||
WORD fGcpClusters :1;
|
||||
WORD fReserved :1;
|
||||
WORD fEngineReserved :2;
|
||||
} SCRIPT_STATE;
|
||||
|
||||
typedef struct tag_SCRIPT_ANALYSIS {
|
||||
WORD eScript :10;
|
||||
WORD fRTL :1;
|
||||
WORD fLayoutRTL :1;
|
||||
WORD fLinkBefore :1;
|
||||
WORD fLinkAfter :1;
|
||||
WORD fLogicalOrder :1;
|
||||
WORD fNoGlyphIndex :1;
|
||||
SCRIPT_STATE s ;
|
||||
} SCRIPT_ANALYSIS;
|
||||
|
||||
typedef struct tag_SCRIPT_ITEM {
|
||||
int iCharPos;
|
||||
SCRIPT_ANALYSIS a;
|
||||
} SCRIPT_ITEM;
|
||||
|
||||
typedef struct {
|
||||
int cBytes;
|
||||
WORD wgBlank;
|
||||
WORD wgDefault;
|
||||
WORD wgInvalid;
|
||||
WORD wgKashida;
|
||||
int iKashidaWidth;
|
||||
} SCRIPT_FONTPROPERTIES;
|
||||
|
||||
typedef struct {
|
||||
DWORD langid :16;
|
||||
DWORD fNumeric :1;
|
||||
DWORD fComplex :1;
|
||||
DWORD fNeedsWordBreaking :1;
|
||||
DWORD fNeedsCaretInfo :1;
|
||||
DWORD bCharSet :8;
|
||||
DWORD fControl :1;
|
||||
DWORD fPrivateUseArea :1;
|
||||
DWORD fNeedsCharacterJustify :1;
|
||||
DWORD fInvalidGlyph :1;
|
||||
DWORD fInvalidLogAttr :1;
|
||||
DWORD fCDM :1;
|
||||
DWORD fAmbiguousCharSet :1;
|
||||
DWORD fClusterSizeVaries :1;
|
||||
DWORD fRejectInvalid :1;
|
||||
} SCRIPT_PROPERTIES;
|
||||
|
||||
typedef struct tag_SCRIPT_VISATTR {
|
||||
WORD uJustification :4;
|
||||
WORD fClusterStart :1;
|
||||
WORD fDiacritic :1;
|
||||
WORD fZeroWidth :1;
|
||||
WORD fReserved :1;
|
||||
WORD fShapeReserved :8;
|
||||
} SCRIPT_VISATTR;
|
||||
|
||||
#ifndef LSDEFS_DEFINED
|
||||
typedef struct tagGOFFSET {
|
||||
LONG du;
|
||||
LONG dv;
|
||||
} GOFFSET;
|
||||
#endif
|
||||
|
||||
#define SCRIPT_UNDEFINED 0
|
||||
|
||||
|
||||
typedef struct tag_SCRIPT_LOGATTR {
|
||||
BYTE fSoftBreak :1;
|
||||
BYTE fWhiteSpace :1;
|
||||
BYTE fCharStop :1;
|
||||
BYTE fWordStop :1;
|
||||
BYTE fInvalid :1;
|
||||
BYTE fReserved :3;
|
||||
} SCRIPT_LOGATTR;
|
||||
|
||||
typedef struct tag_SCRIPT_CONTROL {
|
||||
DWORD uDefaultLanguage :16;
|
||||
DWORD fContextDigits :1;
|
||||
DWORD fInvertPreBoundDir :1;
|
||||
DWORD fInvertPostBoundDir :1;
|
||||
DWORD fLinkStringBefore :1;
|
||||
DWORD fLinkStringAfter :1;
|
||||
DWORD fNeutralOverride :1;
|
||||
DWORD fNumericOverride :1;
|
||||
DWORD fLegacyBidiClass :1;
|
||||
DWORD fReserved :8;
|
||||
} SCRIPT_CONTROL;
|
||||
|
||||
|
||||
typedef struct tagGCP_RESULTSA
|
||||
{
|
||||
DWORD lStructSize;
|
||||
LPSTR lpOutString;
|
||||
UINT FAR *lpOrder;
|
||||
int FAR *lpDx;
|
||||
int FAR *lpCaretPos;
|
||||
LPSTR lpClass;
|
||||
LPWSTR lpGlyphs;
|
||||
UINT nGlyphs;
|
||||
int nMaxFit;
|
||||
} GCP_RESULTSA, FAR* LPGCP_RESULTSA;
|
||||
typedef struct tagGCP_RESULTSW
|
||||
{
|
||||
DWORD lStructSize;
|
||||
LPWSTR lpOutString;
|
||||
UINT FAR *lpOrder;
|
||||
int FAR *lpDx;
|
||||
int FAR *lpCaretPos;
|
||||
LPSTR lpClass;
|
||||
LPWSTR lpGlyphs;
|
||||
UINT nGlyphs;
|
||||
int nMaxFit;
|
||||
} GCP_RESULTSW, FAR* LPGCP_RESULTSW;
|
||||
#ifdef UNICODE
|
||||
typedef GCP_RESULTSW GCP_RESULTS;
|
||||
typedef LPGCP_RESULTSW LPGCP_RESULTS;
|
||||
#else
|
||||
typedef GCP_RESULTSA GCP_RESULTS;
|
||||
typedef LPGCP_RESULTSA LPGCP_RESULTS;
|
||||
#endif // UNICODE
|
||||
|
||||
|
||||
#define GCP_DBCS 0x0001
|
||||
#define GCP_REORDER 0x0002
|
||||
#define GCP_USEKERNING 0x0008
|
||||
#define GCP_GLYPHSHAPE 0x0010
|
||||
#define GCP_LIGATE 0x0020
|
||||
////#define GCP_GLYPHINDEXING 0x0080
|
||||
#define GCP_DIACRITIC 0x0100
|
||||
#define GCP_KASHIDA 0x0400
|
||||
#define GCP_ERROR 0x8000
|
||||
#define FLI_MASK 0x103B
|
||||
|
||||
#define GCP_JUSTIFY 0x00010000L
|
||||
////#define GCP_NODIACRITICS 0x00020000L
|
||||
#define FLI_GLYPHS 0x00040000L
|
||||
#define GCP_CLASSIN 0x00080000L
|
||||
#define GCP_MAXEXTENT 0x00100000L
|
||||
#define GCP_JUSTIFYIN 0x00200000L
|
||||
#define GCP_DISPLAYZWG 0x00400000L
|
||||
#define GCP_SYMSWAPOFF 0x00800000L
|
||||
#define GCP_NUMERICOVERRIDE 0x01000000L
|
||||
#define GCP_NEUTRALOVERRIDE 0x02000000L
|
||||
#define GCP_NUMERICSLATIN 0x04000000L
|
||||
#define GCP_NUMERICSLOCAL 0x08000000L
|
||||
|
||||
#define ETO_GLYPH_INDEX 0x0010
|
||||
#define GGO_NATIVE 2
|
||||
#define TT_POLYGON_TYPE 24
|
||||
|
||||
#define TT_PRIM_LINE 1
|
||||
#define TT_PRIM_QSPLINE 2
|
||||
#define TT_PRIM_CSPLINE 3
|
||||
|
||||
typedef struct tagPOINTFX
|
||||
{
|
||||
FIXED x;
|
||||
FIXED y;
|
||||
} POINTFX, FAR* LPPOINTFX;
|
||||
|
||||
typedef struct tagTTPOLYCURVE
|
||||
{
|
||||
WORD wType;
|
||||
WORD cpfx;
|
||||
POINTFX apfx[1];
|
||||
} TTPOLYCURVE, FAR* LPTTPOLYCURVE;
|
||||
|
||||
typedef struct tagTTPOLYGONHEADER
|
||||
{
|
||||
DWORD cb;
|
||||
DWORD dwType;
|
||||
POINTFX pfxStart;
|
||||
} TTPOLYGONHEADER, FAR* LPTTPOLYGONHEADER;
|
||||
|
||||
#define HALFTONE 4
|
||||
#define ETO_PDY 0x2000
|
||||
#define ALTERNATE 1
|
||||
#define WINDING 2
|
||||
|
||||
#define PS_USERSTYLE 7
|
||||
|
||||
#define PS_ENDCAP_ROUND 0x00000000
|
||||
#define PS_ENDCAP_SQUARE 0x00000100
|
||||
#define PS_ENDCAP_FLAT 0x00000200
|
||||
#define PS_ENDCAP_MASK 0x00000F00
|
||||
|
||||
#define PS_JOIN_ROUND 0x00000000
|
||||
#define PS_JOIN_BEVEL 0x00001000
|
||||
#define PS_JOIN_MITER 0x00002000
|
||||
#define PS_JOIN_MASK 0x0000F000
|
||||
|
||||
#define PS_COSMETIC 0x00000000
|
||||
#define PS_GEOMETRIC 0x00010000
|
||||
#define PS_TYPE_MASK 0x000F0000
|
||||
|
||||
typedef struct tag_SCRIPT_DIGITSUBSTITUTE {
|
||||
DWORD NationalDigitLanguage :16; // Language for native substitution
|
||||
DWORD TraditionalDigitLanguage :16; // Language for traditional substitution
|
||||
DWORD DigitSubstitute :8; // Substitution type
|
||||
DWORD dwReserved; // Reserved
|
||||
} SCRIPT_DIGITSUBSTITUTE;
|
||||
|
||||
// Defines missing from widget/src/build
|
||||
// WinNT.h
|
||||
typedef struct _OSVERSIONINFOEXA {
|
||||
DWORD dwOSVersionInfoSize;
|
||||
DWORD dwMajorVersion;
|
||||
DWORD dwMinorVersion;
|
||||
DWORD dwBuildNumber;
|
||||
DWORD dwPlatformId;
|
||||
CHAR szCSDVersion[ 128 ]; // Maintenance string for PSS usage
|
||||
WORD wServicePackMajor;
|
||||
WORD wServicePackMinor;
|
||||
WORD wSuiteMask;
|
||||
BYTE wProductType;
|
||||
BYTE wReserved;
|
||||
} OSVERSIONINFOEXA, *POSVERSIONINFOEXA, *LPOSVERSIONINFOEXA;
|
||||
typedef struct _OSVERSIONINFOEXW {
|
||||
DWORD dwOSVersionInfoSize;
|
||||
DWORD dwMajorVersion;
|
||||
DWORD dwMinorVersion;
|
||||
DWORD dwBuildNumber;
|
||||
DWORD dwPlatformId;
|
||||
WCHAR szCSDVersion[ 128 ]; // Maintenance string for PSS usage
|
||||
WORD wServicePackMajor;
|
||||
WORD wServicePackMinor;
|
||||
WORD wSuiteMask;
|
||||
BYTE wProductType;
|
||||
BYTE wReserved;
|
||||
} OSVERSIONINFOEXW, *POSVERSIONINFOEXW, *LPOSVERSIONINFOEXW, RTL_OSVERSIONINFOEXW, *PRTL_OSVERSIONINFOEXW;
|
||||
#ifdef UNICODE
|
||||
typedef OSVERSIONINFOEXW OSVERSIONINFOEX;
|
||||
typedef POSVERSIONINFOEXW POSVERSIONINFOEX;
|
||||
typedef LPOSVERSIONINFOEXW LPOSVERSIONINFOEX;
|
||||
#else
|
||||
typedef OSVERSIONINFOEXA OSVERSIONINFOEX;
|
||||
typedef POSVERSIONINFOEXA POSVERSIONINFOEX;
|
||||
typedef LPOSVERSIONINFOEXA LPOSVERSIONINFOEX;
|
||||
#endif // UNICODE
|
||||
|
||||
// WinUser.h
|
||||
#define WM_ENDSESSION 0x0016
|
||||
|
||||
// defines required by msaa.h
|
||||
typedef struct tagWINDOWINFO
|
||||
{
|
||||
DWORD cbSize;
|
||||
RECT rcWindow;
|
||||
RECT rcClient;
|
||||
DWORD dwStyle;
|
||||
DWORD dwExStyle;
|
||||
DWORD dwWindowStatus;
|
||||
UINT cxWindowBorders;
|
||||
UINT cyWindowBorders;
|
||||
ATOM atomWindowType;
|
||||
WORD wCreatorVersion;
|
||||
} WINDOWINFO, *PWINDOWINFO, *LPWINDOWINFO;
|
||||
|
||||
typedef struct tagCURSORINFO
|
||||
{
|
||||
DWORD cbSize;
|
||||
DWORD flags;
|
||||
HCURSOR hCursor;
|
||||
POINT ptScreenPos;
|
||||
} CURSORINFO, *PCURSORINFO, *LPCURSORINFO;
|
||||
|
||||
#define CCHILDREN_TITLEBAR 5
|
||||
#define CCHILDREN_SCROLLBAR 5
|
||||
|
||||
typedef struct tagTITLEBARINFO
|
||||
{
|
||||
DWORD cbSize;
|
||||
RECT rcTitleBar;
|
||||
DWORD rgstate[CCHILDREN_TITLEBAR + 1];
|
||||
} TITLEBARINFO, *PTITLEBARINFO, *LPTITLEBARINFO;
|
||||
|
||||
typedef struct tagSCROLLBARINFO
|
||||
{
|
||||
DWORD cbSize;
|
||||
RECT rcScrollBar;
|
||||
int dxyLineButton;
|
||||
int xyThumbTop;
|
||||
int xyThumbBottom;
|
||||
int reserved;
|
||||
DWORD rgstate[CCHILDREN_SCROLLBAR + 1];
|
||||
} SCROLLBARINFO, *PSCROLLBARINFO, *LPSCROLLBARINFO;
|
||||
|
||||
typedef struct tagMENUBARINFO
|
||||
{
|
||||
DWORD cbSize;
|
||||
RECT rcBar; // rect of bar, popup, item
|
||||
HMENU hMenu; // real menu handle of bar, popup
|
||||
HWND hwndMenu; // hwnd of item submenu if one
|
||||
BOOL fBarFocused:1; // bar, popup has the focus
|
||||
BOOL fFocused:1; // item has the focus
|
||||
} MENUBARINFO, *PMENUBARINFO, *LPMENUBARINFO;
|
||||
|
||||
|
||||
typedef struct tagGUITHREADINFO
|
||||
{
|
||||
DWORD cbSize;
|
||||
DWORD flags;
|
||||
HWND hwndActive;
|
||||
HWND hwndFocus;
|
||||
HWND hwndCapture;
|
||||
HWND hwndMenuOwner;
|
||||
HWND hwndMoveSize;
|
||||
HWND hwndCaret;
|
||||
RECT rcCaret;
|
||||
} GUITHREADINFO, *PGUITHREADINFO, FAR * LPGUITHREADINFO;
|
||||
|
||||
typedef struct tagALTTABINFO
|
||||
{
|
||||
DWORD cbSize;
|
||||
int cItems;
|
||||
int cColumns;
|
||||
int cRows;
|
||||
int iColFocus;
|
||||
int iRowFocus;
|
||||
int cxItem;
|
||||
int cyItem;
|
||||
POINT ptStart;
|
||||
} ALTTABINFO, *PALTTABINFO, *LPALTTABINFO;
|
||||
|
||||
#define GA_ROOT 2
|
||||
|
||||
#define NTM_TYPE1 0x00100000
|
||||
#define SPI_GETDRAGFULLWINDOWS 0x0026
|
||||
|
||||
typedef ULONG SFGAOF;
|
||||
|
||||
|
||||
typedef unsigned int uintptr_t;
|
||||
// From winuser.h
|
||||
#define GR_GDIOBJECTS 0 /* Count of GDI objects */
|
||||
#define GR_USEROBJECTS 1 /* Count of USER objects */
|
||||
// wingdi.h
|
||||
#define MWT_IDENTITY 1
|
||||
|
||||
typedef VOID CALLBACK LINEDDAPROC(
|
||||
int X, // x-coordinate of point
|
||||
int Y, // y-coordinate of point
|
||||
LPARAM lpData // application-defined data
|
||||
);
|
||||
|
||||
#define MOVEFILE_REPLACE_EXISTING 0x00000001
|
||||
#define MOVEFILE_COPY_ALLOWED 0x00000002
|
||||
#define MOVEFILE_DELAY_UNTIL_REBOOT 0x00000004
|
||||
#define MOVEFILE_WRITE_THROUGH 0x00000008
|
||||
|
||||
#define MB_TASKMODAL MB_APPLMODAL
|
||||
|
||||
#define GA_PARENT 1
|
||||
#define GA_ROOT 2
|
||||
#define GA_ROOTOWNER 3
|
||||
|
||||
//
|
||||
// FILEDESCRIPTOR.dwFlags field indicate which fields are to be used
|
||||
//
|
||||
|
||||
typedef struct _FILEDESCRIPTORA { // fod
|
||||
DWORD dwFlags;
|
||||
|
||||
CLSID clsid;
|
||||
SIZEL sizel;
|
||||
POINTL pointl;
|
||||
|
||||
DWORD dwFileAttributes;
|
||||
FILETIME ftCreationTime;
|
||||
FILETIME ftLastAccessTime;
|
||||
FILETIME ftLastWriteTime;
|
||||
DWORD nFileSizeHigh;
|
||||
DWORD nFileSizeLow;
|
||||
CHAR cFileName[ MAX_PATH ];
|
||||
} FILEDESCRIPTORA, *LPFILEDESCRIPTORA;
|
||||
|
||||
typedef struct _FILEDESCRIPTORW { // fod
|
||||
DWORD dwFlags;
|
||||
|
||||
CLSID clsid;
|
||||
SIZEL sizel;
|
||||
POINTL pointl;
|
||||
|
||||
DWORD dwFileAttributes;
|
||||
FILETIME ftCreationTime;
|
||||
FILETIME ftLastAccessTime;
|
||||
FILETIME ftLastWriteTime;
|
||||
DWORD nFileSizeHigh;
|
||||
DWORD nFileSizeLow;
|
||||
WCHAR cFileName[ MAX_PATH ];
|
||||
} FILEDESCRIPTORW, *LPFILEDESCRIPTORW;
|
||||
|
||||
#ifdef UNICODE
|
||||
#define FILEDESCRIPTOR FILEDESCRIPTORW
|
||||
#define LPFILEDESCRIPTOR LPFILEDESCRIPTORW
|
||||
#else
|
||||
#define FILEDESCRIPTOR FILEDESCRIPTORA
|
||||
#define LPFILEDESCRIPTOR LPFILEDESCRIPTORA
|
||||
#endif
|
||||
|
||||
//
|
||||
// format of CF_FILEGROUPDESCRIPTOR
|
||||
//
|
||||
typedef struct _FILEGROUPDESCRIPTORA { // fgd
|
||||
UINT cItems;
|
||||
FILEDESCRIPTORA fgd[1];
|
||||
} FILEGROUPDESCRIPTORA, * LPFILEGROUPDESCRIPTORA;
|
||||
|
||||
typedef struct _FILEGROUPDESCRIPTORW { // fgd
|
||||
UINT cItems;
|
||||
FILEDESCRIPTORW fgd[1];
|
||||
} FILEGROUPDESCRIPTORW, * LPFILEGROUPDESCRIPTORW;
|
||||
|
||||
#ifdef UNICODE
|
||||
#define FILEGROUPDESCRIPTOR FILEGROUPDESCRIPTORW
|
||||
#define LPFILEGROUPDESCRIPTOR LPFILEGROUPDESCRIPTORW
|
||||
#else
|
||||
#define FILEGROUPDESCRIPTOR FILEGROUPDESCRIPTORA
|
||||
#define LPFILEGROUPDESCRIPTOR LPFILEGROUPDESCRIPTORA
|
||||
#endif
|
||||
|
||||
typedef struct
|
||||
{
|
||||
SIZE sizeDragImage; // OUT - The length and Width of the
|
||||
// rendered image
|
||||
POINT ptOffset; // OUT - The Offset from the mouse cursor to
|
||||
// the upper left corner of the image
|
||||
HBITMAP hbmpDragImage; // OUT - The Bitmap containing the rendered
|
||||
// drag images
|
||||
COLORREF crColorKey; // OUT - The COLORREF that has been blitted
|
||||
// to the background of the images
|
||||
} SHDRAGIMAGE, *LPSHDRAGIMAGE;
|
||||
|
||||
#endif // _MOZCE_DEFS
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -1 +0,0 @@
|
|||
#include "mozce_shunt.h"
|
|
@ -1 +0,0 @@
|
|||
#include "mozce_shunt.h"
|
|
@ -1 +0,0 @@
|
|||
#include "mozce_shunt.h"
|
|
@ -1 +0,0 @@
|
|||
#include "mozce_shunt.h"
|
|
@ -1 +0,0 @@
|
|||
#include "winsock.h"
|
|
@ -1 +0,0 @@
|
|||
#include "mozce_shunt.h"
|
|
@ -46,12 +46,12 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
|
||||
MOZCE_SHUNT_API int mozce_chmod(const char* inFilename, int inMode)
|
||||
MOZCE_SHUNT_API int chmod(const char* inFilename, int inMode)
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
|
||||
#ifdef DEBUG
|
||||
mozce_printf("mozce_chmod called\n");
|
||||
mozce_printf("chmod called\n");
|
||||
#endif
|
||||
|
||||
int retval = -1;
|
||||
|
@ -90,12 +90,12 @@ MOZCE_SHUNT_API int mozce_chmod(const char* inFilename, int inMode)
|
|||
}
|
||||
|
||||
|
||||
MOZCE_SHUNT_API int mozce_isatty(int inHandle)
|
||||
MOZCE_SHUNT_API int isatty(int inHandle)
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
|
||||
#ifdef DEBUG
|
||||
mozce_printf("-- mozce_isatty called\n");
|
||||
mozce_printf("-- isatty called\n");
|
||||
#endif
|
||||
|
||||
int retval = 0;
|
||||
|
@ -127,7 +127,7 @@ static struct protoent sProtos[] = {
|
|||
*
|
||||
* As getprotobyname
|
||||
*/
|
||||
MOZCE_SHUNT_API struct protoent* mozce_getprotobyname(const char* inName)
|
||||
MOZCE_SHUNT_API struct protoent* getprotobyname(const char* inName)
|
||||
{
|
||||
struct protoent* retval = NULL;
|
||||
|
||||
|
@ -153,7 +153,7 @@ MOZCE_SHUNT_API struct protoent* mozce_getprotobyname(const char* inName)
|
|||
*
|
||||
* As getprotobynumber
|
||||
*/
|
||||
MOZCE_SHUNT_API struct protoent* mozce_getprotobynumber(int inNumber)
|
||||
MOZCE_SHUNT_API struct protoent* getprotobynumber(int inNumber)
|
||||
{
|
||||
struct protoent* retval = NULL;
|
||||
unsigned uLoop;
|
||||
|
|
|
@ -53,13 +53,13 @@ extern "C" {
|
|||
|
||||
#define LOG_CALLS
|
||||
|
||||
MOZCE_SHUNT_API unsigned char* mozce_mbsinc(const unsigned char* inCurrent)
|
||||
MOZCE_SHUNT_API unsigned char* _mbsinc(const unsigned char* inCurrent)
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
|
||||
#ifdef LOG_CALLS
|
||||
#ifdef DEBUG
|
||||
mozce_printf("mozce_mbsinc called\n");
|
||||
mozce_printf("mbsinc called\n");
|
||||
#endif
|
||||
#endif
|
||||
//IsDBCSLeadByte(path[len-1])
|
||||
|
@ -67,13 +67,13 @@ MOZCE_SHUNT_API unsigned char* mozce_mbsinc(const unsigned char* inCurrent)
|
|||
}
|
||||
|
||||
|
||||
MOZCE_SHUNT_API unsigned char* mozce_mbspbrk(const unsigned char* inString, const unsigned char* inStrCharSet)
|
||||
MOZCE_SHUNT_API unsigned char* _mbspbrk(const unsigned char* inString, const unsigned char* inStrCharSet)
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
|
||||
#ifdef LOG_CALLS
|
||||
#ifdef DEBUG
|
||||
mozce_printf("mozce_mbspbrk called\n");
|
||||
mozce_printf("mbspbrk called\n");
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
@ -86,13 +86,13 @@ MOZCE_SHUNT_API unsigned char* mozce_mbspbrk(const unsigned char* inString, cons
|
|||
}
|
||||
|
||||
|
||||
MOZCE_SHUNT_API unsigned char* mozce_mbsrchr(const unsigned char* inString, unsigned int inC)
|
||||
MOZCE_SHUNT_API unsigned char* mbsrchr(const unsigned char* inString, unsigned int inC)
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
|
||||
#ifdef LOG_CALLS
|
||||
#ifdef DEBUG
|
||||
mozce_printf("mozce_mbsrchr called\n");
|
||||
mozce_printf("mbsrchr called\n");
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
@ -100,38 +100,38 @@ MOZCE_SHUNT_API unsigned char* mozce_mbsrchr(const unsigned char* inString, unsi
|
|||
}
|
||||
|
||||
|
||||
MOZCE_SHUNT_API unsigned char* mozce_mbschr(const unsigned char* inString, unsigned int inC)
|
||||
MOZCE_SHUNT_API unsigned char* mbschr(const unsigned char* inString, unsigned int inC)
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
|
||||
#ifdef LOG_CALLS
|
||||
#ifdef DEBUG
|
||||
mozce_printf("mozce_mbschr called\n");
|
||||
mozce_printf("mbschr called\n");
|
||||
#endif
|
||||
#endif
|
||||
return (unsigned char*)strchr((const char*)inString, (int)inC);
|
||||
}
|
||||
|
||||
|
||||
MOZCE_SHUNT_API int mozce_mbsicmp(const unsigned char *string1, const unsigned char *string2)
|
||||
MOZCE_SHUNT_API int mbsicmp(const unsigned char *string1, const unsigned char *string2)
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
|
||||
#ifdef LOG_CALLS
|
||||
#ifdef DEBUG
|
||||
mozce_printf("mozce_mbsicmp called\n");
|
||||
mozce_printf("mbsicmp called\n");
|
||||
#endif
|
||||
#endif
|
||||
return _stricmp((const char*)string1, (const char*)string2);
|
||||
}
|
||||
|
||||
MOZCE_SHUNT_API unsigned char* mozce_mbsdec(const unsigned char *string1, const unsigned char *string2)
|
||||
MOZCE_SHUNT_API unsigned char* mbsdec(const unsigned char *string1, const unsigned char *string2)
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
|
||||
#ifdef LOG_CALLS
|
||||
#ifdef DEBUG
|
||||
mozce_printf("mozce_mbsdec called\n");
|
||||
mozce_printf("mbsdec called\n");
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
|
@ -48,12 +48,12 @@ extern "C" {
|
|||
|
||||
#include "kfuncs.h"
|
||||
|
||||
MOZCE_SHUNT_API void mozce_abort(void)
|
||||
MOZCE_SHUNT_API void abort(void)
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
|
||||
#ifdef DEBUG
|
||||
mozce_printf("mozce_abort called\n");
|
||||
mozce_printf("abort called\n");
|
||||
#endif
|
||||
|
||||
#if defined(DEBUG)
|
||||
|
@ -63,12 +63,12 @@ MOZCE_SHUNT_API void mozce_abort(void)
|
|||
}
|
||||
|
||||
|
||||
MOZCE_SHUNT_API char* mozce_getenv(const char* inName)
|
||||
MOZCE_SHUNT_API char* getenv(const char* inName)
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
|
||||
#ifdef DEBUG
|
||||
mozce_printf("mozce_getenv called (%s)\n", inName);
|
||||
mozce_printf("getenv called (%s)\n", inName);
|
||||
#endif
|
||||
|
||||
char* retval = NULL;
|
||||
|
@ -87,30 +87,30 @@ MOZCE_SHUNT_API char* mozce_getenv(const char* inName)
|
|||
|
||||
if (!strcmp(inName, "NS_TIMELINE_ENABLE"))
|
||||
return "1";
|
||||
#endif
|
||||
|
||||
if (!_stricmp(inName, "tmp"))
|
||||
#endif
|
||||
|
||||
if (!_stricmp(inName, "tmp"))
|
||||
return "/Temp";
|
||||
return retval;
|
||||
}
|
||||
|
||||
MOZCE_SHUNT_API int mozce_putenv(const char *a)
|
||||
MOZCE_SHUNT_API int putenv(const char *a)
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
|
||||
#ifdef DEBUG
|
||||
mozce_printf("mozce_putenv called\n");
|
||||
mozce_printf("putenv called\n");
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
MOZCE_SHUNT_API int mozce_getpid(void)
|
||||
MOZCE_SHUNT_API int getpid(void)
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
|
||||
#ifdef DEBUG
|
||||
mozce_printf("mozce_getpid called\n");
|
||||
mozce_printf("getpid called\n");
|
||||
#endif
|
||||
|
||||
int retval = 0;
|
||||
|
|
|
@ -52,17 +52,17 @@ static _sigsig sigArray[_SIGCOUNT];
|
|||
static void defaultSighandler(int inSignal)
|
||||
{
|
||||
// From process.cpp
|
||||
extern void mozce_abort(void);
|
||||
mozce_abort();
|
||||
extern void abort(void);
|
||||
abort();
|
||||
}
|
||||
|
||||
|
||||
MOZCE_SHUNT_API int mozce_raise(int inSignal)
|
||||
MOZCE_SHUNT_API int raise(int inSignal)
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
|
||||
#ifdef DEBUG
|
||||
mozce_printf("mozce_raise called\n");
|
||||
mozce_printf("raise called\n");
|
||||
#endif
|
||||
|
||||
void (*handler)(int inSignal) = defaultSighandler;
|
||||
|
@ -80,12 +80,12 @@ MOZCE_SHUNT_API int mozce_raise(int inSignal)
|
|||
}
|
||||
|
||||
|
||||
MOZCE_SHUNT_API _sigsig mozce_signal(int inSignal, _sigsig inFunc)
|
||||
MOZCE_SHUNT_API _sigsig signal(int inSignal, _sigsig inFunc)
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
|
||||
#ifdef DEBUG
|
||||
mozce_printf("mozce_signal called\n");
|
||||
mozce_printf("signal called\n");
|
||||
#endif
|
||||
|
||||
void (*retval)(int inSignal) = defaultSighandler;
|
||||
|
|
|
@ -48,12 +48,12 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
|
||||
MOZCE_SHUNT_API int mozce_stat(const char* inPath, struct mozce_stat* outStats)
|
||||
MOZCE_SHUNT_API int stat(const char* inPath, struct stat* outStats)
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
|
||||
#ifdef DEBUG
|
||||
mozce_printf("mozce_stat called\n");
|
||||
mozce_printf("stat called\n");
|
||||
#endif
|
||||
|
||||
int retval = -1;
|
||||
|
@ -111,8 +111,8 @@ MOZCE_SHUNT_API int mozce_stat(const char* inPath, struct mozce_stat* outStats)
|
|||
else
|
||||
{
|
||||
// From Errno.
|
||||
extern int mozce_errno;
|
||||
mozce_errno = ENOENT;
|
||||
extern int errno;
|
||||
errno = ENOENT;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -95,35 +95,35 @@ _getnewfd()
|
|||
|
||||
|
||||
|
||||
MOZCE_SHUNT_API int mozce_access(const char *path, int mode)
|
||||
MOZCE_SHUNT_API int access(const char *path, int mode)
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
|
||||
#ifdef DEBUG
|
||||
mozce_printf("-- mozce_access called\n");
|
||||
mozce_printf("-- access called\n");
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
MOZCE_SHUNT_API void mozce_rewind(FILE* inStream)
|
||||
MOZCE_SHUNT_API void rewind(FILE* inStream)
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
|
||||
#ifdef DEBUG
|
||||
mozce_printf("mozce_rewind called\n");
|
||||
mozce_printf("rewind called\n");
|
||||
#endif
|
||||
|
||||
fseek(inStream, 0, SEEK_SET);
|
||||
}
|
||||
|
||||
|
||||
MOZCE_SHUNT_API FILE* mozce_fdopen(int fd, const char* inMode)
|
||||
MOZCE_SHUNT_API FILE* fdopen(int fd, const char* inMode)
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
|
||||
#ifdef DEBUG
|
||||
mozce_printf("-- mozce_fdopen called (mode is ignored!) \n");
|
||||
mozce_printf("-- fdopen called (mode is ignored!) \n");
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -134,24 +134,24 @@ MOZCE_SHUNT_API FILE* mozce_fdopen(int fd, const char* inMode)
|
|||
}
|
||||
|
||||
|
||||
MOZCE_SHUNT_API void mozce_perror(const char* inString)
|
||||
MOZCE_SHUNT_API void perror(const char* inString)
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
|
||||
#ifdef DEBUG
|
||||
mozce_printf("mozce_perror called\n");
|
||||
mozce_printf("perror called\n");
|
||||
#endif
|
||||
|
||||
fprintf(stderr, "%s", inString);
|
||||
}
|
||||
|
||||
|
||||
MOZCE_SHUNT_API int mozce_remove(const char* inPath)
|
||||
MOZCE_SHUNT_API int remove(const char* inPath)
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
|
||||
#ifdef DEBUG
|
||||
mozce_printf("mozce_remove called on %s\n", inPath);
|
||||
mozce_printf("remove called on %s\n", inPath);
|
||||
#endif
|
||||
|
||||
int retval = -1;
|
||||
|
@ -173,12 +173,12 @@ MOZCE_SHUNT_API int mozce_remove(const char* inPath)
|
|||
return retval;
|
||||
}
|
||||
|
||||
MOZCE_SHUNT_API char* mozce_getcwd(char* buff, size_t size)
|
||||
MOZCE_SHUNT_API char* getcwd(char* buff, size_t size)
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
|
||||
#ifdef DEBUG
|
||||
mozce_printf("mozce_getcwd called.\n");
|
||||
mozce_printf("getcwd called.\n");
|
||||
#endif
|
||||
int i;
|
||||
unsigned short dir[MAX_PATH];
|
||||
|
@ -242,12 +242,12 @@ static void mode2binstr(int mode, char* buffer)
|
|||
}
|
||||
}
|
||||
|
||||
MOZCE_SHUNT_API int mozce_open(const char *pathname, int flags, int mode)
|
||||
MOZCE_SHUNT_API int open(const char *pathname, int flags, int mode)
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
|
||||
#ifdef DEBUG
|
||||
mozce_printf("mozce_open called\n");
|
||||
mozce_printf("open called\n");
|
||||
#endif
|
||||
|
||||
_initfds();
|
||||
|
@ -280,12 +280,12 @@ MOZCE_SHUNT_API int mozce_open(const char *pathname, int flags, int mode)
|
|||
}
|
||||
|
||||
|
||||
MOZCE_SHUNT_API int mozce_close(int fd)
|
||||
MOZCE_SHUNT_API int close(int fd)
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
|
||||
#ifdef DEBUG
|
||||
mozce_printf("mozce_close called\n");
|
||||
mozce_printf("close called\n");
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -301,12 +301,12 @@ MOZCE_SHUNT_API int mozce_close(int fd)
|
|||
return 0;
|
||||
}
|
||||
|
||||
MOZCE_SHUNT_API size_t mozce_read(int fd, void* buffer, size_t count)
|
||||
MOZCE_SHUNT_API size_t read(int fd, void* buffer, size_t count)
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
|
||||
#ifdef DEBUG
|
||||
mozce_printf("mozce_read called\n");
|
||||
mozce_printf("read called\n");
|
||||
#endif
|
||||
|
||||
if(fd < 0 || fd >= MAXFDS || _fdtab[fd].fd == -1)
|
||||
|
@ -321,12 +321,12 @@ MOZCE_SHUNT_API size_t mozce_read(int fd, void* buffer, size_t count)
|
|||
}
|
||||
|
||||
|
||||
MOZCE_SHUNT_API size_t mozce_write(int fd, const void* buffer, size_t count)
|
||||
MOZCE_SHUNT_API size_t write(int fd, const void* buffer, size_t count)
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
|
||||
#ifdef DEBUG
|
||||
mozce_printf("mozce_write called\n");
|
||||
mozce_printf("write called\n");
|
||||
#endif
|
||||
|
||||
if(fd < 0 || fd >= MAXFDS || _fdtab[fd].fd == -1)
|
||||
|
@ -340,23 +340,23 @@ MOZCE_SHUNT_API size_t mozce_write(int fd, const void* buffer, size_t count)
|
|||
}
|
||||
|
||||
|
||||
MOZCE_SHUNT_API int mozce_unlink(const char *pathname)
|
||||
MOZCE_SHUNT_API int unlink(const char *pathname)
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
|
||||
#ifdef DEBUG
|
||||
mozce_printf("mozce_unlink called\n");
|
||||
mozce_printf("unlink called\n");
|
||||
#endif
|
||||
return mozce_remove(pathname);
|
||||
return remove(pathname);
|
||||
}
|
||||
|
||||
|
||||
MOZCE_SHUNT_API int mozce_lseek(int fd, int offset, int whence)
|
||||
MOZCE_SHUNT_API int lseek(int fd, int offset, int whence)
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
|
||||
#ifdef DEBUG
|
||||
mozce_printf("mozce_lseek called\n");
|
||||
mozce_printf("lseek called\n");
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -372,30 +372,6 @@ MOZCE_SHUNT_API int mozce_lseek(int fd, int offset, int whence)
|
|||
}
|
||||
|
||||
|
||||
|
||||
MOZCE_SHUNT_API int mozce_fileno(FILE* f)
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
|
||||
#ifdef DEBUG
|
||||
mozce_printf("mozce_fileno called\n");
|
||||
#endif
|
||||
|
||||
// Windows SDK is broken. _fileno should return an int, but for whatever god forsaken reason, CE returns void*.
|
||||
int fd;
|
||||
|
||||
for(fd = 0; fd < MAXFDS; fd++)
|
||||
{
|
||||
if(_fdtab[fd].file == f)
|
||||
{
|
||||
return _fdtab[fd].fd;
|
||||
}
|
||||
}
|
||||
return (int) fileno(f);
|
||||
|
||||
}
|
||||
|
||||
|
||||
#if 0
|
||||
{
|
||||
#endif
|
||||
|
|
|
@ -53,13 +53,13 @@ extern "C" {
|
|||
|
||||
// #define LOG_CALLS
|
||||
|
||||
MOZCE_SHUNT_API char *mozce_fullpath(char *absPath, const char *relPath, size_t maxLength)
|
||||
MOZCE_SHUNT_API char *fullpath(char *absPath, const char *relPath, size_t maxLength)
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
|
||||
#ifdef LOG_CALLS
|
||||
#ifdef DEBUG
|
||||
mozce_printf("mozce_fullpath called\n");
|
||||
mozce_printf("fullpath called\n");
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
@ -79,13 +79,13 @@ MOZCE_SHUNT_API char *mozce_fullpath(char *absPath, const char *relPath, size_t
|
|||
return absPath;
|
||||
}
|
||||
|
||||
MOZCE_SHUNT_API void mozce_splitpath(const char* inPath, char* outDrive, char* outDir, char* outFname, char* outExt)
|
||||
MOZCE_SHUNT_API void 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");
|
||||
mozce_printf("splitpath called\n");
|
||||
#endif
|
||||
#endif
|
||||
if(NULL != outDrive)
|
||||
|
@ -190,13 +190,13 @@ MOZCE_SHUNT_API void mozce_splitpath(const char* inPath, char* outDrive, char* o
|
|||
}
|
||||
|
||||
|
||||
MOZCE_SHUNT_API void mozce_makepath(char* outPath, const char* inDrive, const char* inDir, const char* inFname, const char* inExt)
|
||||
MOZCE_SHUNT_API void 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");
|
||||
mozce_printf("makepath called\n");
|
||||
#endif
|
||||
#endif
|
||||
if(NULL != outPath)
|
||||
|
@ -242,6 +242,12 @@ MOZCE_SHUNT_API int mozce_strcmpi(const char *dest, const char *src)
|
|||
return(f - l);
|
||||
}
|
||||
|
||||
MOZCE_SHUNT_API int _unlink(const char *filename )
|
||||
{
|
||||
wchar_t wname[MAX_PATH];
|
||||
a2w_buffer(filename, MAX_PATH, wname, MAX_PATH);
|
||||
return ::DeleteFileW(wname);
|
||||
}
|
||||
#if 0
|
||||
{
|
||||
#endif
|
||||
|
|
|
@ -45,27 +45,16 @@ extern "C" {
|
|||
}
|
||||
#endif
|
||||
|
||||
MOZCE_SHUNT_API char* mozce_strerror(int inErrno)
|
||||
MOZCE_SHUNT_API char* strerror(int inErrno)
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
|
||||
#ifdef DEBUG
|
||||
mozce_printf("mozce_strerror called\n");
|
||||
mozce_printf("strerror called\n");
|
||||
#endif
|
||||
return "Unknown Error";
|
||||
}
|
||||
|
||||
|
||||
MOZCE_SHUNT_API int mozce_wsprintfA(LPTSTR lpOut, LPCTSTR lpFmt, ... )
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
|
||||
#ifdef DEBUG
|
||||
mozce_printf("-- mozce_wsprintfA called\n");
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
#if 0
|
||||
{
|
||||
#endif
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
|
||||
#include "mozce_internal.h"
|
||||
#include "time_conversions.h"
|
||||
|
||||
#include <time.h>
|
||||
extern "C" {
|
||||
#if 0
|
||||
}
|
||||
|
@ -52,7 +52,7 @@ static const int sDaysOfYear[12] = {
|
|||
};
|
||||
static struct tm tmStorage;
|
||||
|
||||
MOZCE_SHUNT_API size_t mozce_strftime(char *, size_t, const char *, const struct tm *)
|
||||
MOZCE_SHUNT_API size_t strftime(char *, size_t, const char *, const struct tm *)
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
|
||||
|
@ -115,7 +115,7 @@ MOZCE_SHUNT_API struct tm* mozce_localtime_r(const time_t* inTimeT,struct tm* ou
|
|||
}
|
||||
|
||||
|
||||
MOZCE_SHUNT_API struct tm* mozce_localtime(const time_t* inTimeT)
|
||||
MOZCE_SHUNT_API struct tm* localtime(const time_t* inTimeT)
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
|
||||
|
@ -178,7 +178,7 @@ MOZCE_SHUNT_API struct tm* mozce_gmtime_r(const time_t* inTimeT, struct tm* outR
|
|||
}
|
||||
|
||||
|
||||
MOZCE_SHUNT_API struct tm* mozce_gmtime(const time_t* inTimeT)
|
||||
MOZCE_SHUNT_API struct tm* gmtime(const time_t* inTimeT)
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
|
||||
|
@ -190,7 +190,7 @@ MOZCE_SHUNT_API struct tm* mozce_gmtime(const time_t* inTimeT)
|
|||
}
|
||||
|
||||
|
||||
MOZCE_SHUNT_API time_t mozce_mktime(struct tm* inTM)
|
||||
MOZCE_SHUNT_API time_t mktime(struct tm* inTM)
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
|
||||
|
@ -232,62 +232,14 @@ MOZCE_SHUNT_API time_t mozce_mktime(struct tm* inTM)
|
|||
return retval;
|
||||
}
|
||||
|
||||
|
||||
MOZCE_SHUNT_API time_t mozce_time(time_t* inStorage)
|
||||
MOZCE_SHUNT_API time_t time(time_t *)
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
|
||||
#ifdef DEBUG
|
||||
mozce_printf("mozce_time called\n");
|
||||
#endif
|
||||
|
||||
time_t retval = 0;
|
||||
|
||||
SYSTEMTIME sysTime;
|
||||
GetSystemTime(&sysTime);
|
||||
SYSTEMTIME_2_time_t(retval, sysTime);
|
||||
|
||||
if(NULL != inStorage)
|
||||
{
|
||||
*inStorage = retval;
|
||||
}
|
||||
return retval;
|
||||
time_t retval;
|
||||
SYSTEMTIME winTime;
|
||||
::GetSystemTime(&winTime);
|
||||
SYSTEMTIME_2_time_t(retval, winTime);
|
||||
return retval;
|
||||
}
|
||||
|
||||
MOZCE_SHUNT_API char* mozce_ctime(const time_t* timer)
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
|
||||
#ifdef DEBUG
|
||||
mozce_printf("mozce_ctime called\n");
|
||||
#endif
|
||||
|
||||
char* retval = NULL;
|
||||
|
||||
if(NULL != timer)
|
||||
{
|
||||
struct tm tmLocal;
|
||||
struct tm* localRes = NULL;
|
||||
|
||||
localRes = mozce_localtime_r(timer, &tmLocal);
|
||||
if(NULL != localRes)
|
||||
{
|
||||
static char ctimeBuf[32];
|
||||
size_t strftimeRes = 0;
|
||||
|
||||
// Sat Dec 20 01:05:05 1969\n\0
|
||||
strftimeRes = mozce_strftime(ctimeBuf, sizeof(ctimeBuf), "%a %b %d %H %Y\n", &tmLocal);
|
||||
if(0 != strftimeRes)
|
||||
{
|
||||
retval = ctimeBuf;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
||||
#if 0
|
||||
{
|
||||
#endif
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -50,13 +50,18 @@ extern "C" {
|
|||
*/
|
||||
#define wcharcount(array) (sizeof(array) / sizeof(TCHAR))
|
||||
|
||||
#define MOZCE_NOT_IMPLEMENTED_RV(fname, rv) \
|
||||
SetLastError(0); \
|
||||
mozce_printf("-- fname called\n"); \
|
||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED); \
|
||||
return rv;
|
||||
|
||||
MOZCE_SHUNT_API UINT mozce_GetWindowsDirectoryW(LPWSTR inBuffer, UINT inSize)
|
||||
MOZCE_SHUNT_API UINT GetWindowsDirectoryW(LPWSTR inBuffer, UINT inSize)
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
|
||||
#ifdef DEBUG
|
||||
mozce_printf("mozce_GetWindowsDirectoryW called\n");
|
||||
mozce_printf("GetWindowsDirectoryW called\n");
|
||||
#endif
|
||||
|
||||
UINT retval = 0;
|
||||
|
@ -75,12 +80,12 @@ MOZCE_SHUNT_API UINT mozce_GetWindowsDirectoryW(LPWSTR inBuffer, UINT inSize)
|
|||
}
|
||||
|
||||
|
||||
MOZCE_SHUNT_API UINT mozce_GetSystemDirectoryW(LPWSTR inBuffer, UINT inSize)
|
||||
MOZCE_SHUNT_API UINT GetSystemDirectoryW(LPWSTR inBuffer, UINT inSize)
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
|
||||
#ifdef DEBUG
|
||||
mozce_printf("mozce_GetSystemDirectoryW called\n");
|
||||
mozce_printf("GetSystemDirectoryW called\n");
|
||||
#endif
|
||||
|
||||
UINT retval = 0;
|
||||
|
@ -99,12 +104,12 @@ MOZCE_SHUNT_API UINT mozce_GetSystemDirectoryW(LPWSTR inBuffer, UINT inSize)
|
|||
}
|
||||
|
||||
|
||||
MOZCE_SHUNT_API HANDLE mozce_OpenSemaphoreW(DWORD inDesiredAccess, BOOL inInheritHandle, LPCWSTR inName)
|
||||
MOZCE_SHUNT_API HANDLE OpenSemaphoreW(DWORD inDesiredAccess, BOOL inInheritHandle, LPCWSTR inName)
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
|
||||
#ifdef DEBUG
|
||||
mozce_printf("mozce_OpenSemaphoreW called\n");
|
||||
mozce_printf("OpenSemaphoreW called\n");
|
||||
#endif
|
||||
|
||||
HANDLE retval = NULL;
|
||||
|
@ -129,58 +134,46 @@ 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 VOID* inMAT2)
|
||||
MOZCE_SHUNT_API DWORD GetGlyphOutlineW(HDC inDC, WCHAR inChar, UINT inFormat, void* inGM, DWORD inBufferSize, LPVOID outBuffer, CONST VOID* inMAT2)
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
|
||||
#ifdef DEBUG
|
||||
mozce_printf("mozce_GetGlyphOutlineW called\n");
|
||||
#endif
|
||||
|
||||
DWORD retval = GDI_ERROR;
|
||||
|
||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||
|
||||
return retval;
|
||||
MOZCE_NOT_IMPLEMENTED_RV(__FUNCTION__, GDI_ERROR);
|
||||
}
|
||||
|
||||
|
||||
MOZCE_SHUNT_API DWORD mozce_GetCurrentDirectoryW(DWORD inBufferLength, LPTSTR outBuffer)
|
||||
MOZCE_SHUNT_API DWORD GetCurrentDirectoryW(DWORD inBufferLength, LPTSTR outBuffer)
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
|
||||
#ifdef DEBUG
|
||||
mozce_printf("mozce_GetCurrentDirectoryW called\n");
|
||||
#endif
|
||||
|
||||
DWORD retval = 0;
|
||||
|
||||
if(NULL != outBuffer && 0 < inBufferLength)
|
||||
{
|
||||
outBuffer[0] = _T('\0');
|
||||
}
|
||||
|
||||
SetLastError(ERROR_NOT_SUPPORTED);
|
||||
|
||||
return retval;
|
||||
MOZCE_NOT_IMPLEMENTED_RV(__FUNCTION__, 0);
|
||||
}
|
||||
|
||||
|
||||
MOZCE_SHUNT_API BOOL mozce_SetCurrentDirectoryW(LPCTSTR inPathName)
|
||||
MOZCE_SHUNT_API BOOL SetCurrentDirectoryW(LPCTSTR inPathName)
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
MOZCE_NOT_IMPLEMENTED_RV(__FUNCTION__, FALSE);
|
||||
}
|
||||
|
||||
MOZCE_SHUNT_API BOOL SHGetSpecialFolderPathW(HWND hwnd, LPWSTR pszPath, int csidl, BOOL fCreate)
|
||||
{
|
||||
#ifdef DEBUG
|
||||
mozce_printf("mozce_SetCurrentDirectoryW called\n");
|
||||
mozce_printf("SHGetSpecialFolderPathW called\n");
|
||||
#endif
|
||||
|
||||
BOOL retval = FALSE;
|
||||
|
||||
SetLastError(ERROR_NOT_SUPPORTED);
|
||||
|
||||
char path[MAX_PATH];
|
||||
BOOL retval = ::SHGetSpecialFolderPath(hwnd, (LPTSTR)path, csidl, fCreate); // dougt, FIXME the typecast might be unnecessary
|
||||
a2w_buffer(path, MAX_PATH, pszPath, MAX_PATH);
|
||||
return retval;
|
||||
}
|
||||
|
||||
MOZCE_SHUNT_API BOOL MoveFileExW(LPCWSTR lpExistingFileName, LPCWSTR lpNewFileName,DWORD dwFlags)
|
||||
{
|
||||
#ifdef DEBUG
|
||||
mozce_printf("SHGetSpecialFolderPathW called\n");
|
||||
#endif
|
||||
BOOL retval = ::MoveFileW(lpExistingFileName, lpNewFileName);
|
||||
return retval;
|
||||
}
|
||||
|
||||
#if 0
|
||||
{
|
||||
|
|
|
@ -10,12 +10,12 @@ all:
|
|||
cl vs8ppc2003arm/arm-wince-link.c
|
||||
mv arm-wince-link.exe vs8ppc2003arm
|
||||
rm -f *.obj
|
||||
devenv ../shunt/build/vs8/mozce_shunt_static.sln /rebuild "Release|Pocket PC 2003 (ARMV4)"
|
||||
devenv ../shunt/build/vs8/mozce_shunt_static.sln //rebuild "Release|Windows Mobile 6 Professional SDK (ARMV4I)"
|
||||
|
||||
clobber:
|
||||
rm -f vs8ppc2003arm/*.exe
|
||||
rm -f vs8ppc2003arm/*.obj
|
||||
rm -f *.obj
|
||||
rm -f *.exe
|
||||
devenv ../shunt/build/vs8/mozce_shunt_static.sln /clean "Release|Pocket PC 2003 (ARMV4)"
|
||||
devenv ../shunt/build/vs8/mozce_shunt_static.sln /clean "Release|Windows Mobile 6 Professional SDK (ARMV4I)"
|
||||
|
||||
|
|
|
@ -13,6 +13,5 @@ main(int argc, char **argv)
|
|||
|
||||
dumpargs(args);
|
||||
|
||||
run(args);
|
||||
return 0;
|
||||
return run(args);
|
||||
}
|
||||
|
|
|
@ -72,28 +72,27 @@ main(int argc, char **argv)
|
|||
{
|
||||
args[i++] = "/link";
|
||||
|
||||
args[i++] = "-ENTRY:mainACRTStartup";
|
||||
args[i++] = "/ENTRY:mainACRTStartup";
|
||||
|
||||
args[i++] = "/SUBSYSTEM:WINDOWSCE,5.01";
|
||||
args[i++] = "/MACHINE:THUMB";
|
||||
|
||||
args[i++] = "-LIBPATH:\"" WCE_LIB "\"";
|
||||
args[i++] = "-LIBPATH:\"" SHUNT_LIB "\"";
|
||||
args[i++] = "/LIBPATH:\"" WCE_LIB "\"";
|
||||
args[i++] = "/LIBPATH:\"" SHUNT_LIB "\"";
|
||||
args[i++] = "shunt.lib";
|
||||
args[i++] = "winsock.lib";
|
||||
args[i++] = "corelibc.lib";
|
||||
args[i++] = "coredll.lib";
|
||||
|
||||
args[i++] = "-OPT:REF";
|
||||
args[i++] = "-OPT:ICF";
|
||||
args[i++] = "/OPT:REF";
|
||||
args[i++] = "/OPT:ICF";
|
||||
|
||||
args[i++] = "-NODEFAULTLIB:LIBC";
|
||||
args[i++] = "-NODEFAULTLIB:OLDNAMES.lib";
|
||||
args[i++] = "/NODEFAULTLIB:LIBC";
|
||||
args[i++] = "/NODEFAULTLIB:OLDNAMES.lib";
|
||||
|
||||
}
|
||||
args[i] = NULL;
|
||||
|
||||
dumpargs(args);
|
||||
run(args);
|
||||
return 0;
|
||||
return run(args);
|
||||
}
|
||||
|
|
|
@ -14,7 +14,6 @@ main(int argc, char **argv)
|
|||
|
||||
argpath_conv(&argv[1], &args[i]);
|
||||
|
||||
run(args);
|
||||
return run(args);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@ main(int argc, char **argv)
|
|||
args[i++] = "coredll.lib";
|
||||
args[i++] = "ceshell.lib";
|
||||
args[i++] = "ole32.lib";
|
||||
|
||||
args[i++] = "mmtimer.lib";
|
||||
args[i++] = "shunt.lib";
|
||||
|
||||
args[i++] = "/subsystem:\"WINDOWSCE,5.01\"";
|
||||
|
@ -51,6 +51,5 @@ main(int argc, char **argv)
|
|||
|
||||
dumpargs(args);
|
||||
|
||||
run(args);
|
||||
return 0;
|
||||
return run(args);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче