Staging
v0.5.1
https://github.com/python/cpython
Revision dbe4c286ce28402c3bce71d568ae55b91280e777 authored by Miss Islington (bot) on 14 August 2019, 22:22:02 UTC, committed by GitHub on 14 August 2019, 22:22:02 UTC
(cherry picked from commit 68e495df909a33e719e3f1ef5b4893ec785e10a4)

Co-authored-by: Hai Shi <shihai1992@gmail.com>
1 parent b8e6824
Raw File
Tip revision: dbe4c286ce28402c3bce71d568ae55b91280e777 authored by Miss Islington (bot) on 14 August 2019, 22:22:02 UTC
bpo-37775: Update compileall doc for invalidation_mode parameter (GH-15148)
Tip revision: dbe4c28
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