summaryrefslogtreecommitdiff
path: root/usr.bin/make/lst.h
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2001-11-11 12:35:04 +0000
committerMarc Espie <espie@cvs.openbsd.org>2001-11-11 12:35:04 +0000
commitdc530fd86f2e0e8527101abd7e2e9646177825db (patch)
tree6fc760e44ccc2e2e620d64e990f53e6a2a405a70 /usr.bin/make/lst.h
parent322915facec3177278e63d2d902533d68526ab68 (diff)
Fixed version... don't see how this could work on i386, since it didn't
initialize create in main.c.
Diffstat (limited to 'usr.bin/make/lst.h')
-rw-r--r--usr.bin/make/lst.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/make/lst.h b/usr.bin/make/lst.h
index a78be9add5b..b3b0fff16b8 100644
--- a/usr.bin/make/lst.h
+++ b/usr.bin/make/lst.h
@@ -2,7 +2,7 @@
#define _LST_H_
/* $OpenPackages$ */
-/* $OpenBSD: lst.h,v 1.23 2001/11/11 06:02:06 deraadt Exp $ */
+/* $OpenBSD: lst.h,v 1.24 2001/11/11 12:35:02 espie Exp $ */
/* $NetBSD: lst.h,v 1.7 1996/11/06 17:59:12 christos Exp $ */
/*
@@ -81,7 +81,10 @@ typedef void *(*DuplicateProc)(void *);
* Creation/destruction functions
*/
/* Create a new list */
-extern void Lst_Init(LIST *);
+#define Lst_Init(l) (l)->firstPtr = (l)->lastPtr = NULL
+/* Static lists are already okay */
+#define Static_Lst_Init(l)
+
/* Duplicate an existing list */
extern Lst Lst_Clone(Lst, Lst, DuplicateProc);
/* Destroy an old one */