123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 |
- #ifndef Py_PYTHON_H
- #define Py_PYTHON_H
- #ifndef _GNU_SOURCE
- # define _GNU_SOURCE 1
- #endif
- #if 0
- #ifndef _XOPEN_SOURCE
- # define _XOPEN_SOURCE 500
- #endif
- #endif
- #include "patchlevel.h"
- #include "pyconfig.h"
- #ifdef HAVE_LIMITS_H
- #include <limits.h>
- #endif
- #ifndef DL_IMPORT
- #define DL_IMPORT(RTYPE) RTYPE
- #endif
- #ifndef DL_EXPORT
- #define DL_EXPORT(RTYPE) RTYPE
- #endif
- #if defined(__sgi) && defined(WITH_THREAD) && !defined(_SGI_MP_SOURCE)
- #define _SGI_MP_SOURCE
- #endif
- #include <stdio.h>
- #ifndef NULL
- # error "Python.h requires that stdio.h define NULL."
- #endif
- #include <string.h>
- #include <errno.h>
- #ifdef HAVE_STDLIB_H
- #include <stdlib.h>
- #endif
- #if PY_MICRO_VERSION == 1
- #ifdef HAVE_UNISTD_H
- #include <unistd.h>
- #endif
- #endif
- #include <assert.h>
- #include "pyport.h"
- #include "pymem.h"
- #include "object.h"
- #include "objimpl.h"
- #include "pydebug.h"
- #include "unicodeobject.h"
- #include "intobject.h"
- #include "longobject.h"
- #include "floatobject.h"
- #ifndef WITHOUT_COMPLEX
- #include "complexobject.h"
- #endif
- #include "rangeobject.h"
- #include "stringobject.h"
- #include "bufferobject.h"
- #include "tupleobject.h"
- #include "listobject.h"
- #include "dictobject.h"
- #include "methodobject.h"
- #include "moduleobject.h"
- #include "funcobject.h"
- #include "classobject.h"
- #include "fileobject.h"
- #include "cobject.h"
- #include "traceback.h"
- #include "sliceobject.h"
- #include "cellobject.h"
- extern "C" {
- #include "iterobject.h"
- #include "descrobject.h"
- }
- #include "weakrefobject.h"
- #include "codecs.h"
- #include "pyerrors.h"
- #include "pystate.h"
- #include "modsupport.h"
- #include "pythonrun.h"
- #include "ceval.h"
- #include "sysmodule.h"
- #include "intrcheck.h"
- #include "import.h"
- #include "abstract.h"
- #define PyArg_GetInt(v, a) PyArg_Parse((v), "i", (a))
- #define PyArg_NoArgs(v) PyArg_Parse(v, "")
- #ifdef __CHAR_UNSIGNED__
- #define Py_CHARMASK(c) (c)
- #else
- #define Py_CHARMASK(c) ((c) & 0xff)
- #endif
- #include "pyfpe.h"
- #define Py_single_input 256
- #define Py_file_input 257
- #define Py_eval_input 258
- #ifdef HAVE_PTH
- #include <pth.h>
- #endif
- #endif
|