38 |
/* #define SEARCH_DEBUG */ |
/* #define SEARCH_DEBUG */ |
39 |
/* #define FIND_DEBUG */ |
/* #define FIND_DEBUG */ |
40 |
/* #define IMPORTHANDLER_VERBOSE */ |
/* #define IMPORTHANDLER_VERBOSE */ |
41 |
|
/* #define IMPORT_DEBUG */ |
42 |
|
|
43 |
/* |
/* |
44 |
Maximum number of importhandlers possible in one session. Hard to imagine |
Maximum number of importhandlers possible in one session. Hard to imagine |
166 |
ERROR_REPORTER_HERE(ASC_PROG_ERR,"File path is NULL"); |
ERROR_REPORTER_HERE(ASC_PROG_ERR,"File path is NULL"); |
167 |
return 1; |
return 1; |
168 |
} |
} |
169 |
#ifdef SEARCH_DEBUG |
#ifdef IMPORT_DEBUG |
170 |
CONSOLE_DEBUG("Importing extlib with path '%s'",path); |
CONSOLE_DEBUG("Importing extlib with path '%s'",path); |
171 |
#endif |
#endif |
172 |
|
|
272 |
} |
} |
273 |
err = err | thiserr; |
err = err | thiserr; |
274 |
} |
} |
275 |
|
if(!err){ |
276 |
|
ASC_FREE(importhandler_library); |
277 |
|
importhandler_library = NULL; |
278 |
|
} |
279 |
} |
} |
280 |
if(err)ERROR_REPORTER_HERE(ASC_PROG_WARNING,"Failed to destroy importhandler library"); |
if(err)ERROR_REPORTER_HERE(ASC_PROG_WARNING,"Failed to destroy importhandler library"); |
281 |
return err; |
return err; |
363 |
#endif |
#endif |
364 |
continue; |
continue; |
365 |
} |
} |
366 |
/* CONSOLE_DEBUG("Filename '%s'",filename); */ |
#ifdef SEARCH_DEBUG |
367 |
|
CONSOLE_DEBUG("Filename '%s'",filename); |
368 |
|
#endif |
369 |
fp = ospath_new_noclean(filename); /* eg 'libmyext.so' */ |
fp = ospath_new_noclean(filename); /* eg 'libmyext.so' */ |
370 |
ASC_FREE(filename); |
ASC_FREE(filename); |
371 |
asc_assert(fp!=NULL); |
asc_assert(fp!=NULL); |