summaryrefslogtreecommitdiff
path: root/usr.bin/make/make.h
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2000-09-14 13:40:04 +0000
committerMarc Espie <espie@cvs.openbsd.org>2000-09-14 13:40:04 +0000
commitfb69cad801d15905ce6c6dbbca475698712adb3d (patch)
treeaf50577605bcc32ef4b4311712d1bf535c3a4e4d /usr.bin/make/make.h
parent937fd0dd5bc639d679b0cab57293af3791cac7c4 (diff)
Use the new hash scheme to store the target nodes.
Scrap the list of all targets: it only slows make down. The only visible difference is that the list of all targets is not shown in order when debugging.
Diffstat (limited to 'usr.bin/make/make.h')
-rw-r--r--usr.bin/make/make.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/make/make.h b/usr.bin/make/make.h
index 1e95e09ff21..386ba0b8c65 100644
--- a/usr.bin/make/make.h
+++ b/usr.bin/make/make.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: make.h,v 1.25 2000/09/14 13:32:07 espie Exp $ */
+/* $OpenBSD: make.h,v 1.26 2000/09/14 13:40:03 espie Exp $ */
/* $NetBSD: make.h,v 1.15 1997/03/10 21:20:00 christos Exp $ */
/*
@@ -139,8 +139,7 @@ typedef struct hash GSymT;
* 17) a Lst of strings that are commands to be given to a shell
* to create this target.
*/
-typedef struct GNode {
- char *name; /* The target's name */
+typedef struct GNode_ {
char *path; /* The full pathname of the file */
int type; /* Its type (see the OP flags, below) */
int order; /* Its wait weight */
@@ -193,6 +192,7 @@ typedef struct GNode {
struct _Suff *suffix; /* Suffix for the node (determined by
* Suff_FindDeps and opaque to everyone
* but the Suff module) */
+ char name[1]; /* The target's name */
} GNode;
/*