scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit 32ec291ea9f9d16743fee4a53a0c100785643483
parent 1fa83f138d13af191704b2bf3504091c6c92a57a
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed,  6 May 2015 19:57:31 +0200

Add missing static in code.c

After last changes some functions were static, and although they had
a prototype with the static type, the style is to put always the static.

Diffstat:
Mcc1/code.c | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/cc1/code.c b/cc1/code.c @@ -190,7 +190,7 @@ emitconst(Node *np) } } -void +static void emitsym(uint8_t op, void *arg) { Node *np = arg; @@ -215,7 +215,7 @@ emitdcl(uint8_t op, void *arg) putchar('\n'); } -void +static void emitcast(uint8_t op, void *arg) { Node *np = arg, *lp = np->left; @@ -224,7 +224,7 @@ emitcast(uint8_t op, void *arg) printf("\t%c%c", lp->type->letter, np->type->letter); } -void +static void emitbin(uint8_t op, void *arg) { Node *np = arg; @@ -234,7 +234,7 @@ emitbin(uint8_t op, void *arg) printf("\t%s%c", optxt[op], np->type->letter); } -void +static void emitternary(uint8_t op, void *arg) { Node *cond, *ifyes, *ifno, *np = arg; @@ -248,7 +248,7 @@ emitternary(uint8_t op, void *arg) printf("\t?%c", np->type->letter); } -void +static void emitsizeof(uint8_t op, void *arg) { Node *np = arg;