Staging
v0.5.1
https://github.com/python/cpython
Revision 6dcbc2422de9e2a7ff89a4689572d84001e230b2 authored by Lysandros Nikolaou on 27 June 2020, 17:47:00 UTC, committed by GitHub on 27 June 2020, 17:47:00 UTC
1 parent 9cfcdb7
Raw File
Tip revision: 6dcbc2422de9e2a7ff89a4689572d84001e230b2 authored by Lysandros Nikolaou on 27 June 2020, 17:47:00 UTC
bpo-41132: Use pymalloc allocator in the f-string parser (GH-21173)
Tip revision: 6dcbc24
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