From fdcb684addcb71b6067b6668bd0e723277e22544 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Fri, 17 Jul 2015 20:28:56 +0200 Subject: [PATCH 1/3] whitespace fixes --- cc1/cc1.h | 1 - cc1/cpp.c | 26 +++++++++++++------------- 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/cc1/cc1.h b/cc1/cc1.h index 7095cf2..6a9d9aa 100644 --- a/cc1/cc1.h +++ b/cc1/cc1.h @@ -13,7 +13,6 @@ typedef struct caselist Caselist; typedef struct node Node; typedef struct input Input; - struct type { unsigned char op; /* type builder operator */ unsigned char ns; diff --git a/cc1/cpp.c b/cc1/cpp.c index 534585a..3e10e2e 100644 --- a/cc1/cpp.c +++ b/cc1/cpp.c @@ -59,17 +59,17 @@ icpp(void) static void nextcpp(void) { - next(); - if (yytoken == EOFTOK) + next(); + if (yytoken == EOFTOK) error("unterminated argument list invoking macro \"%s\"", - macroname); - if (yylen + 1 > arglen) - error("argument overflow invoking macro \"%s\"", - macroname); - memcpy(argp, yytext, yylen); - argp += yylen; - *argp++ = ' '; - arglen -= yylen + 1; + macroname); + if (yylen + 1 > arglen) + error("argument overflow invoking macro \"%s\"", + macroname); + memcpy(argp, yytext, yylen); + argp += yylen; + *argp++ = ' '; + arglen -= yylen + 1; } static void @@ -171,7 +171,7 @@ copymacro(char *bp, char *s, size_t bufsiz, char *arglist[]) s += 2; } } - *bp = '\0'; + *bp = '\0'; return; @@ -201,8 +201,8 @@ expand(char *begin, Symbol *sym) macroname = sym->name; if (!parsepars(arguments, arglist, atoi(s))) return 0; - for (n = 0; n < atoi(s); ++n) - fprintf(stderr, "PAR%d:%s\n", n, arglist[n]); + for (n = 0; n < atoi(s); ++n) + fprintf(stderr, "PAR%d:%s\n", n, arglist[n]); copymacro(buffer, s+3, INPUTSIZ-1, arglist); -- 2.3.0