ref: 1c72bb640a82a82459a4224efeea82fde5faa22b
parent: 83c47446b030f8abd1c7b635d41bdd84fc10f8b0
author: Roberto E. Vargas Caballero <[email protected]>
date: Sun Nov 16 01:21:00 EST 2014
Convert localcnt and globalcnt to static These variables are only used in symbol.c, so it is better to reduce the scope of them.
--- 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;