scc

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

commit 6474d05ae74cc9a59f67bdc84ae4428983f09ffe
parent 3dc7f81061afadec94640f67cad310142f5256fb
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed, 11 Feb 2015 10:55:40 +0100

Remove duplicated arrays in cgen.c

These arrays were moved to code, so they must be removed
from cgen.

Diffstat:
Mcc2/cgen.c | 13-------------
1 file changed, 0 insertions(+), 13 deletions(-)

diff --git a/cc2/cgen.c b/cc2/cgen.c @@ -9,19 +9,6 @@ #include <stdio.h> -static char *opnames[] = { - [PUSH] = "PUSH", [POP] = "POP", [LD] = "LD", [ADD] = "ADD", - [RET] = "RET" , [ADDI]= "ADD", [LDI] = "LD", [ADDX] = "ADD", - [ADCX] = "ADC" , [LDX] = "LD" , [LDFX] = "LD" -}; - -static char *regnames[] = { - [AF] = "AF", [HL] = "HL", [DE] = "DE", [BC] = "BC", [IX] = "IX", - [IY] = "IY", [SP] = "SP", [A] = "A", [F] = "F", [B] = "B", - [C] = "C", [D] = "D", [E] = "E", [H] = "H", [L] = "L", - [IXL]= "IXL",[IXH]= "IXH",[IYL]= "IYL",[IYH]= "IYH", [I] = "I" -}; - static bool reguse[NREGS]; static char upper[] = {[DE] = D, [HL] = H, [BC] = B, [IX] = IXH, [IY] = IYH}; static char lower[] = {[DE] = E, [HL] = L, [BC] = C, [IX] = IXL, [IY] = IYL};