summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-10-30 12:31:32 -0700
committerAnas Nashif <anas.nashif@intel.com>2012-10-30 12:31:32 -0700
commit9bd48f8a0d2fe2fb815eb403a1dcf590d8487adc (patch)
treefc69baa1f9236d9f89de962ddd3f34869baf36db
parent8a20c2b44eb7d5f4b05f734576321c593101173e (diff)
downloadbc-9bd48f8a0d2fe2fb815eb403a1dcf590d8487adc.tar.gz
bc-9bd48f8a0d2fe2fb815eb403a1dcf590d8487adc.tar.bz2
bc-9bd48f8a0d2fe2fb815eb403a1dcf590d8487adc.zip
flex
-rw-r--r--bc/load.c2
-rw-r--r--bc/scan.l2
-rw-r--r--bc/util.c4
-rw-r--r--configure.in2
-rw-r--r--doc/bc.info5
5 files changed, 10 insertions, 5 deletions
diff --git a/bc/load.c b/bc/load.c
index 40b8051..7465481 100644
--- a/bc/load.c
+++ b/bc/load.c
@@ -156,7 +156,7 @@ load_code (code)
long label_no;
long vaf_name; /* variable, array or function number. */
long func;
- program_counter save_adr;
+ program_counter save_adr = { 0, 0 };;
/* Initialize. */
str = code;
diff --git a/bc/scan.l b/bc/scan.l
index b4addaa..38aa2f0 100644
--- a/bc/scan.l
+++ b/bc/scan.l
@@ -143,7 +143,7 @@ static int rl_len = 0;
/* Definitions for readline access. */
extern FILE *rl_instream;
-_PROTOTYPE(char *readline, (char *));
+/* _PROTOTYPE(char *readline, (char *)); */
/* rl_input puts upto MAX characters into BUF with the number put in
BUF placed in *RESULT. If the yy input file is the same as
diff --git a/bc/util.c b/bc/util.c
index c305c2e..48bcbe0 100644
--- a/bc/util.c
+++ b/bc/util.c
@@ -423,7 +423,7 @@ int insert_id_rec (root, new_id)
case 0: /* no height increase. */
return (FALSE);
case -1: /* height increase. */
- return (FALSE);
+ return (TRUE);
case -2: /* we need to do a rebalancing act. */
A = *root;
B = (*root)->left;
@@ -476,7 +476,7 @@ int insert_id_rec (root, new_id)
case 0: /* no height increase. */
return (FALSE);
case 1: /* height increase. */
- return (FALSE);
+ return (TRUE);
case 2: /* we need to do a rebalancing act. */
A = *root;
B = (*root)->right;
diff --git a/configure.in b/configure.in
index 5f982d3..dfa8d68 100644
--- a/configure.in
+++ b/configure.in
@@ -68,7 +68,7 @@ AC_ARG_WITH(readline,[ --with-readline support fancy command input edit
])
if test "$LEX" = "flex" ; then
- LEX="flex -I8"
+ LEX="flex -I -8"
else
if test "$bcrl" = "y" ; then
AC_MSG_WARN(readline works only with flex.)
diff --git a/doc/bc.info b/doc/bc.info
index 2aa2685..2e6648b 100644
--- a/doc/bc.info
+++ b/doc/bc.info
@@ -1,5 +1,10 @@
This is bc.info, produced by makeinfo version 4.0 from bc.texi.
+START-INFO-DIR-ENTRY
+* bc: (bc). An arbritrary precision calculator language
+END-INFO-DIR-ENTRY
+
+

File: bc.info, Node: Top, Next: Introduction, Prev: (dir), Up: (dir)