1999-12-20 22:22:24 +01:00
|
|
|
#ifndef Py_IMPORTDL_H
|
|
|
|
#define Py_IMPORTDL_H
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
1995-01-02 20:04:15 +01:00
|
|
|
|
2012-05-04 21:20:40 +02:00
|
|
|
extern const char *_PyImport_DynLoadFiletab[];
|
1995-01-02 20:04:15 +01:00
|
|
|
|
2015-05-23 14:24:10 +02:00
|
|
|
extern PyObject *_PyImport_LoadDynamicModuleWithSpec(PyObject *spec, FILE *);
|
1995-01-02 20:04:15 +01:00
|
|
|
|
2022-03-30 21:28:33 +02:00
|
|
|
typedef PyObject *(*PyModInitFunction)(void);
|
|
|
|
|
|
|
|
#if defined(__EMSCRIPTEN__) && defined(PY_CALL_TRAMPOLINE)
|
|
|
|
extern PyObject *_PyImport_InitFunc_TrampolineCall(PyModInitFunction func);
|
|
|
|
#else
|
|
|
|
#define _PyImport_InitFunc_TrampolineCall(func) (func)()
|
|
|
|
#endif
|
|
|
|
|
1997-07-21 16:54:36 +02:00
|
|
|
/* Max length of module suffix searched for -- accommodates "module.slb" */
|
|
|
|
#define MAXSUFFIXSIZE 12
|
1999-12-20 22:22:24 +01:00
|
|
|
|
|
|
|
#ifdef MS_WINDOWS
|
1999-12-20 23:55:03 +01:00
|
|
|
#include <windows.h>
|
1999-12-20 22:22:24 +01:00
|
|
|
typedef FARPROC dl_funcptr;
|
|
|
|
#else
|
|
|
|
typedef void (*dl_funcptr)(void);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif /* !Py_IMPORTDL_H */
|