Staging
v0.8.1
https://github.com/python/cpython
Revision f3655c439ddfaef9ee5926f24e26b84e379c2008 authored by Gregory P. Smith on 02 December 2008, 23:52:53 UTC, committed by Gregory P. Smith on 02 December 2008, 23:52:53 UTC
1 parent c46ee54
Raw File
Tip revision: f3655c439ddfaef9ee5926f24e26b84e379c2008 authored by Gregory P. Smith on 02 December 2008, 23:52:53 UTC
interators -> iterators (thanks Taggnostr)
Tip revision: f3655c4
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 struct filedescr _PyImport_DynLoadFiletab[] = {
	{".o", "rb", C_EXTENSION},
	{"module.o", "rb", C_EXTENSION},
	{0, 0}
};


dl_funcptr _PyImport_GetDynLoadFunc(const char *fqname, 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);
}
back to top