summaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog532
1 files changed, 515 insertions, 17 deletions
diff --git a/ChangeLog b/ChangeLog
index f277079..6e1ca74 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,501 @@
+Fri Apr 7 15:14:43 PDT 2017 Phil Nelson <philnelson@acm.org>
+ * NEWS: update for 1.07.1 and 1.4.1
+ * FAQ: add a couple new FAQs.
+ * doc/bc.1: change doucumentation of length() and correctly
+ represent newline.
+ * doc/bc.texi: change doucumentation of length()
+
+
+Fri Apr 7 13:43:31 PDT 2017 Ken Pizzini <ken@gnu.org>
+ * bc/configure.ac: update dc version to 1.4.1;
+ update dc copyright year list
+
+Fri Apr 7 13:14:41 PDT 2017 Phil Nelson <philnelson@acm.org>
+ * bc/Makefie.am: Do a different fix for parallel make issues.
+
+Fri Apr 7 00:11:49 PDT 2017 Ken Pizzini <ken@gnu.org>
+ * dc/eval.c, dc/numeric.c: take more care to never pass
+ a sign-extended char to the <ctype.h> isXXX() functions.
+ Thanks to a NetBSD compiler warning for flagging this.
+
+Thu Apr 6 22:47:46 PDT 2017 Phil Nelson <philnelson@acm.org>
+ * bc/execute.c: More tweaks to fix for read() problems.
+ * bc/Makefile.am: Attempt to fix parallel make problems.
+
+Thu Apr 6 16:39:25 PDT 2017 Phil Nelson <philnelson@acm.org>
+ * bc/execute.c: Correct leading space problem caused by last fix.
+ * bc/configure.ac: version to 1.07.1
+
+Thu Apr 6 15:37:22 PDT 2017 Phil Nelson <philnelson@acm.org>
+ * bc/execute.c: Correct input_char for base 36 input.
+ * doc/bc.1: Update documentation for base 36 input.
+ * doc/bc.texi: Update documentation for base 36 input.
+
+Thu Apr 6 14:26:27 PDT 2017 Ken Pizzini <ken@gnu.org>
+ * dc/eval.c: The 'Q' command "fix" of 2016-09-24 was incorrect.
+ It fixed a reported bug, but introduced a regression for other
+ existing (and correct) code. Let's try this again (sigh).
+
+Thu Apr 6 13:11:15 PDT 2017 Ken Pizzini <ken@gnu.org>
+ * dc/dc.c: bah, nevermind; just re-disovered commit of
+ Oct 26, 2013 where the setvbuf() was rendered unnecessary
+ by introduction of explicit fflush()-es.
+
+Thu Apr 6 13:11:15 PDT 2017 Ken Pizzini <ken@gnu.org>
+ * dc/dc.c: re-instate setvbuf() call that got lost
+
+Mon Jan 16 14:30:00 PDT 2017 Phil Nelson <philnelson@acm.org>
+ * Updated copyright to 2017.
+
+Sun Oct 23 16:38:05 PDT 2016 Ken Pizzini <ken@gnu.org>
+ * dc/eval.c: dc_system() already eats up to (and including)
+ a trailing newline, so don't fall-through in dc_evalstr()'s
+ DC_SYSTEM case to DC_COMMENT's skip_past_eol() call,
+ as that would unexpectedly require eating a second newline.
+ Thanks to David José for noticing and reporting the bug.
+
+Thu Oct 20 03:11:43 PDT 2016 Ken Pizzini <ken@gnu.org>
+ * doc/dc.texi: fix some typos.
+
+Mon Oct 17 00:28:50 PDT 2016 2016 Ken Pizzini <ken@gnu.org>
+ * doc/dc.1, doc/dc.texi: document the new default-to-zero
+ of the 'l' command.
+
+Mon Oct 17 00:02:11 PDT 2016 Ken Pizzini <ken@gnu.org>
+ * doc/dc.1, doc/dc.texi: be more careful in specifying how
+ the precision of the result of the "v" (square root)
+ command is determined.
+ Thanks to David José for pointing out that the old text
+ underspecified this.
+
+Sun Oct 16 23:43:05 PDT 2016 Ken Pizzini <ken@gnu.org>
+ * dc/stack.d: return a 0 (zero value; instead of reporting an error)
+ for the "l" command when the named register stack is empty.
+ Thanks to David José for the suggestion. (This is a useful default
+ value, and make GNU dc more compatable with BSD dc and Bell Labs
+ version 7 dc.)
+
+Wed Sep 28 13:24:50 PDT 2016 Ken Pizzini <ken@gnu.org>
+ * dc/eval.c, doc/dc.1, doc/dc.texi: update copyright dates
+
+Sat Sep 24 16:04:01 PDT 2016 Ken Pizzini <ken@gnu.org>
+ * dc/dc.c, dc/eval.c: yesterday's fix for 'Q' created a
+ new bug for the 'q' command; this fresh (and simpler!)
+ fix does the right thing. (Thanks again to Paul Rayner.)
+
+Fri Sep 23 22:49:17 PDT 2016 Ken Pizzini <ken@gnu.org>
+ * dc/dc.c: don't prematurely exit from stack-unwinding 'Q'
+ command
+ * dc/eval.c: ensure that DC_FAIL API value does not
+ collide with any internal dc_status code
+ * doc/dc.1, doc/dc.texi: clarify that 'Z' command reports
+ on digits in decimal representation in number (as opposed
+ to ambiguous, perhaps "o"base, digits).
+ * (Bugs reported by Paul Rayner; thanks.)
+
+Mon Feb 29 15:56:00 PST 2016 Phil Nelson <philnelson@acm.org>
+ * Makefile.am, bc/Makefile.am: update to not include
+ libmath.h in distribution.
+ * configure.ac: update copyright with 2016
+
+Mon Feb 29 13:06:00 PST 2016 Phil Nelson <philnelson@acm.org>
+ * bc/Makefile: Add $(LIBBC) as dependency to fbc so
+ libmath.h gets correctly built. sbc also needed it.
+
+Mon Feb 29 12:05:00 PST 2016 Phil Nelson <philnelson@acm.org>
+ * bc/util.c, bc.y: Fix two memory leaks submitted to
+ Gentoo by Bruce Dubbs.
+
+Tue Jan 19 22:10:10 PST 2016 Phil Nelson <philnelson@acm.org>
+ * bc/{execute.c, load.c, main.c, proto.h, scan.l, storage.c, util.c},
+ lib/number.c: Update copyrights, remove old style function
+ declarations, remove _PROTOTYPE macros, update to GPL V3.
+ Various other code cleanups.
+
+Mon Jan 11 14:01:32 PST 2016 Ken Pizzini <ken@gnu.org>
+ * doc/dc.texi: fix typo (reported by Avinash Sonawane)
+
+Mon May 11 16:40:31 PDT 2015 Ken Pizzini <ken@gnu.org>
+ * dc/stack.c: catch the case of an empty value on top of
+ a register stack (i.e., the stack entry is first created by
+ an array store on a previously unallocated register)
+ as a normal run-time error, rather than an abort() condition.
+ (Bug reported by Hanno Böck, who found it during fuzz testing.)
+
+Mon Jan 26 22:30:00 PST 2015 Phil Nelson <philnelson@acm.org>
+ * bc/execute.c, load.c, scan.l, storage.c: Extend input
+ base to allow for base 36 with Z being the largest
+ input digit. Now, ZZZZZ will be the largest 5 digit
+ number given the allowable bases.
+
+Mon Jan 26 21:34:00 PST 2015 Phil Nelson <philnelson@acm.org>
+ * various: updated copyright on all GPL licence comments.
+
+Mon Jan 19 00:03:05 PST 2015 Ken Pizzini <ken@gnu.org>
+ * News: brought up-to-date for dc-1.07 release
+ * README: bump relase number
+ * bootstrap.sh: let the autotools give us as much guidance as they can
+ * configure.ac: modernize, based on autotools' -Wall suggestions;
+ update copyright years; GPL version 3; use URL to get copy of GPL,
+ instead of snail-mail address; version bump (for both dc and bc);
+ simplify the libedit/readline/flex cross-check logic
+ * dc/eval.c: update copyright years
+
+Thu Nov 27 22:17:17 PST 2014 Ken Pizzini <ken@gnu.org>
+ * dc/eval.c: dc_evalstr() incorrectly used len-1, to omit counting the
+ closing ']', unconditionally, even when string parsing terminated
+ prematurely (end-of-string reached before closing ']' was found).
+ This is wrong in general, and painfully wrong when len==0.
+ (Bug reported by Hanno Böck, who found it during fuzz testing.)
+
+Fri Oct 31 13:50:18 PDT 2014 Ken Pizzini <ken@gnu.org>
+ * dc/eval.c: dc_evalstr() was inappropriately/prematurely returning
+ when the top-of-stack was a number. (Bug reported by Saito Takaaki.)
+
+Sun Sep 7 15:20:29 PDT 2014 Ken Pizzini <ken@gnu.org>
+ * dc/eval.c: the '!' command was incorrectly interacting with stdin
+ rather than fp (the current input stream) when reading the
+ shell command to be executed. (Bug reported by Dario Niedermann.)
+
+Sat Oct 26 14:54:37 PDT 2013 Ken Pizzini <ken@gnu.org>
+ * doc/dc.1, doc/dc.texi: Updated copyright dates.
+
+Sat Oct 26 14:54:37 PDT 2013 Ken Pizzini <ken@gnu.org>
+ * doc/dc.1, doc/dc.texi: Documented the "R" (rotate stack) command.
+
+Sat Oct 26 14:39:10 PDT 2013 Ken Pizzini <ken@gnu.org>
+ * dc/dc-proto.h, dc/dc.c, dc/eval.c, dc/misc.c, dc/numeric.c,
+ dc/stack.c, dc/string.c:
+ Explicitly flush output, instead of requesting line buffering,
+ as the user may be emitting a prompt (without a trailing newline)
+ within an inferior process. Also, clean-up/simplify related code.
+
+Fri Jun 29 13:14:18 PDT 2012 Ken Pizzini <ken@gnu.org>
+ * dc/eval.c dc/stack.c, dc/dc-proto.h:
+ Implement 'R', general stack rotation command
+
+Thu Mar 7 21:55:47 PST 2013 Phil Nelson <phil@cs.wwu.edu>
+ * configure.ac, bc/Makefile.am, dc/Makefile.am, lib/Makefile.am:
+ Update automake definitions for newer versions of automake.
+ Tested with version 1.13.1.
+
+Tue Nov 2 11:09:00 2010 Phil Nelson <phil@cs.wwu.edu>
+ * bc/{bc.y, execute.c, load.c, main.c, proto.h, scan.l,
+ util.c}: Add a bc_exit() routine that resets the editline
+ state in one place to exit. Removed editline state reset
+ in other places.
+
+Sun Mar 21 11:42:16 2010 Ken Pizzini <ken@gnu.org>
+ * dc/eval.c: take a more nuanced approach to handling SIGINT
+
+Thu May 22 17:28:07 2008 Ken Pizzini <ken@gnu.org>
+ * All: update copyright statements and license statements:
+ the code is now released under GPL-3, and documentation
+ under FDL-1.2.
+ * configure.in, Makefile.am, bootstrap.sh; h/* lib/* gnulib/* m4/*:
+ import portability code via gnulib-tools
+ * bc/bc.y, bc/sbc.y, bc/execute.c, bc/load.c, bc/main.c, bc/proto.h,
+ bc/scan.l, bc/util.c: detect, report (if possible), and exit with
+ error if any I/O errors are encountered
+ * doc/dc.texi: clean-up preamble (using more modern texinfo macros)
+
+Mon Sep 4 19:27:49 2006 Ken Pizzini <ken@gnu.org>
+ * configure.in: re-factor how version numbers are handled; add errno.h
+ and strtol() checks; add doc-texi-ver.incl output
+ * bc/bcdefs.h: Prefer <string.h> over <strings.h>
+ * bc/execute.c, bc/load.c, bc/main.c, bc/proto.h, bc/scan.l,
+ bc/storage.c, bc/util.c, bc/warranty.c: De-lint some with "const"
+ declarations, "static" declarations, and un-shadowing a few global
+ variables and functions
+ * dc/dc.c: add "static" keyword on flush_okay() function declaration,
+ just for good hygene
+ * dc/numeric.c: Reworked to avoid breaking C99 type-punning rules
+
+Wed Jun 14 08:21:17 2006 Ken Pizzini <ken@gnu.org>
+ * dc/numeric.c (dc_int2data): rework code so that C99 compilers
+ stop whining about the type punning
+ * dc/dc.c (flush_okay): add "static" keyword as a matter of good
+ coding hygene
+
+Sun Jun 11 21:40:37 2006 Ken Pizzini <ken@gnu.org>
+ * doc/bc.1: strip release version information which is not being
+ automatically kept up-to-date
+ * doc/dc.1: don't capitalize Dc or DC
+
+Sun Jun 11 09:07:26 2006 Ken Pizzini <ken@gnu.org>
+ * doc/bc.texi, doc/dc.texi, doc/texi-ver.incl.in, doc/Makefile.am:
+ make version text in texinfo-based documentation auto-derive from
+ configure.in
+ * configure.in: update to use more modern automake/autoconf
+ directives; factor out version numbers so that AC_SUBST and
+ AC_OUTPUT kcan be used to create doc/texi-ver.incl
+ * doc/Makefile.am: automake does (now) have a mechanism to
+ auto-include declared man pages in the dist tarball, so
+ remove FIXME block
+
+Sun Jun 11 03:04:18 2006 Ken Pizzini <ken@gnu.org>
+ * lib/Makefile.am: testmul, specialnumber, multidigits.h are
+ autogenerated by special request (only), and "make clean" should
+ remove them
+ * lib/testmul.c: CLOCKS_PER_SEC is typically a "long" value, so make
+ test_time wide enough to hold it; add missing #include directives
+ * lib/number.c: silly warning clean-up:
+ + declare rt_warn() and rt_error() to take a CONST char* first
+ argument
+ + neither _bc_rec_mul() nor _bc_simp_mul() use the full_scale
+ argument, so remove it in the function definitions and invocations
+ + some C libraries define an index() function; use a different index
+ variable name to avoid gratuitous namespace shadowing
+
+Sun Jun 4 13:56:58 2006 Ken Pizzini <ken@gnu.org>
+ * doc/dc.texi: document new DC_LINE_LENGTH variable; mention
+ traditional dc's handling of P with a numeric input
+ * dc/dc.c (flush_okay, main): make code detecting and handling
+ write errors cleaner
+
+Sun Jun 4 12:26:00 2006 Phil Nelson <phil@cs.wwu.edu>
+ * bc/main.c: Make sure 3 is the minimum line length.
+ * doc/bc.1, doc/bc.texi: Document the BC_LINE_LENGTH of 0 feature.
+
+Sun Jun 4 04:41:28 2006 Ken Pizzini <ken@gnu.org>
+ * dc/dc.c (main): fflush() isn't enough: also check that fclose()
+ does not return an error before exiting with EXIT_SUCCESS
+
+Sun Jun 4 04:15:15 2006 Ken Pizzini <ken@gnu.org>
+ * dc/dc.c, dc/eval.c: detect, report (if possible), and exit with error
+ if any I/O errors are encountered
+
+Sun Jun 4 02:27:41 2006 Ken Pizzini <ken@gnu.org>
+ * bc/main.c, bc/util.c: allow a BC_LINE_LENGTH of zero as a
+ special-case, meaning "don't ever wrap lines"
+ * dc/numeric.c, configure.in: add support for a DC_LINE_LENGTH
+ variable, with a value of zero meaning "don't ever wrap lines"
+
+Fri May 5 18:45:17 2006 Ken Pizzini <ken@gnu.org>
+ * dc/dc.c (try_file): S_ISREG() test was inverted! :-(
+ (how very embarrassing)
+
+ * configure.in: the "if test" -> "case" conversion in the last commit
+ translated the handling of flex incorrectly; fixed
+
+ * src/scan.l: readline versions 4.2 and up give their own prototype
+ for readline() in readline.h, which conflicts with the one that is
+ in scan.l, so just do without the prototype in scan.l (if someone
+ needs to backport to a very old version of readline, they should be
+ able to handle adding the prototype back in themselves)
+
+ * doc/bc.texi: use of @var{} in @item causes capitalization on output,
+ which is wrong, and furthermore the use of @var{} for e() and j() is
+ also inconsistent with how the other math functions are formatted
+
+Sat Apr 29 05:02:15 2006 Ken Pizzini <ken@gnu.org>
+ * configure.in: The "true" branch of AC_ARG_WITH needed to
+ be conditionalized on the value of $withval (thanks to Mike
+ Frysinger of Gentoo for pointing this out); prefer using
+ "case" over "if test" in shell string-match conditionals;
+ make use of AC_HELP_STRING; added copyright block; clean
+ out old "dnl"'d directives
+
+Sat Apr 29 04:02:23 2006 Ken Pizzini <ken@gnu.org>
+ * dc/dc.c (try_file): fix typo in S_ISFIFO conditional
+
+ * doc/bc.1, doc/bc.texi, doc/dc.1, doc/dc.texi: make some
+ formatting clean-up (minor)
+
+Wed Apr 26 15:38:32 2006 Ken Pizzini <ken@gnu.org>
+ * dc/dc.c (try_file): rework special-file detection so that
+ friendlier error messages can be given for the most common
+ error of this class (i.e., the "dc directory" typo).
+
+Thu Apr 20 17:45:46 2006 Ken Pizzini <ken@gnu.org>
+ * configure.in: Newer versions of flex (such as ver. 2.5.33)
+ don't seem to like an argument of "-I8" anymore ("option `I'
+ doesn't allow an argument"), so split that into "-I -8".
+
+Wed Mar 29 05:09:14 2006 Ken Pizzini <ken@gnu.org>
+ * dc/string.c, dc/misc.c, dc/stack.c, dc/dc.c, dc/eval.c, dc/array.c:
+ Make splint (http://www.splint.org/) happier by making all
+ comparisons to 0 and NULL explicit, and adding some explicit casts
+ that aren't strictly necessary. (But I'm omitting from this commit
+ various splint annotations that just serve to make the code ugly.)
+
+Tue Mar 28 13:36:00 2006 Phil Nelson <phil@cs.wwu.edu>
+ * bc/util.c: Move code so size checks are before use.
+
+ * doc/bc.1: Quote .IP argument.
+
+Tue Mar 28 12:09:38 2006 Ken Pizzini <ken@gnu.org>
+ * dc/dc.c (try_file): Added file type detection to ignore some
+ special files (particularly directories and block files), because
+ several people have asked that a typo for "cd" not fail silently.
+
+ * configure.in: add detection of fstat() to determine how the
+ above detection should be implemented.
+
+Wed Mar 15 9:50:00 2006 Phil Nelson <phil@cs.wwu.edu>
+ * lib/getopt.c: Added a define to disable/enable
+ gettext support. May need to be deleted later
+ when gettext is fully supported.
+
+Mon Mar 13 13:57:00 2006 Phil Nelson <phil@cs.wwu.edu>
+ * bc/bc.y: Remove second call to lookup() in a rule.
+ Removes a free'd twice bug.
+
+Sat May 28 05:42:01 2005 Ken Pizzini <ken@gnu.org>
+
+ * doc/dc.1, doc/dc.texi: add verbage about the need to use
+ upper-case letters for ibase>10 (bug reported by "TJIC").
+
+Fri May 20 ??:??:?? 2005 Ken Pizzini <ken@gnu.org>
+ * lib/getopt.c, lib/getopt1.c: Update to more recent versions.
+
+Fri May 27 09:19:21 2005 Ken Pizzini <ken@gnu.org>
+
+ * dc/eval.c: abstract out skip_past_eol() function to handle comments
+
+Fri May 27 07:30:52 2005 Ken Pizzini <ken@gnu.org>
+
+ * dc/numeric.c (dc_numlen), doc/dc.1, dc.texi: correct Z command
+ to match historical meaning
+
+Fri May 27 06:54:19 2005 Ken Pizzini <ken@gnu.org>
+
+ * dc/eval.c: ignore trailing comments in tail-recursion detection
+
+ * dc/eval.c, doc/dc.texi: finally fix dc to trap interrupts,
+ aborting pending macros but not exiting
+
+Fri May 27 03:37:30 2005 Ken Pizzini <ken@gnu.org>
+
+ * dc/numeric.c: Address Debian bug #221781: values exceeding
+ a C "long" don't play well with k/i/o/a/Q/:/; commands.
+ Adding a diagnostic, and returning a "more bogus" value than
+ zero, for this situation.
+
+Thu May 26 09:03:57 2005 Ken Pizzini <ken@gnu.org>
+
+ * dc/eval.c:
+ 1) fix tail recursion to also work for 'x' and '?' commands
+ 2) fix tail recursion to ignore trailing spaces in the current
+ invocation string when determining if tail recursion is
+ appropriate
+ 3) remove a couple of misleading and/or meaningless comments
+ 4) add documentation for stdin_lookahead, since the code is far
+ from transparent about its purpose and usage
+ 5) simplify ibase conditional by rearranging branches
+
+Wed May 25 21:20:08 2005 Ken Pizzini <ken@gnu.org>
+
+ * dc/array.c dc/dc-proto.h dc/dc-regdef.h dc/dc.c dc/dc.h
+ dc/eval.c dc/numeric.c: whitespace cleanup
+
+Wed May 25 19:48:26 2005 Ken Pizzini <ken@gnu.org>
+
+ * COPYING COPYING.LIB dc/dc-proto.h dc/dc-regdef.h dc/dc.h
+ dc/array.c dc/dc.c dc/eval.c dc/misc.c dc/numeric.c dc/stack.c
+ dc/string.c doc/dc.1 doc/dc.texi:
+ update FSF address in copyright notices
+
+Wed May 25 19:39:46 2005 Ken Pizzini <ken@gnu.org>
+
+ * dc/stack.c: If a register is used for an array, its corresponding
+ stack could be auto-created in the DC_UNINITIALIZED state; handle
+ this situation gracefully. Thanks to Ben Collerson
+ (http://bur.st/~benc/) for the bug report.
+
+Wed Dec 31 07:26:00 2003 Phil Nelson <phil@cs.wwu.edu>
+
+ * Makefile.am: add depcomp
+
+ * {bc,dc,lib}/Makefile.am: CFLAGS -> AM_CFLAGS, YFLAGS -> AM_YFLAGS
+
+ * bc/*: consistent copyright
+
+Fri May 9 21:52:46 2003 Ken Pizzini <ken@gnu.org>
+
+ * dc/dc-proto.h dc/dc.c dc/eval.c: add tail-recursion optimization
+
+ * dc/numeric.c: clean up handling of conditional includes/defines;
+ editorial fix to comment; trivial (indentation, mostly) clean-up of
+ out_char() function [gratuitious; commit was accidental and I'm
+ adding this note to a replacement log message]
+
+ * dc/misc.c: fixed spelling and grammatical errors in comment
+
+ * dc/dc-regdef.h: simplify the handling of UCHAR_MAX/DC_REGCOUNT
+ defaults
+
+Thu Apr 17 16:25:35 2003 Phil Nelson <phil@cs.wwu.edu>
+
+ * bc/{execute.c, proto.h, util.c}: char -> int in a few
+ places dealing with isdigit and getchar(), updated copyright
+
+ * bc/main.c: minor formatting changes, updated copyright
+
+ * bc/libmath.b, doc/{bc.1,bc.texi}: updated copyright
+
+Mon Mar 31 22:19:00 2003 Phil Nelson <phil@cs.wwu.edu>
+
+ * doc/{bc.1,bc.texi} Fix a couple of typos.
+ * bc/main.c: exit value changed when exiting from interrupt.
+
+Tue Mar 4 09:38:00 2003 Phil Nelson <phil@cs.wwu.edu>
+
+ * bc/libmath.b: Add one level recursion to each function to
+ get ibase set to 10 (decimal) if called with other ibases.
+
+Mon Nov 11 09:15:00 2002 Phil Nelson <phil@cs.wwu.edu>
+
+ * doc/{bc.1,bc.texi} Fix documentation about array parameters.
+
+Tue Mar 19 11:22:06 2002 Phil Nelson <phil@cs.wwu.edu>
+
+ * bc/{bc.y,bcdefs.h,scan.l}: Add void functions.
+ * doc/{bc.1,bc.texi}: Document void functions.
+ * bc/util.c: Fix bug in AVL routines.
+
+Wed May 23 08:40:00 2001 Phil Nelson <phil@cs.wwu.edu>
+
+ * Makefile.am, */Makefile.am, configure.in: Add gcc specific
+ flags only if using gcc.
+ * bc/{bc.y,sbc.y,bcdefs.h,const.h,execute.c,global.[ch],proto.h,
+ main.c,util.c}: Removal of buffer overflow, new extern
+ and initialization code. New dynamic buffer manipulation.
+ * bc/load.c: correct char extraction.
+ * bc/storage.c: correct expansion of variables and arrays.
+
+Sun May 13 19:29:43 2001 Ken Pizzini <ken@gnu.org>
+
+ * dc/array.c: minor optimization: stop scanning array entry indicies
+ if we step beyond the target index
+
+Sun May 13 19:09:31 2001 Ken Pizzini <ken@gnu.org>
+
+ * dc/dc.c: traditional dc implementations drop into reading stdin
+ after processing command-line files; defer to tradition
+
+Sat Feb 17 22:41:14 2001 Phil Nelson <phil@cs.wwu.edu>
+
+ * bc/{main.c} Add case 0 for long options that set variables.
+ Correct spelling in usage statement.
+
+Mon Jan 22 18:33:43 2001 Phil Nelson <phil@cs.wwu.edu>
+
+ * bc/main.c: Make sure signal code doesn't stomp on errno.
+ * bc/load.c: Make save_addr in load_code() static since it
+ is now possible to call load_code() multiple times in a single
+ function.
+
+Fri Jan 19 10:33:13 2001 Phil Nelson <phil@cs.wwu.edu>
+
+ * bc/{main.c,execute.c}: Don't use stdio calls in signal
+ handlers. Call write directly and move code.
+
+Wed Jan 10 11:33:51 2001 Phil Nelson <phil@cs.wwu.edu>
+
+ * lib/getopt.c: Include string.h if available.
+ lib/number.c: (bcmath change) Include string.h if available.
+
Wed Sep 27 17:19:48 2000 Phil Nelson <phil@cs.wwu.edu>
* doc/bc.texi: Added new file. Mainly translated from bc.1
@@ -13,7 +511,7 @@ Wed Sep 13 11:40:24 2000 Phil Nelson <phil@cs.wwu.edu>
* bc/main.c: add --interactive to long options.
bc/bc.1: add -i/--interactive to doc.
MANY: Update FSF address and Phil's e-mail.
-
+
Tue Sep 12 13:58:16 2000 Phil Nelson <phil@cs.wwu.edu>
* NEWS: update for recent changes.
@@ -67,7 +565,7 @@ Thu Jul 13 18:13:00 2000 Phil Nelson <phil@cs.wwu.edu>
Tue Jun 20 22:52:10 2000 Phil Nelson <phil@cs.wwu.edu>
- * bc/bcdefs.h: Include <readline/history.h> to quiet warnings.
+ * bc/bcdefs.h: Include <readline/history.h> to quiet warnings.
* configure.in: make --with-readline and --with-libedit work correctly.
@@ -101,8 +599,8 @@ Sun 2000-05-07 Phil Nelson <phil@cs.wwu.edu>
-Wall and for name changes in lib/number.c. (Added bc_ to several
routine. Updated copyright notice.)
- * h/number.h, lib/number.c: Now comes from bcmath library which is
- distributed in a different place.
+ * h/number.h, lib/number.c: Now comes from bcmath library which is
+ distributed in a different place.
Wed Mar 29 17:47:34 2000 Phil Nelson <phil@cs.wwu.edu>
@@ -119,7 +617,7 @@ Wed Mar 29 10:20:18 2000 Phil Nelson <phil@cs.wwu.edu>
Tue Mar 28 13:52:35 2000 Phil Nelson <phil@cs.wwu.edu>
- * lib/number.c, h/number.h: Moved definitions so
+ * lib/number.c, h/number.h: Moved definitions so
number.c/number.h is a stand-alone "library".
Changed definition of out_num to not reference a global.
* lib/testmul.c: updated #includes for number.h changes.
@@ -166,7 +664,7 @@ Tue Feb 8 08:47:05 2000 Phil Nelson <phil@cs.wwu.edu>
Finally got a resonable version of the program
to test the crossover between non-recursive and
recursive multiply algorithms. Added to distribution
- and build process. Does increase build time by
+ and build process. Does increase build time by
about 10 minutes.
Wed Oct 6 13:28:59 1999 Phil Nelson <phil@cs.wwu.edu>
@@ -225,7 +723,7 @@ Fri Apr 17 10:40:59 1998 Phil Nelson <phil@cs.wwu.edu>
Thu Apr 16 16:49:22 1998 Phil Nelson <phil@cs.wwu.edu>
- * bc/configure.in: Tweeking of AM_PROG_LEX and associated
+ * bc/configure.in: Tweeking of AM_PROG_LEX and associated
special case goo for solaris.
Sat Mar 28 21:43:18 1998 Phil Nelson <phil@cs.wwu.edu>
@@ -410,7 +908,7 @@ Fri Apr 11 16:14:42 1997 Phil Nelson <phil@cs.wwu.edu>
bc/Makefile.am bc/bc.y dc/Makefile.am: Changes to accomodate
automake-1.1n (pre-release version of automake 1.2).
- * bc/bc.y bc/sbc.y: Changes to make sure tokens are numbered the
+ * bc/bc.y bc/sbc.y: Changes to make sure tokens are numbered the
same in bc/bc.h and bc/sbc.h.
* bc/scan.l: Changes for automake's naming convention.
@@ -428,7 +926,7 @@ Thu Apr 10 14:42:55 1997 Phil Nelson <phil@cs.wwu.edu>
* h/version.h: Changed bc version to 1.04.
- * lib/number.c: Changed copyright comment and added 1997 to
+ * lib/number.c: Changed copyright comment and added 1997 to
copyright years.
* lib/vfprintf.c: Noted that this was only for minix.
@@ -442,7 +940,7 @@ Thu Apr 10 13:41:56 1997 Phil Nelson <phil@fawn.cs.wwu.edu>
Thu Apr 8 13:39:53 1997 Phil Nelson <phil@cs.wwu.edu>
- * bc/Makefile.am: Remove files that should not be distributed.
+ * bc/Makefile.am: Remove files that should not be distributed.
Mon Apr 7 17:14:28 1997 Phil Nelson <phil@cs.wwu.edu>
@@ -632,7 +1130,7 @@ Wed Jun 28 19:03:51 1995 Phil Nelson <phil@cs.wwu.edu>
Wed Jun 28 01:33:07 1995 Phil Nelson <phil@cs.wwu.edu>
* acconfig.h, bc.y, scan.l, storage.c, util.c, configure.in:
- Improved readline support with a new pseudo variable "history"
+ Improved readline support with a new pseudo variable "history"
that controls the number of history lines available.
Also removed "optional" history.
@@ -719,7 +1217,7 @@ Mon Mar 20 19:26:06 1995 Phil Nelson <phil@cs.wwu.edu>
Tue Feb 28 14:30:18 1995 Phil Nelson <phil@cs.wwu.edu>
- * Makefile.in: Change realclean to maintainer-clean. Added warning.
+ * Makefile.in: Change realclean to maintainer-clean. Added warning.
Mon Feb 27 17:08:24 1995 Phil Nelson <phil@cs.wwu.edu>
@@ -761,7 +1259,7 @@ Wed Nov 2 10:18:19 1994 Phil Nelson (phil@cs.wwu.edu)
* version.h: updated version number and copyright date.
- * Makefile.in, configure.in, Install: updated for use with
+ * Makefile.in, configure.in, Install: updated for use with
autoconf-2.0 and install-sh. Changed target install a bit.
* install-sh: Included this file from the autoconf-2.0
@@ -770,10 +1268,10 @@ Wed Nov 2 10:18:19 1994 Phil Nelson (phil@cs.wwu.edu)
* README: updated to version 1.03.
Mon Oct 31 10:26:28 1994 Phil Nelson (phil@cs.wwu.edu)
-
+
* Added Ken Pizzini's dc implementation that uses bc numeric
routines. The following files have been added:
- dc-Concerns dc-array.c dc-eval.c dc-misc.c dc-number.c
+ dc-Concerns dc-array.c dc-eval.c dc-misc.c dc-number.c
dc-proto.h dc-regdef.h dc-stack.c dc-string.c dc-version.h
dc.1 dc.h dc.texinfo
@@ -868,7 +1366,7 @@ Wed Sep 30 10:43:52 1992 Phil Nelson (phil at cs.wwu.edu)
Tue Sep 29 15:27:50 1992 Phil Nelson (phil at cs.wwu.edu)
* storage.c (process_params): Changed processing of more arguments
- than in a function definition to just a return.
+ than in a function definition to just a return.
* Makefile: Made changes to make it more in conformance with the
GNU coding standards.
@@ -953,7 +1451,7 @@ Thu Jan 16 17:08:16 1992 Phil Nelson (phil at cs.wwu.edu)
Wed Jan 8 13:23:42 1992 Phil Nelson (phil at cs.wwu.edu)
* Change all copyright notices to include 1992.
-
+
* (load.c) Added termination to "load_code" to ignore code
after an error has been found.