Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 6c1aa6ba30e38fb9708526e27f9158162c37d909 authored by Larry Hastings on 25 June 2016, 21:11:09 UTC
Version number bump for 3.5.2 final.
Tip revision: 6c1aa6b
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