3 /* Since this is a "meta-include" file, no #ifdef __cplusplus / extern "C" { */
5 /***********************************************************
6 Copyright (c) 2000, BeOpen.com.
7 Copyright (c) 1995-2000, Corporation for National Research Initiatives.
8 Copyright (c) 1990-1995, Stichting Mathematisch Centrum.
11 See the file "Misc/COPYRIGHT" for information on usage and
12 redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
13 ******************************************************************/
15 /* Enable compiler features; switching on C lib defines doesn't work
16 here, because the symbols haven't necessarily been defined yet. */
18 # define _GNU_SOURCE 1
21 /* Forcing SUSv2 compatibility still produces problems on some
22 platforms, True64 and SGI IRIX begin two of them, so for now the
23 define is switched off. */
26 # define _XOPEN_SOURCE 500
30 /* Include nearly all Python header files */
32 #include "patchlevel.h"
35 /* config.h may or may not define DL_IMPORT */
36 #ifndef DL_IMPORT /* declarations for DLL import/export */
37 #define DL_IMPORT(RTYPE) RTYPE
39 #ifndef DL_EXPORT /* declarations for DLL import/export */
40 #define DL_EXPORT(RTYPE) RTYPE
43 #if defined(__sgi) && defined(WITH_THREAD) && !defined(_SGI_MP_SOURCE)
44 #define _SGI_MP_SOURCE
64 #include "unicodeobject.h"
65 #include "intobject.h"
66 #include "longobject.h"
67 #include "floatobject.h"
68 #ifndef WITHOUT_COMPLEX
69 #include "complexobject.h"
71 #include "rangeobject.h"
72 #include "stringobject.h"
73 #include "bufferobject.h"
74 #include "tupleobject.h"
75 #include "listobject.h"
76 #include "dictobject.h"
77 #include "methodobject.h"
78 #include "moduleobject.h"
79 #include "funcobject.h"
80 #include "classobject.h"
81 #include "fileobject.h"
83 #include "traceback.h"
84 #include "sliceobject.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 */