Kaydet (Commit) e20ad358 authored tarafından Neal Norwitz's avatar Neal Norwitz

Move decl so it compiles with C89.

üst 8d2ef875
...@@ -22,6 +22,7 @@ PyObject * ...@@ -22,6 +22,7 @@ PyObject *
_PyImport_LoadDynamicModule(char *name, char *pathname, FILE *fp) _PyImport_LoadDynamicModule(char *name, char *pathname, FILE *fp)
{ {
PyObject *m; PyObject *m;
PyObject *path;
char *lastdot, *shortname, *packagecontext, *oldcontext; char *lastdot, *shortname, *packagecontext, *oldcontext;
dl_funcptr p; dl_funcptr p;
...@@ -62,7 +63,6 @@ _PyImport_LoadDynamicModule(char *name, char *pathname, FILE *fp) ...@@ -62,7 +63,6 @@ _PyImport_LoadDynamicModule(char *name, char *pathname, FILE *fp)
return NULL; return NULL;
} }
/* Remember the filename as the __file__ attribute */ /* Remember the filename as the __file__ attribute */
PyObject *path;
path = PyUnicode_DecodeFSDefault(pathname); path = PyUnicode_DecodeFSDefault(pathname);
if (PyModule_AddObject(m, "__file__", path) < 0) if (PyModule_AddObject(m, "__file__", path) < 0)
PyErr_Clear(); /* Not important enough to report */ PyErr_Clear(); /* Not important enough to report */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment