summaryrefslogtreecommitdiffstats
path: root/Include/rename1.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1994-09-14 13:23:36 (GMT)
committerGuido van Rossum <guido@python.org>1994-09-14 13:23:36 (GMT)
commit956640880da20c20d5320477a0dcaf2026bd9426 (patch)
tree8c1f67d70244113e4239c8519fc4077d24976998 /Include/rename1.h
parentf5e0ea89db4475a79a6bd6cb5e10c2e0c0ff602f (diff)
downloadcpython-956640880da20c20d5320477a0dcaf2026bd9426.zip
cpython-956640880da20c20d5320477a0dcaf2026bd9426.tar.gz
cpython-956640880da20c20d5320477a0dcaf2026bd9426.tar.bz2
pythonrun.h: added run_pyc_file
ceval.h: added Py_AddPendingCall rest: modules using the new naming scheme must now include Python.h
Diffstat (limited to 'Include/rename1.h')
-rwxr-xr-xInclude/rename1.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/Include/rename1.h b/Include/rename1.h
index 1b3d80a..22c5dcf 100755
--- a/Include/rename1.h
+++ b/Include/rename1.h
@@ -32,6 +32,11 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
"new style" names (e.g. PyObject) with the old style Python source
distribution. */
+/* Remove some symbols (these conflict with X11 symbols) */
+#undef True
+#undef False
+#undef None
+
typedef ANY *PyUnivPtr;
typedef struct methodlist PyMethodDef;
@@ -147,9 +152,9 @@ typedef struct methodlist PyMethodDef;
#define _Py_NewReference NEWREF
#define _Py_Dealloc DELREF
#define _Py_ForgetReference UNREF
-#define Py_None None
-#define Py_False False
-#define Py_True True
+#define Py_None (&_Py_NoneStruct)
+#define Py_False ((object *) &_Py_ZeroStruct)
+#define Py_True ((object *) &_Py_TrueStruct)
#define PyObject_Compare cmpobject
#define PyObject_GetAttrString getattr
#define PyObject_GetAttr getattro