Merged revisions 59234-59238 via svnmerge from · pythoncapi/cpython@d59c64c · GitHub
Skip to content

Commit d59c64c

Browse files
committed
Merged revisions 59234-59238 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r59237 | facundo.batista | 2007-11-30 18:15:25 +0100 (Fri, 30 Nov 2007) | 4 lines Reordering of __new__ to minimize isinstance() calls to most used types. Thanks Mark Dickinson. ........ r59238 | christian.heimes | 2007-11-30 20:18:08 +0100 (Fri, 30 Nov 2007) | 6 lines Removed or replaced some more deprecated preprocessor macros. Moved the _DEBUG and NDEBUG macros to two new property files. Fixed python#1527 Problem with static libs on Windows Updated README.txt ........
1 parent 45031df commit d59c64c

14 files changed

Lines changed: 172 additions & 146 deletions

Lib/decimal.py

Lines changed: 56 additions & 55 deletions

PC/dl_nt.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ forgotten) from the programmer.
1111
#include "Python.h"
1212
#include "windows.h"
1313

14+
#ifdef Py_ENABLE_SHARED
1415
char dllVersionBuffer[16] = ""; // a private buffer
1516

1617
// Python Globals
@@ -35,3 +36,5 @@ BOOL WINAPI DllMain (HANDLE hInst,
3536
}
3637
return TRUE;
3738
}
39+
40+
#endif /* Py_ENABLE_SHARED */

PCbuild9/debug.vsprops

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="Windows-1252"?>
2+
<VisualStudioPropertySheet
3+
ProjectType="Visual C++"
4+
Version="8.00"
5+
Name="debug"
6+
>
7+
<Tool
8+
Name="VCCLCompilerTool"
9+
PreprocessorDefinitions="_DEBUG"
10+
/>
11+
</VisualStudioPropertySheet>

PCbuild9/make_buildinfo.vcproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<Configuration
2323
Name="Release|Win32"
2424
ConfigurationType="1"
25-
InheritedPropertySheets=".\pyproject.vsprops"
25+
InheritedPropertySheets=".\pyproject.vsprops;.\release.vsprops"
2626
CharacterSet="0"
2727
>
2828
<Tool
@@ -44,7 +44,7 @@
4444
Name="VCCLCompilerTool"
4545
Optimization="0"
4646
InlineFunctionExpansion="1"
47-
PreprocessorDefinitions="NDEBUG;_CONSOLE"
47+
PreprocessorDefinitions="_CONSOLE"
4848
RuntimeLibrary="0"
4949
/>
5050
<Tool
@@ -87,7 +87,7 @@
8787
<Configuration
8888
Name="Release|x64"
8989
ConfigurationType="1"
90-
InheritedPropertySheets=".\pyproject.vsprops;.\x64.vsprops"
90+
InheritedPropertySheets=".\pyproject.vsprops;.\x64.vsprops;.\release.vsprops"
9191
>
9292
<Tool
9393
Name="VCPreBuildEventTool"
@@ -106,7 +106,7 @@
106106
/>
107107
<Tool
108108
Name="VCCLCompilerTool"
109-
PreprocessorDefinitions="NDEBUG;_CONSOLE"
109+
PreprocessorDefinitions="_CONSOLE"
110110
/>
111111
<Tool
112112
Name="VCManagedResourceCompilerTool"

