Staging
v0.5.1
https://github.com/python/cpython
Revision d48ecebad5ac78a1783e09b0d32c211d9754edf4 authored by Ned Deily on 19 December 2017, 04:53:56 UTC, committed by Ned Deily on 19 December 2017, 04:53:56 UTC
1 parent c7d7f77
Raw File
Tip revision: d48ecebad5ac78a1783e09b0d32c211d9754edf4 authored by Ned Deily on 19 December 2017, 04:53:56 UTC
Update to 3.6.4
Tip revision: d48eceb
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