public inbox for linux-8086@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCHES] bc fixes
@ 2004-09-18 15:23 Miguel Bolanos
  0 siblings, 0 replies; only message in thread
From: Miguel Bolanos @ 2004-09-18 15:23 UTC (permalink / raw)
  To: Linux-8086

[-- Attachment #1: Type: text/plain, Size: 374 bytes --]

I have commit the patches attached to elkscmd

Sat Sep 18 09:08:23 CST 2004    Miguel Bolanos <mike@linuxlabs.com>

        * 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


[-- Attachment #2: bc-makefile.patch --]
[-- Type: text/x-patch, Size: 285 bytes --]

--- ../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

[-- Attachment #3: bc-yacc-fixes.patch --]
[-- Type: text/x-patch, Size: 1221 bytes --]

--- ../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 <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");
--- ../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 <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. */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-09-18 15:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-18 15:23 [PATCHES] bc fixes Miguel Bolanos

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox