Staging
v0.8.1
https://github.com/python/cpython
Revision 097a1208bc932f72491c77e24669ac3c0ed14bf6 authored by R David Murray on 23 August 2012, 01:52:31 UTC, committed by R David Murray on 23 August 2012, 01:52:31 UTC
It was correct in the original patch and I foobared it
when I restructured part of the code.
1 parent b8687df
Raw File
Tip revision: 097a1208bc932f72491c77e24669ac3c0ed14bf6 authored by R David Murray on 23 August 2012, 01:52:31 UTC
#665194: fix variable name in exception code path.
Tip revision: 097a120
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);
}
back to top