jpayne@69: #ifndef Py_PYTHON_H jpayne@69: #define Py_PYTHON_H jpayne@69: /* Since this is a "meta-include" file, no #ifdef __cplusplus / extern "C" { */ jpayne@69: jpayne@69: /* Include nearly all Python header files */ jpayne@69: jpayne@69: #include "patchlevel.h" jpayne@69: #include "pyconfig.h" jpayne@69: #include "pymacconfig.h" jpayne@69: jpayne@69: #include jpayne@69: jpayne@69: #ifndef UCHAR_MAX jpayne@69: #error "Something's broken. UCHAR_MAX should be defined in limits.h." jpayne@69: #endif jpayne@69: jpayne@69: #if UCHAR_MAX != 255 jpayne@69: #error "Python's source code assumes C's unsigned char is an 8-bit type." jpayne@69: #endif jpayne@69: jpayne@69: #if defined(__sgi) && !defined(_SGI_MP_SOURCE) jpayne@69: #define _SGI_MP_SOURCE jpayne@69: #endif jpayne@69: jpayne@69: #include jpayne@69: #ifndef NULL jpayne@69: # error "Python.h requires that stdio.h define NULL." jpayne@69: #endif jpayne@69: jpayne@69: #include jpayne@69: #ifdef HAVE_ERRNO_H jpayne@69: #include jpayne@69: #endif jpayne@69: #include jpayne@69: #ifndef MS_WINDOWS jpayne@69: #include jpayne@69: #endif jpayne@69: #ifdef HAVE_CRYPT_H jpayne@69: #if defined(HAVE_CRYPT_R) && !defined(_GNU_SOURCE) jpayne@69: /* Required for glibc to expose the crypt_r() function prototype. */ jpayne@69: # define _GNU_SOURCE jpayne@69: # define _Py_GNU_SOURCE_FOR_CRYPT jpayne@69: #endif jpayne@69: #include jpayne@69: #ifdef _Py_GNU_SOURCE_FOR_CRYPT jpayne@69: /* Don't leak the _GNU_SOURCE define to other headers. */ jpayne@69: # undef _GNU_SOURCE jpayne@69: # undef _Py_GNU_SOURCE_FOR_CRYPT jpayne@69: #endif jpayne@69: #endif jpayne@69: jpayne@69: /* For size_t? */ jpayne@69: #ifdef HAVE_STDDEF_H jpayne@69: #include jpayne@69: #endif jpayne@69: jpayne@69: /* CAUTION: Build setups should ensure that NDEBUG is defined on the jpayne@69: * compiler command line when building Python in release mode; else jpayne@69: * assert() calls won't be removed. jpayne@69: */ jpayne@69: #include jpayne@69: jpayne@69: #include "pyport.h" jpayne@69: #include "pymacro.h" jpayne@69: jpayne@69: /* A convenient way for code to know if clang's memory sanitizer is enabled. */ jpayne@69: #if defined(__has_feature) jpayne@69: # if __has_feature(memory_sanitizer) jpayne@69: # if !defined(_Py_MEMORY_SANITIZER) jpayne@69: # define _Py_MEMORY_SANITIZER jpayne@69: # endif jpayne@69: # endif jpayne@69: #endif jpayne@69: jpayne@69: /* Debug-mode build with pymalloc implies PYMALLOC_DEBUG. jpayne@69: * PYMALLOC_DEBUG is in error if pymalloc is not in use. jpayne@69: */ jpayne@69: #if defined(Py_DEBUG) && defined(WITH_PYMALLOC) && !defined(PYMALLOC_DEBUG) jpayne@69: #define PYMALLOC_DEBUG jpayne@69: #endif jpayne@69: #if defined(PYMALLOC_DEBUG) && !defined(WITH_PYMALLOC) jpayne@69: #error "PYMALLOC_DEBUG requires WITH_PYMALLOC" jpayne@69: #endif jpayne@69: #include "pymath.h" jpayne@69: #include "pytime.h" jpayne@69: #include "pymem.h" jpayne@69: jpayne@69: #include "object.h" jpayne@69: #include "objimpl.h" jpayne@69: #include "typeslots.h" jpayne@69: #include "pyhash.h" jpayne@69: jpayne@69: #include "pydebug.h" jpayne@69: jpayne@69: #include "bytearrayobject.h" jpayne@69: #include "bytesobject.h" jpayne@69: #include "unicodeobject.h" jpayne@69: #include "longobject.h" jpayne@69: #include "longintrepr.h" jpayne@69: #include "boolobject.h" jpayne@69: #include "floatobject.h" jpayne@69: #include "complexobject.h" jpayne@69: #include "rangeobject.h" jpayne@69: #include "memoryobject.h" jpayne@69: #include "tupleobject.h" jpayne@69: #include "listobject.h" jpayne@69: #include "dictobject.h" jpayne@69: #include "odictobject.h" jpayne@69: #include "enumobject.h" jpayne@69: #include "setobject.h" jpayne@69: #include "methodobject.h" jpayne@69: #include "moduleobject.h" jpayne@69: #include "funcobject.h" jpayne@69: #include "classobject.h" jpayne@69: #include "fileobject.h" jpayne@69: #include "pycapsule.h" jpayne@69: #include "traceback.h" jpayne@69: #include "sliceobject.h" jpayne@69: #include "cellobject.h" jpayne@69: #include "iterobject.h" jpayne@69: #include "genobject.h" jpayne@69: #include "descrobject.h" jpayne@69: #include "warnings.h" jpayne@69: #include "weakrefobject.h" jpayne@69: #include "structseq.h" jpayne@69: #include "namespaceobject.h" jpayne@69: #include "picklebufobject.h" jpayne@69: jpayne@69: #include "codecs.h" jpayne@69: #include "pyerrors.h" jpayne@69: jpayne@69: #include "cpython/initconfig.h" jpayne@69: #include "pystate.h" jpayne@69: #include "context.h" jpayne@69: jpayne@69: #include "pyarena.h" jpayne@69: #include "modsupport.h" jpayne@69: #include "compile.h" jpayne@69: #include "pythonrun.h" jpayne@69: #include "pylifecycle.h" jpayne@69: #include "ceval.h" jpayne@69: #include "sysmodule.h" jpayne@69: #include "osmodule.h" jpayne@69: #include "intrcheck.h" jpayne@69: #include "import.h" jpayne@69: jpayne@69: #include "abstract.h" jpayne@69: #include "bltinmodule.h" jpayne@69: jpayne@69: #include "eval.h" jpayne@69: jpayne@69: #include "pyctype.h" jpayne@69: #include "pystrtod.h" jpayne@69: #include "pystrcmp.h" jpayne@69: #include "dtoa.h" jpayne@69: #include "fileutils.h" jpayne@69: #include "pyfpe.h" jpayne@69: #include "tracemalloc.h" jpayne@69: jpayne@69: #endif /* !Py_PYTHON_H */