Staging
v0.5.1
https://github.com/python/cpython
Revision b8cbe74c3498c617f0e73fd0cdc5c07f2c532092 authored by Steve Dower on 09 December 2019, 19:05:39 UTC, committed by GitHub on 09 December 2019, 19:05:39 UTC
1 parent ac22911
Raw File
Tip revision: b8cbe74c3498c617f0e73fd0cdc5c07f2c532092 authored by Steve Dower on 09 December 2019, 19:05:39 UTC
bpo-39008: Require Py_ssize_t for PySys_Audit formats rather than raise a deprecation warning (GH-17540)
Tip revision: b8cbe74
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