From: Alexandre Oliva Date: Wed, 20 Jan 1999 08:58:51 +0000 (+0000) Subject: * libltdl/ltdl.h (LTDL_PRELOADED_SYMBOLS): remove it; better to X-Git-Tag: automake_1-4~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c74935fc47f8346c9c5a2a7e0f1422571be463cf;p=thirdparty%2Flibtool.git * libltdl/ltdl.h (LTDL_PRELOADED_SYMBOLS): remove it; better to declare lt_preloaded_symbols * doc/libtool.texi (LTDL_PRELOADED_SYMBOLS): ditto --- diff --git a/ChangeLog b/ChangeLog index df9cbf915..dc080b4c8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 1999-01-20 Alexandre Oliva + * libltdl/ltdl.h (LTDL_PRELOADED_SYMBOLS): remove it; better to + declare lt_preloaded_symbols + * doc/libtool.texi (LTDL_PRELOADED_SYMBOLS): ditto + * ltmain.in (dlpredeps): removed, reverting 1999-01-17's change 1999-01-19 Alexandre Oliva diff --git a/doc/libtool.texi b/doc/libtool.texi index 0953acc95..4be029538 100644 --- a/doc/libtool.texi +++ b/doc/libtool.texi @@ -2663,28 +2663,31 @@ are deleted. Return 0 on success. @end deftypefun @deftypefun int lt_dlpreload_default (const lt_dlsymlist *@var{preloaded}) -Set the default list of preloaded modules to @var{preloaded}, -which won't be deleted by @code{lt_dlpreload}. -Note that this function does *not* require libltdl to be initialized -using @code{lt_dlinit} and can be used in the program to register -the default preloaded modules. -Usually the main function in the program will set libtool's default -symbol list: +Set the default list of preloaded modules to @var{preloaded}, which +won't be deleted by @code{lt_dlpreload}. Note that this function does +@emph{not} require libltdl to be initialized using @code{lt_dlinit} and +can be used in the program to register the default preloaded modules. +Instead of calling this function directly, most programs will use the +macro @code{LTDL_SET_PRELOADED_SYMBOLS}. -@example -extern const lt_dlsymlist lt_preloaded_symbols[]; - -... +Return 0 on success. +@end deftypefun -lt_dlpreload_default(lt_preloaded_symbols); -@end example +@defmac LTDL_SET_PRELOADED_SYMBOLS() +Set the default list of preloaded symbols. +Should be used together with @code{LTDL_PRELOADED_SYMBOLS} +in your program to initialize libltdl's list of preloaded modules. -Libltdl defines the macros @code{LTDL_PRELOADED_SYMBOLS} and -@code{LTDL_SET_PRELOADED_SYMBOLS}, which hide these libtool dependent -declaration for you. +@example +#include -Return 0 on success. -@end deftypefun +int main() @{ + /* ... */ + LTDL_SET_PRELOADED_SYMBOLS(); + /* ... */ +@} +@end example +@end defmac @deftypefun int lt_dladdsearchdir (const char *@var{search_dir}) Add the search directory @var{search_dir} to the user-defined library @@ -2700,27 +2703,6 @@ Replace the current user-defined library search path with Return the current user-defined library search path. @end deftypefun -@defmac LTDL_PRELOADED_SYMBOLS -Import libtool's preloaded symbols. -See @code{LTDL_SET_PRELOADED_SYMBOLS}. -@end defmac - -@defmac LTDL_SET_PRELOADED_SYMBOLS() -Set the default list of preloaded symbols. -Should be used together with @code{LTDL_PRELOADED_SYMBOLS} -in your program to initialize libltdl's list of preloaded modules. - -@example -LTDL_PRELOADED_SYMBOLS; - -int main() @{ -... -LTDL_SET_PRELOADED_SYMBOLS(); -... -@} -@end example -@end defmac - @node Modules for libltdl @section Creating modules that can be @code{dlopen}ed diff --git a/libltdl/ltdl.h b/libltdl/ltdl.h index 1d0c0cbcd..dbe1a0e65 100644 --- a/libltdl/ltdl.h +++ b/libltdl/ltdl.h @@ -86,7 +86,7 @@ _LTDLL_EXTERN int lt_dladdsearchdir __P((const char *search_dir)); _LTDLL_EXTERN int lt_dlsetsearchpath __P((const char *search_path)); _LTDLL_EXTERN const char *lt_dlgetsearchpath __P((void)); -#define LTDL_PRELOADED_SYMBOLS extern const lt_dlsymlist lt_preloaded_symbols[]; +extern const lt_dlsymlist lt_preloaded_symbols[]; #define LTDL_SET_PRELOADED_SYMBOLS() lt_dlpreload_default(lt_preloaded_symbols) __END_DECLS