From mboxrd@z Thu Jan 1 00:00:00 1970 From: Miguel Bolanos Subject: [PATCHES] bc fixes Date: Sat, 18 Sep 2004 09:23:49 -0600 Sender: linux-8086-owner@vger.kernel.org Message-ID: <1095521029.1986.3.camel@talena.hsol.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-W9FYb8TJp0yco8BT0Pxx" Return-path: List-Id: To: Linux-8086 --=-W9FYb8TJp0yco8BT0Pxx Content-Type: text/plain Content-Transfer-Encoding: 7bit I have commit the patches attached to elkscmd Sat Sep 18 09:08:23 CST 2004 Miguel Bolanos * 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 --=-W9FYb8TJp0yco8BT0Pxx Content-Disposition: attachment; filename=bc-makefile.patch Content-Type: text/x-patch; name=bc-makefile.patch; charset=iso-8859-1 Content-Transfer-Encoding: 7bit --- ../elkscmd.orig/bc/Makefile 2004-09-18 01:15:08.669129240 -0600 +++ ./bc/Makefile 2004-09-18 01:06:15.755144480 -0600 @@ -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 --=-W9FYb8TJp0yco8BT0Pxx Content-Disposition: attachment; filename=bc-yacc-fixes.patch Content-Type: text/x-patch; name=bc-yacc-fixes.patch; charset=iso-8859-1 Content-Transfer-Encoding: 7bit --- ../elkscmd.orig/bc/bc.y 2004-09-18 01:15:08.670129088 -0600 +++ ./bc/bc.y 2004-09-18 01:18:05.267282240 -0600 @@ -78,7 +78,7 @@ /* 'return', 'for', 'if', 'while', 'sqrt', 'else' */ %token Scale Ibase Obase Auto Read /* 'scale', 'ibase', 'obase', 'auto', 'read' */ -%token Warranty, Halt, Last, Continue, Print, Limits +%token 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"); --- ../elkscmd.orig/bc/sbc.y 2004-09-18 01:15:08.672128784 -0600 +++ ./bc/sbc.y 2004-09-18 01:32:30.331772448 -0600 @@ -58,7 +58,7 @@ /* 'return', 'for', 'if', 'while', 'sqrt', 'else' */ %token Scale Ibase Obase Auto Read /* 'scale', 'ibase', 'obase', 'auto', 'read' */ -%token Warranty, Halt, Last, Continue, Print, Limits +%token Warranty Halt Last Continue Print Limits /* 'warranty', 'halt', 'last', 'continue', 'print', 'limits' */ /* The types of all other non-terminals. */ --=-W9FYb8TJp0yco8BT0Pxx--