PCbuild9/make_versioninfo.vcproj

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<Configuration
2222
Name="Release|Win32"
2323
ConfigurationType="1"
24-
InheritedPropertySheets=".\pyproject.vsprops"
24+
InheritedPropertySheets=".\pyproject.vsprops;.\release.vsprops"
2525
UseOfMFC="0"
2626
ATLMinimizesCRunTimeLibraryUsage="false"
2727
CharacterSet="2"
@@ -50,7 +50,7 @@
5050
InlineFunctionExpansion="1"
5151
EnableIntrinsicFunctions="true"
5252
AdditionalIncludeDirectories=""
53-
PreprocessorDefinitions="NDEBUG;_CONSOLE"
53+
PreprocessorDefinitions="_CONSOLE"
5454
StringPooling="true"
5555
RuntimeLibrary="2"
5656
EnableFunctionLevelLinking="true"
@@ -99,7 +99,7 @@
9999
<Configuration
100100
Name="Release|x64"
101101
ConfigurationType="1"
102-
InheritedPropertySheets=".\pyproject.vsprops;.\x64.vsprops"
102+
InheritedPropertySheets=".\pyproject.vsprops;.\x64.vsprops;.\release.vsprops"
103103
>
104104
<Tool
105105
Name="VCPreBuildEventTool"
@@ -124,7 +124,7 @@
124124
Optimization="2"
125125
InlineFunctionExpansion="1"
126126
EnableIntrinsicFunctions="true"
127-
PreprocessorDefinitions="NDEBUG;_CONSOLE"
127+
PreprocessorDefinitions="_CONSOLE"
128128
/>
129129
<Tool
130130
Name="VCManagedResourceCompilerTool"
@@ -165,7 +165,7 @@
165165
<Configuration
166166
Name="Debug|Win32"
167167
ConfigurationType="1"
168-
InheritedPropertySheets=".\pyproject.vsprops"
168+
InheritedPropertySheets=".\pyproject.vsprops;.\debug.vsprops"
169169
UseOfMFC="0"
170170
ATLMinimizesCRunTimeLibraryUsage="false"
171171
CharacterSet="0"
@@ -194,7 +194,7 @@
194194
InlineFunctionExpansion="1"
195195
EnableIntrinsicFunctions="false"
196196
AdditionalIncludeDirectories=""
197-
PreprocessorDefinitions="_DEBUG;_CONSOLE"
197+
PreprocessorDefinitions="_CONSOLE"
198198
StringPooling="true"
199199
RuntimeLibrary="2"
200200
EnableFunctionLevelLinking="true"
@@ -243,7 +243,7 @@
243243
<Configuration
244244
Name="Debug|x64"
245245
ConfigurationType="1"
246-
InheritedPropertySheets=".\pyproject.vsprops;.\x64.vsprops"
246+
InheritedPropertySheets=".\pyproject.vsprops;.\x64.vsprops;.\debug.vsprops"
247247
>
248248
<Tool
249249
Name="VCPreBuildEventTool"
@@ -269,7 +269,7 @@
269269
Optimization="0"
270270
InlineFunctionExpansion="1"
271271
EnableIntrinsicFunctions="false"
272-
PreprocessorDefinitions="_DEBUG;_CONSOLE"
272+
PreprocessorDefinitions="_CONSOLE"
273273
/>
274274
<Tool
275275
Name="VCManagedResourceCompilerTool"

PCbuild9/pyd.vsprops

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@
33
ProjectType="Visual C++"
44
Version="8.00"
55
Name="pyd"
6-
InheritedPropertySheets=".\pyproject.vsprops"
6+
InheritedPropertySheets=".\pyproject.vsprops;.\release.vsprops"
77
>
88
<Tool
99
Name="VCCLCompilerTool"
10-
PreprocessorDefinitions="NDEBUG"
1110
RuntimeLibrary="2"
1211
/>
1312
<Tool

PCbuild9/pyd_d.vsprops

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@
33
ProjectType="Visual C++"
44
Version="8.00"
55
Name="pyd_d"
6-
InheritedPropertySheets=".\pyproject.vsprops"
6+
InheritedPropertySheets=".\pyproject.vsprops;.\debug.vsprops"
77
>
88
<Tool
99
Name="VCCLCompilerTool"
1010
Optimization="0"
1111
InlineFunctionExpansion="0"
1212
EnableIntrinsicFunctions="false"
13-
PreprocessorDefinitions="_DEBUG"
1413
RuntimeLibrary="3"
1514
/>
1615
<Tool

PCbuild9/pyproject.vsprops

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)