"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "wml_backend/p2_mp4h/src/module.c" between
wml-2.28.0.tar.xz and wml-2.30.0.tar.xz

About: WML (Website META Language) is an extensible Webdesigner’s off-line HTML generation toolkit.

module.c  (wml-2.28.0.tar.xz):module.c  (wml-2.30.0.tar.xz)
skipping to change at line 206 skipping to change at line 206
++next; ++next;
} }
else else
len = strlen (sp); len = strlen (sp);
sprintf(new_search_path+offset, "%s/%s%c", sp, dir, LT_PATHSEP_CHAR); sprintf(new_search_path+offset, "%s/%s%c", sp, dir, LT_PATHSEP_CHAR);
offset += len + lendir + 2; offset += len + lendir + 2;
sp = next; sp = next;
} }
/* Remove trailing colon */ /* Remove trailing colon */
*(new_search_path+strlen (oldpath) + num * (lendir + 1)) = '\0'; *(new_search_path+strlen (oldpath) + num * (lendir + 1)) = '\0';
xfree ((voidstar) path); free ((voidstar) path);
return new_search_path; return new_search_path;
} }
/* /*
* Load a dynamic library. * Load a dynamic library.
*/ */
void void
library_load (const char *libname, struct obstack *obs) library_load (const char *libname, struct obstack *obs)
{ {
skipping to change at line 240 skipping to change at line 240
strncpy (dir, libname, cp - libname); strncpy (dir, libname, cp - libname);
dir[cp - libname] = '\0'; dir[cp - libname] = '\0';
save_path = lt_dlgetsearchpath (); save_path = lt_dlgetsearchpath ();
if (NULL == save_path) if (NULL == save_path)
lt_dlsetsearchpath (dir); lt_dlsetsearchpath (dir);
else else
{ {
save_path = xstrdup(save_path); save_path = xstrdup(save_path);
new_search_path = add_suffix_searchdir (save_path, dir); new_search_path = add_suffix_searchdir (save_path, dir);
lt_dlsetsearchpath (new_search_path); lt_dlsetsearchpath (new_search_path);
xfree ((voidstar) new_search_path); free ((voidstar) new_search_path);
} }
xfree ((voidstar) dir); free ((voidstar) dir);
} }
/* Dynamically load the named module. */ /* Dynamically load the named module. */
library = lt_dlopenext(lib_name); library = lt_dlopenext(lib_name);
if (library == NULL) if (library == NULL)
if (debug_level & DEBUG_TRACE_MODULES) if (debug_level & DEBUG_TRACE_MODULES)
DEBUG_MESSAGE2("Error when looking into library `%s': %s", DEBUG_MESSAGE2("Error when looking into library `%s': %s",
libname, lt_dlerror()); libname, lt_dlerror());
if (save_path) if (save_path)
{ {
lt_dlsetsearchpath (save_path); lt_dlsetsearchpath (save_path);
xfree ((voidstar) save_path); free ((voidstar) save_path);
} }
if (library != NULL) if (library != NULL)
{ {
for (list = modules; list != NULL; list = list->next) for (list = modules; list != NULL; list = list->next)
if (list->handle == library) if (list->handle == library)
{ {
if (debug_level & DEBUG_TRACE_MODULES) if (debug_level & DEBUG_TRACE_MODULES)
DEBUG_MESSAGE1("library `%s' handle already seen", libname); DEBUG_MESSAGE1("library `%s' handle already seen", libname);
lt_dlclose(library); /* close the duplicate copy */ lt_dlclose(library); /* close the duplicate copy */
skipping to change at line 321 skipping to change at line 321
strncpy (dir, modname, cp - modname); strncpy (dir, modname, cp - modname);
dir[cp - modname] = '\0'; dir[cp - modname] = '\0';
save_path = lt_dlgetsearchpath (); save_path = lt_dlgetsearchpath ();
if (NULL == save_path) if (NULL == save_path)
lt_dlsetsearchpath (dir); lt_dlsetsearchpath (dir);
else else
{ {
save_path = xstrdup(save_path); save_path = xstrdup(save_path);
new_search_path = add_suffix_searchdir (save_path, dir); new_search_path = add_suffix_searchdir (save_path, dir);
lt_dlsetsearchpath (new_search_path); lt_dlsetsearchpath (new_search_path);
xfree ((voidstar) new_search_path); free ((voidstar) new_search_path);
} }
xfree ((voidstar) dir); free ((voidstar) dir);
} }
/* Dynamically load the named module. */ /* Dynamically load the named module. */
module = lt_dlopenext(mod_name); module = lt_dlopenext(mod_name);
if (NULL == module) if (NULL == module)
if (debug_level & DEBUG_TRACE_MODULES) if (debug_level & DEBUG_TRACE_MODULES)
DEBUG_MESSAGE2("Error when looking into module `%s': %s", DEBUG_MESSAGE2("Error when looking into module `%s': %s",
modname, lt_dlerror()); modname, lt_dlerror());
if (save_path) if (save_path)
{ {
lt_dlsetsearchpath (save_path); lt_dlsetsearchpath (save_path);
xfree ((voidstar) save_path); free ((voidstar) save_path);
} }
if (module != NULL) if (module != NULL)
{ {
for (list = modules; list != NULL; list = list->next) for (list = modules; list != NULL; list = list->next)
if (list->handle == module) if (list->handle == module)
{ {
if (debug_level & DEBUG_TRACE_MODULES) if (debug_level & DEBUG_TRACE_MODULES)
DEBUG_MESSAGE1("module `%s' handle already seen", modname); DEBUG_MESSAGE1("module `%s' handle already seen", modname);
lt_dlclose(module); /* close the duplicate copy */ lt_dlclose(module); /* close the duplicate copy */
skipping to change at line 442 skipping to change at line 442
} }
errors = lt_dlclose (modules->handle); errors = lt_dlclose (modules->handle);
if (errors != 0) if (errors != 0)
break; break;
if (debug_level & DEBUG_TRACE_MODULES) if (debug_level & DEBUG_TRACE_MODULES)
DEBUG_MESSAGE1("module `%s' unloaded", modules->modname); DEBUG_MESSAGE1("module `%s' unloaded", modules->modname);
next = modules->next; next = modules->next;
xfree ((voidstar) modules); free ((voidstar) modules);
modules = next; modules = next;
} }
if (errors != 0) if (errors != 0)
errors = lt_dlexit(); errors = lt_dlexit();
if (errors != 0) if (errors != 0)
{ {
const char *dlerror = lt_dlerror(); const char *dlerror = lt_dlerror();
if (modules == NULL) if (modules == NULL)
 End of changes. 8 change blocks. 
8 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)