scc

Simple C99 Compiler
Log | Files | Refs | README | LICENSE

commit 1c72bb640a82a82459a4224efeea82fde5faa22b
parent 83c47446b030f8abd1c7b635d41bdd84fc10f8b0
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sun, 16 Nov 2014 06:21:00 -0500

Convert localcnt and globalcnt to static

These variables are only used in symbol.c, so it is better to reduce the
scope of them.

Diffstat:
cc1/symbol.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cc1/symbol.c b/cc1/symbol.c @@ -10,8 +10,8 @@ #define NR_SYM_HASH 32 uint8_t curctx; -short localcnt; -short globalcnt; +static short localcnt; +static short globalcnt; static struct symtab { Symbol *head;