Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/python3....
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
#ifndef Py_LIMITED_API
[22] Fix | Delete
PyAPI_FUNC(PyObject *) _Py_VaBuildValue_SizeT(const char *, va_list);
[23] Fix | Delete
#endif /* !Py_LIMITED_API */
[24] Fix | Delete
#endif
[25] Fix | Delete
[26] Fix | Delete
/* Due to a glitch in 3.2, the _SizeT versions weren't exported from the DLL. */
[27] Fix | Delete
#if !defined(PY_SSIZE_T_CLEAN) || !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03030000
[28] Fix | Delete
PyAPI_FUNC(int) PyArg_Parse(PyObject *, const char *, ...);
[29] Fix | Delete
PyAPI_FUNC(int) PyArg_ParseTuple(PyObject *, const char *, ...);
[30] Fix | Delete
PyAPI_FUNC(int) PyArg_ParseTupleAndKeywords(PyObject *, PyObject *,
[31] Fix | Delete
const char *, char **, ...);
[32] Fix | Delete
PyAPI_FUNC(int) PyArg_VaParse(PyObject *, const char *, va_list);
[33] Fix | Delete
PyAPI_FUNC(int) PyArg_VaParseTupleAndKeywords(PyObject *, PyObject *,
[34] Fix | Delete
const char *, char **, va_list);
[35] Fix | Delete
#endif
[36] Fix | Delete
PyAPI_FUNC(int) PyArg_ValidateKeywordArguments(PyObject *);
[37] Fix | Delete
PyAPI_FUNC(int) PyArg_UnpackTuple(PyObject *, const char *, Py_ssize_t, Py_ssize_t, ...);
[38] Fix | Delete
PyAPI_FUNC(PyObject *) Py_BuildValue(const char *, ...);
[39] Fix | Delete
PyAPI_FUNC(PyObject *) _Py_BuildValue_SizeT(const char *, ...);
[40] Fix | Delete
[41] Fix | Delete
#ifndef Py_LIMITED_API
[42] Fix | Delete
PyAPI_FUNC(int) _PyArg_NoKeywords(const char *funcname, PyObject *kw);
[43] Fix | Delete
PyAPI_FUNC(int) _PyArg_NoPositional(const char *funcname, PyObject *args);
[44] Fix | Delete
#endif
[45] Fix | Delete
PyAPI_FUNC(PyObject *) Py_VaBuildValue(const char *, va_list);
[46] Fix | Delete
[47] Fix | Delete
#ifndef Py_LIMITED_API
[48] Fix | Delete
typedef struct _PyArg_Parser {
[49] Fix | Delete
const char *format;
[50] Fix | Delete
const char * const *keywords;
[51] Fix | Delete
const char *fname;
[52] Fix | Delete
const char *custom_msg;
[53] Fix | Delete
int pos; /* number of positional-only arguments */
[54] Fix | Delete
int min; /* minimal number of arguments */
[55] Fix | Delete
int max; /* maximal number of positional arguments */
[56] Fix | Delete
PyObject *kwtuple; /* tuple of keyword parameter names */
[57] Fix | Delete
struct _PyArg_Parser *next;
[58] Fix | Delete
} _PyArg_Parser;
[59] Fix | Delete
#ifdef PY_SSIZE_T_CLEAN
[60] Fix | Delete
#define _PyArg_ParseTupleAndKeywordsFast _PyArg_ParseTupleAndKeywordsFast_SizeT
[61] Fix | Delete
#define _PyArg_ParseStack _PyArg_ParseStack_SizeT
[62] Fix | Delete
#define _PyArg_VaParseTupleAndKeywordsFast _PyArg_VaParseTupleAndKeywordsFast_SizeT
[63] Fix | Delete
#endif
[64] Fix | Delete
PyAPI_FUNC(int) _PyArg_ParseTupleAndKeywordsFast(PyObject *, PyObject *,
[65] Fix | Delete
struct _PyArg_Parser *, ...);
[66] Fix | Delete
PyAPI_FUNC(int) _PyArg_ParseStack(PyObject **args, Py_ssize_t nargs, PyObject *kwnames,
[67] Fix | Delete
struct _PyArg_Parser *, ...);
[68] Fix | Delete
PyAPI_FUNC(int) _PyArg_VaParseTupleAndKeywordsFast(PyObject *, PyObject *,
[69] Fix | Delete
struct _PyArg_Parser *, va_list);
[70] Fix | Delete
void _PyArg_Fini(void);
[71] Fix | Delete
#endif
[72] Fix | Delete
[73] Fix | Delete
PyAPI_FUNC(int) PyModule_AddObject(PyObject *, const char *, PyObject *);
[74] Fix | Delete
PyAPI_FUNC(int) PyModule_AddIntConstant(PyObject *, const char *, long);
[75] Fix | Delete
PyAPI_FUNC(int) PyModule_AddStringConstant(PyObject *, const char *, const char *);
[76] Fix | Delete
#define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
[77] Fix | Delete
#define PyModule_AddStringMacro(m, c) PyModule_AddStringConstant(m, #c, c)
[78] Fix | Delete
[79] Fix | Delete
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03050000
[80] Fix | Delete
/* New in 3.5 */
[81] Fix | Delete
PyAPI_FUNC(int) PyModule_SetDocString(PyObject *, const char *);
[82] Fix | Delete
PyAPI_FUNC(int) PyModule_AddFunctions(PyObject *, PyMethodDef *);
[83] Fix | Delete
PyAPI_FUNC(int) PyModule_ExecDef(PyObject *module, PyModuleDef *def);
[84] Fix | Delete
#endif
[85] Fix | Delete
[86] Fix | Delete
#define Py_CLEANUP_SUPPORTED 0x20000
[87] Fix | Delete
[88] Fix | Delete
#define PYTHON_API_VERSION 1013
[89] Fix | Delete
#define PYTHON_API_STRING "1013"
[90] Fix | Delete
/* The API version is maintained (independently from the Python version)
[91] Fix | Delete
so we can detect mismatches between the interpreter and dynamically
[92] Fix | Delete
loaded modules. These are diagnosed by an error message but
[93] Fix | Delete
the module is still loaded (because the mismatch can only be tested
[94] Fix | Delete
after loading the module). The error message is intended to
[95] Fix | Delete
explain the core dump a few seconds later.
[96] Fix | Delete
[97] Fix | Delete
The symbol PYTHON_API_STRING defines the same value as a string
[98] Fix | Delete
literal. *** PLEASE MAKE SURE THE DEFINITIONS MATCH. ***
[99] Fix | Delete
[100] Fix | Delete
Please add a line or two to the top of this log for each API
[101] Fix | Delete
version change:
[102] Fix | Delete
[103] Fix | Delete
22-Feb-2006 MvL 1013 PEP 353 - long indices for sequence lengths
[104] Fix | Delete
[105] Fix | Delete
19-Aug-2002 GvR 1012 Changes to string object struct for
[106] Fix | Delete
interning changes, saving 3 bytes.
[107] Fix | Delete
[108] Fix | Delete
17-Jul-2001 GvR 1011 Descr-branch, just to be on the safe side
[109] Fix | Delete
[110] Fix | Delete
25-Jan-2001 FLD 1010 Parameters added to PyCode_New() and
[111] Fix | Delete
PyFrame_New(); Python 2.1a2
[112] Fix | Delete
[113] Fix | Delete
14-Mar-2000 GvR 1009 Unicode API added
[114] Fix | Delete
[115] Fix | Delete
3-Jan-1999 GvR 1007 Decided to change back! (Don't reuse 1008!)
[116] Fix | Delete
[117] Fix | Delete
3-Dec-1998 GvR 1008 Python 1.5.2b1
[118] Fix | Delete
[119] Fix | Delete
18-Jan-1997 GvR 1007 string interning and other speedups
[120] Fix | Delete
[121] Fix | Delete
11-Oct-1996 GvR renamed Py_Ellipses to Py_Ellipsis :-(
[122] Fix | Delete
[123] Fix | Delete
30-Jul-1996 GvR Slice and ellipses syntax added
[124] Fix | Delete
[125] Fix | Delete
23-Jul-1996 GvR For 1.4 -- better safe than sorry this time :-)
[126] Fix | Delete
[127] Fix | Delete
7-Nov-1995 GvR Keyword arguments (should've been done at 1.3 :-( )
[128] Fix | Delete
[129] Fix | Delete
10-Jan-1995 GvR Renamed globals to new naming scheme
[130] Fix | Delete
[131] Fix | Delete
9-Jan-1995 GvR Initial version (incompatible with older API)
[132] Fix | Delete
*/
[133] Fix | Delete
[134] Fix | Delete
/* The PYTHON_ABI_VERSION is introduced in PEP 384. For the lifetime of
[135] Fix | Delete
Python 3, it will stay at the value of 3; changes to the limited API
[136] Fix | Delete
must be performed in a strictly backwards-compatible manner. */
[137] Fix | Delete
#define PYTHON_ABI_VERSION 3
[138] Fix | Delete
#define PYTHON_ABI_STRING "3"
[139] Fix | Delete
[140] Fix | Delete
#ifdef Py_TRACE_REFS
[141] Fix | Delete
/* When we are tracing reference counts, rename module creation functions so
[142] Fix | Delete
modules compiled with incompatible settings will generate a
[143] Fix | Delete
link-time error. */
[144] Fix | Delete
#define PyModule_Create2 PyModule_Create2TraceRefs
[145] Fix | Delete
#define PyModule_FromDefAndSpec2 PyModule_FromDefAndSpec2TraceRefs
[146] Fix | Delete
#endif
[147] Fix | Delete
[148] Fix | Delete
PyAPI_FUNC(PyObject *) PyModule_Create2(struct PyModuleDef*,
[149] Fix | Delete
int apiver);
[150] Fix | Delete
[151] Fix | Delete
#ifdef Py_LIMITED_API
[152] Fix | Delete
#define PyModule_Create(module) \
[153] Fix | Delete
PyModule_Create2(module, PYTHON_ABI_VERSION)
[154] Fix | Delete
#else
[155] Fix | Delete
#define PyModule_Create(module) \
[156] Fix | Delete
PyModule_Create2(module, PYTHON_API_VERSION)
[157] Fix | Delete
#endif
[158] Fix | Delete
[159] Fix | Delete
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03050000
[160] Fix | Delete
/* New in 3.5 */
[161] Fix | Delete
PyAPI_FUNC(PyObject *) PyModule_FromDefAndSpec2(PyModuleDef *def,
[162] Fix | Delete
PyObject *spec,
[163] Fix | Delete
int module_api_version);
[164] Fix | Delete
[165] Fix | Delete
#ifdef Py_LIMITED_API
[166] Fix | Delete
#define PyModule_FromDefAndSpec(module, spec) \
[167] Fix | Delete
PyModule_FromDefAndSpec2(module, spec, PYTHON_ABI_VERSION)
[168] Fix | Delete
#else
[169] Fix | Delete
#define PyModule_FromDefAndSpec(module, spec) \
[170] Fix | Delete
PyModule_FromDefAndSpec2(module, spec, PYTHON_API_VERSION)
[171] Fix | Delete
#endif /* Py_LIMITED_API */
[172] Fix | Delete
#endif /* New in 3.5 */
[173] Fix | Delete
[174] Fix | Delete
#ifndef Py_LIMITED_API
[175] Fix | Delete
PyAPI_DATA(char *) _Py_PackageContext;
[176] Fix | Delete
#endif
[177] Fix | Delete
[178] Fix | Delete
#ifdef __cplusplus
[179] Fix | Delete
}
[180] Fix | Delete
#endif
[181] Fix | Delete
#endif /* !Py_MODSUPPORT_H */
[182] Fix | Delete
[183] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function