closes bpo-37633: Reëxport some function compatibility wrappers for macros in ``pythonrun.h``. (GH-17056)
This commit is contained in:
parent
25fa3ecb98
commit
62161ce989
|
@ -0,0 +1 @@
|
||||||
|
Reëxport some function compatibility wrappers for macros in ``pythonrun.h``.
|
|
@ -1648,56 +1648,56 @@ PyOS_CheckStack(void)
|
||||||
/* Deprecated C API functions still provided for binary compatibility */
|
/* Deprecated C API functions still provided for binary compatibility */
|
||||||
|
|
||||||
#undef PyParser_SimpleParseFile
|
#undef PyParser_SimpleParseFile
|
||||||
node *
|
PyAPI_FUNC(node *)
|
||||||
PyParser_SimpleParseFile(FILE *fp, const char *filename, int start)
|
PyParser_SimpleParseFile(FILE *fp, const char *filename, int start)
|
||||||
{
|
{
|
||||||
return PyParser_SimpleParseFileFlags(fp, filename, start, 0);
|
return PyParser_SimpleParseFileFlags(fp, filename, start, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
#undef PyParser_SimpleParseString
|
#undef PyParser_SimpleParseString
|
||||||
node *
|
PyAPI_FUNC(node *)
|
||||||
PyParser_SimpleParseString(const char *str, int start)
|
PyParser_SimpleParseString(const char *str, int start)
|
||||||
{
|
{
|
||||||
return PyParser_SimpleParseStringFlags(str, start, 0);
|
return PyParser_SimpleParseStringFlags(str, start, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
#undef PyRun_AnyFile
|
#undef PyRun_AnyFile
|
||||||
int
|
PyAPI_FUNC(int)
|
||||||
PyRun_AnyFile(FILE *fp, const char *name)
|
PyRun_AnyFile(FILE *fp, const char *name)
|
||||||
{
|
{
|
||||||
return PyRun_AnyFileExFlags(fp, name, 0, NULL);
|
return PyRun_AnyFileExFlags(fp, name, 0, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
#undef PyRun_AnyFileEx
|
#undef PyRun_AnyFileEx
|
||||||
int
|
PyAPI_FUNC(int)
|
||||||
PyRun_AnyFileEx(FILE *fp, const char *name, int closeit)
|
PyRun_AnyFileEx(FILE *fp, const char *name, int closeit)
|
||||||
{
|
{
|
||||||
return PyRun_AnyFileExFlags(fp, name, closeit, NULL);
|
return PyRun_AnyFileExFlags(fp, name, closeit, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
#undef PyRun_AnyFileFlags
|
#undef PyRun_AnyFileFlags
|
||||||
int
|
PyAPI_FUNC(int)
|
||||||
PyRun_AnyFileFlags(FILE *fp, const char *name, PyCompilerFlags *flags)
|
PyRun_AnyFileFlags(FILE *fp, const char *name, PyCompilerFlags *flags)
|
||||||
{
|
{
|
||||||
return PyRun_AnyFileExFlags(fp, name, 0, flags);
|
return PyRun_AnyFileExFlags(fp, name, 0, flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
#undef PyRun_File
|
#undef PyRun_File
|
||||||
PyObject *
|
PyAPI_FUNC(PyObject *)
|
||||||
PyRun_File(FILE *fp, const char *p, int s, PyObject *g, PyObject *l)
|
PyRun_File(FILE *fp, const char *p, int s, PyObject *g, PyObject *l)
|
||||||
{
|
{
|
||||||
return PyRun_FileExFlags(fp, p, s, g, l, 0, NULL);
|
return PyRun_FileExFlags(fp, p, s, g, l, 0, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
#undef PyRun_FileEx
|
#undef PyRun_FileEx
|
||||||
PyObject *
|
PyAPI_FUNC(PyObject *)
|
||||||
PyRun_FileEx(FILE *fp, const char *p, int s, PyObject *g, PyObject *l, int c)
|
PyRun_FileEx(FILE *fp, const char *p, int s, PyObject *g, PyObject *l, int c)
|
||||||
{
|
{
|
||||||
return PyRun_FileExFlags(fp, p, s, g, l, c, NULL);
|
return PyRun_FileExFlags(fp, p, s, g, l, c, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
#undef PyRun_FileFlags
|
#undef PyRun_FileFlags
|
||||||
PyObject *
|
PyAPI_FUNC(PyObject *)
|
||||||
PyRun_FileFlags(FILE *fp, const char *p, int s, PyObject *g, PyObject *l,
|
PyRun_FileFlags(FILE *fp, const char *p, int s, PyObject *g, PyObject *l,
|
||||||
PyCompilerFlags *flags)
|
PyCompilerFlags *flags)
|
||||||
{
|
{
|
||||||
|
@ -1705,14 +1705,14 @@ PyRun_FileFlags(FILE *fp, const char *p, int s, PyObject *g, PyObject *l,
|
||||||
}
|
}
|
||||||
|
|
||||||
#undef PyRun_SimpleFile
|
#undef PyRun_SimpleFile
|
||||||
int
|
PyAPI_FUNC(int)
|
||||||
PyRun_SimpleFile(FILE *f, const char *p)
|
PyRun_SimpleFile(FILE *f, const char *p)
|
||||||
{
|
{
|
||||||
return PyRun_SimpleFileExFlags(f, p, 0, NULL);
|
return PyRun_SimpleFileExFlags(f, p, 0, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
#undef PyRun_SimpleFileEx
|
#undef PyRun_SimpleFileEx
|
||||||
int
|
PyAPI_FUNC(int)
|
||||||
PyRun_SimpleFileEx(FILE *f, const char *p, int c)
|
PyRun_SimpleFileEx(FILE *f, const char *p, int c)
|
||||||
{
|
{
|
||||||
return PyRun_SimpleFileExFlags(f, p, c, NULL);
|
return PyRun_SimpleFileExFlags(f, p, c, NULL);
|
||||||
|
@ -1720,28 +1720,28 @@ PyRun_SimpleFileEx(FILE *f, const char *p, int c)
|
||||||
|
|
||||||
|
|
||||||
#undef PyRun_String
|
#undef PyRun_String
|
||||||
PyObject *
|
PyAPI_FUNC(PyObject *)
|
||||||
PyRun_String(const char *str, int s, PyObject *g, PyObject *l)
|
PyRun_String(const char *str, int s, PyObject *g, PyObject *l)
|
||||||
{
|
{
|
||||||
return PyRun_StringFlags(str, s, g, l, NULL);
|
return PyRun_StringFlags(str, s, g, l, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
#undef PyRun_SimpleString
|
#undef PyRun_SimpleString
|
||||||
int
|
PyAPI_FUNC(int)
|
||||||
PyRun_SimpleString(const char *s)
|
PyRun_SimpleString(const char *s)
|
||||||
{
|
{
|
||||||
return PyRun_SimpleStringFlags(s, NULL);
|
return PyRun_SimpleStringFlags(s, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
#undef Py_CompileString
|
#undef Py_CompileString
|
||||||
PyObject *
|
PyAPI_FUNC(PyObject *)
|
||||||
Py_CompileString(const char *str, const char *p, int s)
|
Py_CompileString(const char *str, const char *p, int s)
|
||||||
{
|
{
|
||||||
return Py_CompileStringExFlags(str, p, s, NULL, -1);
|
return Py_CompileStringExFlags(str, p, s, NULL, -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
#undef Py_CompileStringFlags
|
#undef Py_CompileStringFlags
|
||||||
PyObject *
|
PyAPI_FUNC(PyObject *)
|
||||||
Py_CompileStringFlags(const char *str, const char *p, int s,
|
Py_CompileStringFlags(const char *str, const char *p, int s,
|
||||||
PyCompilerFlags *flags)
|
PyCompilerFlags *flags)
|
||||||
{
|
{
|
||||||
|
@ -1749,14 +1749,14 @@ Py_CompileStringFlags(const char *str, const char *p, int s,
|
||||||
}
|
}
|
||||||
|
|
||||||
#undef PyRun_InteractiveOne
|
#undef PyRun_InteractiveOne
|
||||||
int
|
PyAPI_FUNC(int)
|
||||||
PyRun_InteractiveOne(FILE *f, const char *p)
|
PyRun_InteractiveOne(FILE *f, const char *p)
|
||||||
{
|
{
|
||||||
return PyRun_InteractiveOneFlags(f, p, NULL);
|
return PyRun_InteractiveOneFlags(f, p, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
#undef PyRun_InteractiveLoop
|
#undef PyRun_InteractiveLoop
|
||||||
int
|
PyAPI_FUNC(int)
|
||||||
PyRun_InteractiveLoop(FILE *f, const char *p)
|
PyRun_InteractiveLoop(FILE *f, const char *p)
|
||||||
{
|
{
|
||||||
return PyRun_InteractiveLoopFlags(f, p, NULL);
|
return PyRun_InteractiveLoopFlags(f, p, NULL);
|
||||||
|
|
Loading…
Reference in New Issue