--- /dev/null
+/* Header file to be included by modules using new naming conventions */
+#include "allobjects.h"
+#include "rename1.h"
#include "modsupport.h"
#include "ceval.h"
-#include "rename1.h"
-
extern void fatal PROTO((char *));
#ifdef __cplusplus
void printtraceback PROTO((object *));
void flushline PROTO((void));
+int Py_AddPendingCall PROTO((int (*func) PROTO((ANY *)), ANY *arg));
+
/* Interface for threads.
object *run_string PROTO((char *, int, object *, object *));
object *run_file PROTO((FILE *, char *, int, object *, object *));
+object *run_pyc_file PROTO((FILE *, char *, object *, object *));
object *compile_string PROTO((char *, char *, int));
"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;
#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