Mercurial > cpython-lru_cache-weakref
diff Python/dynload_next.c @ 11618:528559a0b2f2 legacy-trunk
Cleanup patches from Greg Stein:
* in import.c, #ifdef out references to dynamic loading based on
HAVE_DYNAMIC_LOADING
* clean out the platform-specific crud from importdl.c.
[ maybe fold this function into import.c and drop the importdl.c file? Greg.]
* change GetDynLoadFunc's "funcname" parameter to "shortname". change
"name" to "fqname" for clarification.
* each GetDynLoadFunc now creates its own funcname value.
WARNING: as I mentioned previously, we may run into an issue with a
missing "_" on some platforms. Testing will show this pretty quickly,
however.
* move pathname munging into dynload_shlib.c
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Wed, 22 Dec 1999 14:09:35 +0000 |
| parents | 78fe87ce0ded |
| children | 5de0b939fe61 |
line wrap: on
line diff
--- a/Python/dynload_next.c Tue Dec 21 23:02:38 1999 +0000 +++ b/Python/dynload_next.c Wed Dec 22 14:09:35 1999 +0000 @@ -68,10 +68,13 @@ {0, 0} }; -dl_funcptr _PyImport_GetDynLoadFunc(const char *name, const char *funcname, +dl_funcptr _PyImport_GetDynLoadFunc(const char *fqname, const char *shortname, const char *pathname, FILE *fp) { dl_funcptr p = NULL; + char funcname[258]; + + sprintf(funcname, "_init%.200s", shortname); #ifdef USE_RLD {
