OLD | NEW |
(Empty) | |
| 1 |
| 2 /* This module provides the simulation of dynamic loading */ |
| 3 |
| 4 #include "Python.h" |
| 5 #include "importdl.h" |
| 6 |
| 7 const struct filedescr _PyImport_DynLoadFiletab[] = { |
| 8 {".a", "rb", C_EXTENSION}, |
| 9 {0, 0} |
| 10 }; |
| 11 |
| 12 extern struct _inittab _PyImport_Inittab[]; |
| 13 |
| 14 dl_funcptr _PyImport_GetDynLoadFunc(const char *fqname, const char *shortname, |
| 15 const char *pathname, FILE *fp) |
| 16 { |
| 17 struct _inittab *tab = _PyImport_Inittab; |
| 18 while (tab->name && strcmp(shortname, tab->name)) tab++; |
| 19 |
| 20 return tab->initfunc; |
| 21 } |
OLD | NEW |