diff options
author | Hartmut Brandt <harti@FreeBSD.org> | 2004-12-07 13:49:13 +0000 |
---|---|---|
committer | Hartmut Brandt <harti@FreeBSD.org> | 2004-12-07 13:49:13 +0000 |
commit | bf1ead06083208b33eb36ed779e5ece8bcb681b9 (patch) | |
tree | 56920a7ef5b24bec1022ce1711332864a400679e /usr.bin/make/make.h | |
parent | b82f920f8e385ddce2851c04b3dd314183b13612 (diff) | |
download | src-bf1ead06083208b33eb36ed779e5ece8bcb681b9.tar.gz src-bf1ead06083208b33eb36ed779e5ece8bcb681b9.zip |
Typedefs of pointers to structs are evil. Make Lst and LstNode typedef of
the structs itself not of pointers to them. This will simplify constification.
Checked by: diff on the object files
Notes
Notes:
svn path=/head/; revision=138512
Diffstat (limited to 'usr.bin/make/make.h')
-rw-r--r-- | usr.bin/make/make.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/usr.bin/make/make.h b/usr.bin/make/make.h index 77205aa3c097..b23006f4f28a 100644 --- a/usr.bin/make/make.h +++ b/usr.bin/make/make.h @@ -125,16 +125,16 @@ typedef struct GNode { int cmtime; /* The modification time of its youngest * child */ - Lst iParents; /* Links to parents for which this is an + Lst *iParents; /* Links to parents for which this is an * implied source, if any */ - Lst cohorts; /* Other nodes for the :: operator */ - Lst parents; /* Nodes that depend on this one */ - Lst children; /* Nodes on which this one depends */ - Lst successors; /* Nodes that must be made after this one */ - Lst preds; /* Nodes that must be made before this one */ + Lst *cohorts; /* Other nodes for the :: operator */ + Lst *parents; /* Nodes that depend on this one */ + Lst *children; /* Nodes on which this one depends */ + Lst *successors;/* Nodes that must be made after this one */ + Lst *preds; /* Nodes that must be made before this one */ - Lst context; /* The local variables */ - Lst commands; /* Creation commands */ + Lst *context; /* The local variables */ + Lst *commands; /* Creation commands */ struct _Suff *suffix; /* Suffix for the node (determined by * Suff_FindDeps and opaque to everyone @@ -283,13 +283,13 @@ typedef struct IFile { /* * Global Variables */ -extern Lst create; /* The list of target names specified on the +extern Lst *create; /* The list of target names specified on the * command line. used to resolve #if * make(...) statements */ -extern Lst dirSearchPath; /* The list of directories to search when +extern Lst *dirSearchPath; /* The list of directories to search when * looking for targets */ extern IFile curFile; /* current makefile */ -extern Lst parseIncPath; /* The list of directories to search when +extern Lst *parseIncPath; /* The list of directories to search when * looking for includes */ extern Boolean jobsRunning; /* True if jobs are running */ @@ -314,7 +314,7 @@ extern Boolean queryFlag; /* TRUE if we aren't supposed to really make extern Boolean checkEnvFirst; /* TRUE if environment should be searched for * all variables before the global context */ -extern Lst envFirstVars; /* List of specific variables for which the +extern Lst *envFirstVars; /* List of specific variables for which the * environment should be searched before the * global context */ @@ -333,7 +333,7 @@ extern time_t now; /* The time at the start of this whole extern Boolean oldVars; /* Do old-style variable substitution */ -extern Lst sysIncPath; /* The system include path. */ +extern Lst *sysIncPath; /* The system include path. */ /* * debug control: @@ -377,6 +377,6 @@ Boolean Make_OODate(GNode *); int Make_HandleUse(GNode *, GNode *); void Make_Update(GNode *); void Make_DoAllVar(GNode *); -Boolean Make_Run(Lst); +Boolean Make_Run(Lst *); #endif /* _MAKE_H_ */ |