diff options
author | harti <harti@FreeBSD.org> | 2004-12-07 13:49:13 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2004-12-07 13:49:13 +0000 |
commit | 23620cc24f850f14c0066dcac23f3991ba1b5b25 (patch) | |
tree | 56920a7ef5b24bec1022ce1711332864a400679e /usr.bin/make/for.c | |
parent | 9639eb3806e6d38cde75055a6f2150eb5028c844 (diff) | |
download | FreeBSD-src-23620cc24f850f14c0066dcac23f3991ba1b5b25.zip FreeBSD-src-23620cc24f850f14c0066dcac23f3991ba1b5b25.tar.gz |
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
Diffstat (limited to 'usr.bin/make/for.c')
-rw-r--r-- | usr.bin/make/for.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/make/for.c b/usr.bin/make/for.c index 9051ae7..e2df76c 100644 --- a/usr.bin/make/for.c +++ b/usr.bin/make/for.c @@ -72,7 +72,7 @@ __FBSDID("$FreeBSD$"); static int forLevel = 0; /* Nesting level */ static char *forVar; /* Iteration variable */ static Buffer forBuf; /* Commands in loop */ -static Lst forLst; /* List of items */ +static Lst *forLst; /* List of items */ /* * State of a for loop. @@ -80,7 +80,7 @@ static Lst forLst; /* List of items */ typedef struct _For { Buffer buf; /* Unexpanded buffer */ char* var; /* Index name */ - Lst lst; /* List of variables */ + Lst *lst; /* List of variables */ int lineno; /* Line # */ } For; |