Staging
v0.5.1
https://github.com/python/cpython
Revision d378fdb10a5476b86b5a01d74c1bcc4e2f52e003 authored by Miss Islington (bot) on 11 September 2019, 10:55:29 UTC, committed by GitHub on 11 September 2019, 10:55:29 UTC
(cherry picked from commit 7a0023e8d17566eb32c836b65c33663303a2224f)

Co-authored-by: smokephil <smokephil@gmail.com>
1 parent 3cd147b
Raw File
Tip revision: d378fdb10a5476b86b5a01d74c1bcc4e2f52e003 authored by Miss Islington (bot) on 11 September 2019, 10:55:29 UTC
bpo-25810: Clarify eval() docs, it does not keywords (GH-15173)
Tip revision: d378fdb
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