+++ /dev/null
-\r
-#ifndef Py_MODSUPPORT_H\r
-#define Py_MODSUPPORT_H\r
-#ifdef __cplusplus\r
-extern "C" {\r
-#endif\r
-\r
-/* Module support interface */\r
-\r
-#include <stdarg.h>\r
-\r
-/* If PY_SSIZE_T_CLEAN is defined, each functions treats #-specifier\r
- to mean Py_ssize_t */\r
-#ifdef PY_SSIZE_T_CLEAN\r
-#define PyArg_Parse _PyArg_Parse_SizeT\r
-#define PyArg_ParseTuple _PyArg_ParseTuple_SizeT\r
-#define PyArg_ParseTupleAndKeywords _PyArg_ParseTupleAndKeywords_SizeT\r
-#define PyArg_VaParse _PyArg_VaParse_SizeT\r
-#define PyArg_VaParseTupleAndKeywords _PyArg_VaParseTupleAndKeywords_SizeT\r
-#define Py_BuildValue _Py_BuildValue_SizeT\r
-#define Py_VaBuildValue _Py_VaBuildValue_SizeT\r
-#else\r
-PyAPI_FUNC(PyObject *) _Py_VaBuildValue_SizeT(const char *, va_list);\r
-#endif\r
-\r
-PyAPI_FUNC(int) PyArg_Parse(PyObject *, const char *, ...);\r
-PyAPI_FUNC(int) PyArg_ParseTuple(PyObject *, const char *, ...) Py_FORMAT_PARSETUPLE(PyArg_ParseTuple, 2, 3);\r
-PyAPI_FUNC(int) PyArg_ParseTupleAndKeywords(PyObject *, PyObject *,\r
- const char *, char **, ...);\r
-PyAPI_FUNC(int) PyArg_UnpackTuple(PyObject *, const char *, Py_ssize_t, Py_ssize_t, ...);\r
-PyAPI_FUNC(PyObject *) Py_BuildValue(const char *, ...);\r
-PyAPI_FUNC(PyObject *) _Py_BuildValue_SizeT(const char *, ...);\r
-PyAPI_FUNC(int) _PyArg_NoKeywords(const char *funcname, PyObject *kw);\r
-\r
-PyAPI_FUNC(int) PyArg_VaParse(PyObject *, const char *, va_list);\r
-PyAPI_FUNC(int) PyArg_VaParseTupleAndKeywords(PyObject *, PyObject *,\r
- const char *, char **, va_list);\r
-PyAPI_FUNC(PyObject *) Py_VaBuildValue(const char *, va_list);\r
-\r
-PyAPI_FUNC(int) PyModule_AddObject(PyObject *, const char *, PyObject *);\r
-PyAPI_FUNC(int) PyModule_AddIntConstant(PyObject *, const char *, long);\r
-PyAPI_FUNC(int) PyModule_AddStringConstant(PyObject *, const char *, const char *);\r
-#define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)\r
-#define PyModule_AddStringMacro(m, c) PyModule_AddStringConstant(m, #c, c)\r
-\r
-#define PYTHON_API_VERSION 1013\r
-#define PYTHON_API_STRING "1013"\r
-/* The API version is maintained (independently from the Python version)\r
- so we can detect mismatches between the interpreter and dynamically\r
- loaded modules. These are diagnosed by an error message but\r
- the module is still loaded (because the mismatch can only be tested\r
- after loading the module). The error message is intended to\r
- explain the core dump a few seconds later.\r
-\r
- The symbol PYTHON_API_STRING defines the same value as a string\r
- literal. *** PLEASE MAKE SURE THE DEFINITIONS MATCH. ***\r
-\r
- Please add a line or two to the top of this log for each API\r
- version change:\r
-\r
- 22-Feb-2006 MvL 1013 PEP 353 - long indices for sequence lengths\r
-\r
- 19-Aug-2002 GvR 1012 Changes to string object struct for\r
- interning changes, saving 3 bytes.\r
-\r
- 17-Jul-2001 GvR 1011 Descr-branch, just to be on the safe side\r
-\r
- 25-Jan-2001 FLD 1010 Parameters added to PyCode_New() and\r
- PyFrame_New(); Python 2.1a2\r
-\r
- 14-Mar-2000 GvR 1009 Unicode API added\r
-\r
- 3-Jan-1999 GvR 1007 Decided to change back! (Don't reuse 1008!)\r
-\r
- 3-Dec-1998 GvR 1008 Python 1.5.2b1\r
-\r
- 18-Jan-1997 GvR 1007 string interning and other speedups\r
-\r
- 11-Oct-1996 GvR renamed Py_Ellipses to Py_Ellipsis :-(\r
-\r
- 30-Jul-1996 GvR Slice and ellipses syntax added\r
-\r
- 23-Jul-1996 GvR For 1.4 -- better safe than sorry this time :-)\r
-\r
- 7-Nov-1995 GvR Keyword arguments (should've been done at 1.3 :-( )\r
-\r
- 10-Jan-1995 GvR Renamed globals to new naming scheme\r
-\r
- 9-Jan-1995 GvR Initial version (incompatible with older API)\r
-*/\r
-\r
-#ifdef MS_WINDOWS\r
-/* Special defines for Windows versions used to live here. Things\r
- have changed, and the "Version" is now in a global string variable.\r
- Reason for this is that this for easier branding of a "custom DLL"\r
- without actually needing a recompile. */\r
-#endif /* MS_WINDOWS */\r
-\r
-#if SIZEOF_SIZE_T != SIZEOF_INT\r
-/* On a 64-bit system, rename the Py_InitModule4 so that 2.4\r
- modules cannot get loaded into a 2.5 interpreter */\r
-#define Py_InitModule4 Py_InitModule4_64\r
-#endif\r
-\r
-#ifdef Py_TRACE_REFS\r
- /* When we are tracing reference counts, rename Py_InitModule4 so\r
- modules compiled with incompatible settings will generate a\r
- link-time error. */\r
- #if SIZEOF_SIZE_T != SIZEOF_INT\r
- #undef Py_InitModule4\r
- #define Py_InitModule4 Py_InitModule4TraceRefs_64\r
- #else\r
- #define Py_InitModule4 Py_InitModule4TraceRefs\r
- #endif\r
-#endif\r
-\r
-PyAPI_FUNC(PyObject *) Py_InitModule4(const char *name, PyMethodDef *methods,\r
- const char *doc, PyObject *self,\r
- int apiver);\r
-\r
-#define Py_InitModule(name, methods) \\r
- Py_InitModule4(name, methods, (char *)NULL, (PyObject *)NULL, \\r
- PYTHON_API_VERSION)\r
-\r
-#define Py_InitModule3(name, methods, doc) \\r
- Py_InitModule4(name, methods, doc, (PyObject *)NULL, \\r
- PYTHON_API_VERSION)\r
-\r
-PyAPI_DATA(char *) _Py_PackageContext;\r
-\r
-#ifdef __cplusplus\r
-}\r
-#endif\r
-#endif /* !Py_MODSUPPORT_H */\r