importdl.h 740 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef Py_IMPORTDL_H
  2. #define Py_IMPORTDL_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. extern const char *_PyImport_DynLoadFiletab[];
  7. extern PyObject *_PyImport_LoadDynamicModuleWithSpec(PyObject *spec, FILE *);
  8. typedef PyObject *(*PyModInitFunction)(void);
  9. #if defined(__EMSCRIPTEN__) && defined(PY_CALL_TRAMPOLINE)
  10. extern PyObject *_PyImport_InitFunc_TrampolineCall(PyModInitFunction func);
  11. #else
  12. #define _PyImport_InitFunc_TrampolineCall(func) (func)()
  13. #endif
  14. /* Max length of module suffix searched for -- accommodates "module.slb" */
  15. #define MAXSUFFIXSIZE 12
  16. #ifdef MS_WINDOWS
  17. #include <windows.h>
  18. typedef FARPROC dl_funcptr;
  19. #else
  20. typedef void (*dl_funcptr)(void);
  21. #endif
  22. #ifdef __cplusplus
  23. }
  24. #endif
  25. #endif /* !Py_IMPORTDL_H */