ยปCore Development>Code coverage>Python/dynload_dl.c

Python code coverage for Python/dynload_dl.c

#countcontent
1n/a
2n/a/* Support for dynamic loading of extension modules */
3n/a
4n/a#include "dl.h"
5n/a
6n/a#include "Python.h"
7n/a#include "importdl.h"
8n/a
9n/a
10n/aextern char *Py_GetProgramName(void);
11n/a
12n/aconst char *_PyImport_DynLoadFiletab[] = {".o", NULL};
13n/a
14n/a
15n/adl_funcptr _PyImport_FindSharedFuncptr(const char *prefix,
16n/a const char *shortname,
17n/a const char *pathname, FILE *fp)
18n/a{
19n/a char funcname[258];
20n/a
21n/a PyOS_snprintf(funcname, sizeof(funcname), "%.20s_%.200s", prefix, shortname);
22n/a return dl_loadmod(Py_GetProgramName(), pathname, funcname);
23n/a}