diff Include/Python.h @ 72511:775977c601cd

Move code related to compile from Python.h to compile.h
author Victor Stinner <victor.stinner@haypocalc.com>
date Thu, 29 Sep 2011 01:04:08 +0200
parents 950678c769e6
children 36fc514de7f0
line wrap: on
line diff
--- a/Include/Python.h	Thu Sep 29 00:42:28 2011 +0200
+++ b/Include/Python.h	Thu Sep 29 01:04:08 2011 +0200
@@ -127,30 +127,11 @@
 #include "dtoa.h"
 #include "fileutils.h"
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* _Py_Mangle is defined in compile.c */
-#ifndef Py_LIMITED_API
-PyAPI_FUNC(PyObject*) _Py_Mangle(PyObject *p, PyObject *name);
-#endif
-
-#ifdef __cplusplus
-}
-#endif
-
 /* Argument must be a char or an int in [-128, 127] or [0, 255]. */
 #define Py_CHARMASK(c) ((unsigned char)((c) & 0xff))
 
 #include "pyfpe.h"
 
-/* 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
-
 /* Define macros for inline documentation. */
 #define PyDoc_VAR(name) static char name[]
 #define PyDoc_STRVAR(name,str) PyDoc_VAR(name) = PyDoc_STR(str)