Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(88524)

Delta Between Two Patch Sets: Python/dynload_dl.c

Issue 14040: Deprecate some of the module file formats
Left Patch Set: Created 7 years, 6 months ago
Right Patch Set: Created 7 years, 6 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « Python/dynload_aix.c ('k') | Python/dynload_hpux.c » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 1
2 /* Support for dynamic loading of extension modules */ 2 /* Support for dynamic loading of extension modules */
3 3
4 #include "dl.h" 4 #include "dl.h"
5 5
6 #include "Python.h" 6 #include "Python.h"
7 #include "importdl.h" 7 #include "importdl.h"
8 8
9 9
10 extern char *Py_GetProgramName(void); 10 extern char *Py_GetProgramName(void);
11 11
12 const struct filedescr _PyImport_DynLoadFiletab[] = { 12 const struct filedescr _PyImport_DynLoadFiletab[] = {
13 {".o", "rb", C_EXTENSION, 0}, 13 {".o", "rb", C_EXTENSION},
14 {"module.o", "rb", C_EXTENSION, 1},
15 {0, 0} 14 {0, 0}
16 }; 15 };
17 16
18 17
19 dl_funcptr _PyImport_GetDynLoadFunc(const char *shortname, 18 dl_funcptr _PyImport_GetDynLoadFunc(const char *shortname,
20 const char *pathname, FILE *fp) 19 const char *pathname, FILE *fp)
21 { 20 {
22 char funcname[258]; 21 char funcname[258];
23 22
24 PyOS_snprintf(funcname, sizeof(funcname), "PyInit_%.200s", shortname); 23 PyOS_snprintf(funcname, sizeof(funcname), "PyInit_%.200s", shortname);
25 return dl_loadmod(Py_GetProgramName(), pathname, funcname); 24 return dl_loadmod(Py_GetProgramName(), pathname, funcname);
26 } 25 }
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+