56 lines
1.4 KiB
Plaintext
56 lines
1.4 KiB
Plaintext
--- bc/load.c
|
||
+++ bc/load.c
|
||
@@ -156,7 +156,7 @@
|
||
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;
|
||
--- bc/scan.l
|
||
+++ bc/scan.l
|
||
@@ -143,7 +143,7 @@
|
||
|
||
/* 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
|
||
--- bc/util.c
|
||
+++ bc/util.c
|
||
@@ -423,7 +423,7 @@
|
||
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 @@
|
||
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;
|
||
--- doc/bc.info
|
||
+++ 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)
|
||
|