Staging
v0.5.1
https://github.com/python/cpython
Revision 461ad598d12eba7754181402e00bb7cfc7f1d9cf authored by Miss Islington (bot) on 01 June 2018, 17:55:10 UTC, committed by Vinay Sajip on 01 June 2018, 17:55:10 UTC
(cherry picked from commit 23cee80cfade1a9019c52b3a17d8e5c1b5db17e2)

Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
1 parent 64e538b
Raw File
Tip revision: 461ad598d12eba7754181402e00bb7cfc7f1d9cf authored by Miss Islington (bot) on 01 June 2018, 17:55:10 UTC
bpo-33400: Removed references to RFC3339 and ISO8601 from the logging documentation. (GH-7297) (GH-7303)
Tip revision: 461ad59
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