summaryrefslogtreecommitdiffstats
path: root/usr.bin/make/for.c
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2005-02-02 07:36:18 +0000
committerharti <harti@FreeBSD.org>2005-02-02 07:36:18 +0000
commite55f5e8b6f4c9cf6b01f539144a14d2f9680e575 (patch)
tree4825321dce7848eb1b15bd084d39df490dcc822d /usr.bin/make/for.c
parent4130080e12ab49a659e616322a16e9db22726595 (diff)
downloadFreeBSD-src-e55f5e8b6f4c9cf6b01f539144a14d2f9680e575.zip
FreeBSD-src-e55f5e8b6f4c9cf6b01f539144a14d2f9680e575.tar.gz
Convert several typedefs from beeing pointers to structs to be the structs
itself. This will ease constification (think of what 'const Ptr foo' means if Ptr is a pointer to a struct). Submitted by: Max Okumoto <okumoto@ucsd.edu>
Diffstat (limited to 'usr.bin/make/for.c')
-rw-r--r--usr.bin/make/for.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/make/for.c b/usr.bin/make/for.c
index 43dca73..205828a 100644
--- a/usr.bin/make/for.c
+++ b/usr.bin/make/for.c
@@ -75,14 +75,14 @@ __FBSDID("$FreeBSD$");
static int forLevel = 0; /* Nesting level */
static char *forVar; /* Iteration variable */
-static Buffer forBuf; /* Commands in loop */
+static Buffer *forBuf; /* Commands in loop */
static Lst forLst; /* List of items */
/*
* State of a for loop.
*/
typedef struct _For {
- Buffer buf; /* Unexpanded buffer */
+ Buffer *buf; /* Unexpanded buffer */
char* var; /* Index name */
Lst lst; /* List of variables */
int lineno; /* Line # */
@@ -117,7 +117,7 @@ For_Eval(char *line)
if (forLevel == 0) {
- Buffer buf;
+ Buffer *buf;
size_t varlen;
for (ptr++; *ptr && isspace((unsigned char)*ptr); ptr++)
OpenPOWER on IntegriCloud