Kaydet (Commit) bce52be4 authored tarafından Christian Heimes's avatar Christian Heimes

Fixed some build issues and updated docs.

üst d157e697
...@@ -69,8 +69,8 @@ typedef struct PyMemberDef { ...@@ -69,8 +69,8 @@ typedef struct PyMemberDef {
/* Flags */ /* Flags */
#define READONLY 1 #define READONLY 1
#define READ_RESTRICTED 2 #define READ_RESTRICTED 2
#define WRITE_RESTRICTED 4 #define PY_WRITE_RESTRICTED 4
#define RESTRICTED (READ_RESTRICTED | WRITE_RESTRICTED) #define RESTRICTED (READ_RESTRICTED | PY_WRITE_RESTRICTED)
/* Current API, use this */ /* Current API, use this */
......
...@@ -39,6 +39,12 @@ Core and Builtins ...@@ -39,6 +39,12 @@ Core and Builtins
streams (fileno(stdin) < 0). For now this happens only for Windows GUI streams (fileno(stdin) < 0). For now this happens only for Windows GUI
apps and scripts started with `pythonw.exe`. apps and scripts started with `pythonw.exe`.
- Added PCbuild9 directory for VS 2008.
- Renamed structmember.h WRITE_RESTRICTED to PY_WRITE_RESTRICTED to work
around a name clash with VS 2008 on Windows.
Extension Modules Extension Modules
----------------- -----------------
......
...@@ -227,10 +227,10 @@ PyFunction_SetAnnotations(PyObject *op, PyObject *annotations) ...@@ -227,10 +227,10 @@ PyFunction_SetAnnotations(PyObject *op, PyObject *annotations)
static PyMemberDef func_memberlist[] = { static PyMemberDef func_memberlist[] = {
{"__closure__", T_OBJECT, OFF(func_closure), {"__closure__", T_OBJECT, OFF(func_closure),
RESTRICTED|READONLY}, RESTRICTED|READONLY},
{"__doc__", T_OBJECT, OFF(func_doc), WRITE_RESTRICTED}, {"__doc__", T_OBJECT, OFF(func_doc), PY_WRITE_RESTRICTED},
{"__globals__", T_OBJECT, OFF(func_globals), {"__globals__", T_OBJECT, OFF(func_globals),
RESTRICTED|READONLY}, RESTRICTED|READONLY},
{"__module__", T_OBJECT, OFF(func_module), WRITE_RESTRICTED}, {"__module__", T_OBJECT, OFF(func_module), PY_WRITE_RESTRICTED},
{NULL} /* Sentinel */ {NULL} /* Sentinel */
}; };
......
...@@ -167,7 +167,7 @@ static PyGetSetDef meth_getsets [] = { ...@@ -167,7 +167,7 @@ static PyGetSetDef meth_getsets [] = {
#define OFF(x) offsetof(PyCFunctionObject, x) #define OFF(x) offsetof(PyCFunctionObject, x)
static PyMemberDef meth_members[] = { static PyMemberDef meth_members[] = {
{"__module__", T_OBJECT, OFF(m_module), WRITE_RESTRICTED}, {"__module__", T_OBJECT, OFF(m_module), PY_WRITE_RESTRICTED},
{NULL} {NULL}
}; };
......
...@@ -61,6 +61,7 @@ ...@@ -61,6 +61,7 @@
/> />
<Tool <Tool
Name="VCLinkerTool" Name="VCLinkerTool"
AdditionalDependencies="getbuildinfo.o"
OutputFile="./python30.dll" OutputFile="./python30.dll"
IgnoreDefaultLibraryNames="libc" IgnoreDefaultLibraryNames="libc"
ProgramDatabaseFile="python30.pdb" ProgramDatabaseFile="python30.pdb"
...@@ -137,6 +138,7 @@ ...@@ -137,6 +138,7 @@
/> />
<Tool <Tool
Name="VCLinkerTool" Name="VCLinkerTool"
AdditionalDependencies="getbuildinfo.o"
OutputFile="./python30.dll" OutputFile="./python30.dll"
IgnoreDefaultLibraryNames="libc" IgnoreDefaultLibraryNames="libc"
ProgramDatabaseFile="python30.pdb" ProgramDatabaseFile="python30.pdb"
...@@ -213,6 +215,7 @@ ...@@ -213,6 +215,7 @@
/> />
<Tool <Tool
Name="VCLinkerTool" Name="VCLinkerTool"
AdditionalDependencies="getbuildinfo.o"
OutputFile="$(PyDllName)_d.dll" OutputFile="$(PyDllName)_d.dll"
IgnoreDefaultLibraryNames="libc" IgnoreDefaultLibraryNames="libc"
ProgramDatabaseFile="python30_d.pdb" ProgramDatabaseFile="python30_d.pdb"
...@@ -1180,10 +1183,6 @@ ...@@ -1180,10 +1183,6 @@
RelativePath="..\PC\errmap.h" RelativePath="..\PC\errmap.h"
> >
</File> </File>
<File
RelativePath="..\PCBuild9_old\getbuildinfo.c"
>
</File>
<File <File
RelativePath="..\PC\getpathp.c" RelativePath="..\PC\getpathp.c"
> >
......
...@@ -227,7 +227,7 @@ _ssl ...@@ -227,7 +227,7 @@ _ssl
Get the source code through Get the source code through
svn export http://svn.python.org/projects/external/openssl-0.9.8a svn export http://svn.python.org/projects/external/openssl-0.9.8g
Alternatively, get the latest version from http://www.openssl.org. Alternatively, get the latest version from http://www.openssl.org.
You can (theoretically) use any version of OpenSSL you like - the You can (theoretically) use any version of OpenSSL you like - the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment