Staging
v0.5.1
https://github.com/python/cpython
Revision 1af68a65194a26d959161df33fc25ade7f812009 authored by Ned Deily on 13 June 2019, 04:35:19 UTC, committed by GitHub on 13 June 2019, 04:35:19 UTC
1 parent 9393e19
Raw File
Tip revision: 1af68a65194a26d959161df33fc25ade7f812009 authored by Ned Deily on 13 June 2019, 04:35:19 UTC
[3.6] Doc fix: duplicate object description of email.message (GH-13742) (GH-14041)
Tip revision: 1af68a6
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