--- parser3/src/lib/ltdl/slist.c 2012/06/09 13:07:11 1.1 +++ parser3/src/lib/ltdl/slist.c 2026/09/27 13:14:21 1.2 @@ -1,6 +1,7 @@ /* slist.c -- generalised singly linked lists - Copyright (C) 2000, 2004, 2007, 2008, 2009 Free Software Foundation, Inc. + Copyright (C) 2000, 2004, 2007-2009, 2011-2019, 2021-2024 Free + Software Foundation, Inc. Written by Gary V. Vaughan, 2000 NOTE: The canonical source of this file is maintained with the @@ -22,16 +23,12 @@ MERCHANTABILITY or FITNESS FOR A PARTICU GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public -License along with GNU Libltdl; see the file COPYING.LIB. If not, a -copy can be downloaded from http://www.gnu.org/licenses/lgpl.html, -or obtained by writing to the Free Software Foundation, Inc., -51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +License along with GNU Libltdl. If not, see . */ #include #include "slist.h" -#include #include static SList * slist_sort_merge (SList *left, SList *right, @@ -230,7 +227,7 @@ slist_reverse (SList *slist) next = slist->next; slist->next = result; result = slist; - slist = next; + slist = next; } return result; @@ -345,7 +342,7 @@ slist_sort (SList *slist, SListCompare * used for the boxes. It us usually a very bad idea to mix boxed and non-boxed items in a single list. */ -/* Return a `boxed' freshly mallocated 1 element list containing +/* Return a 'boxed' freshly mallocated 1 element list containing USERDATA. */ SList * slist_box (const void *userdata) @@ -361,7 +358,7 @@ slist_box (const void *userdata) return item; } -/* Return the contents of a `boxed' ITEM, recycling the box itself. */ +/* Return the contents of a 'boxed' ITEM, recycling the box itself. */ void * slist_unbox (SList *item) {