From MAILER-DAEMON Wed Dec 02 17:17:30 2009
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1NFxVq-0004T6-4B
	for mharc-libtool-commit@gnu.org; Wed, 02 Dec 2009 17:17:30 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1NFxVo-0004Qm-8W
	for libtool-commit@gnu.org; Wed, 02 Dec 2009 17:17:28 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1NFxVm-0004Oc-GN
	for libtool-commit@gnu.org; Wed, 02 Dec 2009 17:17:27 -0500
Received: from [199.232.76.173] (port=56877 helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1NFxVl-0004O9-Sj
	for libtool-commit@gnu.org; Wed, 02 Dec 2009 17:17:25 -0500
Received: from savannah.gnu.org ([199.232.41.3]:38247 helo=sv.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32)
	(Exim 4.60) (envelope-from <INVALID.NOREPLY@gnu.org>)
	id 1NFxVl-0002UU-5b
	for libtool-commit@gnu.org; Wed, 02 Dec 2009 17:17:25 -0500
Received: from [10.1.0.109] (helo=cvs.savannah.gnu.org)
	by sv.gnu.org with esmtp (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1NFxVk-00083L-7P
	for libtool-commit@gnu.org; Wed, 02 Dec 2009 22:17:24 +0000
Received: from rwild by cvs.savannah.gnu.org with local (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1NFxVj-00082o-OC
	for libtool-commit@gnu.org; Wed, 02 Dec 2009 22:17:24 +0000
From: "Ralf Wildenhues" <Ralf.Wildenhues@gmx.de>
To: libtool-commit@gnu.org
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 2c9c38d8a12eb0a2ce7fe9c3862523026c3d5622
X-Git-Newrev: c4e8bf31aaa471251092f5b89420bbd4701cb308
Message-Id: <E1NFxVj-00082o-OC@cvs.savannah.gnu.org>
Date: Wed, 02 Dec 2009 22:17:23 +0000
X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2)
Subject: [SCM] GNU Libtool branch, master, updated. v2.2.6-167-gc4e8bf3
X-BeenThere: libtool-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: CVS commit notices for the GNU libtool shared library maintenance
	tool <libtool-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/libtool-commit>,
	<mailto:libtool-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/libtool-commit>
List-Post: <mailto:libtool-commit@gnu.org>
List-Help: <mailto:libtool-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/libtool-commit>,
	<mailto:libtool-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 02 Dec 2009 22:17:28 -0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Libtool".

The branch, master has been updated
       via  c4e8bf31aaa471251092f5b89420bbd4701cb308 (commit)
       via  fea7fdee4e2a36b608708f5cbfaf373edfac916d (commit)
      from  2c9c38d8a12eb0a2ce7fe9c3862523026c3d5622 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit c4e8bf31aaa471251092f5b89420bbd4701cb308
Author: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Date:   Wed Dec 2 23:12:27 2009 +0100

    lt_dlloader_remove and lt_dlloader_find accept const arguments.
    
    * libltdl/lt_dlloader.c (lt_dlloader_remove, lt_dlloader_find):
    Accept `const char *' arguments, as documented.  Cast them to
    `void *' for the slist machinery.
    * libltdl/libltdl/lt_dlloader.h: Adjust prototypes.
    
    Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>

commit fea7fdee4e2a36b608708f5cbfaf373edfac916d
Author: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Date:   Wed Dec 2 23:11:23 2009 +0100

    Test and fix slist.c.
    
    * libltdl/libltdl/slist.h: Include stddef.h, for size_t.
    (slist_remove): Return pointer to SList, not void.
    * libltdl/slist.c: Include stdlib.h, for malloc and free.
    (slist_remove): Adjust prototype as above.
    (slist_sort): Do not loop forever on one-item list.
    * tests/slist.at (SList functionality): New file, new test.
    * Makefile.am (TESTSUITE_AT): Add tests/slist.at.
    
    Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                     |   17 ++++
 Makefile.am                   |    1 +
 libltdl/libltdl/lt_dlloader.h |    4 +-
 libltdl/libltdl/slist.h       |    6 +-
 libltdl/lt_dlloader.c         |    8 +-
 libltdl/slist.c               |   10 ++-
 tests/slist.at                |  168 +++++++++++++++++++++++++++++++++++++++++
 7 files changed, 203 insertions(+), 11 deletions(-)
 create mode 100644 tests/slist.at

diff --git a/ChangeLog b/ChangeLog
index 7961cac..6e01e4a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,20 @@
+2009-12-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+	lt_dlloader_remove and lt_dlloader_find accept const arguments.
+	* libltdl/lt_dlloader.c (lt_dlloader_remove, lt_dlloader_find):
+	Accept `const char *' arguments, as documented.  Cast them to
+	`void *' for the slist machinery.
+	* libltdl/libltdl/lt_dlloader.h: Adjust prototypes.
+
+	Test and fix slist.c.
+	* libltdl/libltdl/slist.h: Include stddef.h, for size_t.
+	(slist_remove): Return pointer to SList, not void.
+	* libltdl/slist.c: Include stdlib.h, for malloc and free.
+	(slist_remove): Adjust prototype as above.
+	(slist_sort): Do not loop forever on one-item list.
+	* tests/slist.at (SList functionality): New file, new test.
+	* Makefile.am (TESTSUITE_AT): Add tests/slist.at.
+
 2009-11-30  Peter Rosin  <peda@lysator.liu.se>
 
 	Please C++ compilers when calling strrchr.
diff --git a/Makefile.am b/Makefile.am
index 2fe2f88..e5d55eb 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -484,6 +484,7 @@ TESTSUITE_AT	= tests/testsuite.at \
 		  tests/lt_dlopen_a.at \
 		  tests/lt_dlopenext.at \
 		  tests/ltdl-api.at \
+		  tests/slist.at \
 		  tests/need_lib_prefix.at \
 		  tests/standalone.at \
 		  tests/subproject.at \
diff --git a/libltdl/libltdl/lt_dlloader.h b/libltdl/libltdl/lt_dlloader.h
index ae131fa..589fd0d 100644
--- a/libltdl/libltdl/lt_dlloader.h
+++ b/libltdl/libltdl/lt_dlloader.h
@@ -73,8 +73,8 @@ typedef struct {
 LT_SCOPE int		lt_dlloader_add	   (const lt_dlvtable *vtable);
 LT_SCOPE lt_dlloader	lt_dlloader_next   (const lt_dlloader loader);
 
-LT_SCOPE lt_dlvtable *	lt_dlloader_remove	(char *name);
-LT_SCOPE const lt_dlvtable *lt_dlloader_find	(char *name);
+LT_SCOPE lt_dlvtable *	lt_dlloader_remove	(const char *name);
+LT_SCOPE const lt_dlvtable *lt_dlloader_find	(const char *name);
 LT_SCOPE const lt_dlvtable *lt_dlloader_get	(lt_dlloader loader);
 
 
diff --git a/libltdl/libltdl/slist.h b/libltdl/libltdl/slist.h
index e4b7ead..4d56509 100644
--- a/libltdl/libltdl/slist.h
+++ b/libltdl/libltdl/slist.h
@@ -1,6 +1,6 @@
 /* slist.h -- generalised singly linked lists
 
-   Copyright (C) 2000, 2004 Free Software Foundation, Inc.
+   Copyright (C) 2000, 2004, 2009 Free Software Foundation, Inc.
    Written by Gary V. Vaughan, 2000
 
    NOTE: The canonical source of this file is maintained with the
@@ -48,6 +48,8 @@ or obtained by writing to the Free Software Foundation, Inc.,
 #  define LT_SCOPE
 #endif
 
+#include <stddef.h>
+
 #if defined(__cplusplus)
 extern "C" {
 #endif
@@ -65,7 +67,7 @@ LT_SCOPE SList *slist_concat	(SList *head, SList *tail);
 LT_SCOPE SList *slist_cons	(SList *item, SList *slist);
 
 LT_SCOPE SList *slist_delete	(SList *slist, void (*delete_fct) (void *item));
-LT_SCOPE void *	slist_remove	(SList **phead, SListCallback *find,
+LT_SCOPE SList *slist_remove	(SList **phead, SListCallback *find,
 				 void *matchdata);
 LT_SCOPE SList *slist_reverse	(SList *slist);
 LT_SCOPE SList *slist_sort	(SList *slist, SListCompare *compare,
diff --git a/libltdl/lt_dlloader.c b/libltdl/lt_dlloader.c
index 4e66a6c..2c99a22 100644
--- a/libltdl/lt_dlloader.c
+++ b/libltdl/lt_dlloader.c
@@ -150,7 +150,7 @@ lt_dlloader_get	(lt_dlloader loader)
    modules need this loader; in either case, the loader list is not
    changed if NULL is returned.  */
 lt_dlvtable *
-lt_dlloader_remove (char *name)
+lt_dlloader_remove (const char *name)
 {
   const lt_dlvtable *	vtable	= lt_dlloader_find (name);
   static const char	id_string[] = "lt_dlloader_remove";
@@ -199,12 +199,12 @@ lt_dlloader_remove (char *name)
 
   /* If we got this far, remove the loader from our global list.  */
   return (lt_dlvtable *)
-      slist_unbox ((SList *) slist_remove (&loaders, loader_callback, name));
+      slist_unbox ((SList *) slist_remove (&loaders, loader_callback, (void *) name));
 }
 
 
 const lt_dlvtable *
-lt_dlloader_find (char *name)
+lt_dlloader_find (const char *name)
 {
-  return lt_dlloader_get (slist_find (loaders, loader_callback, name));
+  return lt_dlloader_get (slist_find (loaders, loader_callback, (void *) name));
 }
diff --git a/libltdl/slist.c b/libltdl/slist.c
index c99f399..25906a4 100644
--- a/libltdl/slist.c
+++ b/libltdl/slist.c
@@ -1,6 +1,6 @@
 /* slist.c -- generalised singly linked lists
 
-   Copyright (C) 2000, 2004, 2007, 2008 Free Software Foundation, Inc.
+   Copyright (C) 2000, 2004, 2007, 2008, 2009 Free Software Foundation, Inc.
    Written by Gary V. Vaughan, 2000
 
    NOTE: The canonical source of this file is maintained with the
@@ -32,6 +32,7 @@ or obtained by writing to the Free Software Foundation, Inc.,
 
 #include "slist.h"
 #include <stddef.h>
+#include <stdlib.h>
 
 static SList *	slist_sort_merge    (SList *left, SList *right,
 				     SListCompare *compare, void *userdata);
@@ -73,7 +74,7 @@ slist_delete (SList *head, void (*delete_fct) (void *item))
            the stale item, you should probably return that from FIND if
 	   it makes a successful match.  Don't forget to slist_unbox()
 	   every item in a boxed list before operating on its contents.   */
-void *
+SList *
 slist_remove (SList **phead, SListCallback *find, void *matchdata)
 {
   SList *stale = 0;
@@ -107,7 +108,7 @@ slist_remove (SList **phead, SListCallback *find, void *matchdata)
 	}
     }
 
-  return result;
+  return (SList *) result;
 }
 
 /* Call FIND repeatedly with each element of SLIST and MATCHDATA, until
@@ -314,6 +315,9 @@ slist_sort (SList *slist, SListCompare *compare, void *userdata)
   left = slist;
   right = slist->next;
 
+  if (!right)
+    return left;
+
   /* Skip two items with RIGHT and one with SLIST, until RIGHT falls off
      the end.  SLIST must be about half way along.  */
   while (right && (right = right->next))
diff --git a/tests/slist.at b/tests/slist.at
new file mode 100644
index 0000000..741410c
--- /dev/null
+++ b/tests/slist.at
@@ -0,0 +1,168 @@
+# slist.at -- test slist.c                   -*- Autotest -*-
+#
+#   Copyright (C) 2009 Free Software Foundation, Inc.
+#
+#   This file is part of GNU Libtool.
+#
+# GNU Libtool is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of
+# the License, or (at your option) any later version.
+#
+# GNU Libtool is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GNU Libtool; see the file COPYING.  If not, a copy
+# can be downloaded from  http://www.gnu.org/licenses/gpl.html,
+# or obtained by writing to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+####
+
+AT_SETUP([SList functionality])
+
+AT_DATA([test-slist.c], [[
+#include <config.h>
+#include <stdlib.h>
+#include <string.h>
+#include <assert.h>
+#include <stdio.h>
+#include "slist.h"
+
+void *find_string (SList *item, void *data)
+{
+  if (data != NULL && !strcmp ((const char *) item->userdata, (const char *)data))
+    return item;
+  else
+    return NULL;
+}
+
+void boxed_delete (void *item)
+{
+  free (slist_unbox ((SList *) item));
+}
+
+void *print_item (SList *item, void *userdata)
+{
+  userdata = userdata; /* unused */
+  printf ("%s\n", (const char*)item->userdata);
+  return NULL;
+}
+
+int list_compare (const SList *item1, const SList *item2, void *userdata)
+{
+  userdata = userdata;
+  return strcmp ((const char *) item1->userdata, (const char *)item2->userdata);
+}
+
+int main ()
+{
+  int i;
+  SList *empty_list = NULL, *list = NULL, *item, *list_save;
+  char *data = NULL;
+
+  /* slist_cons */
+  list = slist_cons (NULL, NULL);
+
+  for (i=0; i < 10; ++i) {
+    data = (char *) malloc (42);
+    assert (data);
+    sprintf (data, "foo%d", i);
+    list = slist_cons (slist_box (data), list);
+  }
+  list_save = list;
+  list = slist_cons (NULL, list);
+  assert (list == list_save);
+
+
+  /* slist_find */
+  assert (slist_find (NULL, find_string, (void *) "whatever") == NULL);
+  assert (slist_find (empty_list, find_string, (void *) "whatever") == NULL);
+  assert (slist_find (list, find_string, (void *) "foo10") == NULL);
+  item = (SList *) slist_find (list, find_string, (void *) "foo1");
+  assert (item != NULL);
+  assert (!strcmp ((const char *) item->userdata, "foo1"));
+
+  item = slist_nth (list, 10);
+  assert (item != NULL && !strcmp ((const char *) item->userdata, "foo0"));
+
+  puts ("list as inserted:");
+  slist_foreach (list, print_item, NULL);
+  puts ("reversed list:");
+  list = slist_reverse (list);
+  slist_foreach (list, print_item, NULL);
+
+  item = slist_nth (list, 1);
+  assert (item != NULL && !strcmp ((const char *) item->userdata, "foo0"));
+
+  assert (10 == slist_length (list));
+
+  /* slist_tail is the second item, not the last one */
+  item = slist_tail (list);
+  assert (item != NULL && !strcmp ((const char *) item->userdata, "foo1"));
+
+  assert (slist_tail (slist_nth (list, 10)) == NULL);
+
+  /* slist_sort and implicitly, slist_sort_merge */
+  assert (slist_sort (NULL, list_compare, NULL) == NULL);
+  list = slist_sort (list, list_compare, NULL);
+  puts ("list after no-op sort:");
+  slist_foreach (list, print_item, NULL);
+
+  list = slist_reverse (list);
+  puts ("reversed list:");
+  slist_foreach (list, print_item, NULL);
+  puts ("sorting reversed list:");
+  list = slist_sort (list, list_compare, NULL);
+  slist_foreach (list, print_item, NULL);
+
+  /* slist_remove */
+  assert (slist_remove (NULL, find_string, NULL) == NULL);
+  assert (slist_remove (&empty_list, find_string, NULL) == NULL);
+
+  list_save = list;
+  assert (slist_remove (&list, find_string, NULL) == NULL);
+  assert (list_save == list);
+
+  /* remove entries: middle, last, first, not present */
+  /* slist_reverse above has left us with increasing order */
+  list_save = list;
+  item = slist_remove (&list, find_string, (void *) "foo5");
+  assert (list_save == list);
+  assert (item != NULL && !strcmp (data = (char *) slist_unbox (item), "foo5"));
+  free (data);
+
+  list_save = list;
+  item = slist_remove (&list, find_string, (void *) "foo9");
+  assert (list_save == list);
+  assert (item != NULL && !strcmp (data = (char *) slist_unbox (item), "foo9"));
+  free (data);
+
+  list_save = list;
+  item = slist_remove (&list, find_string, (void *) "foo0");
+  assert (list_save != list);
+  assert (item != NULL && !strcmp (data = (char *) slist_unbox (item), "foo0"));
+  free (data);
+
+  list_save = list;
+  item = slist_remove (&list, find_string, (void *) "foo5");
+  assert (list_save == list);
+  assert (item == NULL);
+
+  assert (slist_delete (list, boxed_delete) == NULL);
+  return 0;
+}
+]])
+
+CPPFLAGS="-I$top_srcdir/libltdl -I$top_srcdir/libltdl/libltdl -I$abs_top_builddir"
+AT_CHECK([$CC $CPPFLAGS $CFLAGS -c test-slist.c],
+	 [], [ignore], [ignore])
+AT_CHECK([$CC $CPPFLAGS $CFLAGS -c $top_srcdir/libltdl/slist.c],
+	 [], [ignore], [ignore])
+AT_CHECK([$CC $CFLAGS $LDFLAGS -o test-slist test-slist.$OBJEXT slist.$OBJEXT],
+	 [], [ignore], [ignore])
+LT_AT_EXEC_CHECK([./test-slist], [], [ignore], [ignore])
+
+AT_CLEANUP


hooks/post-receive
-- 
GNU Libtool



From MAILER-DAEMON Sat Dec 05 09:51:35 2009
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1NGvyx-0006ci-JY
	for mharc-libtool-commit@gnu.org; Sat, 05 Dec 2009 09:51:35 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1NGvyw-0006cR-5M
	for libtool-commit@gnu.org; Sat, 05 Dec 2009 09:51:34 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1NGvyu-0006cA-KN
	for libtool-commit@gnu.org; Sat, 05 Dec 2009 09:51:32 -0500
Received: from [199.232.76.173] (port=56577 helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1NGvyu-0006c7-FY
	for libtool-commit@gnu.org; Sat, 05 Dec 2009 09:51:32 -0500
Received: from savannah.gnu.org ([199.232.41.3]:45377 helo=sv.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32)
	(Exim 4.60) (envelope-from <INVALID.NOREPLY@gnu.org>)
	id 1NGvyu-0005Ra-4l
	for libtool-commit@gnu.org; Sat, 05 Dec 2009 09:51:32 -0500
Received: from [10.1.0.109] (helo=cvs.savannah.gnu.org)
	by sv.gnu.org with esmtp (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1NGvyt-0001ck-Dg
	for libtool-commit@gnu.org; Sat, 05 Dec 2009 14:51:31 +0000
Received: from rwild by cvs.savannah.gnu.org with local (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1NGvyt-0001cF-5N
	for libtool-commit@gnu.org; Sat, 05 Dec 2009 14:51:31 +0000
From: "Ralf Wildenhues" <Ralf.Wildenhues@gmx.de>
To: libtool-commit@gnu.org
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: c4e8bf31aaa471251092f5b89420bbd4701cb308
X-Git-Newrev: 31eb92de4f110fa633c1c9ced1c1e91a2b0b5303
Message-Id: <E1NGvyt-0001cF-5N@cvs.savannah.gnu.org>
Date: Sat, 05 Dec 2009 14:51:31 +0000
X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2)
Subject: [SCM] GNU Libtool branch, master, updated. v2.2.6-168-g31eb92d
X-BeenThere: libtool-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: CVS commit notices for the GNU libtool shared library maintenance
	tool <libtool-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/libtool-commit>,
	<mailto:libtool-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/libtool-commit>
List-Post: <mailto:libtool-commit@gnu.org>
List-Help: <mailto:libtool-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/libtool-commit>,
	<mailto:libtool-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 05 Dec 2009 14:51:34 -0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Libtool".

The branch, master has been updated
       via  31eb92de4f110fa633c1c9ced1c1e91a2b0b5303 (commit)
      from  c4e8bf31aaa471251092f5b89420bbd4701cb308 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 31eb92de4f110fa633c1c9ced1c1e91a2b0b5303
Author: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Date:   Wed Dec 2 23:01:56 2009 +0100

    Sane fallback initialization of $ECHO from $as_echo.
    
    * libltdl/config/general.m4sh: Use 'printf %s\n' if $as_echo is
    unset.
    * tests/testsuite.at: Likewise.
    * THANKS: Update.
    Report by Vadim Zeitlin and Peter Rosin.
    
    Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                   |    9 +++++++++
 THANKS                      |    1 +
 libltdl/config/general.m4sh |    2 +-
 tests/testsuite.at          |    1 +
 4 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 6e01e4a..ca5e947 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+	Sane fallback initialization of $ECHO from $as_echo.
+	* libltdl/config/general.m4sh: Use 'printf %s\n' if $as_echo is
+	unset.
+	* tests/testsuite.at: Likewise.
+	* THANKS: Update.
+	Report by Vadim Zeitlin and Peter Rosin.
+
 2009-12-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
 	lt_dlloader_remove and lt_dlloader_find accept const arguments.
diff --git a/THANKS b/THANKS
index c8acd67..110b514 100644
--- a/THANKS
+++ b/THANKS
@@ -170,6 +170,7 @@
   Tom Tromey			tromey@cygnus.com
   Tor Lillqvist			tml@iki.fi
   Ulrich Drepper		drepper@ipd.info.uni-karlsruhe.de
+  Vadim Zeitlin			vz-libtool@zeitlins.org
   Vincent Lefevre		vincent@vinc17.org
   Vincent Torri			vtorri@univ-evry.fr
   Xavier Pianet			xavier@xingo.com
diff --git a/libltdl/config/general.m4sh b/libltdl/config/general.m4sh
index fcf75e9..90722bc 100644
--- a/libltdl/config/general.m4sh
+++ b/libltdl/config/general.m4sh
@@ -45,7 +45,7 @@ progpath="$0"
 
 M4SH_VERBATIM([[
 : ${CP="cp -f"}
-: ${ECHO=$as_echo}
+test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'}
 : ${EGREP="@EGREP@"}
 : ${FGREP="@FGREP@"}
 : ${GREP="@GREP@"}
diff --git a/tests/testsuite.at b/tests/testsuite.at
index 34f7f21..7f9afe9 100644
--- a/tests/testsuite.at
+++ b/tests/testsuite.at
@@ -32,6 +32,7 @@ m4_divert_push([PREPARE_TESTS])dnl
 : ${AUTOCONF=autoconf}
 : ${AUTOMAKE=automake}
 : ${AUTORECONF=autoreconf}
+test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'}
 : ${ECHO=$as_echo}
 for tool in ACLOCAL AUTOHEADER AUTOCONF AUTOMAKE AUTORECONF; do
   if eval \$$tool --version >/dev/null 2>&1; then :; else eval $tool=no; fi


hooks/post-receive
-- 
GNU Libtool



From MAILER-DAEMON Wed Dec 09 01:34:55 2009
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1NIG8U-0002jl-K3
	for mharc-libtool-commit@gnu.org; Wed, 09 Dec 2009 01:34:54 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1NIG8S-0002hX-7s
	for libtool-commit@gnu.org; Wed, 09 Dec 2009 01:34:52 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1NIG8Q-0002ge-Vq
	for libtool-commit@gnu.org; Wed, 09 Dec 2009 01:34:51 -0500
Received: from [199.232.76.173] (port=44194 helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1NIG8Q-0002gF-Jh
	for libtool-commit@gnu.org; Wed, 09 Dec 2009 01:34:50 -0500
Received: from savannah.gnu.org ([199.232.41.3]:36848 helo=sv.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32)
	(Exim 4.60) (envelope-from <INVALID.NOREPLY@gnu.org>)
	id 1NIG8Q-0000cu-Ly
	for libtool-commit@gnu.org; Wed, 09 Dec 2009 01:34:50 -0500
Received: from [10.1.0.109] (helo=cvs.savannah.gnu.org)
	by sv.gnu.org with esmtp (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1NIG8P-0004Xm-Ba
	for libtool-commit@gnu.org; Wed, 09 Dec 2009 06:34:49 +0000
Received: from rwild by cvs.savannah.gnu.org with local (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1NIG8O-0004XD-GL
	for libtool-commit@gnu.org; Wed, 09 Dec 2009 06:34:49 +0000
From: "Ralf Wildenhues" <Ralf.Wildenhues@gmx.de>
To: libtool-commit@gnu.org
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 31eb92de4f110fa633c1c9ced1c1e91a2b0b5303
X-Git-Newrev: 93f5529731b91f4821d2c59888a51b936b266a4e
Message-Id: <E1NIG8O-0004XD-GL@cvs.savannah.gnu.org>
Date: Wed, 09 Dec 2009 06:34:48 +0000
X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2)
Subject: [SCM] GNU Libtool branch, master, updated. v2.2.6-169-g93f5529
X-BeenThere: libtool-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: CVS commit notices for the GNU libtool shared library maintenance
	tool <libtool-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/libtool-commit>,
	<mailto:libtool-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/libtool-commit>
List-Post: <mailto:libtool-commit@gnu.org>
List-Help: <mailto:libtool-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/libtool-commit>,
	<mailto:libtool-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 09 Dec 2009 06:34:52 -0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Libtool".

The branch, master has been updated
       via  93f5529731b91f4821d2c59888a51b936b266a4e (commit)
      from  31eb92de4f110fa633c1c9ced1c1e91a2b0b5303 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 93f5529731b91f4821d2c59888a51b936b266a4e
Author: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Date:   Wed Dec 9 07:28:59 2009 +0100

    Improve parsing of .la files in libltdl.
    
    * libltdl/ltdl.c (trim): Do not dump core upon missing quote in
    module .la file.
    * tests/lalib-syntax.at (syntax of .la files): New file, new
    test.
    * Makefile.am (TESTSUITE_AT): Add tests/lalib-syntax.at.
    Report by Bob Friesenhahn.
    
    Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                               |   10 +++
 Makefile.am                             |    1 +
 libltdl/ltdl.c                          |    2 +-
 tests/{lt_dlopen.at => lalib-syntax.at} |   96 +++++++++++++++++++------------
 4 files changed, 71 insertions(+), 38 deletions(-)
 copy tests/{lt_dlopen.at => lalib-syntax.at} (51%)

diff --git a/ChangeLog b/ChangeLog
index ca5e947..fd6ded0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2009-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+	Improve parsing of .la files in libltdl.
+	* libltdl/ltdl.c (trim): Do not dump core upon missing quote in
+	module .la file.
+	* tests/lalib-syntax.at (syntax of .la files): New file, new
+	test.
+	* Makefile.am (TESTSUITE_AT): Add tests/lalib-syntax.at.
+	Report by Bob Friesenhahn.
+
 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
 	Sane fallback initialization of $ECHO from $as_echo.
diff --git a/Makefile.am b/Makefile.am
index e5d55eb..5c570b5 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -484,6 +484,7 @@ TESTSUITE_AT	= tests/testsuite.at \
 		  tests/lt_dlopen_a.at \
 		  tests/lt_dlopenext.at \
 		  tests/ltdl-api.at \
+		  tests/lalib-syntax.at \
 		  tests/slist.at \
 		  tests/need_lib_prefix.at \
 		  tests/standalone.at \
diff --git a/libltdl/ltdl.c b/libltdl/ltdl.c
index e2accff..d180e30 100644
--- a/libltdl/ltdl.c
+++ b/libltdl/ltdl.c
@@ -994,7 +994,7 @@ trim (char **dest, const char *str)
 
   FREE (*dest);
 
-  if (!end)
+  if (!end || end == str)
     return 1;
 
   if (len > 3 && str[0] == '\'')
diff --git a/tests/lt_dlopen.at b/tests/lalib-syntax.at
similarity index 51%
copy from tests/lt_dlopen.at
copy to tests/lalib-syntax.at
index 0aae2f8..65d6b55 100644
--- a/tests/lt_dlopen.at
+++ b/tests/lalib-syntax.at
@@ -1,6 +1,7 @@
-# lt_dlopen.at -- test libltdl functionality                -*- Autotest -*-
+# lalib-syntax.at -- parsing .la files robustly  -*- Autotest -*-
 #
 #   Copyright (C) 2009 Free Software Foundation, Inc.
+#
 #   This file is part of GNU Libtool.
 #
 # GNU Libtool is free software; you can redistribute it and/or
@@ -20,16 +21,10 @@
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 ####
 
-AT_SETUP([lt_dlopen error messages])
+AT_SETUP([syntax of .la files])
+AT_KEYWORDS([libtool])
 AT_KEYWORDS([libltdl])
 
-# The bug is not fixed:
-AT_XFAIL_IF([:])
-
-# This test only works if the system allows undefined symbols.
-eval `$LIBTOOL --config | grep '^allow_undefined_flag='`
-AT_CHECK([test unsupported != "$allow_undefined_flag" || exit 77])
-
 AT_DATA([main.c],
 [[#include <ltdl.h>
 #include <stdio.h>
@@ -63,41 +58,68 @@ main (int argc, char* argv[])
 }
 ]])
 
-AT_DATA([good-plugin.c],
-[[int foo;
-int *i = &foo;
-]])
-
-AT_DATA([missing-symbol-plugin.c],
-[[/* On systems that allow undefined symbols, this will compile,
-     but the symbol "foo" won't be found at runtime */
-extern int foo;
-int *i = &foo;
+AT_DATA([module.c],
+[[int foo (void) { return 0; }
 ]])
 
 : ${LTDLINCL="-I$abs_top_srcdir/libltdl"}
 : ${LIBLTDL="$abs_builddir/../libltdl/libltdlc.la"}
-
-CPPFLAGS="$LTDLINCL $CPPFLAGS"
-inst=`pwd`/inst
-libdir=$inst/lib
+CPPFLAGS="$CPPFLAGS $LTDLINCL"
 
 AT_CHECK([$CC $CPPFLAGS $CFLAGS -c main.c], [], [ignore], [ignore])
-for file in good-plugin.c missing-symbol-plugin.c; do
-  AT_CHECK([$LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c $file],
-	   [], [ignore], [ignore])
-done
-AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o good-plugin.la -rpath $libdir ]dnl
-	 [-module -avoid-version good-plugin.lo], [], [ignore], [ignore])
-AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o missing-symbol-plugin.la -rpath $libdir]dnl
-	 [-module -avoid-version missing-symbol-plugin.lo], [], [ignore], [ignore])
-
-AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT ]dnl
-	 [-dlopen good-plugin.la -dlopen missing-symbol-plugin.la $LIBLTDL],
+AT_CHECK([$LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c module.c],
 	 [], [ignore], [ignore])
+AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o module.la module.lo ]dnl
+	 [-module -avoid-version -rpath /somewhere], [], [ignore], [ignore])
+AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main main.$OBJEXT $LIBLTDL],
+	 [], [ignore], [ignore])
+
 
-LT_AT_EXEC_CHECK([./main], [], [ignore], [ignore], [./good-plugin.la])
-LT_AT_EXEC_CHECK([./main], [1], [ignore], [stderr], [./missing-symbol-plugin.la])
-AT_CHECK([grep 'missing symbol' stderr], [], [ignore])
+# Several bogus test cases.
+
+AT_DATA([missing-closing-quote.la],
+[[# missing-closing-quote.la - a libtool library file
+# Generated by libtool
+dlname='module.so
+library_names='module.so module.so module.so'
+old_library='module.a'
+installed=no
+shouldnotlink=yes
+libdir='/somewhere'
+]])
+
+AT_DATA([wrong-quotes.la],
+[[# wrong-quotes.la - a libtool library file
+# Generated by libtool
+dlname="module.so"
+library_names='module.so module.so module.so'
+old_library='module.a'
+installed=no
+shouldnotlink=yes
+libdir='/somewhere'
+]])
+
+AT_DATA([no-dlname.la],
+[[# no-dlname.la - a libtool library file
+# Generated by libtool
+installed=no
+shouldnotlink=yes
+libdir='/somewhere'
+]])
+
+AT_DATA([nonexistent-dlname.la],
+[[# nonexistent-dlname.la - a libtool library file
+# Generated by libtool
+dlname='does-not-exist.so'
+installed=no
+shouldnotlink=yes
+libdir='/somewhere'
+]])
+
+for file in ./missing-closing-quote.la ./wrong-quotes.la \
+	    ./no-dlname.la ./nonexistent-dlname.la; do
+  LT_AT_EXEC_CHECK([./main], [1], [stdout], [ignore], [$file])
+  AT_CHECK([grep 'plugin failed to open' stdout], [], [ignore])
+done
 
 AT_CLEANUP


hooks/post-receive
-- 
GNU Libtool



From MAILER-DAEMON Sat Dec 12 03:01:45 2009
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1NJMvA-0001xp-V8
	for mharc-libtool-commit@gnu.org; Sat, 12 Dec 2009 03:01:45 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1NJMv9-0001wZ-KM
	for libtool-commit@gnu.org; Sat, 12 Dec 2009 03:01:43 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1NJMv8-0001w8-Uy
	for libtool-commit@gnu.org; Sat, 12 Dec 2009 03:01:43 -0500
Received: from [199.232.76.173] (port=36813 helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1NJMv8-0001w5-PY
	for libtool-commit@gnu.org; Sat, 12 Dec 2009 03:01:42 -0500
Received: from savannah.gnu.org ([199.232.41.3]:57737 helo=sv.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32)
	(Exim 4.60) (envelope-from <INVALID.NOREPLY@gnu.org>)
	id 1NJMv8-0001X1-Bp
	for libtool-commit@gnu.org; Sat, 12 Dec 2009 03:01:42 -0500
Received: from [10.1.0.109] (helo=cvs.savannah.gnu.org)
	by sv.gnu.org with esmtp (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1NJMv7-0007MC-Ir
	for libtool-commit@gnu.org; Sat, 12 Dec 2009 08:01:41 +0000
Received: from rwild by cvs.savannah.gnu.org with local (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1NJMv7-0007Lh-5H
	for libtool-commit@gnu.org; Sat, 12 Dec 2009 08:01:41 +0000
From: "Ralf Wildenhues" <Ralf.Wildenhues@gmx.de>
To: libtool-commit@gnu.org
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 93f5529731b91f4821d2c59888a51b936b266a4e
X-Git-Newrev: 7ce92b0b9b7a28db5d0eac91fd72fee41238206f
Message-Id: <E1NJMv7-0007Lh-5H@cvs.savannah.gnu.org>
Date: Sat, 12 Dec 2009 08:01:41 +0000
X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2)
Subject: [SCM] GNU Libtool branch, master, updated. v2.2.6-170-g7ce92b0
X-BeenThere: libtool-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: CVS commit notices for the GNU libtool shared library maintenance
	tool <libtool-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/libtool-commit>,
	<mailto:libtool-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/libtool-commit>
List-Post: <mailto:libtool-commit@gnu.org>
List-Help: <mailto:libtool-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/libtool-commit>,
	<mailto:libtool-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 12 Dec 2009 08:01:43 -0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Libtool".

The branch, master has been updated
       via  7ce92b0b9b7a28db5d0eac91fd72fee41238206f (commit)
      from  93f5529731b91f4821d2c59888a51b936b266a4e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 7ce92b0b9b7a28db5d0eac91fd72fee41238206f
Author: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Date:   Sat Dec 12 08:51:02 2009 +0100

    Replace last __oline__ instance.
    
    * libltdl/m4/libtool.m4 (_LT_TRY_DLOPEN_SELF): Replace last
    __oline__ instance with $LINENO.
    
    Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog             |    6 ++++++
 libltdl/m4/libtool.m4 |    2 +-
 2 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index fd6ded0..75a5919 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-12-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+	Replace last __oline__ instance.
+	* libltdl/m4/libtool.m4 (_LT_TRY_DLOPEN_SELF): Replace last
+	__oline__ instance with $LINENO.
+
 2009-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
 	Improve parsing of .la files in libltdl.
diff --git a/libltdl/m4/libtool.m4 b/libltdl/m4/libtool.m4
index 9abd147..cd8afce 100644
--- a/libltdl/m4/libtool.m4
+++ b/libltdl/m4/libtool.m4
@@ -1610,7 +1610,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-[#line __oline__ "configure"
+[#line $LINENO "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H


hooks/post-receive
-- 
GNU Libtool



From MAILER-DAEMON Tue Dec 29 14:45:16 2009
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1NPi0J-0006ir-Tl
	for mharc-libtool-commit@gnu.org; Tue, 29 Dec 2009 14:45:15 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1NPi0I-0006ie-A6
	for libtool-commit@gnu.org; Tue, 29 Dec 2009 14:45:14 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1NPi0G-0006iK-DJ
	for libtool-commit@gnu.org; Tue, 29 Dec 2009 14:45:12 -0500
Received: from [199.232.76.173] (port=35069 helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1NPi0G-0006iH-6K
	for libtool-commit@gnu.org; Tue, 29 Dec 2009 14:45:12 -0500
Received: from savannah.gnu.org ([199.232.41.3]:57922 helo=sv.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32)
	(Exim 4.60) (envelope-from <INVALID.NOREPLY@gnu.org>)
	id 1NPi0G-0002Gs-0X
	for libtool-commit@gnu.org; Tue, 29 Dec 2009 14:45:12 -0500
Received: from [10.1.0.109] (helo=cvs.savannah.gnu.org)
	by sv.gnu.org with esmtp (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1NPi0F-0006EW-2r
	for libtool-commit@gnu.org; Tue, 29 Dec 2009 19:45:11 +0000
Received: from pekberg by cvs.savannah.gnu.org with local (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1NPi0E-0006Dy-In
	for libtool-commit@gnu.org; Tue, 29 Dec 2009 19:45:10 +0000
From: "Peter Rosin" <peda@lysator.liu.se>
To: libtool-commit@gnu.org
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 7ce92b0b9b7a28db5d0eac91fd72fee41238206f
X-Git-Newrev: a2a8d8a663e6f9309843c4163467d5d63a4ec00d
Message-Id: <E1NPi0E-0006Dy-In@cvs.savannah.gnu.org>
Date: Tue, 29 Dec 2009 19:45:10 +0000
X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2)
Subject: [SCM] GNU Libtool branch, master, updated. v2.2.6-171-ga2a8d8a
X-BeenThere: libtool-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: CVS commit notices for the GNU libtool shared library maintenance
	tool <libtool-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/libtool-commit>,
	<mailto:libtool-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/libtool-commit>
List-Post: <mailto:libtool-commit@gnu.org>
List-Help: <mailto:libtool-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/libtool-commit>,
	<mailto:libtool-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 29 Dec 2009 19:45:14 -0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Libtool".

The branch, master has been updated
       via  a2a8d8a663e6f9309843c4163467d5d63a4ec00d (commit)
      from  7ce92b0b9b7a28db5d0eac91fd72fee41238206f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit a2a8d8a663e6f9309843c4163467d5d63a4ec00d
Author: Peter Rosin <peda@lysator.liu.se>
Date:   Tue Dec 29 19:00:58 2009 +0100

    * libltdl/ltdl.c (file_not_found): Fix typos in code comment.
    
    Signed-off-by: Peter Rosin <peda@lysator.liu.se>

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog      |    4 ++++
 libltdl/ltdl.c |    2 +-
 2 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 75a5919..01bf201 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-12-29  Peter Rosin  <peda@lysator.liu.se>
+
+	* libltdl/ltdl.c (file_not_found): Fix typos in code comment.
+
 2009-12-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
 	Replace last __oline__ instance.
diff --git a/libltdl/ltdl.c b/libltdl/ltdl.c
index d180e30..e4569b0 100644
--- a/libltdl/ltdl.c
+++ b/libltdl/ltdl.c
@@ -1487,7 +1487,7 @@ try_dlopen (lt_dlhandle *phandle, const char *filename, const char *ext,
 }
 
 
-/* If the last error messge store was `FILE_NOT_FOUND', then return
+/* If the last error message stored was `FILE_NOT_FOUND', then return
    non-zero.  */
 static int
 file_not_found (void)


hooks/post-receive
-- 
GNU Libtool



From MAILER-DAEMON Tue Dec 29 21:25:28 2009
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1NPoFc-0005Mm-My
	for mharc-libtool-commit@gnu.org; Tue, 29 Dec 2009 21:25:28 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1NPoFa-0005La-SV
	for libtool-commit@gnu.org; Tue, 29 Dec 2009 21:25:26 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1NPoFa-0005LJ-AW
	for libtool-commit@gnu.org; Tue, 29 Dec 2009 21:25:26 -0500
Received: from [199.232.76.173] (port=37599 helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1NPoFa-0005LC-6j
	for libtool-commit@gnu.org; Tue, 29 Dec 2009 21:25:26 -0500
Received: from savannah.gnu.org ([199.232.41.3]:43407 helo=sv.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32)
	(Exim 4.60) (envelope-from <INVALID.NOREPLY@gnu.org>)
	id 1NPoFZ-0002De-CT
	for libtool-commit@gnu.org; Tue, 29 Dec 2009 21:25:25 -0500
Received: from [10.1.0.109] (helo=cvs.savannah.gnu.org)
	by sv.gnu.org with esmtp (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1NPoFY-0003Ve-D0
	for libtool-commit@gnu.org; Wed, 30 Dec 2009 02:25:24 +0000
Received: from pekberg by cvs.savannah.gnu.org with local (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1NPoFX-0003V5-SY
	for libtool-commit@gnu.org; Wed, 30 Dec 2009 02:25:24 +0000
From: "Peter Rosin" <peda@lysator.liu.se>
To: libtool-commit@gnu.org
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: a2a8d8a663e6f9309843c4163467d5d63a4ec00d
X-Git-Newrev: 78f270a9ab4b56dc9c09020282e77a3b861099a1
Message-Id: <E1NPoFX-0003V5-SY@cvs.savannah.gnu.org>
Date: Wed, 30 Dec 2009 02:25:23 +0000
X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2)
Subject: [SCM] GNU Libtool branch, master, updated. v2.2.6-172-g78f270a
X-BeenThere: libtool-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: CVS commit notices for the GNU libtool shared library maintenance
	tool <libtool-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/libtool-commit>,
	<mailto:libtool-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/libtool-commit>
List-Post: <mailto:libtool-commit@gnu.org>
List-Help: <mailto:libtool-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/libtool-commit>,
	<mailto:libtool-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 30 Dec 2009 02:25:27 -0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Libtool".

The branch, master has been updated
       via  78f270a9ab4b56dc9c09020282e77a3b861099a1 (commit)
      from  a2a8d8a663e6f9309843c4163467d5d63a4ec00d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 78f270a9ab4b56dc9c09020282e77a3b861099a1
Author: Peter Rosin <peda@lysator.liu.se>
Date:   Wed Dec 30 03:18:19 2009 +0100

    * libltdl/ltdl.c (lt_dlerror): Remove meaningless conditional.
    
    Signed-off-by: Peter Rosin <peda@lysator.liu.se>

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog      |    4 ++++
 libltdl/ltdl.c |    2 +-
 2 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 01bf201..6c07b7f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-12-30  Peter Rosin  <peda@lysator.liu.se>
+
+	* libltdl/ltdl.c (lt_dlerror): Remove meaningless conditional.
+
 2009-12-29  Peter Rosin  <peda@lysator.liu.se>
 
 	* libltdl/ltdl.c (file_not_found): Fix typos in code comment.
diff --git a/libltdl/ltdl.c b/libltdl/ltdl.c
index e4569b0..1fe272f 100644
--- a/libltdl/ltdl.c
+++ b/libltdl/ltdl.c
@@ -2066,7 +2066,7 @@ lt_dlerror (void)
   LT__GETERROR (error);
   LT__SETERRORSTR (0);
 
-  return error ? error : NULL;
+  return error;
 }
 
 static int


hooks/post-receive
-- 
GNU Libtool



