3 /* Since this is a "meta-include" file, no #ifdef __cplusplus / extern "C" { */
6 /* Enable compiler features; switching on C lib defines doesn't work
7 here, because the symbols haven't necessarily been defined yet. */
12 /* Forcing SUSv2 compatibility still produces problems on some
13 platforms, True64 and SGI IRIX begin two of them, so for now the
14 define is switched off. */
17 # define _XOPEN_SOURCE 500
21 /* Include nearly all Python header files */
23 #include "patchlevel.h"
30 /* config.h may or may not define DL_IMPORT */
31 #ifndef DL_IMPORT /* declarations for DLL import/export */
32 #define DL_IMPORT(RTYPE) RTYPE
34 #ifndef DL_EXPORT /* declarations for DLL import/export */
35 #define DL_EXPORT(RTYPE) RTYPE
38 #if defined(__sgi) && defined(WITH_THREAD) && !defined(_SGI_MP_SOURCE)
39 #define _SGI_MP_SOURCE
44 # error "Python.h requires that stdio.h define NULL."
63 #include "unicodeobject.h"
64 #include "intobject.h"
65 #include "longobject.h"
66 #include "floatobject.h"
67 #ifndef WITHOUT_COMPLEX
68 #include "complexobject.h"
70 #include "rangeobject.h"
71 #include "stringobject.h"
72 #include "bufferobject.h"
73 #include "tupleobject.h"
74 #include "listobject.h"
75 #include "dictobject.h"
76 #include "methodobject.h"
77 #include "moduleobject.h"
78 #include "funcobject.h"
79 #include "classobject.h"
80 #include "fileobject.h"
82 #include "traceback.h"
83 #include "sliceobject.h"
84 #include "cellobject.h"
91 #include "modsupport.h"
93 #include "pythonrun.h"
94 #include "sysmodule.h"
95 #include "intrcheck.h"
100 #define PyArg_GetInt(v, a) PyArg_Parse((v), "i", (a))
101 #define PyArg_NoArgs(v) PyArg_Parse(v, "")
103 /* Convert a possibly signed character to a nonnegative int */
104 /* XXX This assumes characters are 8 bits wide */
105 #ifdef __CHAR_UNSIGNED__
106 #define Py_CHARMASK(c) (c)
108 #define Py_CHARMASK(c) ((c) & 0xff)
113 /* These definitions must match corresponding definitions in graminit.h.
114 There's code in compile.c that checks that they are the same. */
115 #define Py_single_input 256
116 #define Py_file_input 257
117 #define Py_eval_input 258
120 /* GNU pth user-space thread support */
123 #endif /* !Py_PYTHON_H */