diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2000-09-14 13:32:11 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2000-09-14 13:32:11 +0000 |
commit | 28df6ffac43fe362569ebdb390fe1e7dd994c877 (patch) | |
tree | 306f06672ccb6c8ba9c67d1b19544e6b70551f16 /usr.bin/make/lst.lib | |
parent | 912ebd4a27f63943fb63420edfac122743be32ca (diff) |
Some systematic clean-up.
- UNUSED macro that expands to __attribute__((unused)) for gcc
- move rcsid around so that they can be tagged UNUSED.
- activate -Wunused.
- use UNUSED instead of kludgy junk for function arguments.
- add extern to all extern prototypes.
- update comments in lst.h.
- clean up var.c a little bit, constifying arguments, updating comments...
Diffstat (limited to 'usr.bin/make/lst.lib')
-rw-r--r-- | usr.bin/make/lst.lib/lstAppend.c | 17 | ||||
-rw-r--r-- | usr.bin/make/lst.lib/lstAtEnd.c | 17 | ||||
-rw-r--r-- | usr.bin/make/lst.lib/lstAtFront.c | 17 | ||||
-rw-r--r-- | usr.bin/make/lst.lib/lstClose.c | 19 | ||||
-rw-r--r-- | usr.bin/make/lst.lib/lstConcat.c | 17 | ||||
-rw-r--r-- | usr.bin/make/lst.lib/lstConcatDestroy.c | 22 | ||||
-rw-r--r-- | usr.bin/make/lst.lib/lstDeQueue.c | 17 | ||||
-rw-r--r-- | usr.bin/make/lst.lib/lstDestroy.c | 17 | ||||
-rw-r--r-- | usr.bin/make/lst.lib/lstDupl.c | 19 | ||||
-rw-r--r-- | usr.bin/make/lst.lib/lstEnQueue.c | 17 | ||||
-rw-r--r-- | usr.bin/make/lst.lib/lstFindFrom.c | 17 | ||||
-rw-r--r-- | usr.bin/make/lst.lib/lstForEachFrom.c | 19 | ||||
-rw-r--r-- | usr.bin/make/lst.lib/lstInit.c | 17 | ||||
-rw-r--r-- | usr.bin/make/lst.lib/lstInsert.c | 17 | ||||
-rw-r--r-- | usr.bin/make/lst.lib/lstIsAtEnd.c | 19 | ||||
-rw-r--r-- | usr.bin/make/lst.lib/lstIsEmpty.c | 17 | ||||
-rw-r--r-- | usr.bin/make/lst.lib/lstMember.c | 17 | ||||
-rw-r--r-- | usr.bin/make/lst.lib/lstNext.c | 19 | ||||
-rw-r--r-- | usr.bin/make/lst.lib/lstOpen.c | 19 | ||||
-rw-r--r-- | usr.bin/make/lst.lib/lstRemove.c | 17 | ||||
-rw-r--r-- | usr.bin/make/lst.lib/lstReplace.c | 17 | ||||
-rw-r--r-- | usr.bin/make/lst.lib/lstSucc.c | 17 |
22 files changed, 204 insertions, 187 deletions
diff --git a/usr.bin/make/lst.lib/lstAppend.c b/usr.bin/make/lst.lib/lstAppend.c index cc4a494fcb3..f0ecb75dc19 100644 --- a/usr.bin/make/lst.lib/lstAppend.c +++ b/usr.bin/make/lst.lib/lstAppend.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lstAppend.c,v 1.10 2000/06/17 14:43:38 espie Exp $ */ +/* $OpenBSD: lstAppend.c,v 1.11 2000/09/14 13:32:08 espie Exp $ */ /* $NetBSD: lstAppend.c,v 1.5 1996/11/06 17:59:31 christos Exp $ */ /* @@ -37,20 +37,21 @@ * SUCH DAMAGE. */ +/*- + * LstAppend.c -- + * Add a new node with a new datum after an existing node + */ + +#include "lstInt.h" #ifndef lint #if 0 static char sccsid[] = "@(#)lstAppend.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: lstAppend.c,v 1.10 2000/06/17 14:43:38 espie Exp $"; +UNUSED +static char rcsid[] = "$OpenBSD: lstAppend.c,v 1.11 2000/09/14 13:32:08 espie Exp $"; #endif #endif /* not lint */ -/*- - * LstAppend.c -- - * Add a new node with a new datum after an existing node - */ - -#include "lstInt.h" /*- *----------------------------------------------------------------------- diff --git a/usr.bin/make/lst.lib/lstAtEnd.c b/usr.bin/make/lst.lib/lstAtEnd.c index 63684eb27b7..45b39a49a7c 100644 --- a/usr.bin/make/lst.lib/lstAtEnd.c +++ b/usr.bin/make/lst.lib/lstAtEnd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lstAtEnd.c,v 1.6 2000/06/10 01:41:06 espie Exp $ */ +/* $OpenBSD: lstAtEnd.c,v 1.7 2000/09/14 13:32:08 espie Exp $ */ /* $NetBSD: lstAtEnd.c,v 1.5 1996/11/06 17:59:32 christos Exp $ */ /* @@ -37,20 +37,21 @@ * SUCH DAMAGE. */ +/*- + * LstAtEnd.c -- + * Add a node at the end of the list + */ + +#include "lstInt.h" #ifndef lint #if 0 static char sccsid[] = "@(#)lstAtEnd.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: lstAtEnd.c,v 1.6 2000/06/10 01:41:06 espie Exp $"; +UNUSED +static char rcsid[] = "$OpenBSD: lstAtEnd.c,v 1.7 2000/09/14 13:32:08 espie Exp $"; #endif #endif /* not lint */ -/*- - * LstAtEnd.c -- - * Add a node at the end of the list - */ - -#include "lstInt.h" /*- *----------------------------------------------------------------------- diff --git a/usr.bin/make/lst.lib/lstAtFront.c b/usr.bin/make/lst.lib/lstAtFront.c index 51b3860bcf6..070bea0e9ff 100644 --- a/usr.bin/make/lst.lib/lstAtFront.c +++ b/usr.bin/make/lst.lib/lstAtFront.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lstAtFront.c,v 1.6 2000/06/10 01:41:06 espie Exp $ */ +/* $OpenBSD: lstAtFront.c,v 1.7 2000/09/14 13:32:08 espie Exp $ */ /* $NetBSD: lstAtFront.c,v 1.5 1996/11/06 17:59:33 christos Exp $ */ /* @@ -37,20 +37,21 @@ * SUCH DAMAGE. */ +/*- + * LstAtFront.c -- + * Add a node at the front of the list + */ + +#include "lstInt.h" #ifndef lint #if 0 static char sccsid[] = "@(#)lstAtFront.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: lstAtFront.c,v 1.6 2000/06/10 01:41:06 espie Exp $"; +UNUSED +static char rcsid[] = "$OpenBSD: lstAtFront.c,v 1.7 2000/09/14 13:32:08 espie Exp $"; #endif #endif /* not lint */ -/*- - * LstAtFront.c -- - * Add a node at the front of the list - */ - -#include "lstInt.h" /*- *----------------------------------------------------------------------- diff --git a/usr.bin/make/lst.lib/lstClose.c b/usr.bin/make/lst.lib/lstClose.c index 9c804260a88..05fc360bb77 100644 --- a/usr.bin/make/lst.lib/lstClose.c +++ b/usr.bin/make/lst.lib/lstClose.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lstClose.c,v 1.6 2000/06/17 14:43:38 espie Exp $ */ +/* $OpenBSD: lstClose.c,v 1.7 2000/09/14 13:32:08 espie Exp $ */ /* $NetBSD: lstClose.c,v 1.5 1996/11/06 17:59:34 christos Exp $ */ /* @@ -37,14 +37,6 @@ * SUCH DAMAGE. */ -#ifndef lint -#if 0 -static char sccsid[] = "@(#)lstClose.c 8.1 (Berkeley) 6/6/93"; -#else -static char rcsid[] = "$OpenBSD: lstClose.c,v 1.6 2000/06/17 14:43:38 espie Exp $"; -#endif -#endif /* not lint */ - /*- * LstClose.c -- * Close a list for sequential access. @@ -56,6 +48,15 @@ static char rcsid[] = "$OpenBSD: lstClose.c,v 1.6 2000/06/17 14:43:38 espie Exp */ #include "lstInt.h" +#ifndef lint +#if 0 +static char sccsid[] = "@(#)lstClose.c 8.1 (Berkeley) 6/6/93"; +#else +UNUSED +static char rcsid[] = "$OpenBSD: lstClose.c,v 1.7 2000/09/14 13:32:08 espie Exp $"; +#endif +#endif /* not lint */ + /*- *----------------------------------------------------------------------- diff --git a/usr.bin/make/lst.lib/lstConcat.c b/usr.bin/make/lst.lib/lstConcat.c index bde8253bc84..15618b47f81 100644 --- a/usr.bin/make/lst.lib/lstConcat.c +++ b/usr.bin/make/lst.lib/lstConcat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lstConcat.c,v 1.10 2000/06/17 14:43:38 espie Exp $ */ +/* $OpenBSD: lstConcat.c,v 1.11 2000/09/14 13:32:08 espie Exp $ */ /* $NetBSD: lstConcat.c,v 1.6 1996/11/06 17:59:34 christos Exp $ */ /* @@ -37,20 +37,21 @@ * SUCH DAMAGE. */ +/*- + * listConcat.c -- + * Function to concatentate two lists. + */ + +#include "lstInt.h" #ifndef lint #if 0 static char sccsid[] = "@(#)lstConcat.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: lstConcat.c,v 1.10 2000/06/17 14:43:38 espie Exp $"; +UNUSED +static char rcsid[] = "$OpenBSD: lstConcat.c,v 1.11 2000/09/14 13:32:08 espie Exp $"; #endif #endif /* not lint */ -/*- - * listConcat.c -- - * Function to concatentate two lists. - */ - -#include "lstInt.h" /*- *----------------------------------------------------------------------- diff --git a/usr.bin/make/lst.lib/lstConcatDestroy.c b/usr.bin/make/lst.lib/lstConcatDestroy.c index 5f53abd51d1..b45df54a8c3 100644 --- a/usr.bin/make/lst.lib/lstConcatDestroy.c +++ b/usr.bin/make/lst.lib/lstConcatDestroy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lstConcatDestroy.c,v 1.1 2000/06/17 14:44:26 espie Exp $ */ +/* $OpenBSD: lstConcatDestroy.c,v 1.2 2000/09/14 13:32:08 espie Exp $ */ /* $NetBSD: lstConcat.c,v 1.6 1996/11/06 17:59:34 christos Exp $ */ /* @@ -37,20 +37,21 @@ * SUCH DAMAGE. */ +/*- + * listConcatDestroy.c -- + * Function to concatentate two lists. + */ + +#include "lstInt.h" #ifndef lint #if 0 static char sccsid[] = "@(#)lstConcat.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: lstConcatDestroy.c,v 1.1 2000/06/17 14:44:26 espie Exp $"; +UNUSED +static char rcsid[] = "$OpenBSD: lstConcatDestroy.c,v 1.2 2000/09/14 13:32:08 espie Exp $"; #endif #endif /* not lint */ -/*- - * listConcatDestroy.c -- - * Function to concatentate two lists. - */ - -#include "lstInt.h" /*- *----------------------------------------------------------------------- @@ -72,11 +73,6 @@ Lst_ConcatDestroy(l1, l2) Lst l1; /* The list to which l2 is to be appended */ Lst l2; /* The list to append to l1 */ { - LstNode ln; /* original LstNode */ - LstNode nln; /* new LstNode */ - LstNode last; /* the last element in the list. Keeps - * bookkeeping until the end */ - if (l2->firstPtr != NULL) { /* * We set the nextPtr of the diff --git a/usr.bin/make/lst.lib/lstDeQueue.c b/usr.bin/make/lst.lib/lstDeQueue.c index 1389c411bb6..3c09db5e7dc 100644 --- a/usr.bin/make/lst.lib/lstDeQueue.c +++ b/usr.bin/make/lst.lib/lstDeQueue.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lstDeQueue.c,v 1.9 2000/06/17 14:34:07 espie Exp $ */ +/* $OpenBSD: lstDeQueue.c,v 1.10 2000/09/14 13:32:09 espie Exp $ */ /* $NetBSD: lstDeQueue.c,v 1.5 1996/11/06 17:59:36 christos Exp $ */ /* @@ -37,20 +37,21 @@ * SUCH DAMAGE. */ +/*- + * LstDeQueue.c -- + * Remove the node and return its datum from the head of the list + */ + +#include "lstInt.h" #ifndef lint #if 0 static char sccsid[] = "@(#)lstDeQueue.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: lstDeQueue.c,v 1.9 2000/06/17 14:34:07 espie Exp $"; +UNUSED +static char rcsid[] = "$OpenBSD: lstDeQueue.c,v 1.10 2000/09/14 13:32:09 espie Exp $"; #endif #endif /* not lint */ -/*- - * LstDeQueue.c -- - * Remove the node and return its datum from the head of the list - */ - -#include "lstInt.h" /*- *----------------------------------------------------------------------- diff --git a/usr.bin/make/lst.lib/lstDestroy.c b/usr.bin/make/lst.lib/lstDestroy.c index d7fea7f449f..cae5dbed8f8 100644 --- a/usr.bin/make/lst.lib/lstDestroy.c +++ b/usr.bin/make/lst.lib/lstDestroy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lstDestroy.c,v 1.10 2000/06/17 14:43:38 espie Exp $ */ +/* $OpenBSD: lstDestroy.c,v 1.11 2000/09/14 13:32:09 espie Exp $ */ /* $NetBSD: lstDestroy.c,v 1.6 1996/11/06 17:59:37 christos Exp $ */ /* @@ -37,20 +37,21 @@ * SUCH DAMAGE. */ +/*- + * LstDestroy.c -- + * Nuke a list and all its resources + */ + +#include "lstInt.h" #ifndef lint #if 0 static char sccsid[] = "@(#)lstDestroy.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: lstDestroy.c,v 1.10 2000/06/17 14:43:38 espie Exp $"; +UNUSED +static char rcsid[] = "$OpenBSD: lstDestroy.c,v 1.11 2000/09/14 13:32:09 espie Exp $"; #endif #endif /* not lint */ -/*- - * LstDestroy.c -- - * Nuke a list and all its resources - */ - -#include "lstInt.h" /*- *----------------------------------------------------------------------- diff --git a/usr.bin/make/lst.lib/lstDupl.c b/usr.bin/make/lst.lib/lstDupl.c index 049354662f0..d8e28c0915a 100644 --- a/usr.bin/make/lst.lib/lstDupl.c +++ b/usr.bin/make/lst.lib/lstDupl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lstDupl.c,v 1.12 2000/06/17 14:43:39 espie Exp $ */ +/* $OpenBSD: lstDupl.c,v 1.13 2000/09/14 13:32:09 espie Exp $ */ /* $NetBSD: lstDupl.c,v 1.6 1996/11/06 17:59:37 christos Exp $ */ /* @@ -37,14 +37,6 @@ * SUCH DAMAGE. */ -#ifndef lint -#if 0 -static char sccsid[] = "@(#)lstDupl.c 8.1 (Berkeley) 6/6/93"; -#else -static char rcsid[] = "$OpenBSD: lstDupl.c,v 1.12 2000/06/17 14:43:39 espie Exp $"; -#endif -#endif /* not lint */ - /*- * listDupl.c -- * Duplicate a list. This includes duplicating the individual @@ -52,6 +44,15 @@ static char rcsid[] = "$OpenBSD: lstDupl.c,v 1.12 2000/06/17 14:43:39 espie Exp */ #include "lstInt.h" +#ifndef lint +#if 0 +static char sccsid[] = "@(#)lstDupl.c 8.1 (Berkeley) 6/6/93"; +#else +UNUSED +static char rcsid[] = "$OpenBSD: lstDupl.c,v 1.13 2000/09/14 13:32:09 espie Exp $"; +#endif +#endif /* not lint */ + /*- *----------------------------------------------------------------------- diff --git a/usr.bin/make/lst.lib/lstEnQueue.c b/usr.bin/make/lst.lib/lstEnQueue.c index 6432c9b76ca..5cd86f1147c 100644 --- a/usr.bin/make/lst.lib/lstEnQueue.c +++ b/usr.bin/make/lst.lib/lstEnQueue.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lstEnQueue.c,v 1.7 2000/06/17 14:43:39 espie Exp $ */ +/* $OpenBSD: lstEnQueue.c,v 1.8 2000/09/14 13:32:09 espie Exp $ */ /* $NetBSD: lstEnQueue.c,v 1.5 1996/11/06 17:59:38 christos Exp $ */ /* @@ -37,20 +37,21 @@ * SUCH DAMAGE. */ +/*- + * LstEnQueue.c-- + * Treat the list as a queue and place a datum at its end + */ + +#include "lstInt.h" #ifndef lint #if 0 static char sccsid[] = "@(#)lstEnQueue.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: lstEnQueue.c,v 1.7 2000/06/17 14:43:39 espie Exp $"; +UNUSED +static char rcsid[] = "$OpenBSD: lstEnQueue.c,v 1.8 2000/09/14 13:32:09 espie Exp $"; #endif #endif /* not lint */ -/*- - * LstEnQueue.c-- - * Treat the list as a queue and place a datum at its end - */ - -#include "lstInt.h" /*- *----------------------------------------------------------------------- diff --git a/usr.bin/make/lst.lib/lstFindFrom.c b/usr.bin/make/lst.lib/lstFindFrom.c index e54c46ae6ce..680257061e5 100644 --- a/usr.bin/make/lst.lib/lstFindFrom.c +++ b/usr.bin/make/lst.lib/lstFindFrom.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lstFindFrom.c,v 1.8 2000/06/17 14:34:07 espie Exp $ */ +/* $OpenBSD: lstFindFrom.c,v 1.9 2000/09/14 13:32:09 espie Exp $ */ /* $NetBSD: lstFindFrom.c,v 1.6 1996/11/06 17:59:40 christos Exp $ */ /* @@ -37,20 +37,21 @@ * SUCH DAMAGE. */ +/*- + * LstFindFrom.c -- + * Find a node on a list from a given starting point. Used by Lst_Find. + */ + +#include "lstInt.h" #ifndef lint #if 0 static char sccsid[] = "@(#)lstFindFrom.c 8.1 (Berkeley) 6/6/93"; #else -static char *rcsid = "$OpenBSD: lstFindFrom.c,v 1.8 2000/06/17 14:34:07 espie Exp $"; +UNUSED +static char *rcsid = "$OpenBSD: lstFindFrom.c,v 1.9 2000/09/14 13:32:09 espie Exp $"; #endif #endif /* not lint */ -/*- - * LstFindFrom.c -- - * Find a node on a list from a given starting point. Used by Lst_Find. - */ - -#include "lstInt.h" /*- *----------------------------------------------------------------------- diff --git a/usr.bin/make/lst.lib/lstForEachFrom.c b/usr.bin/make/lst.lib/lstForEachFrom.c index c7700b61f2b..d3b352d7376 100644 --- a/usr.bin/make/lst.lib/lstForEachFrom.c +++ b/usr.bin/make/lst.lib/lstForEachFrom.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lstForEachFrom.c,v 1.8 2000/06/17 14:34:08 espie Exp $ */ +/* $OpenBSD: lstForEachFrom.c,v 1.9 2000/09/14 13:32:09 espie Exp $ */ /* $NetBSD: lstForEachFrom.c,v 1.5 1996/11/06 17:59:42 christos Exp $ */ /* @@ -37,14 +37,6 @@ * SUCH DAMAGE. */ -#ifndef lint -#if 0 -static char sccsid[] = "@(#)lstForEachFrom.c 8.1 (Berkeley) 6/6/93"; -#else -static char rcsid[] = "$OpenBSD: lstForEachFrom.c,v 1.8 2000/06/17 14:34:08 espie Exp $"; -#endif -#endif /* not lint */ - /*- * lstForEachFrom.c -- * Perform a given function on all elements of a list starting from @@ -52,6 +44,15 @@ static char rcsid[] = "$OpenBSD: lstForEachFrom.c,v 1.8 2000/06/17 14:34:08 espi */ #include "lstInt.h" +#ifndef lint +#if 0 +static char sccsid[] = "@(#)lstForEachFrom.c 8.1 (Berkeley) 6/6/93"; +#else +UNUSED +static char rcsid[] = "$OpenBSD: lstForEachFrom.c,v 1.9 2000/09/14 13:32:09 espie Exp $"; +#endif +#endif /* not lint */ + /*- *----------------------------------------------------------------------- diff --git a/usr.bin/make/lst.lib/lstInit.c b/usr.bin/make/lst.lib/lstInit.c index 8e393363924..1e4cdcd9b41 100644 --- a/usr.bin/make/lst.lib/lstInit.c +++ b/usr.bin/make/lst.lib/lstInit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lstInit.c,v 1.9 2000/06/17 14:43:39 espie Exp $ */ +/* $OpenBSD: lstInit.c,v 1.10 2000/09/14 13:32:09 espie Exp $ */ /* $NetBSD: lstInit.c,v 1.5 1996/11/06 17:59:43 christos Exp $ */ /* @@ -37,20 +37,21 @@ * SUCH DAMAGE. */ +/*- + * init.c -- + * Initialize a new linked list. + */ + +#include "lstInt.h" #ifndef lint #if 0 static char sccsid[] = "@(#)lstInit.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: lstInit.c,v 1.9 2000/06/17 14:43:39 espie Exp $"; +UNUSED +static char rcsid[] = "$OpenBSD: lstInit.c,v 1.10 2000/09/14 13:32:09 espie Exp $"; #endif #endif /* not lint */ -/*- - * init.c -- - * Initialize a new linked list. - */ - -#include "lstInt.h" /*- *----------------------------------------------------------------------- diff --git a/usr.bin/make/lst.lib/lstInsert.c b/usr.bin/make/lst.lib/lstInsert.c index 50c3af30689..356393f7d92 100644 --- a/usr.bin/make/lst.lib/lstInsert.c +++ b/usr.bin/make/lst.lib/lstInsert.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lstInsert.c,v 1.10 2000/06/17 14:43:39 espie Exp $ */ +/* $OpenBSD: lstInsert.c,v 1.11 2000/09/14 13:32:09 espie Exp $ */ /* $NetBSD: lstInsert.c,v 1.5 1996/11/06 17:59:44 christos Exp $ */ /* @@ -37,20 +37,21 @@ * SUCH DAMAGE. */ +/*- + * LstInsert.c -- + * Insert a new datum before an old one + */ + +#include "lstInt.h" #ifndef lint #if 0 static char sccsid[] = "@(#)lstInsert.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: lstInsert.c,v 1.10 2000/06/17 14:43:39 espie Exp $"; +UNUSED +static char rcsid[] = "$OpenBSD: lstInsert.c,v 1.11 2000/09/14 13:32:09 espie Exp $"; #endif #endif /* not lint */ -/*- - * LstInsert.c -- - * Insert a new datum before an old one - */ - -#include "lstInt.h" /*- *----------------------------------------------------------------------- diff --git a/usr.bin/make/lst.lib/lstIsAtEnd.c b/usr.bin/make/lst.lib/lstIsAtEnd.c index 6e640433da8..29eb4fdc81c 100644 --- a/usr.bin/make/lst.lib/lstIsAtEnd.c +++ b/usr.bin/make/lst.lib/lstIsAtEnd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lstIsAtEnd.c,v 1.6 2000/06/17 14:43:40 espie Exp $ */ +/* $OpenBSD: lstIsAtEnd.c,v 1.7 2000/09/14 13:32:09 espie Exp $ */ /* $NetBSD: lstIsAtEnd.c,v 1.5 1996/11/06 17:59:45 christos Exp $ */ /* @@ -37,14 +37,6 @@ * SUCH DAMAGE. */ -#ifndef lint -#if 0 -static char sccsid[] = "@(#)lstIsAtEnd.c 8.1 (Berkeley) 6/6/93"; -#else -static char rcsid[] = "$OpenBSD: lstIsAtEnd.c,v 1.6 2000/06/17 14:43:40 espie Exp $"; -#endif -#endif /* not lint */ - /*- * LstIsAtEnd.c -- * Tell if the current node is at the end of the list. @@ -56,6 +48,15 @@ static char rcsid[] = "$OpenBSD: lstIsAtEnd.c,v 1.6 2000/06/17 14:43:40 espie Ex */ #include "lstInt.h" +#ifndef lint +#if 0 +static char sccsid[] = "@(#)lstIsAtEnd.c 8.1 (Berkeley) 6/6/93"; +#else +UNUSED +static char rcsid[] = "$OpenBSD: lstIsAtEnd.c,v 1.7 2000/09/14 13:32:09 espie Exp $"; +#endif +#endif /* not lint */ + /*- *----------------------------------------------------------------------- diff --git a/usr.bin/make/lst.lib/lstIsEmpty.c b/usr.bin/make/lst.lib/lstIsEmpty.c index b98ca563a19..29b18a9f27c 100644 --- a/usr.bin/make/lst.lib/lstIsEmpty.c +++ b/usr.bin/make/lst.lib/lstIsEmpty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lstIsEmpty.c,v 1.6 2000/06/17 14:43:40 espie Exp $ */ +/* $OpenBSD: lstIsEmpty.c,v 1.7 2000/09/14 13:32:09 espie Exp $ */ /* $NetBSD: lstIsEmpty.c,v 1.5 1996/11/06 17:59:47 christos Exp $ */ /* @@ -37,20 +37,21 @@ * SUCH DAMAGE. */ +/*- + * LstIsEmpty.c -- + * A single function to decide if a list is empty + */ + +#include "lstInt.h" #ifndef lint #if 0 static char sccsid[] = "@(#)lstIsEmpty.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: lstIsEmpty.c,v 1.6 2000/06/17 14:43:40 espie Exp $"; +UNUSED +static char rcsid[] = "$OpenBSD: lstIsEmpty.c,v 1.7 2000/09/14 13:32:09 espie Exp $"; #endif #endif /* not lint */ -/*- - * LstIsEmpty.c -- - * A single function to decide if a list is empty - */ - -#include "lstInt.h" /*- *----------------------------------------------------------------------- diff --git a/usr.bin/make/lst.lib/lstMember.c b/usr.bin/make/lst.lib/lstMember.c index b799ea7287c..b78ce79f10d 100644 --- a/usr.bin/make/lst.lib/lstMember.c +++ b/usr.bin/make/lst.lib/lstMember.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lstMember.c,v 1.7 2000/06/17 14:34:09 espie Exp $ */ +/* $OpenBSD: lstMember.c,v 1.8 2000/09/14 13:32:09 espie Exp $ */ /* $NetBSD: lstMember.c,v 1.5 1996/11/06 17:59:48 christos Exp $ */ /* @@ -37,20 +37,21 @@ * SUCH DAMAGE. */ +/*- + * lstMember.c -- + * See if a given datum is on a given list. + */ + +#include "lstInt.h" #ifndef lint #if 0 static char sccsid[] = "@(#)lstMember.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: lstMember.c,v 1.7 2000/06/17 14:34:09 espie Exp $"; +UNUSED +static char rcsid[] = "$OpenBSD: lstMember.c,v 1.8 2000/09/14 13:32:09 espie Exp $"; #endif #endif /* not lint */ -/*- - * lstMember.c -- - * See if a given datum is on a given list. - */ - -#include "lstInt.h" LstNode Lst_Member(l, d) diff --git a/usr.bin/make/lst.lib/lstNext.c b/usr.bin/make/lst.lib/lstNext.c index fd4c4cf7b4d..902a6de1029 100644 --- a/usr.bin/make/lst.lib/lstNext.c +++ b/usr.bin/make/lst.lib/lstNext.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lstNext.c,v 1.7 2000/06/17 14:43:40 espie Exp $ */ +/* $OpenBSD: lstNext.c,v 1.8 2000/09/14 13:32:10 espie Exp $ */ /* $NetBSD: lstNext.c,v 1.5 1996/11/06 17:59:49 christos Exp $ */ /* @@ -37,14 +37,6 @@ * SUCH DAMAGE. */ -#ifndef lint -#if 0 -static char sccsid[] = "@(#)lstNext.c 8.1 (Berkeley) 6/6/93"; -#else -static char rcsid[] = "$OpenBSD: lstNext.c,v 1.7 2000/06/17 14:43:40 espie Exp $"; -#endif -#endif /* not lint */ - /*- * LstNext.c -- * Return the next node for a list. @@ -56,6 +48,15 @@ static char rcsid[] = "$OpenBSD: lstNext.c,v 1.7 2000/06/17 14:43:40 espie Exp $ */ #include "lstInt.h" +#ifndef lint +#if 0 +static char sccsid[] = "@(#)lstNext.c 8.1 (Berkeley) 6/6/93"; +#else +UNUSED +static char rcsid[] = "$OpenBSD: lstNext.c,v 1.8 2000/09/14 13:32:10 espie Exp $"; +#endif +#endif /* not lint */ + /*- *----------------------------------------------------------------------- diff --git a/usr.bin/make/lst.lib/lstOpen.c b/usr.bin/make/lst.lib/lstOpen.c index b12d78194c7..08e0f4f56c9 100644 --- a/usr.bin/make/lst.lib/lstOpen.c +++ b/usr.bin/make/lst.lib/lstOpen.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lstOpen.c,v 1.8 2000/06/23 16:15:51 espie Exp $ */ +/* $OpenBSD: lstOpen.c,v 1.9 2000/09/14 13:32:10 espie Exp $ */ /* $NetBSD: lstOpen.c,v 1.5 1996/11/06 17:59:50 christos Exp $ */ /* @@ -37,14 +37,6 @@ * SUCH DAMAGE. */ -#ifndef lint -#if 0 -static char sccsid[] = "@(#)lstOpen.c 8.1 (Berkeley) 6/6/93"; -#else -static char rcsid[] = "$OpenBSD: lstOpen.c,v 1.8 2000/06/23 16:15:51 espie Exp $"; -#endif -#endif /* not lint */ - /*- * LstOpen.c -- * Open a list for sequential access. The sequential functions access the @@ -55,6 +47,15 @@ static char rcsid[] = "$OpenBSD: lstOpen.c,v 1.8 2000/06/23 16:15:51 espie Exp $ */ #include "lstInt.h" +#ifndef lint +#if 0 +static char sccsid[] = "@(#)lstOpen.c 8.1 (Berkeley) 6/6/93"; +#else +UNUSED +static char rcsid[] = "$OpenBSD: lstOpen.c,v 1.9 2000/09/14 13:32:10 espie Exp $"; +#endif +#endif /* not lint */ + /*- *----------------------------------------------------------------------- diff --git a/usr.bin/make/lst.lib/lstRemove.c b/usr.bin/make/lst.lib/lstRemove.c index e6be2a8eff2..d4d900768df 100644 --- a/usr.bin/make/lst.lib/lstRemove.c +++ b/usr.bin/make/lst.lib/lstRemove.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lstRemove.c,v 1.9 2000/06/17 14:43:40 espie Exp $ */ +/* $OpenBSD: lstRemove.c,v 1.10 2000/09/14 13:32:10 espie Exp $ */ /* $NetBSD: lstRemove.c,v 1.5 1996/11/06 17:59:50 christos Exp $ */ /* @@ -37,20 +37,21 @@ * SUCH DAMAGE. */ +/*- + * LstRemove.c -- + * Remove an element from a list + */ + +#include "lstInt.h" #ifndef lint #if 0 static char sccsid[] = "@(#)lstRemove.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: lstRemove.c,v 1.9 2000/06/17 14:43:40 espie Exp $"; +UNUSED +static char rcsid[] = "$OpenBSD: lstRemove.c,v 1.10 2000/09/14 13:32:10 espie Exp $"; #endif #endif /* not lint */ -/*- - * LstRemove.c -- - * Remove an element from a list - */ - -#include "lstInt.h" /*- *----------------------------------------------------------------------- diff --git a/usr.bin/make/lst.lib/lstReplace.c b/usr.bin/make/lst.lib/lstReplace.c index 5a449e64944..67d8796caf1 100644 --- a/usr.bin/make/lst.lib/lstReplace.c +++ b/usr.bin/make/lst.lib/lstReplace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lstReplace.c,v 1.8 2000/06/17 14:34:10 espie Exp $ */ +/* $OpenBSD: lstReplace.c,v 1.9 2000/09/14 13:32:10 espie Exp $ */ /* $NetBSD: lstReplace.c,v 1.5 1996/11/06 17:59:51 christos Exp $ */ /* @@ -37,20 +37,21 @@ * SUCH DAMAGE. */ +/*- + * LstReplace.c -- + * Replace the datum in a node with a new datum + */ + +#include "lstInt.h" #ifndef lint #if 0 static char sccsid[] = "@(#)lstReplace.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: lstReplace.c,v 1.8 2000/06/17 14:34:10 espie Exp $"; +UNUSED +static char rcsid[] = "$OpenBSD: lstReplace.c,v 1.9 2000/09/14 13:32:10 espie Exp $"; #endif #endif /* not lint */ -/*- - * LstReplace.c -- - * Replace the datum in a node with a new datum - */ - -#include "lstInt.h" /*- *----------------------------------------------------------------------- diff --git a/usr.bin/make/lst.lib/lstSucc.c b/usr.bin/make/lst.lib/lstSucc.c index 91aeb68ef21..d71cf026365 100644 --- a/usr.bin/make/lst.lib/lstSucc.c +++ b/usr.bin/make/lst.lib/lstSucc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lstSucc.c,v 1.6 2000/06/17 14:34:11 espie Exp $ */ +/* $OpenBSD: lstSucc.c,v 1.7 2000/09/14 13:32:10 espie Exp $ */ /* $NetBSD: lstSucc.c,v 1.5 1996/11/06 17:59:52 christos Exp $ */ /* @@ -37,20 +37,21 @@ * SUCH DAMAGE. */ +/*- + * LstSucc.c -- + * return the successor to a given node + */ + +#include "lstInt.h" #ifndef lint #if 0 static char sccsid[] = "@(#)lstSucc.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: lstSucc.c,v 1.6 2000/06/17 14:34:11 espie Exp $"; +UNUSED +static char rcsid[] = "$OpenBSD: lstSucc.c,v 1.7 2000/09/14 13:32:10 espie Exp $"; #endif #endif /* not lint */ -/*- - * LstSucc.c -- - * return the successor to a given node - */ - -#include "lstInt.h" /*- *----------------------------------------------------------------------- |