Staging
v0.5.1
https://github.com/python/cpython
Revision 426b022776672fdf3d71ddd98d89af341c88080f authored by Larry Hastings on 05 September 2020, 07:22:07 UTC, committed by Larry Hastings on 05 September 2020, 07:22:07 UTC
1 parent f2f17bd
Raw File
Tip revision: 426b022776672fdf3d71ddd98d89af341c88080f authored by Larry Hastings on 05 September 2020, 07:22:07 UTC
Version bump for 3.5.10.
Tip revision: 426b022
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