Staging
v0.8.1
v0.8.1
Revision 03b9ad05d664ba7b4f6038db2d213f47821a63a9 authored by Georg Brandl on 24 June 2012, 16:09:40 UTC, committed by Georg Brandl on 24 June 2012, 16:09:40 UTC
1 parent 96acb73
dynload_dl.c
/* Support for dynamic loading of extension modules */
#include "dl.h"
#include "Python.h"
#include "importdl.h"
extern char *Py_GetProgramName(void);
const char *_PyImport_DynLoadFiletab[] = {".o", NULL};
dl_funcptr _PyImport_GetDynLoadFunc(const char *shortname,
const char *pathname, FILE *fp)
{
char funcname[258];
PyOS_snprintf(funcname, sizeof(funcname), "PyInit_%.200s", shortname);
return dl_loadmod(Py_GetProgramName(), pathname, funcname);
}
Computing file changes ...