Staging
v0.8.1
https://github.com/python/cpython
Revision b8de598305428608fad9d95e890293dee4938faf authored by Nick Coghlan on 28 July 2013, 11:40:20 UTC, committed by Nick Coghlan on 28 July 2013, 11:40:20 UTC
2 parent s fb15aa1 + 69e3bda
Raw File
Tip revision: b8de598305428608fad9d95e890293dee4938faf authored by Nick Coghlan on 28 July 2013, 11:40:20 UTC
Null merge from 3.3
Tip revision: b8de598
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_GetDynLoadFunc(const char *shortname,
                                    const char *pathname, FILE *fp)
{
    char funcname[258];

    PyOS_snprintf(funcname, sizeof(funcname), "PyInit_%.200s", shortname);
    return dl_loadmod(Py_GetProgramName(), pathname, funcname);
}
back to top