diff options
author | Anas Nashif <anas.nashif@intel.com> | 2012-10-30 12:31:32 -0700 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2012-10-30 12:31:32 -0700 |
commit | 9bd48f8a0d2fe2fb815eb403a1dcf590d8487adc (patch) | |
tree | fc69baa1f9236d9f89de962ddd3f34869baf36db | |
parent | 8a20c2b44eb7d5f4b05f734576321c593101173e (diff) | |
download | bc-9bd48f8a0d2fe2fb815eb403a1dcf590d8487adc.tar.gz bc-9bd48f8a0d2fe2fb815eb403a1dcf590d8487adc.tar.bz2 bc-9bd48f8a0d2fe2fb815eb403a1dcf590d8487adc.zip |
flex
-rw-r--r-- | bc/load.c | 2 | ||||
-rw-r--r-- | bc/scan.l | 2 | ||||
-rw-r--r-- | bc/util.c | 4 | ||||
-rw-r--r-- | configure.in | 2 | ||||
-rw-r--r-- | doc/bc.info | 5 |
5 files changed, 10 insertions, 5 deletions
@@ -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; @@ -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 @@ -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) |