mirror of
git://git.savannah.gnu.org/libtool.git
synced 2024-11-21 01:40:57 +08:00
* libltdl/ltdl.h (LTDL_PRELOADED_SYMBOLS): remove it; better to
declare lt_preloaded_symbols * doc/libtool.texi (LTDL_PRELOADED_SYMBOLS): ditto
This commit is contained in:
parent
f11c3e83c5
commit
c74935fc47
@ -1,5 +1,9 @@
|
||||
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>
|
||||
|
@ -2663,29 +2663,32 @@ 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:
|
||||
|
||||
@example
|
||||
extern const lt_dlsymlist lt_preloaded_symbols[];
|
||||
|
||||
...
|
||||
|
||||
lt_dlpreload_default(lt_preloaded_symbols);
|
||||
@end example
|
||||
|
||||
Libltdl defines the macros @code{LTDL_PRELOADED_SYMBOLS} and
|
||||
@code{LTDL_SET_PRELOADED_SYMBOLS}, which hide these libtool dependent
|
||||
declaration for you.
|
||||
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}.
|
||||
|
||||
Return 0 on success.
|
||||
@end deftypefun
|
||||
|
||||
@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
|
||||
#include <ltdl.h>
|
||||
|
||||
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
|
||||
search path. Return 0 on success.
|
||||
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user