From bce52be4916fe817cf2f08aa00ee1cc224e3513f Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Sat, 17 Nov 2007 19:08:41 +0000 Subject: [PATCH] Fixed some build issues and updated docs. --- Include/structmember.h | 4 ++-- Misc/NEWS | 6 ++++++ Objects/funcobject.c | 4 ++-- Objects/methodobject.c | 2 +- PCbuild9/pythoncore.vcproj | 7 +++---- PCbuild9/readme.txt | 2 +- 6 files changed, 15 insertions(+), 10 deletions(-) diff --git a/Include/structmember.h b/Include/structmember.h index 10555b1a2d4..acdb84ee74a 100644 --- a/Include/structmember.h +++ b/Include/structmember.h @@ -69,8 +69,8 @@ typedef struct PyMemberDef { /* Flags */ #define READONLY 1 #define READ_RESTRICTED 2 -#define WRITE_RESTRICTED 4 -#define RESTRICTED (READ_RESTRICTED | WRITE_RESTRICTED) +#define PY_WRITE_RESTRICTED 4 +#define RESTRICTED (READ_RESTRICTED | PY_WRITE_RESTRICTED) /* Current API, use this */ diff --git a/Misc/NEWS b/Misc/NEWS index f68ac904ae2..e0d3f8b3b5c 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -39,6 +39,12 @@ Core and Builtins streams (fileno(stdin) < 0). For now this happens only for Windows GUI 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 ----------------- diff --git a/Objects/funcobject.c b/Objects/funcobject.c index 808f4eae222..408be4c0640 100644 --- a/Objects/funcobject.c +++ b/Objects/funcobject.c @@ -227,10 +227,10 @@ PyFunction_SetAnnotations(PyObject *op, PyObject *annotations) static PyMemberDef func_memberlist[] = { {"__closure__", T_OBJECT, OFF(func_closure), 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), RESTRICTED|READONLY}, - {"__module__", T_OBJECT, OFF(func_module), WRITE_RESTRICTED}, + {"__module__", T_OBJECT, OFF(func_module), PY_WRITE_RESTRICTED}, {NULL} /* Sentinel */ }; diff --git a/Objects/methodobject.c b/Objects/methodobject.c index 8a8ca03d8b4..73e0790c307 100644 --- a/Objects/methodobject.c +++ b/Objects/methodobject.c @@ -167,7 +167,7 @@ static PyGetSetDef meth_getsets [] = { #define OFF(x) offsetof(PyCFunctionObject, x) static PyMemberDef meth_members[] = { - {"__module__", T_OBJECT, OFF(m_module), WRITE_RESTRICTED}, + {"__module__", T_OBJECT, OFF(m_module), PY_WRITE_RESTRICTED}, {NULL} }; diff --git a/PCbuild9/pythoncore.vcproj b/PCbuild9/pythoncore.vcproj index 7601d48c89f..8431f313b2f 100644 --- a/PCbuild9/pythoncore.vcproj +++ b/PCbuild9/pythoncore.vcproj @@ -61,6 +61,7 @@ /> - - diff --git a/PCbuild9/readme.txt b/PCbuild9/readme.txt index 62c21920e85..1fd8cc35089 100644 --- a/PCbuild9/readme.txt +++ b/PCbuild9/readme.txt @@ -227,7 +227,7 @@ _ssl 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. You can (theoretically) use any version of OpenSSL you like - the