Commit a58371d8 authored by Jack Jansen's avatar Jack Jansen

Got rid of an extra level of {} and funny formatting that was still

there because of the NeXT history.
parent 103ec798
...@@ -36,10 +36,6 @@ dl_funcptr _PyImport_GetDynLoadFunc(const char *fqname, const char *shortname, ...@@ -36,10 +36,6 @@ dl_funcptr _PyImport_GetDynLoadFunc(const char *fqname, const char *shortname,
{ {
dl_funcptr p = NULL; dl_funcptr p = NULL;
char funcname[258]; char funcname[258];
PyOS_snprintf(funcname, sizeof(funcname), "_init%.200s", shortname);
{
NSObjectFileImageReturnCode rc; NSObjectFileImageReturnCode rc;
NSObjectFileImage image; NSObjectFileImage image;
NSModule newModule; NSModule newModule;
...@@ -47,6 +43,8 @@ dl_funcptr _PyImport_GetDynLoadFunc(const char *fqname, const char *shortname, ...@@ -47,6 +43,8 @@ dl_funcptr _PyImport_GetDynLoadFunc(const char *fqname, const char *shortname,
const char *errString; const char *errString;
char errBuf[512]; char errBuf[512];
PyOS_snprintf(funcname, sizeof(funcname), "_init%.200s", shortname);
#ifdef USE_DYLD_GLOBAL_NAMESPACE #ifdef USE_DYLD_GLOBAL_NAMESPACE
if (NSIsSymbolNameDefined(funcname)) { if (NSIsSymbolNameDefined(funcname)) {
theSym = NSLookupAndBindSymbol(funcname); theSym = NSLookupAndBindSymbol(funcname);
...@@ -112,7 +110,7 @@ dl_funcptr _PyImport_GetDynLoadFunc(const char *fqname, const char *shortname, ...@@ -112,7 +110,7 @@ dl_funcptr _PyImport_GetDynLoadFunc(const char *fqname, const char *shortname,
} }
#endif #endif
p = (dl_funcptr)NSAddressOfSymbol(theSym); p = (dl_funcptr)NSAddressOfSymbol(theSym);
} }
return p; return p;
} }
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