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

Delta Between Two Patch Sets: Python/dynload_hpux.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_dl.c ('k') | Python/dynload_next.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 #include <errno.h> 5 #include <errno.h>
6 6
7 #include "Python.h" 7 #include "Python.h"
8 #include "importdl.h" 8 #include "importdl.h"
9 9
10 #if defined(__hp9000s300) 10 #if defined(__hp9000s300)
11 #define FUNCNAME_PATTERN "_PyInit_%.200s" 11 #define FUNCNAME_PATTERN "_PyInit_%.200s"
12 #else 12 #else
13 #define FUNCNAME_PATTERN "PyInit_%.200s" 13 #define FUNCNAME_PATTERN "PyInit_%.200s"
14 #endif 14 #endif
15 15
16 const struct filedescr _PyImport_DynLoadFiletab[] = { 16 const struct filedescr _PyImport_DynLoadFiletab[] = {
17 {SHLIB_EXT, "rb", C_EXTENSION, 0}, 17 {SHLIB_EXT, "rb", C_EXTENSION},
18 {"module"SHLIB_EXT, "rb", C_EXTENSION, 1},
19 {0, 0} 18 {0, 0}
20 }; 19 };
21 20
22 dl_funcptr _PyImport_GetDynLoadFunc(const char *shortname, 21 dl_funcptr _PyImport_GetDynLoadFunc(const char *shortname,
23 const char *pathname, FILE *fp) 22 const char *pathname, FILE *fp)
24 { 23 {
25 dl_funcptr p; 24 dl_funcptr p;
26 shl_t lib; 25 shl_t lib;
27 int flags; 26 int flags;
28 char funcname[258]; 27 char funcname[258];
(...skipping 20 matching lines...) Expand all
49 printf("shl_findsym %s\n", funcname); 48 printf("shl_findsym %s\n", funcname);
50 if (shl_findsym(&lib, funcname, TYPE_UNDEFINED, (void *) &p) == -1) { 49 if (shl_findsym(&lib, funcname, TYPE_UNDEFINED, (void *) &p) == -1) {
51 shl_unload(lib); 50 shl_unload(lib);
52 p = NULL; 51 p = NULL;
53 } 52 }
54 if (p == NULL && Py_VerboseFlag) 53 if (p == NULL && Py_VerboseFlag)
55 perror(funcname); 54 perror(funcname);
56 55
57 return p; 56 return p;
58 } 57 }
LEFTRIGHT

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