mirror of
https://github.com/python/cpython.git
synced 2025-07-24 19:54:21 +00:00
pythonrun.h: added run_pyc_file
ceval.h: added Py_AddPendingCall rest: modules using the new naming scheme must now include Python.h
This commit is contained in:
parent
f5e0ea89db
commit
956640880d
5 changed files with 14 additions and 5 deletions
|
@ -32,6 +32,11 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|||
"new style" names (e.g. PyObject) with the old style Python source
|
||||
distribution. */
|
||||
|
||||
/* Remove some symbols (these conflict with X11 symbols) */
|
||||
#undef True
|
||||
#undef False
|
||||
#undef None
|
||||
|
||||
typedef ANY *PyUnivPtr;
|
||||
typedef struct methodlist PyMethodDef;
|
||||
|
||||
|
@ -147,9 +152,9 @@ typedef struct methodlist PyMethodDef;
|
|||
#define _Py_NewReference NEWREF
|
||||
#define _Py_Dealloc DELREF
|
||||
#define _Py_ForgetReference UNREF
|
||||
#define Py_None None
|
||||
#define Py_False False
|
||||
#define Py_True True
|
||||
#define Py_None (&_Py_NoneStruct)
|
||||
#define Py_False ((object *) &_Py_ZeroStruct)
|
||||
#define Py_True ((object *) &_Py_TrueStruct)
|
||||
#define PyObject_Compare cmpobject
|
||||
#define PyObject_GetAttrString getattr
|
||||
#define PyObject_GetAttr getattro
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue