Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-03-13 09:20:54

0001 #ifndef Py_CPYTHON_IMPORT_H
0002 #  error "this header file must not be included directly"
0003 #endif
0004 
0005 PyMODINIT_FUNC PyInit__imp(void);
0006 
0007 PyAPI_FUNC(int) _PyImport_IsInitialized(PyInterpreterState *);
0008 
0009 PyAPI_FUNC(PyObject *) _PyImport_GetModuleId(_Py_Identifier *name);
0010 PyAPI_FUNC(int) _PyImport_SetModule(PyObject *name, PyObject *module);
0011 PyAPI_FUNC(int) _PyImport_SetModuleString(const char *name, PyObject* module);
0012 
0013 PyAPI_FUNC(void) _PyImport_AcquireLock(PyInterpreterState *interp);
0014 PyAPI_FUNC(int) _PyImport_ReleaseLock(PyInterpreterState *interp);
0015 
0016 PyAPI_FUNC(int) _PyImport_FixupBuiltin(
0017     PyObject *mod,
0018     const char *name,            /* UTF-8 encoded string */
0019     PyObject *modules
0020     );
0021 PyAPI_FUNC(int) _PyImport_FixupExtensionObject(PyObject*, PyObject *,
0022                                                PyObject *, PyObject *);
0023 
0024 struct _inittab {
0025     const char *name;           /* ASCII encoded string */
0026     PyObject* (*initfunc)(void);
0027 };
0028 // This is not used after Py_Initialize() is called.
0029 PyAPI_DATA(struct _inittab *) PyImport_Inittab;
0030 PyAPI_FUNC(int) PyImport_ExtendInittab(struct _inittab *newtab);
0031 
0032 struct _frozen {
0033     const char *name;                 /* ASCII encoded string */
0034     const unsigned char *code;
0035     int size;
0036     int is_package;
0037     PyObject *(*get_code)(void);
0038 };
0039 
0040 /* Embedding apps may change this pointer to point to their favorite
0041    collection of frozen modules: */
0042 
0043 PyAPI_DATA(const struct _frozen *) PyImport_FrozenModules;
0044 
0045 PyAPI_DATA(PyObject *) _PyImport_GetModuleAttr(PyObject *, PyObject *);
0046 PyAPI_DATA(PyObject *) _PyImport_GetModuleAttrString(const char *, const char *);