commit 6d3664ac10f50ea4ac3618404fa3522a226fbc81
parent 4e05c8d89c382a02992de4fad24c034d333bec2c
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 17 Jul 2015 20:28:56 +0200
whitespace fixes
Diffstat:
2 files changed, 13 insertions(+), 14 deletions(-)
diff --git 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
@@ -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);