diff options
author | jmallett <jmallett@FreeBSD.org> | 2002-07-15 02:15:12 +0000 |
---|---|---|
committer | jmallett <jmallett@FreeBSD.org> | 2002-07-15 02:15:12 +0000 |
commit | 5cf2af5a273048f7f85db34e1a8600e1add62571 (patch) | |
tree | 90a2685db1fbde7911ea989fd58832570adb3b91 /usr.bin/m4/main.c | |
parent | 467c3ff4526f2dc81b474d1ab4adcc2998337415 (diff) | |
download | FreeBSD-src-5cf2af5a273048f7f85db34e1a8600e1add62571.zip FreeBSD-src-5cf2af5a273048f7f85db34e1a8600e1add62571.tar.gz |
Kill extraneous whitespace.
Diffstat (limited to 'usr.bin/m4/main.c')
-rw-r--r-- | usr.bin/m4/main.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/usr.bin/m4/main.c b/usr.bin/m4/main.c index 0218924..722fc92 100644 --- a/usr.bin/m4/main.c +++ b/usr.bin/m4/main.c @@ -147,7 +147,7 @@ struct keyblk keywrds[] = { /* m4 keywords to be installed */ { "traceon", TRACEONTYPE | NOARGS }, { "traceoff", TRACEOFFTYPE | NOARGS }, -#if defined(unix) || defined(__unix__) +#if defined(unix) || defined(__unix__) { "unix", SELFTYPE | NOARGS }, #else #ifdef vms @@ -261,7 +261,7 @@ main(int argc, char *argv[]) continue; } sp = -1; - fp = 0; + fp = 0; if ((inname[0] = strdup(p)) == NULL) err(1, NULL); inlineno[0] = 1; @@ -337,7 +337,7 @@ macro(void) p = inspect(t, token); if (p != nil) putback(l = gpbc()); - if (p == nil || (l != LPAREN && + if (p == nil || (l != LPAREN && (p->type & NEEDARGS) != 0)) outputstr(token); else { @@ -355,13 +355,13 @@ macro(void) pushs1(p->name); /* macro name */ pushs(ep); /* start next..*/ - if (l != LPAREN && PARLEV == 0) { + if (l != LPAREN && PARLEV == 0) { /* no bracks */ chrsave(EOS); if ((uintptr_t)sp == STACKMAX) errx(1, "internal stack overflow"); - eval((const char **) mstack+fp+1, 2, + eval((const char **) mstack+fp+1, 2, CALTYP); ep = PREVEP; /* flush strspace */ @@ -461,7 +461,7 @@ macro(void) if ((uintptr_t)sp == STACKMAX) errx(1, "internal stack overflow"); - eval((const char **) mstack+fp+1, sp-fp, + eval((const char **) mstack+fp+1, sp-fp, CALTYP); ep = PREVEP; /* flush strspace */ @@ -504,8 +504,8 @@ macro(void) } } -/* - * output string directly, without pushing it for reparses. +/* + * output string directly, without pushing it for reparses. */ void outputstr(const char *s) @@ -524,13 +524,13 @@ outputstr(const char *s) * combo with lookup to speed things up. */ static ndptr -inspect(int c, char *tp) +inspect(int c, char *tp) { char *name = tp; char *etp = tp+MAXTOK; ndptr p; unsigned int h; - + h = *tp++ = c; while ((isalnum(c = gpbc()) || c == '_') && tp < etp) @@ -559,9 +559,9 @@ inspect(int c, char *tp) } /* - * initkwds - initialise m4 keywords as fast as possible. + * initkwds - initialise m4 keywords as fast as possible. * This very similar to install, but without certain overheads, - * such as calling lookup. Malloc is not used for storing the + * such as calling lookup. Malloc is not used for storing the * keyword strings, since we simply use the static pointers * within keywrds block. */ @@ -587,7 +587,7 @@ initkwds(void) } /* Look up a builtin type, even if overridden by the user */ -int +int builtin_type(const char *key) { int i; @@ -628,20 +628,20 @@ dump_stack(struct position *t, int lev) fprintf(stderr, " ...\n"); break; } - fprintf(stderr, " %s at line %lu\n", + fprintf(stderr, " %s at line %lu\n", t[i].name, t[i].line); } } -static void +static void enlarge_stack(void) { STACKMAX *= 2; mstack = realloc(mstack, sizeof(stae) * STACKMAX); sstack = realloc(sstack, STACKMAX); if (mstack == NULL || sstack == NULL) - errx(1, "Evaluation stack overflow (%lu)", + errx(1, "Evaluation stack overflow (%lu)", (unsigned long)STACKMAX); } |