Debian Codegraph @

pypy/module/cpyext/include/Python.h

raw symbols SCIP
1 // Entry point of the Python C API.
2 // C extensions should only #include <Python.h>, and not include directly
3 // the other Python header files included by <Python.h>.
4
5 #ifndef Py_PYTHON_H
6 #define Py_PYTHON_H
7
8 // Since this is a "meta-include" file, no #ifdef __cplusplus / extern "C" {
9
10 // Include Python header files
11 #include "patchlevel.h"
12 #include <pyconfig.h>
13
14 /* Compat stuff */
15 #ifdef __GNUC__
16 #define _GNU_SOURCE 1
17 #endif
18 #ifndef _WIN32
19 # include <stddef.h>
20 # include <errno.h>
21 # include <unistd.h>
22 #else
23 # include <sys/types.h> /* for 'off_t' */
24 #endif
25 #include <stdio.h>
26
27 #include <string.h>
28 #include <stdlib.h>
29
30 #define Py_USING_UNICODE
31
32 #define statichere static
33
34 #include "pyport.h"
35
36 #include "pypy_macros.h"
37 #include "pymacro.h"
38
39 #include "pymath.h"
40 #include "pymem.h"
41
42 #include "object.h"
43 #include "objimpl.h"
44 #include "typeslots.h"
45 #include "pyhash.h"
46 #include "pytime.h"
47 #include "warnings.h"
48
49 #include <stdarg.h>
50 #include <assert.h>
51 #include <locale.h>
52 #include <ctype.h>
53
54 #include "bytearrayobject.h"
55 #include "bytesobject.h"
56 #include "unicodeobject.h"
57 #include "longobject.h"
58 #include "boolobject.h"
59 #include "floatobject.h"
60 #include "complexobject.h"
61 #include "rangeobject.h"
62 #include "memoryobject.h"
63 #include "tupleobject.h"
64 #include "listobject.h"
65 #include "dictobject.h"
66 #include "setobject.h"
67 #include "methodobject.h"
68 #include "moduleobject.h"
69 #include "funcobject.h"
70 #include "fileobject.h"
71 #include "pycapsule.h"
72 #include "code.h"
73 #include "traceback.h"
74 #include "sliceobject.h"
75 #include "genobject.h"
76 #include "descrobject.h"
77 #include "genericaliasobject.h"
78 #include "structseq.h"
79 #include "pyerrors.h"
80 #include "pythread.h"
81 #include "pystate.h"
82
83 #include "modsupport.h"
84 #include "compile.h"
85 #include "pythonrun.h"
86 #include "pylifecycle.h"
87 #include "ceval.h"
88 #include "sysmodule.h"
89 #include "import.h"
90
91 #include "abstract.h"
92
93 #include "pystrtod.h"
94
95 /* Not in CPython */
96 #include "frameobject.h"
97 #include "datetime.h"
98 #include "pysignals.h"
99
100 /* Missing definitions */
101 #include "missing.h"
102
103 /* The declarations of most API functions are generated in a separate file */
104 /* Don't include them while building PyPy, RPython also generated signatures
105 * which are similar but not identical. */
106 #ifndef PYPY_STANDALONE
107 #ifdef __cplusplus
108 extern "C" {
109 #endif
110 #include "pypy_decl.h"
111 #ifdef __cplusplus
112 }
113 #endif
114 #endif /* PYPY_STANDALONE */
115
116 /* Define macros for inline documentation. */
117 #define PyDoc_STRVAR(name,str) PyDoc_VAR(name) = PyDoc_STR(str)
118 #ifdef WITH_DOC_STRINGS
119 #define PyDoc_STR(str) str
120 #else
121 #define PyDoc_STR(str) ""
122 #endif
123
124 /* PyPy does not implement --with-fpectl */
125 #define PyFPE_START_PROTECT(err_string, leave_stmt)
126 #define PyFPE_END_PROTECT(v)
127
128
129 #endif /* !Py_PYTHON_H */