Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 164df4e51a5bf0b3b1694b81edbe38ea4bf1ce13 authored by Larry Hastings on 25 July 2015, 21:22:13 UTC
Version bump for Python 3.5.0b4.
Tip revision: 164df4e
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