From: Gary V. Vaughan Date: Tue, 26 Jun 2001 00:53:37 +0000 (+0000) Subject: * libltdl/ltdl.c: Prototype all static functions. X-Git-Tag: release-1-4b~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62216889fc505e600e30756c2fc2f76028845a4e;p=thirdparty%2Flibtool.git * libltdl/ltdl.c: Prototype all static functions. --- diff --git a/ChangeLog b/ChangeLog index faf15e47e..328796163 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2001-06-26 Gary V. Vaughan + * libltdl/ltdl.c: Prototype all static functions. + * ltdl.m4: Bump serial number to 3. (AC_LIB_LTDL): Require AC_HEADER_DIRENT for ltdl.c. * libltdl/ltdl.h (lt_dlforeachfile): Prototype for new function. diff --git a/libltdl/ltdl.c b/libltdl/ltdl.c index 7cb048406..9103449d5 100644 --- a/libltdl/ltdl.c +++ b/libltdl/ltdl.c @@ -1282,6 +1282,42 @@ static struct lt_user_dlloader presym = { /* The type of a function used at each iteration of foreach_dirinpath(). */ typedef int foreach_callback_func LT_PARAMS((char *filename, lt_ptr data1, lt_ptr data2)); +static int foreach_dirinpath LT_PARAMS((const char *search_path, + const char *base_name, + foreach_callback_func *func, + lt_ptr data1, lt_ptr data2)); + +static int find_file_callback LT_PARAMS((char *filename, lt_ptr data, + lt_ptr ignored)); +static int find_handle_callback LT_PARAMS((char *filename, lt_ptr data, + lt_ptr ignored)); +static int foreachfile_callback LT_PARAMS((char *filename, lt_ptr data1, + lt_ptr data2)); + + +static char *canonicalize_path LT_PARAMS((const char *path)); +static FILE *find_file LT_PARAMS((const char *search_path, + const char *base_name, + char **pdir)); +static lt_dlhandle *find_handle LT_PARAMS((const char *search_path, + const char *base_name, + lt_dlhandle *handle)); +static int find_module LT_PARAMS((lt_dlhandle *handle, + const char *dir, + const char *libdir, + const char *dlname, + const char *old_name, + int installed)); +static int free_vars LT_PARAMS((char *dlname, char *oldname, + char *libdir, char *deplibs)); +static int load_deplibs LT_PARAMS((lt_dlhandle handle, + char *deplibs)); +static int trim LT_PARAMS((char **dest, + const char *str)); +static int tryall_dlopen LT_PARAMS((lt_dlhandle *handle, + const char *filename)); +static int unload_deplibs LT_PARAMS((lt_dlhandle handle)); + static char *user_search_path= 0; static lt_dlloader *loaders = 0;