Staging
v0.5.1
https://github.com/python/cpython
Revision 83e64c8a544028ae677af2a0bc268dbe1c11cc3a authored by Eric Snow on 30 January 2018, 04:04:15 UTC, committed by GitHub on 30 January 2018, 04:04:15 UTC
1 parent 9424dcb
Raw File
Tip revision: 83e64c8a544028ae677af2a0bc268dbe1c11cc3a authored by Eric Snow on 30 January 2018, 04:04:15 UTC
bpo-32604: NULL-terminate kwlist in channel_drop_interpreter(). (gh-5437)
Tip revision: 83e64c8
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_FindSharedFuncptr(const char *prefix,
                                       const char *shortname,
                                       const char *pathname, FILE *fp)
{
    char funcname[258];

    PyOS_snprintf(funcname, sizeof(funcname), "%.20s_%.200s", prefix, shortname);
    return dl_loadmod(Py_GetProgramName(), pathname, funcname);
}
back to top