1999-01-20 Alexandre Oliva <oliva@dcc.unicamp.br>
+ * 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 <oliva@dcc.unicamp.br>
@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 <ltdl.h>
-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
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