Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/python2....
File: modsupport.h
[0] Fix | Delete
#ifndef Py_MODSUPPORT_H
[1] Fix | Delete
#define Py_MODSUPPORT_H
[2] Fix | Delete
#ifdef __cplusplus
[3] Fix | Delete
extern "C" {
[4] Fix | Delete
#endif
[5] Fix | Delete
[6] Fix | Delete
/* Module support interface */
[7] Fix | Delete
[8] Fix | Delete
#include <stdarg.h>
[9] Fix | Delete
[10] Fix | Delete
/* If PY_SSIZE_T_CLEAN is defined, each functions treats #-specifier
[11] Fix | Delete
to mean Py_ssize_t */
[12] Fix | Delete
#ifdef PY_SSIZE_T_CLEAN
[13] Fix | Delete
#define PyArg_Parse _PyArg_Parse_SizeT
[14] Fix | Delete
#define PyArg_ParseTuple _PyArg_ParseTuple_SizeT
[15] Fix | Delete
#define PyArg_ParseTupleAndKeywords _PyArg_ParseTupleAndKeywords_SizeT
[16] Fix | Delete
#define PyArg_VaParse _PyArg_VaParse_SizeT
[17] Fix | Delete
#define PyArg_VaParseTupleAndKeywords _PyArg_VaParseTupleAndKeywords_SizeT
[18] Fix | Delete
#define Py_BuildValue _Py_BuildValue_SizeT
[19] Fix | Delete
#define Py_VaBuildValue _Py_VaBuildValue_SizeT
[20] Fix | Delete
#else
[21] Fix | Delete
PyAPI_FUNC(PyObject *) _Py_VaBuildValue_SizeT(const char *, va_list);
[22] Fix | Delete
#endif
[23] Fix | Delete
[24] Fix | Delete
PyAPI_FUNC(int) PyArg_Parse(PyObject *, const char *, ...);
[25] Fix | Delete
PyAPI_FUNC(int) PyArg_ParseTuple(PyObject *, const char *, ...) Py_FORMAT_PARSETUPLE(PyArg_ParseTuple, 2, 3);
[26] Fix | Delete
PyAPI_FUNC(int) PyArg_ParseTupleAndKeywords(PyObject *, PyObject *,
[27] Fix | Delete
const char *, char **, ...);
[28] Fix | Delete
PyAPI_FUNC(int) PyArg_UnpackTuple(PyObject *, const char *, Py_ssize_t, Py_ssize_t, ...);
[29] Fix | Delete
PyAPI_FUNC(PyObject *) Py_BuildValue(const char *, ...);
[30] Fix | Delete
PyAPI_FUNC(PyObject *) _Py_BuildValue_SizeT(const char *, ...);
[31] Fix | Delete
PyAPI_FUNC(int) _PyArg_NoKeywords(const char *funcname, PyObject *kw);
[32] Fix | Delete
[33] Fix | Delete
PyAPI_FUNC(int) PyArg_VaParse(PyObject *, const char *, va_list);
[34] Fix | Delete
PyAPI_FUNC(int) PyArg_VaParseTupleAndKeywords(PyObject *, PyObject *,
[35] Fix | Delete
const char *, char **, va_list);
[36] Fix | Delete
PyAPI_FUNC(PyObject *) Py_VaBuildValue(const char *, va_list);
[37] Fix | Delete
[38] Fix | Delete
PyAPI_FUNC(int) PyModule_AddObject(PyObject *, const char *, PyObject *);
[39] Fix | Delete
PyAPI_FUNC(int) PyModule_AddIntConstant(PyObject *, const char *, long);
[40] Fix | Delete
PyAPI_FUNC(int) PyModule_AddStringConstant(PyObject *, const char *, const char *);
[41] Fix | Delete
#define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
[42] Fix | Delete
#define PyModule_AddStringMacro(m, c) PyModule_AddStringConstant(m, #c, c)
[43] Fix | Delete
[44] Fix | Delete
#define PYTHON_API_VERSION 1013
[45] Fix | Delete
#define PYTHON_API_STRING "1013"
[46] Fix | Delete
/* The API version is maintained (independently from the Python version)
[47] Fix | Delete
so we can detect mismatches between the interpreter and dynamically
[48] Fix | Delete
loaded modules. These are diagnosed by an error message but
[49] Fix | Delete
the module is still loaded (because the mismatch can only be tested
[50] Fix | Delete
after loading the module). The error message is intended to
[51] Fix | Delete
explain the core dump a few seconds later.
[52] Fix | Delete
[53] Fix | Delete
The symbol PYTHON_API_STRING defines the same value as a string
[54] Fix | Delete
literal. *** PLEASE MAKE SURE THE DEFINITIONS MATCH. ***
[55] Fix | Delete
[56] Fix | Delete
Please add a line or two to the top of this log for each API
[57] Fix | Delete
version change:
[58] Fix | Delete
[59] Fix | Delete
22-Feb-2006 MvL 1013 PEP 353 - long indices for sequence lengths
[60] Fix | Delete
[61] Fix | Delete
19-Aug-2002 GvR 1012 Changes to string object struct for
[62] Fix | Delete
interning changes, saving 3 bytes.
[63] Fix | Delete
[64] Fix | Delete
17-Jul-2001 GvR 1011 Descr-branch, just to be on the safe side
[65] Fix | Delete
[66] Fix | Delete
25-Jan-2001 FLD 1010 Parameters added to PyCode_New() and
[67] Fix | Delete
PyFrame_New(); Python 2.1a2
[68] Fix | Delete
[69] Fix | Delete
14-Mar-2000 GvR 1009 Unicode API added
[70] Fix | Delete
[71] Fix | Delete
3-Jan-1999 GvR 1007 Decided to change back! (Don't reuse 1008!)
[72] Fix | Delete
[73] Fix | Delete
3-Dec-1998 GvR 1008 Python 1.5.2b1
[74] Fix | Delete
[75] Fix | Delete
18-Jan-1997 GvR 1007 string interning and other speedups
[76] Fix | Delete
[77] Fix | Delete
11-Oct-1996 GvR renamed Py_Ellipses to Py_Ellipsis :-(
[78] Fix | Delete
[79] Fix | Delete
30-Jul-1996 GvR Slice and ellipses syntax added
[80] Fix | Delete
[81] Fix | Delete
23-Jul-1996 GvR For 1.4 -- better safe than sorry this time :-)
[82] Fix | Delete
[83] Fix | Delete
7-Nov-1995 GvR Keyword arguments (should've been done at 1.3 :-( )
[84] Fix | Delete
[85] Fix | Delete
10-Jan-1995 GvR Renamed globals to new naming scheme
[86] Fix | Delete
[87] Fix | Delete
9-Jan-1995 GvR Initial version (incompatible with older API)
[88] Fix | Delete
*/
[89] Fix | Delete
[90] Fix | Delete
#ifdef MS_WINDOWS
[91] Fix | Delete
/* Special defines for Windows versions used to live here. Things
[92] Fix | Delete
have changed, and the "Version" is now in a global string variable.
[93] Fix | Delete
Reason for this is that this for easier branding of a "custom DLL"
[94] Fix | Delete
without actually needing a recompile. */
[95] Fix | Delete
#endif /* MS_WINDOWS */
[96] Fix | Delete
[97] Fix | Delete
#if SIZEOF_SIZE_T != SIZEOF_INT
[98] Fix | Delete
/* On a 64-bit system, rename the Py_InitModule4 so that 2.4
[99] Fix | Delete
modules cannot get loaded into a 2.5 interpreter */
[100] Fix | Delete
#define Py_InitModule4 Py_InitModule4_64
[101] Fix | Delete
#endif
[102] Fix | Delete
[103] Fix | Delete
#ifdef Py_TRACE_REFS
[104] Fix | Delete
/* When we are tracing reference counts, rename Py_InitModule4 so
[105] Fix | Delete
modules compiled with incompatible settings will generate a
[106] Fix | Delete
link-time error. */
[107] Fix | Delete
#if SIZEOF_SIZE_T != SIZEOF_INT
[108] Fix | Delete
#undef Py_InitModule4
[109] Fix | Delete
#define Py_InitModule4 Py_InitModule4TraceRefs_64
[110] Fix | Delete
#else
[111] Fix | Delete
#define Py_InitModule4 Py_InitModule4TraceRefs
[112] Fix | Delete
#endif
[113] Fix | Delete
#endif
[114] Fix | Delete
[115] Fix | Delete
PyAPI_FUNC(PyObject *) Py_InitModule4(const char *name, PyMethodDef *methods,
[116] Fix | Delete
const char *doc, PyObject *self,
[117] Fix | Delete
int apiver);
[118] Fix | Delete
[119] Fix | Delete
#define Py_InitModule(name, methods) \
[120] Fix | Delete
Py_InitModule4(name, methods, (char *)NULL, (PyObject *)NULL, \
[121] Fix | Delete
PYTHON_API_VERSION)
[122] Fix | Delete
[123] Fix | Delete
#define Py_InitModule3(name, methods, doc) \
[124] Fix | Delete
Py_InitModule4(name, methods, doc, (PyObject *)NULL, \
[125] Fix | Delete
PYTHON_API_VERSION)
[126] Fix | Delete
[127] Fix | Delete
PyAPI_DATA(char *) _Py_PackageContext;
[128] Fix | Delete
[129] Fix | Delete
#ifdef __cplusplus
[130] Fix | Delete
}
[131] Fix | Delete
#endif
[132] Fix | Delete
#endif /* !Py_MODSUPPORT_H */
[133] Fix | Delete
[134] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function