Last change
on this file since 388 was 2, checked in by Yuri Dario, 15 years ago |
Initial import for vendor code.
|
-
Property svn:eol-style
set to
native
|
File size:
561 bytes
|
Line | |
---|
1 |
|
---|
2 | /* Support for dynamic loading of extension modules */
|
---|
3 |
|
---|
4 | #include "dl.h"
|
---|
5 |
|
---|
6 | #include "Python.h"
|
---|
7 | #include "importdl.h"
|
---|
8 |
|
---|
9 |
|
---|
10 | extern char *Py_GetProgramName(void);
|
---|
11 |
|
---|
12 | const struct filedescr _PyImport_DynLoadFiletab[] = {
|
---|
13 | {".o", "rb", C_EXTENSION},
|
---|
14 | {"module.o", "rb", C_EXTENSION},
|
---|
15 | {0, 0}
|
---|
16 | };
|
---|
17 |
|
---|
18 |
|
---|
19 | dl_funcptr _PyImport_GetDynLoadFunc(const char *fqname, const char *shortname,
|
---|
20 | const char *pathname, FILE *fp)
|
---|
21 | {
|
---|
22 | char funcname[258];
|
---|
23 |
|
---|
24 | PyOS_snprintf(funcname, sizeof(funcname), "init%.200s", shortname);
|
---|
25 | return dl_loadmod(Py_GetProgramName(), pathname, funcname);
|
---|
26 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.