public inbox for linux-8086@vger.kernel.org
 help / color / mirror / Atom feed
From: Miguel Bolanos <mike@hsol.net>
To: Linux-8086 <linux-8086@vger.kernel.org>
Subject: [PATCHES] bc fixes
Date: Sat, 18 Sep 2004 09:23:49 -0600	[thread overview]
Message-ID: <1095521029.1986.3.camel@talena.hsol.net> (raw)

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

                 reply	other threads:[~2004-09-18 15:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1095521029.1986.3.camel@talena.hsol.net \
    --to=mike@hsol.net \
    --cc=linux-8086@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox