diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2000-09-14 13:40:04 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2000-09-14 13:40:04 +0000 |
commit | fb69cad801d15905ce6c6dbbca475698712adb3d (patch) | |
tree | af50577605bcc32ef4b4311712d1bf535c3a4e4d /usr.bin/make/make.h | |
parent | 937fd0dd5bc639d679b0cab57293af3791cac7c4 (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.h | 6 |
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; /* |