Staging
v0.5.1
https://github.com/python/cpython
Revision e2cedaadb572c1bd58553ef5e27af0efc890d9b8 authored by Tarek Ziadé on 28 May 2009, 14:02:58 UTC, committed by Tarek Ziadé on 28 May 2009, 14:02:58 UTC
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72986 | tarek.ziade | 2009-05-28 15:55:51 +0200 (Thu, 28 May 2009) | 1 line

  using 'tar' then 'gzip' in the test, because 'tar -czf' is not supported under some platforms
........
1 parent 77c8b37
Raw File
Tip revision: e2cedaadb572c1bd58553ef5e27af0efc890d9b8 authored by Tarek Ziadé on 28 May 2009, 14:02:58 UTC
Merged revisions 72986 via svnmerge from
Tip revision: e2cedaa
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