OLD | NEW |
1 | 1 |
2 /* Module definition and import interface */ | 2 /* Module definition and import interface */ |
3 | 3 |
4 #ifndef Py_IMPORT_H | 4 #ifndef Py_IMPORT_H |
5 #define Py_IMPORT_H | 5 #define Py_IMPORT_H |
6 #ifdef __cplusplus | 6 #ifdef __cplusplus |
7 extern "C" { | 7 extern "C" { |
8 #endif | 8 #endif |
9 | 9 |
10 PyAPI_FUNC(long) PyImport_GetMagicNumber(void); | 10 PyAPI_FUNC(long) PyImport_GetMagicNumber(void); |
| 11 PyAPI_FUNC(const char *) PyImport_GetMagicTag(void); |
11 PyAPI_FUNC(PyObject *) PyImport_ExecCodeModule(char *name, PyObject *co); | 12 PyAPI_FUNC(PyObject *) PyImport_ExecCodeModule(char *name, PyObject *co); |
12 PyAPI_FUNC(PyObject *) PyImport_ExecCodeModuleEx( | 13 PyAPI_FUNC(PyObject *) PyImport_ExecCodeModuleEx( |
13 char *name, PyObject *co, char *pathname); | 14 char *name, PyObject *co, char *pathname); |
| 15 PyAPI_FUNC(PyObject *) PyImport_ExecCodeModuleWithPathnames( |
| 16 char *name, PyObject *co, char *pathname, char *cpathname); |
14 PyAPI_FUNC(PyObject *) PyImport_GetModuleDict(void); | 17 PyAPI_FUNC(PyObject *) PyImport_GetModuleDict(void); |
15 PyAPI_FUNC(PyObject *) PyImport_AddModule(const char *name); | 18 PyAPI_FUNC(PyObject *) PyImport_AddModule(const char *name); |
16 PyAPI_FUNC(PyObject *) PyImport_ImportModule(const char *name); | 19 PyAPI_FUNC(PyObject *) PyImport_ImportModule(const char *name); |
17 PyAPI_FUNC(PyObject *) PyImport_ImportModuleNoBlock(const char *); | 20 PyAPI_FUNC(PyObject *) PyImport_ImportModuleNoBlock(const char *); |
18 PyAPI_FUNC(PyObject *) PyImport_ImportModuleLevel(char *name, | 21 PyAPI_FUNC(PyObject *) PyImport_ImportModuleLevel(char *name, |
19 PyObject *globals, PyObject *locals, PyObject *fromlist, int level); | 22 PyObject *globals, PyObject *locals, PyObject *fromlist, int level); |
20 | 23 |
21 #define PyImport_ImportModuleEx(n, g, l, f) \ | 24 #define PyImport_ImportModuleEx(n, g, l, f) \ |
22 PyImport_ImportModuleLevel(n, g, l, f, -1) | 25 PyImport_ImportModuleLevel(n, g, l, f, -1) |
23 | 26 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 | 65 |
63 /* Embedding apps may change this pointer to point to their favorite | 66 /* Embedding apps may change this pointer to point to their favorite |
64 collection of frozen modules: */ | 67 collection of frozen modules: */ |
65 | 68 |
66 PyAPI_DATA(struct _frozen *) PyImport_FrozenModules; | 69 PyAPI_DATA(struct _frozen *) PyImport_FrozenModules; |
67 | 70 |
68 #ifdef __cplusplus | 71 #ifdef __cplusplus |
69 } | 72 } |
70 #endif | 73 #endif |
71 #endif /* !Py_IMPORT_H */ | 74 #endif /* !Py_IMPORT_H */ |
OLD | NEW |