1
/***********************************************************************/
5
/* Contributed by Sylvain Le Gall for Lexifi */
7
/* Copyright 2008 Institut National de Recherche en Informatique et */
8
/* en Automatique. All rights reserved. This file is distributed */
9
/* under the terms of the GNU Library General Public License, with */
10
/* the special exception on linking described in file ../../LICENSE. */
12
/***********************************************************************/
14
/* $Id: winlist.c,v 1.2 2008/07/31 12:09:18 xleroy Exp $ */
16
/* Basic list function in C. */
21
void list_init (LPLIST lst)
26
void list_cleanup (LPLIST lst)
31
void list_next_set (LPLIST lst, LPLIST next)
36
LPLIST list_next (LPLIST lst)
41
int list_length (LPLIST lst)
48
iter = list_next(iter);
53
LPLIST list_concat (LPLIST lsta, LPLIST lstb)
57
LPLIST iterPrev = NULL;
63
else if (lstb == NULL)
74
iter = list_next(iter);
76
iterPrev->lpNext = lstb;