Staging
v0.5.1
https://github.com/python/cpython
Revision 9ad5e9edea08b0d377902d556624f03a2b8bb29b authored by Steve Dower on 19 June 2019, 01:05:33 UTC, committed by Ned Deily on 02 July 2019, 02:17:29 UTC
1 parent b26441e
Raw File
Tip revision: 9ad5e9edea08b0d377902d556624f03a2b8bb29b authored by Steve Dower on 19 June 2019, 01:05:33 UTC
bpo-37156: Fix libssl DLL tag in MSI sources (GH-14219)
Tip revision: 9ad5e9e
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