Staging
v0.8.1
https://github.com/python/cpython
Revision 1f1b9a48e771cf00622f7a9c2318cf6f57a3395e authored by R. David Murray on 22 July 2009, 15:23:36 UTC, committed by R. David Murray on 22 July 2009, 15:23:36 UTC
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r74171 | r.david.murray | 2009-07-22 11:20:27 -0400 (Wed, 22 Jul 2009) | 3 lines

  Issue 6542: Make sure that TestInvalidFD.test_closerange does not
  close any valid file descriptors.
........
1 parent 069bcc3
Raw File
Tip revision: 1f1b9a48e771cf00622f7a9c2318cf6f57a3395e authored by R. David Murray on 22 July 2009, 15:23:36 UTC
Merged revisions 74171 via svnmerge from
Tip revision: 1f1b9a4
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