diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2006-03-05 00:38:54 +0000 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2006-03-05 00:38:54 +0000 |
commit | c772286a5de85a5b7bad8d6b6e0f5c065d153891 (patch) | |
tree | 34c96f2a7ab8ab060ad96dd6c7720e3be8cf1bfe | |
parent | a86a9b3fb6115e8a31791fe491bb6a9795f9d474 (diff) | |
download | swig-c772286a5de85a5b7bad8d6b6e0f5c065d153891.tar.gz |
remove sprintf deprecated message
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8959 626c5289-ae23-0410-ae9c-e8d60b6d4f22
-rw-r--r-- | Examples/csharp/reference/example.cxx | 5 | ||||
-rw-r--r-- | Examples/csharp/simple/example-vc.vcproj | 183 | ||||
-rw-r--r-- | Examples/csharp/simple/example.sln | 32 | ||||
-rw-r--r-- | Examples/csharp/variables/example.c | 5 | ||||
-rw-r--r-- | Examples/java/reference/example.cxx | 5 | ||||
-rw-r--r-- | Examples/java/variables/example.c | 5 | ||||
-rw-r--r-- | Examples/lua/variables/example.c | 5 | ||||
-rw-r--r-- | Examples/modula3/reference/example.cxx | 5 | ||||
-rw-r--r-- | Examples/perl5/reference/example.cxx | 5 | ||||
-rw-r--r-- | Examples/perl5/variables/example.c | 5 | ||||
-rw-r--r-- | Examples/php4/reference/example.cxx | 5 | ||||
-rw-r--r-- | Examples/php4/variables/example.c | 5 | ||||
-rw-r--r-- | Examples/python/reference/example.cxx | 5 | ||||
-rw-r--r-- | Examples/python/variables/example.c | 5 | ||||
-rw-r--r-- | Examples/ruby/reference/example.cxx | 5 | ||||
-rw-r--r-- | Examples/ruby/variables/example.c | 5 | ||||
-rw-r--r-- | Examples/tcl/reference/example.cxx | 5 | ||||
-rw-r--r-- | Examples/tcl/variables/example.c | 5 |
18 files changed, 218 insertions, 77 deletions
diff --git a/Examples/csharp/reference/example.cxx b/Examples/csharp/reference/example.cxx index 8bc264b02..8a513bf49 100644 --- a/Examples/csharp/reference/example.cxx +++ b/Examples/csharp/reference/example.cxx @@ -1,5 +1,10 @@ /* File : example.cxx */ +/* Deal with Microsoft's attempt at deprecating C standard runtime functions */ +#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) +# define _CRT_SECURE_NO_DEPRECATE +#endif + #include "example.h" #include <stdio.h> #include <stdlib.h> diff --git a/Examples/csharp/simple/example-vc.vcproj b/Examples/csharp/simple/example-vc.vcproj index be0dfc742..14f50049b 100644 --- a/Examples/csharp/simple/example-vc.vcproj +++ b/Examples/csharp/simple/example-vc.vcproj @@ -1,110 +1,174 @@ <?xml version="1.0" encoding="Windows-1252"?> <VisualStudioProject ProjectType="Visual C++" - Version="7.10" + Version="8.00" Name="example-vc" ProjectGUID="{C2302635-D489-4678-96B4-70F5309DCBE6}" - Keyword="Win32Proj"> + Keyword="Win32Proj" + > <Platforms> <Platform - Name="Win32"/> + Name="Win32" + /> </Platforms> + <ToolFiles> + </ToolFiles> <Configurations> <Configuration Name="Debug|Win32" OutputDirectory="Debug" IntermediateDirectory="Debug" ConfigurationType="2" - CharacterSet="2"> + InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops" + CharacterSet="2" + > + <Tool + Name="VCPreBuildEventTool" + /> + <Tool + Name="VCCustomBuildTool" + /> + <Tool + Name="VCXMLDataGeneratorTool" + /> + <Tool + Name="VCWebServiceProxyGeneratorTool" + /> + <Tool + Name="VCMIDLTool" + /> <Tool Name="VCCLCompilerTool" Optimization="0" PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;EXAMPLEVC_EXPORTS" - MinimalRebuild="TRUE" + MinimalRebuild="true" BasicRuntimeChecks="3" RuntimeLibrary="1" UsePrecompiledHeader="0" WarningLevel="3" - Detect64BitPortabilityProblems="TRUE" - DebugInformationFormat="4"/> + Detect64BitPortabilityProblems="true" + DebugInformationFormat="4" + /> <Tool - Name="VCCustomBuildTool"/> + Name="VCManagedResourceCompilerTool" + /> + <Tool + Name="VCResourceCompilerTool" + /> + <Tool + Name="VCPreLinkEventTool" + /> <Tool Name="VCLinkerTool" OutputFile="example.dll" LinkIncremental="2" - GenerateDebugInformation="TRUE" + GenerateDebugInformation="true" ProgramDatabaseFile="$(OutDir)/example-vc.pdb" SubSystem="2" ImportLibrary="$(OutDir)/example-vc.lib" - TargetMachine="1"/> - <Tool - Name="VCMIDLTool"/> - <Tool - Name="VCPostBuildEventTool"/> + TargetMachine="1" + /> <Tool - Name="VCPreBuildEventTool"/> + Name="VCALinkTool" + /> <Tool - Name="VCPreLinkEventTool"/> + Name="VCManifestTool" + /> <Tool - Name="VCResourceCompilerTool"/> + Name="VCXDCMakeTool" + /> <Tool - Name="VCWebServiceProxyGeneratorTool"/> + Name="VCBscMakeTool" + /> <Tool - Name="VCXMLDataGeneratorTool"/> + Name="VCFxCopTool" + /> <Tool - Name="VCWebDeploymentTool"/> + Name="VCAppVerifierTool" + /> <Tool - Name="VCManagedWrapperGeneratorTool"/> + Name="VCWebDeploymentTool" + /> <Tool - Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + Name="VCPostBuildEventTool" + /> </Configuration> <Configuration Name="Release|Win32" OutputDirectory="Release" IntermediateDirectory="Release" ConfigurationType="2" - CharacterSet="2"> + InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops" + CharacterSet="2" + > + <Tool + Name="VCPreBuildEventTool" + /> + <Tool + Name="VCCustomBuildTool" + /> + <Tool + Name="VCXMLDataGeneratorTool" + /> + <Tool + Name="VCWebServiceProxyGeneratorTool" + /> + <Tool + Name="VCMIDLTool" + /> <Tool Name="VCCLCompilerTool" PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;EXAMPLEVC_EXPORTS" RuntimeLibrary="0" UsePrecompiledHeader="0" WarningLevel="3" - Detect64BitPortabilityProblems="TRUE" - DebugInformationFormat="3"/> + Detect64BitPortabilityProblems="true" + DebugInformationFormat="3" + /> <Tool - Name="VCCustomBuildTool"/> + Name="VCManagedResourceCompilerTool" + /> + <Tool + Name="VCResourceCompilerTool" + /> + <Tool + Name="VCPreLinkEventTool" + /> <Tool Name="VCLinkerTool" OutputFile="example.dll" LinkIncremental="1" - GenerateDebugInformation="TRUE" + GenerateDebugInformation="true" SubSystem="2" OptimizeReferences="2" EnableCOMDATFolding="2" ImportLibrary="$(OutDir)/example-vc.lib" - TargetMachine="1"/> - <Tool - Name="VCMIDLTool"/> - <Tool - Name="VCPostBuildEventTool"/> + TargetMachine="1" + /> <Tool - Name="VCPreBuildEventTool"/> + Name="VCALinkTool" + /> <Tool - Name="VCPreLinkEventTool"/> + Name="VCManifestTool" + /> <Tool - Name="VCResourceCompilerTool"/> + Name="VCXDCMakeTool" + /> <Tool - Name="VCWebServiceProxyGeneratorTool"/> + Name="VCBscMakeTool" + /> <Tool - Name="VCXMLDataGeneratorTool"/> + Name="VCFxCopTool" + /> <Tool - Name="VCWebDeploymentTool"/> + Name="VCAppVerifierTool" + /> <Tool - Name="VCManagedWrapperGeneratorTool"/> + Name="VCWebDeploymentTool" + /> <Tool - Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + Name="VCPostBuildEventTool" + /> </Configuration> </Configurations> <References> @@ -113,42 +177,43 @@ <Filter Name="Source Files" Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx" - UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"> + UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}" + > <File - RelativePath=".\example.c"> + RelativePath=".\example.c" + > </File> <File - RelativePath=".\example_wrap.c"> + RelativePath=".\example_wrap.c" + > </File> </Filter> <Filter Name="Header Files" Filter="h;hpp;hxx;hm;inl;inc;xsd" - UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"> + UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}" + > </Filter> <File - RelativePath=".\example.i"> + RelativePath=".\example.i" + > <FileConfiguration - Name="Debug|Win32"> + Name="Debug|Win32" + > <Tool Name="VCCustomBuildTool" - CommandLine="echo Invoking SWIG... -echo on -..\..\..\swig.exe -csharp "$(InputPath)" -@echo off -" - Outputs="$(InputName)_wrap.c"/> + CommandLine="echo Invoking SWIG...
echo on
..\..\..\swig.exe -csharp "$(InputPath)"
@echo off
" + Outputs="$(InputName)_wrap.c" + /> </FileConfiguration> <FileConfiguration - Name="Release|Win32"> + Name="Release|Win32" + > <Tool Name="VCCustomBuildTool" - CommandLine="echo Invoking SWIG... -echo on -..\..\..\swig.exe -csharp "$(InputPath)" -@echo off -" - Outputs="$(InputName)_wrap.c"/> + CommandLine="echo Invoking SWIG...
echo on
..\..\..\swig.exe -csharp "$(InputPath)"
@echo off
" + Outputs="$(InputName)_wrap.c" + /> </FileConfiguration> </File> </Files> diff --git a/Examples/csharp/simple/example.sln b/Examples/csharp/simple/example.sln index 28b9851b0..9967f7e20 100644 --- a/Examples/csharp/simple/example.sln +++ b/Examples/csharp/simple/example.sln @@ -1,30 +1,26 @@ -Microsoft Visual Studio Solution File, Format Version 8.00 +Microsoft Visual Studio Solution File, Format Version 9.00 +# Visual C++ Express 2005 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "example-cs", "example-cs.csproj", "{C17D27DF-4C57-4625-AEE0-A40C4F48FF1A}" ProjectSection(ProjectDependencies) = postProject {C2302635-D489-4678-96B4-70F5309DCBE6} = {C2302635-D489-4678-96B4-70F5309DCBE6} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "example-vc", "example-vc.vcproj", "{C2302635-D489-4678-96B4-70F5309DCBE6}" - ProjectSection(ProjectDependencies) = postProject - EndProjectSection EndProject Global - GlobalSection(SolutionConfiguration) = preSolution - Debug = Debug - Release = Release - EndGlobalSection - GlobalSection(ProjectConfiguration) = postSolution - {C17D27DF-4C57-4625-AEE0-A40C4F48FF1A}.Debug.ActiveCfg = Debug|.NET - {C17D27DF-4C57-4625-AEE0-A40C4F48FF1A}.Debug.Build.0 = Debug|.NET - {C17D27DF-4C57-4625-AEE0-A40C4F48FF1A}.Release.ActiveCfg = Release|.NET - {C17D27DF-4C57-4625-AEE0-A40C4F48FF1A}.Release.Build.0 = Release|.NET - {C2302635-D489-4678-96B4-70F5309DCBE6}.Debug.ActiveCfg = Debug|Win32 - {C2302635-D489-4678-96B4-70F5309DCBE6}.Debug.Build.0 = Debug|Win32 - {C2302635-D489-4678-96B4-70F5309DCBE6}.Release.ActiveCfg = Release|Win32 - {C2302635-D489-4678-96B4-70F5309DCBE6}.Release.Build.0 = Release|Win32 + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Release|Win32 = Release|Win32 EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {C17D27DF-4C57-4625-AEE0-A40C4F48FF1A}.Debug|Win32.ActiveCfg = Debug|Any CPU + {C17D27DF-4C57-4625-AEE0-A40C4F48FF1A}.Release|Win32.ActiveCfg = Release|Any CPU + {C2302635-D489-4678-96B4-70F5309DCBE6}.Debug|Win32.ActiveCfg = Debug|Win32 + {C2302635-D489-4678-96B4-70F5309DCBE6}.Debug|Win32.Build.0 = Debug|Win32 + {C2302635-D489-4678-96B4-70F5309DCBE6}.Release|Win32.ActiveCfg = Release|Win32 + {C2302635-D489-4678-96B4-70F5309DCBE6}.Release|Win32.Build.0 = Release|Win32 EndGlobalSection - GlobalSection(ExtensibilityAddIns) = postSolution + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE EndGlobalSection EndGlobal diff --git a/Examples/csharp/variables/example.c b/Examples/csharp/variables/example.c index ce44fb3ca..aa4ffe9b3 100644 --- a/Examples/csharp/variables/example.c +++ b/Examples/csharp/variables/example.c @@ -2,6 +2,11 @@ /* I'm a file containing some C global variables */ +/* Deal with Microsoft's attempt at deprecating C standard runtime functions */ +#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) +# define _CRT_SECURE_NO_DEPRECATE +#endif + #include <stdio.h> #include <stdlib.h> #include "example.h" diff --git a/Examples/java/reference/example.cxx b/Examples/java/reference/example.cxx index 8bc264b02..8a513bf49 100644 --- a/Examples/java/reference/example.cxx +++ b/Examples/java/reference/example.cxx @@ -1,5 +1,10 @@ /* File : example.cxx */ +/* Deal with Microsoft's attempt at deprecating C standard runtime functions */ +#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) +# define _CRT_SECURE_NO_DEPRECATE +#endif + #include "example.h" #include <stdio.h> #include <stdlib.h> diff --git a/Examples/java/variables/example.c b/Examples/java/variables/example.c index ce44fb3ca..aa4ffe9b3 100644 --- a/Examples/java/variables/example.c +++ b/Examples/java/variables/example.c @@ -2,6 +2,11 @@ /* I'm a file containing some C global variables */ +/* Deal with Microsoft's attempt at deprecating C standard runtime functions */ +#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) +# define _CRT_SECURE_NO_DEPRECATE +#endif + #include <stdio.h> #include <stdlib.h> #include "example.h" diff --git a/Examples/lua/variables/example.c b/Examples/lua/variables/example.c index ce44fb3ca..aa4ffe9b3 100644 --- a/Examples/lua/variables/example.c +++ b/Examples/lua/variables/example.c @@ -2,6 +2,11 @@ /* I'm a file containing some C global variables */ +/* Deal with Microsoft's attempt at deprecating C standard runtime functions */ +#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) +# define _CRT_SECURE_NO_DEPRECATE +#endif + #include <stdio.h> #include <stdlib.h> #include "example.h" diff --git a/Examples/modula3/reference/example.cxx b/Examples/modula3/reference/example.cxx index 2a63fbc52..649b0169c 100644 --- a/Examples/modula3/reference/example.cxx +++ b/Examples/modula3/reference/example.cxx @@ -1,5 +1,10 @@ /* File : example.cxx */ +/* Deal with Microsoft's attempt at deprecating C standard runtime functions */ +#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) +# define _CRT_SECURE_NO_DEPRECATE +#endif + #include "example.h" #include <stdio.h> #include <stdlib.h> diff --git a/Examples/perl5/reference/example.cxx b/Examples/perl5/reference/example.cxx index 8bc264b02..8a513bf49 100644 --- a/Examples/perl5/reference/example.cxx +++ b/Examples/perl5/reference/example.cxx @@ -1,5 +1,10 @@ /* File : example.cxx */ +/* Deal with Microsoft's attempt at deprecating C standard runtime functions */ +#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) +# define _CRT_SECURE_NO_DEPRECATE +#endif + #include "example.h" #include <stdio.h> #include <stdlib.h> diff --git a/Examples/perl5/variables/example.c b/Examples/perl5/variables/example.c index ce44fb3ca..aa4ffe9b3 100644 --- a/Examples/perl5/variables/example.c +++ b/Examples/perl5/variables/example.c @@ -2,6 +2,11 @@ /* I'm a file containing some C global variables */ +/* Deal with Microsoft's attempt at deprecating C standard runtime functions */ +#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) +# define _CRT_SECURE_NO_DEPRECATE +#endif + #include <stdio.h> #include <stdlib.h> #include "example.h" diff --git a/Examples/php4/reference/example.cxx b/Examples/php4/reference/example.cxx index d92a1b638..3e13841d2 100644 --- a/Examples/php4/reference/example.cxx +++ b/Examples/php4/reference/example.cxx @@ -1,5 +1,10 @@ /* File : example.cxx */ +/* Deal with Microsoft's attempt at deprecating C standard runtime functions */ +#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) +# define _CRT_SECURE_NO_DEPRECATE +#endif + #include "example.h" #include <stdio.h> #include <stdlib.h> diff --git a/Examples/php4/variables/example.c b/Examples/php4/variables/example.c index 0de70af7f..3114c7c5f 100644 --- a/Examples/php4/variables/example.c +++ b/Examples/php4/variables/example.c @@ -2,6 +2,11 @@ /* I'm a file containing some C global variables */ +/* Deal with Microsoft's attempt at deprecating C standard runtime functions */ +#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) +# define _CRT_SECURE_NO_DEPRECATE +#endif + #include <stdio.h> #include <stdlib.h> #include "example.h" diff --git a/Examples/python/reference/example.cxx b/Examples/python/reference/example.cxx index 8bc264b02..8a513bf49 100644 --- a/Examples/python/reference/example.cxx +++ b/Examples/python/reference/example.cxx @@ -1,5 +1,10 @@ /* File : example.cxx */ +/* Deal with Microsoft's attempt at deprecating C standard runtime functions */ +#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) +# define _CRT_SECURE_NO_DEPRECATE +#endif + #include "example.h" #include <stdio.h> #include <stdlib.h> diff --git a/Examples/python/variables/example.c b/Examples/python/variables/example.c index ce44fb3ca..aa4ffe9b3 100644 --- a/Examples/python/variables/example.c +++ b/Examples/python/variables/example.c @@ -2,6 +2,11 @@ /* I'm a file containing some C global variables */ +/* Deal with Microsoft's attempt at deprecating C standard runtime functions */ +#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) +# define _CRT_SECURE_NO_DEPRECATE +#endif + #include <stdio.h> #include <stdlib.h> #include "example.h" diff --git a/Examples/ruby/reference/example.cxx b/Examples/ruby/reference/example.cxx index 8bc264b02..8a513bf49 100644 --- a/Examples/ruby/reference/example.cxx +++ b/Examples/ruby/reference/example.cxx @@ -1,5 +1,10 @@ /* File : example.cxx */ +/* Deal with Microsoft's attempt at deprecating C standard runtime functions */ +#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) +# define _CRT_SECURE_NO_DEPRECATE +#endif + #include "example.h" #include <stdio.h> #include <stdlib.h> diff --git a/Examples/ruby/variables/example.c b/Examples/ruby/variables/example.c index ce44fb3ca..aa4ffe9b3 100644 --- a/Examples/ruby/variables/example.c +++ b/Examples/ruby/variables/example.c @@ -2,6 +2,11 @@ /* I'm a file containing some C global variables */ +/* Deal with Microsoft's attempt at deprecating C standard runtime functions */ +#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) +# define _CRT_SECURE_NO_DEPRECATE +#endif + #include <stdio.h> #include <stdlib.h> #include "example.h" diff --git a/Examples/tcl/reference/example.cxx b/Examples/tcl/reference/example.cxx index 8bc264b02..8a513bf49 100644 --- a/Examples/tcl/reference/example.cxx +++ b/Examples/tcl/reference/example.cxx @@ -1,5 +1,10 @@ /* File : example.cxx */ +/* Deal with Microsoft's attempt at deprecating C standard runtime functions */ +#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) +# define _CRT_SECURE_NO_DEPRECATE +#endif + #include "example.h" #include <stdio.h> #include <stdlib.h> diff --git a/Examples/tcl/variables/example.c b/Examples/tcl/variables/example.c index ce44fb3ca..aa4ffe9b3 100644 --- a/Examples/tcl/variables/example.c +++ b/Examples/tcl/variables/example.c @@ -2,6 +2,11 @@ /* I'm a file containing some C global variables */ +/* Deal with Microsoft's attempt at deprecating C standard runtime functions */ +#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) +# define _CRT_SECURE_NO_DEPRECATE +#endif + #include <stdio.h> #include <stdlib.h> #include "example.h" |