Staging
v0.5.1
v0.5.1
https://github.com/python/cpython
Revision 57a432d95e19837a62c27a0a9faf72cb3166e760 authored by Mark Dickinson on 14 February 2010, 14:09:25 UTC, committed by Mark Dickinson on 14 February 2010, 14:09:25 UTC
svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r78192 | mark.dickinson | 2010-02-14 14:08:54 +0000 (Sun, 14 Feb 2010) | 9 lines Merged revisions 78189 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r78189 | mark.dickinson | 2010-02-14 13:40:30 +0000 (Sun, 14 Feb 2010) | 1 line Silence more 'comparison between signed and unsigned' warnings. ........ ................
1 parent 5a41a4c
Tip revision: 57a432d95e19837a62c27a0a9faf72cb3166e760 authored by Mark Dickinson on 14 February 2010, 14:09:25 UTC
Merged revisions 78192 via svnmerge from
Merged revisions 78192 via svnmerge from
Tip revision: 57a432d
dynload_os2.c
/* Support for dynamic loading of extension modules */
#define INCL_DOSERRORS
#define INCL_DOSMODULEMGR
#include <os2.h>
#include "Python.h"
#include "importdl.h"
const struct filedescr _PyImport_DynLoadFiletab[] = {
{".pyd", "rb", C_EXTENSION},
{".dll", "rb", C_EXTENSION},
{0, 0}
};
dl_funcptr _PyImport_GetDynLoadFunc(const char *fqname, const char *shortname,
const char *pathname, FILE *fp)
{
dl_funcptr p;
APIRET rc;
HMODULE hDLL;
char failreason[256];
char funcname[258];
rc = DosLoadModule(failreason,
sizeof(failreason),
pathname,
&hDLL);
if (rc != NO_ERROR) {
char errBuf[256];
PyOS_snprintf(errBuf, sizeof(errBuf),
"DLL load failed, rc = %d: %.200s",
rc, failreason);
PyErr_SetString(PyExc_ImportError, errBuf);
return NULL;
}
PyOS_snprintf(funcname, sizeof(funcname), "PyInit_%.200s", shortname);
rc = DosQueryProcAddr(hDLL, 0L, funcname, &p);
if (rc != NO_ERROR)
p = NULL; /* Signify Failure to Acquire Entrypoint */
return p;
}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...