bc fixes
PATCH 1/1 bc fixes
I have commit the patches attached to elkscmd
Sat Sep 18 09:08:23 CST 2004 Miguel Bolanos <[email protected]>
* Fixed warning caused by some "," on bc.y and sbc.y
* Fixed a broken expresion on bc.y
* Fixed bc's Makefile to use bison rather than yacc, also fixed
the
flags from $(LEX), as flex will no accept -I8.
best regards
Mike
bc/Makefile renamed from elkscmd.orig/bc/Makefile +3 -3
@@ -47,10 +47,10 @@ SHELL = /bin/sh -YACC = yacc -#YACC = bison -y +#YACC = yacc +YACC = bison -y -LEX = flex -I8 +LEX = flex -I -8 #LEX = lex CC = bcc
bc/bc.y renamed from elkscmd.orig/bc/bc.y +1 -2
@@ -78,7 +78,7 @@ /* 'return', 'for', 'if', 'while', 'sqrt', 'else' */ %token <i_value> Scale Ibase Obase Auto Read /* 'scale', 'ibase', 'obase', 'auto', 'read' */ -%token <i_value> Warranty, Halt, Last, Continue, Print, Limits +%token <i_value> Warranty Halt Last Continue Print Limits /* 'warranty', 'halt', 'last', 'continue', 'print', 'limits' */ /* Types of all other things. */
@@ -405,7 +405,6 @@ generate (genstr); $$ = 0; } - ; | expression AND { warn("&& operator");
bc/sbc.y renamed from elkscmd.orig/bc/sbc.y +1 -1
@@ -58,7 +58,7 @@ /* 'return', 'for', 'if', 'while', 'sqrt', 'else' */ %token <i_value> Scale Ibase Obase Auto Read /* 'scale', 'ibase', 'obase', 'auto', 'read' */ -%token <i_value> Warranty, Halt, Last, Continue, Print, Limits +%token <i_value> Warranty Halt Last Continue Print Limits /* 'warranty', 'halt', 'last', 'continue', 'print', 'limits' */ /* The types of all other non-terminals. */