comparison src/loadso/macosx/SDL_dlcompat.c @ 2698:e1da92da346c gsoc2008_nds

Clean up.
author Darren Alton <dalton@stevens.edu>
date Wed, 27 Aug 2008 04:23:38 +0000
parents c121d94672cb
children 3e42ad69f4a3
comparison
equal deleted inserted replaced
2697:c9121b04cffa 2698:e1da92da346c
614 n++, lc = (struct load_command *) ((char *) lc + lc->cmdsize)) { 614 n++, lc = (struct load_command *) ((char *) lc + lc->cmdsize)) {
615 if ((LC_LOAD_DYLIB == lc->cmd) 615 if ((LC_LOAD_DYLIB == lc->cmd)
616 || (LC_LOAD_WEAK_DYLIB == lc->cmd)) { 616 || (LC_LOAD_WEAK_DYLIB == lc->cmd)) {
617 if ((wh = (struct mach_header *) 617 if ((wh = (struct mach_header *)
618 my_find_image((char 618 my_find_image((char
619 *) (((struct dylib_command *) lc)-> 619 *) (((struct dylib_command *) lc)->dylib.
620 dylib.name.offset + (char *) lc)))) { 620 name.offset + (char *) lc)))) {
621 if (dyld_NSIsSymbolNameDefinedInImage(wh, symbol)) { 621 if (dyld_NSIsSymbolNameDefinedInImage(wh, symbol)) {
622 nssym = dyld_NSLookupSymbolInImage(wh, 622 nssym = dyld_NSLookupSymbolInImage(wh,
623 symbol, 623 symbol,
624 NSLOOKUPSYMBOLINIMAGE_OPTION_BIND 624 NSLOOKUPSYMBOLINIMAGE_OPTION_BIND
625 | 625 |
1065 answer = dlsym_auto_underscore_intern(handle, symbol); 1065 answer = dlsym_auto_underscore_intern(handle, symbol);
1066 dounlock(); 1066 dounlock();
1067 return answer; 1067 return answer;
1068 1068
1069 } 1069 }
1070
1070 static void * 1071 static void *
1071 dlsym_auto_underscore_intern(void *handle, const char *symbol) 1072 dlsym_auto_underscore_intern(void *handle, const char *symbol)
1072 { 1073 {
1073 struct dlstatus *dls = handle; 1074 struct dlstatus *dls = handle;
1074 void *addr = 0; 1075 void *addr = 0;