| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent dbdc991 commit 343ed0f
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,7 +9,6 @@ extern "C" { | |||
| 9 | 9 | ||
| 10 | 10 | #ifndef Py_LIMITED_API | |
| 11 | 11 | PyAPI_FUNC(int) PyRun_SimpleStringFlags(const char *, PyCompilerFlags *); | |
| 12 | - PyAPI_FUNC(int) PyRun_AnyFileFlags(FILE *, const char *, PyCompilerFlags *); | ||
| 13 | 12 | PyAPI_FUNC(int) PyRun_AnyFileExFlags( | |
| 14 | 13 | FILE *fp, | |
| 15 | 14 | const char *filename, /* decoded from the filesystem encoding */ | |
@@ -122,7 +121,7 @@ PyAPI_FUNC(struct symtable *) Py_SymtableString( | |||
| 122 | 121 | PyAPI_FUNC(const char *) _Py_SourceAsString( | |
| 123 | 122 | PyObject *cmd, | |
| 124 | 123 | const char *funcname, | |
| 125 | - const char *what, | ||
| 124 | + const char *what, | ||
| 126 | 125 | PyCompilerFlags *cf, | |
| 127 | 126 | PyObject **cmd_copy); | |
| 128 | 127 | ||
@@ -143,6 +142,23 @@ PyAPI_FUNC(void) PyErr_PrintEx(int); | |||
| 143 | 142 | PyAPI_FUNC(void) PyErr_Display(PyObject *, PyObject *, PyObject *); | |
| 144 | 143 | ||
| 145 | 144 | #ifndef Py_LIMITED_API | |
| 145 | + /* A function flavor is also exported by libpython. It is required when | ||
| 146 | + libpython is accessed directly rather than using header files which defines | ||
| 147 | + macros below. On Windows, for example, PyAPI_FUNC() uses dllexport to | ||
| 148 | + export functions in pythonXX.dll. */ | ||
| 149 | + PyAPI_FUNC(PyObject *) PyRun_String(const char *str, int s, PyObject *g, PyObject *l); | ||
| 150 | + PyAPI_FUNC(int) PyRun_AnyFile(FILE *fp, const char *name); | ||
| 151 | + PyAPI_FUNC(int) PyRun_AnyFileEx(FILE *fp, const char *name, int closeit); | ||
| 152 | + PyAPI_FUNC(int) PyRun_AnyFileFlags(FILE *, const char *, PyCompilerFlags *); | ||
| 153 | + PyAPI_FUNC(int) PyRun_SimpleString(const char *s); | ||
| 154 | + PyAPI_FUNC(int) PyRun_SimpleFile(FILE *f, const char *p); | ||
| 155 | + PyAPI_FUNC(int) PyRun_SimpleFileEx(FILE *f, const char *p, int c); | ||
| 156 | + PyAPI_FUNC(int) PyRun_InteractiveOne(FILE *f, const char *p); | ||
| 157 | + PyAPI_FUNC(int) PyRun_InteractiveLoop(FILE *f, const char *p); | ||
| 158 | + PyAPI_FUNC(PyObject *) PyRun_File(FILE *fp, const char *p, int s, PyObject *g, PyObject *l); | ||
| 159 | + PyAPI_FUNC(PyObject *) PyRun_FileEx(FILE *fp, const char *p, int s, PyObject *g, PyObject *l, int c); | ||
| 160 | + PyAPI_FUNC(PyObject *) PyRun_FileFlags(FILE *fp, const char *p, int s, PyObject *g, PyObject *l, PyCompilerFlags *flags); | ||
| 161 | + | ||
| 146 | 162 | /* Use macros for a bunch of old variants */ | |
| 147 | 163 | #define PyRun_String(str, s, g, l) PyRun_StringFlags(str, s, g, l, NULL) | |
| 148 | 164 | #define PyRun_AnyFile(fp, name) PyRun_AnyFileExFlags(fp, name, 0, NULL) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,3 @@ | |||
| 1 | + Many ``PyRun_XXX()`` functions like :c:func:`PyRun_String` were no longer | ||
| 2 | + exported in ``libpython38.dll`` by mistake. Export them again to fix the ABI | ||
| 3 | + compatibiliy. | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments