+2007-07-04 Eric Blake <ebb9@byu.net>
+
+ * libltdl/ltdl.c (advise_dup): Delete function no longer used
+ after memleak fix three days ago.
+
2007-07-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* libltdl/m4/libtool.m4 (_LT_ENABLE_LOCK) [ solaris ]: Cater to
(func_mode_link) [cygwin|mingw]: Don't call dirname and
basename directly; use func_dirname and func_basename
when computing cwrapper names. Use cwrapper to generate
- wrapper script, and use pathname returned by
+ wrapper script, and use pathname returned by
func_ltwrapper_scriptname instead of $output.
(func_mode_link) [NOT cygwin|mingw]: move wrapper script
generation for non-win32 inside case statement, as default
Use C89-compatible syntax to mimic variadic macros.
Adjust all callers.
(func_emit_libtool_cwrapperexe_source) [check_executable]:
- avoid embedded #ifdefs; use S_IXGRP and S_IXOTH
+ avoid embedded #ifdefs; use S_IXGRP and S_IXOTH
unconditionally.
(func_emit_libtool_cwrapperexe_source) [make_executable]:
ditto.
value to determine full absolute pathname of wrapper script, in
$objdir. Unconditionally write script out to this pathname and
set permission bits. Remove extraneous ';' from debugging loop.
- (f_e_l_c_s: main) [mingw]: DOS-ize $SHELL before populating
- newargv[0]; if $TARGETSHELL environment variable is set, use
+ (f_e_l_c_s: main) [mingw]: DOS-ize $SHELL before populating
+ newargv[0]; if $TARGETSHELL environment variable is set, use
it instead of $SHELL and do not DOS-ize. Ensure newargv[1]
(wrapper script absolute path) uses only '/', not '\'. Make
sure to call execv() with DOS-ized $SHELL (or un-DOS-ized
lt_dladvise padvise,
const lt_dlvtable *vtable);
static int unload_deplibs (lt_dlhandle handle);
-static lt__advise *advise_dup (lt__advise *advise);
static int lt_argz_insert (char **pargz, size_t *pargz_len,
char *before, const char *entry);
static int lt_argz_insertinorder (char **pargz, size_t *pargz_len,
the dlhandle is stored at the address given in PHANDLE. */
static int
tryall_dlopen (lt_dlhandle *phandle, const char *filename,
- lt_dladvise padvise, const lt_dlvtable *vtable)
+ lt_dladvise padvise, const lt_dlvtable *vtable)
{
lt__handle * handle = (lt__handle *) handles;
const char * saved_error = 0;
if (vtable)
{
- *phandle = (lt_dlhandle) lt__zalloc (sizeof (lt__handle));
+ *phandle = (lt_dlhandle) lt__zalloc (sizeof (lt__handle));
if (*phandle == NULL)
{
return 0;
}
-static lt__advise *
-advise_dup (lt__advise *advise)
-{
- lt__advise *dup = (lt__advise *) lt__zalloc (sizeof (lt__advise));
- return (lt__advise *) memcpy (dup, advise, sizeof (lt__advise));
-}
-
/* Libtool-1.5.x interface for loading a new module named FILENAME. */
lt_dlhandle
lt_dlopen (const char *filename)