summaryrefslogtreecommitdiff
path: root/usr.bin/make/lst.lib
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2005-02-16 15:11:52 +0000
committerchristos <christos@NetBSD.org>2005-02-16 15:11:52 +0000
commit63fca1366091cde6fda073e3035fdec3873df243 (patch)
treecc821e5d3f62046819e5c7eda1d86d105b220cf5 /usr.bin/make/lst.lib
parentda725d663a4307983bcdd44787459e29854695fc (diff)
PR/29203, PR/29204: Max Okumoto: KNF changes to make [no functional changes]
Diffstat (limited to 'usr.bin/make/lst.lib')
-rw-r--r--usr.bin/make/lst.lib/lstAtEnd.c10
-rw-r--r--usr.bin/make/lst.lib/lstAtFront.c10
-rw-r--r--usr.bin/make/lst.lib/lstDeQueue.c10
-rw-r--r--usr.bin/make/lst.lib/lstDupl.c12
-rw-r--r--usr.bin/make/lst.lib/lstEnQueue.c8
-rw-r--r--usr.bin/make/lst.lib/lstFind.c8
-rw-r--r--usr.bin/make/lst.lib/lstInt.h4
7 files changed, 31 insertions, 31 deletions
diff --git a/usr.bin/make/lst.lib/lstAtEnd.c b/usr.bin/make/lst.lib/lstAtEnd.c
index e2871a9359f..e98bbb9d53d 100644
--- a/usr.bin/make/lst.lib/lstAtEnd.c
+++ b/usr.bin/make/lst.lib/lstAtEnd.c
@@ -1,4 +1,4 @@
-/* $NetBSD: lstAtEnd.c,v 1.10 2004/05/07 00:04:41 ross Exp $ */
+/* $NetBSD: lstAtEnd.c,v 1.11 2005/02/16 15:11:53 christos Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -33,14 +33,14 @@
*/
#ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: lstAtEnd.c,v 1.10 2004/05/07 00:04:41 ross Exp $";
+static char rcsid[] = "$NetBSD: lstAtEnd.c,v 1.11 2005/02/16 15:11:53 christos Exp $";
#else
#include <sys/cdefs.h>
#ifndef lint
#if 0
static char sccsid[] = "@(#)lstAtEnd.c 8.1 (Berkeley) 6/6/93";
#else
-__RCSID("$NetBSD: lstAtEnd.c,v 1.10 2004/05/07 00:04:41 ross Exp $");
+__RCSID("$NetBSD: lstAtEnd.c,v 1.11 2005/02/16 15:11:53 christos Exp $");
#endif
#endif /* not lint */
#endif
@@ -74,6 +74,6 @@ Lst_AtEnd(Lst l, ClientData d)
{
LstNode end;
- end = Lst_Last (l);
- return (Lst_Append (l, end, d));
+ end = Lst_Last(l);
+ return (Lst_Append(l, end, d));
}
diff --git a/usr.bin/make/lst.lib/lstAtFront.c b/usr.bin/make/lst.lib/lstAtFront.c
index 014c79fc86d..0f0fae287e8 100644
--- a/usr.bin/make/lst.lib/lstAtFront.c
+++ b/usr.bin/make/lst.lib/lstAtFront.c
@@ -1,4 +1,4 @@
-/* $NetBSD: lstAtFront.c,v 1.10 2004/05/07 00:04:41 ross Exp $ */
+/* $NetBSD: lstAtFront.c,v 1.11 2005/02/16 15:11:53 christos Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -33,14 +33,14 @@
*/
#ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: lstAtFront.c,v 1.10 2004/05/07 00:04:41 ross Exp $";
+static char rcsid[] = "$NetBSD: lstAtFront.c,v 1.11 2005/02/16 15:11:53 christos Exp $";
#else
#include <sys/cdefs.h>
#ifndef lint
#if 0
static char sccsid[] = "@(#)lstAtFront.c 8.1 (Berkeley) 6/6/93";
#else
-__RCSID("$NetBSD: lstAtFront.c,v 1.10 2004/05/07 00:04:41 ross Exp $");
+__RCSID("$NetBSD: lstAtFront.c,v 1.11 2005/02/16 15:11:53 christos Exp $");
#endif
#endif /* not lint */
#endif
@@ -71,6 +71,6 @@ Lst_AtFront(Lst l, ClientData d)
{
LstNode front;
- front = Lst_First (l);
- return (Lst_Insert (l, front, d));
+ front = Lst_First(l);
+ return (Lst_Insert(l, front, d));
}
diff --git a/usr.bin/make/lst.lib/lstDeQueue.c b/usr.bin/make/lst.lib/lstDeQueue.c
index d4aa893bccd..ed1c57d4bec 100644
--- a/usr.bin/make/lst.lib/lstDeQueue.c
+++ b/usr.bin/make/lst.lib/lstDeQueue.c
@@ -1,4 +1,4 @@
-/* $NetBSD: lstDeQueue.c,v 1.10 2004/05/07 00:04:41 ross Exp $ */
+/* $NetBSD: lstDeQueue.c,v 1.11 2005/02/16 15:11:53 christos Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -33,14 +33,14 @@
*/
#ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: lstDeQueue.c,v 1.10 2004/05/07 00:04:41 ross Exp $";
+static char rcsid[] = "$NetBSD: lstDeQueue.c,v 1.11 2005/02/16 15:11:53 christos Exp $";
#else
#include <sys/cdefs.h>
#ifndef lint
#if 0
static char sccsid[] = "@(#)lstDeQueue.c 8.1 (Berkeley) 6/6/93";
#else
-__RCSID("$NetBSD: lstDeQueue.c,v 1.10 2004/05/07 00:04:41 ross Exp $");
+__RCSID("$NetBSD: lstDeQueue.c,v 1.11 2005/02/16 15:11:53 christos Exp $");
#endif
#endif /* not lint */
#endif
@@ -72,13 +72,13 @@ Lst_DeQueue(Lst l)
ClientData rd;
ListNode tln;
- tln = (ListNode) Lst_First (l);
+ tln = (ListNode) Lst_First(l);
if (tln == NilListNode) {
return ((ClientData) NIL);
}
rd = tln->datum;
- if (Lst_Remove (l, (LstNode)tln) == FAILURE) {
+ if (Lst_Remove(l, (LstNode)tln) == FAILURE) {
return ((ClientData) NIL);
} else {
return (rd);
diff --git a/usr.bin/make/lst.lib/lstDupl.c b/usr.bin/make/lst.lib/lstDupl.c
index 82b7a93f168..82f08a15899 100644
--- a/usr.bin/make/lst.lib/lstDupl.c
+++ b/usr.bin/make/lst.lib/lstDupl.c
@@ -1,4 +1,4 @@
-/* $NetBSD: lstDupl.c,v 1.11 2004/05/07 00:04:41 ross Exp $ */
+/* $NetBSD: lstDupl.c,v 1.12 2005/02/16 15:11:53 christos Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -33,14 +33,14 @@
*/
#ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: lstDupl.c,v 1.11 2004/05/07 00:04:41 ross Exp $";
+static char rcsid[] = "$NetBSD: lstDupl.c,v 1.12 2005/02/16 15:11:53 christos Exp $";
#else
#include <sys/cdefs.h>
#ifndef lint
#if 0
static char sccsid[] = "@(#)lstDupl.c 8.1 (Berkeley) 6/6/93";
#else
-__RCSID("$NetBSD: lstDupl.c,v 1.11 2004/05/07 00:04:41 ross Exp $");
+__RCSID("$NetBSD: lstDupl.c,v 1.12 2005/02/16 15:11:53 christos Exp $");
#endif
#endif /* not lint */
#endif
@@ -81,7 +81,7 @@ Lst_Duplicate(Lst l, ClientData (*copyProc)(ClientData))
return (NILLST);
}
- nl = Lst_Init (list->isCirc);
+ nl = Lst_Init(list->isCirc);
if (nl == NILLST) {
return (NILLST);
}
@@ -89,10 +89,10 @@ Lst_Duplicate(Lst l, ClientData (*copyProc)(ClientData))
ln = list->firstPtr;
while (ln != NilListNode) {
if (copyProc != NOCOPY) {
- if (Lst_AtEnd (nl, (*copyProc) (ln->datum)) == FAILURE) {
+ if (Lst_AtEnd(nl, (*copyProc) (ln->datum)) == FAILURE) {
return (NILLST);
}
- } else if (Lst_AtEnd (nl, ln->datum) == FAILURE) {
+ } else if (Lst_AtEnd(nl, ln->datum) == FAILURE) {
return (NILLST);
}
diff --git a/usr.bin/make/lst.lib/lstEnQueue.c b/usr.bin/make/lst.lib/lstEnQueue.c
index 077132621a7..d6f9519ddc5 100644
--- a/usr.bin/make/lst.lib/lstEnQueue.c
+++ b/usr.bin/make/lst.lib/lstEnQueue.c
@@ -1,4 +1,4 @@
-/* $NetBSD: lstEnQueue.c,v 1.10 2004/05/07 00:04:41 ross Exp $ */
+/* $NetBSD: lstEnQueue.c,v 1.11 2005/02/16 15:11:53 christos Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -33,14 +33,14 @@
*/
#ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: lstEnQueue.c,v 1.10 2004/05/07 00:04:41 ross Exp $";
+static char rcsid[] = "$NetBSD: lstEnQueue.c,v 1.11 2005/02/16 15:11:53 christos Exp $";
#else
#include <sys/cdefs.h>
#ifndef lint
#if 0
static char sccsid[] = "@(#)lstEnQueue.c 8.1 (Berkeley) 6/6/93";
#else
-__RCSID("$NetBSD: lstEnQueue.c,v 1.10 2004/05/07 00:04:41 ross Exp $");
+__RCSID("$NetBSD: lstEnQueue.c,v 1.11 2005/02/16 15:11:53 christos Exp $");
#endif
#endif /* not lint */
#endif
@@ -73,6 +73,6 @@ Lst_EnQueue(Lst l, ClientData d)
return (FAILURE);
}
- return (Lst_Append (l, Lst_Last(l), d));
+ return (Lst_Append(l, Lst_Last(l), d));
}
diff --git a/usr.bin/make/lst.lib/lstFind.c b/usr.bin/make/lst.lib/lstFind.c
index 52a0d5eba34..95a94691ec4 100644
--- a/usr.bin/make/lst.lib/lstFind.c
+++ b/usr.bin/make/lst.lib/lstFind.c
@@ -1,4 +1,4 @@
-/* $NetBSD: lstFind.c,v 1.11 2004/05/07 00:04:41 ross Exp $ */
+/* $NetBSD: lstFind.c,v 1.12 2005/02/16 15:11:53 christos Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -33,14 +33,14 @@
*/
#ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: lstFind.c,v 1.11 2004/05/07 00:04:41 ross Exp $";
+static char rcsid[] = "$NetBSD: lstFind.c,v 1.12 2005/02/16 15:11:53 christos Exp $";
#else
#include <sys/cdefs.h>
#ifndef lint
#if 0
static char sccsid[] = "@(#)lstFind.c 8.1 (Berkeley) 6/6/93";
#else
-__RCSID("$NetBSD: lstFind.c,v 1.11 2004/05/07 00:04:41 ross Exp $");
+__RCSID("$NetBSD: lstFind.c,v 1.12 2005/02/16 15:11:53 christos Exp $");
#endif
#endif /* not lint */
#endif
@@ -69,6 +69,6 @@ __RCSID("$NetBSD: lstFind.c,v 1.11 2004/05/07 00:04:41 ross Exp $");
LstNode
Lst_Find(Lst l, ClientData d, int (*cProc)(ClientData, ClientData))
{
- return (Lst_FindFrom (l, Lst_First(l), d, cProc));
+ return (Lst_FindFrom(l, Lst_First(l), d, cProc));
}
diff --git a/usr.bin/make/lst.lib/lstInt.h b/usr.bin/make/lst.lib/lstInt.h
index 512f0276d23..840807ffad1 100644
--- a/usr.bin/make/lst.lib/lstInt.h
+++ b/usr.bin/make/lst.lib/lstInt.h
@@ -1,4 +1,4 @@
-/* $NetBSD: lstInt.h,v 1.10 2004/05/06 23:15:46 ross Exp $ */
+/* $NetBSD: lstInt.h,v 1.11 2005/02/16 15:11:53 christos Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -86,7 +86,7 @@ typedef struct {
* PAlloc (var, ptype) --
* Allocate a pointer-typedef structure 'ptype' into the variable 'var'
*/
-#define PAlloc(var,ptype) var = (ptype) emalloc (sizeof (*var))
+#define PAlloc(var,ptype) var = (ptype) emalloc(sizeof (*var))
/*
* LstValid (l) --