importdl.h 660 Bytes
Newer Older
1 2 3 4 5 6 7
#ifndef Py_IMPORTDL_H
#define Py_IMPORTDL_H

#ifdef __cplusplus
extern "C" {
#endif

8

9
extern const char *_PyImport_DynLoadFiletab[];
10

11
extern PyObject *_PyImport_LoadDynamicModule(PyObject *name, PyObject *pathname,
12
                                             FILE *);
13

14 15
/* Max length of module suffix searched for -- accommodates "module.slb" */
#define MAXSUFFIXSIZE 12
16 17

#ifdef MS_WINDOWS
18
#include <windows.h>
19 20
typedef FARPROC dl_funcptr;
#else
21
#if defined(PYOS_OS2) && !defined(PYCC_GCC)
22
#include <os2def.h>
23 24 25 26 27 28 29 30 31 32 33
typedef int (* APIENTRY dl_funcptr)();
#else
typedef void (*dl_funcptr)(void);
#endif
#endif


#ifdef __cplusplus
}
#endif
#endif /* !Py_IMPORTDL_H */