summaryrefslogtreecommitdiffstats
path: root/Include/compile.h
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-09-28 23:04:08 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-09-28 23:04:08 (GMT)
commit2bdc7f591b729c7c0351f92a80d090e41a7cea49 (patch)
tree60fe7bdd2d557811070c9e397eae99b4fbf65324 /Include/compile.h
parent639418812f11749f99d1160b26325bdfa3a26a6f (diff)
downloadcpython-2bdc7f591b729c7c0351f92a80d090e41a7cea49.zip
cpython-2bdc7f591b729c7c0351f92a80d090e41a7cea49.tar.gz
cpython-2bdc7f591b729c7c0351f92a80d090e41a7cea49.tar.bz2
Move code related to compile from Python.h to compile.h
Diffstat (limited to 'Include/compile.h')
-rw-r--r--Include/compile.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/Include/compile.h b/Include/compile.h
index bc53b39..ac2636d 100644
--- a/Include/compile.h
+++ b/Include/compile.h
@@ -1,7 +1,7 @@
-#ifndef Py_LIMITED_API
#ifndef Py_COMPILE_H
#define Py_COMPILE_H
+#ifndef Py_LIMITED_API
#include "code.h"
#ifdef __cplusplus
@@ -38,9 +38,19 @@ PyAPI_FUNC(PyCodeObject *) PyAST_CompileEx(
PyArena *arena);
PyAPI_FUNC(PyFutureFeatures *) PyFuture_FromAST(struct _mod *, const char *);
+/* _Py_Mangle is defined in compile.c */
+PyAPI_FUNC(PyObject*) _Py_Mangle(PyObject *p, PyObject *name);
#ifdef __cplusplus
}
#endif
-#endif /* !Py_COMPILE_H */
+
#endif /* !Py_LIMITED_API */
+
+/* These definitions must match corresponding definitions in graminit.h.
+ There's code in compile.c that checks that they are the same. */
+#define Py_single_input 256
+#define Py_file_input 257
+#define Py_eval_input 258
+
+#endif /* !Py_COMPILE_H */