Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18261/src
Modified Files: Tag: devel_0_38 s_loader.c Log Message: (OSX)changed NSLINKMODULE to public and return on errors, so we don't crash when duplicate symbols are found in loaded externals...also allows externals to use other externals functions
Index: s_loader.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/s_loader.c,v retrieving revision 1.4.4.3 retrieving revision 1.4.4.4 diff -C2 -d -r1.4.4.3 -r1.4.4.4 *** s_loader.c 24 Nov 2004 19:19:46 -0000 1.4.4.3 --- s_loader.c 28 Feb 2005 00:15:52 -0000 1.4.4.4 *************** *** 150,155 **** } ret = NSLinkModule( image, filename, ! NSLINKMODULE_OPTION_BINDNOW + NSLINKMODULE_OPTION_PRIVATE); ! s = NSLookupSymbolInModule(ret, symname);
--- 150,165 ---- } ret = NSLinkModule( image, filename, ! NSLINKMODULE_OPTION_BINDNOW | ! //NSLINKMODULE_OPTION_PRIVATE | ! NSLINKMODULE_OPTION_RETURN_ON_ERROR); ! ! if (ret == NULL) { ! int err; ! const char *fname, *errt; ! NSLinkEditErrors c; ! NSLinkEditError(&c, &err, &fname, &errt); ! post("link error %d %s %s", err, fname, errt); ! return 0; ! } s = NSLookupSymbolInModule(ret, symname);