1 | n/a | |
---|
2 | n/a | /* Support for dynamic loading of extension modules */ |
---|
3 | n/a | |
---|
4 | n/a | #include "dl.h" |
---|
5 | n/a | |
---|
6 | n/a | #include "Python.h" |
---|
7 | n/a | #include "importdl.h" |
---|
8 | n/a | |
---|
9 | n/a | |
---|
10 | n/a | extern char *Py_GetProgramName(void); |
---|
11 | n/a | |
---|
12 | n/a | const char *_PyImport_DynLoadFiletab[] = {".o", NULL}; |
---|
13 | n/a | |
---|
14 | n/a | |
---|
15 | n/a | dl_funcptr _PyImport_FindSharedFuncptr(const char *prefix, |
---|
16 | n/a | const char *shortname, |
---|
17 | n/a | const char *pathname, FILE *fp) |
---|
18 | n/a | { |
---|
19 | n/a | char funcname[258]; |
---|
20 | n/a | |
---|
21 | n/a | PyOS_snprintf(funcname, sizeof(funcname), "%.20s_%.200s", prefix, shortname); |
---|
22 | n/a | return dl_loadmod(Py_GetProgramName(), pathname, funcname); |
---|
23 | n/a | } |
---|