Blame ChangeLog

Packit 70b277
Fri Apr  7 15:14:43 PDT 2017  Phil Nelson <philnelson@acm.org>
Packit 70b277
	* NEWS: update for 1.07.1 and 1.4.1
Packit 70b277
	* FAQ: add a couple new FAQs.
Packit 70b277
	* doc/bc.1: change doucumentation of length() and correctly
Packit 70b277
	  represent newline.
Packit 70b277
	* doc/bc.texi: change doucumentation of length()
Packit 70b277
Packit 70b277
Packit 70b277
Fri Apr  7 13:43:31 PDT 2017 Ken Pizzini <ken@gnu.org>
Packit 70b277
	* bc/configure.ac: update dc version to 1.4.1;
Packit 70b277
	  update dc copyright year list
Packit 70b277
Packit 70b277
Fri Apr  7 13:14:41 PDT 2017 Phil Nelson <philnelson@acm.org>
Packit 70b277
	* bc/Makefie.am: Do a different fix for parallel make issues.
Packit 70b277
Packit 70b277
Fri Apr  7 00:11:49 PDT 2017 Ken Pizzini <ken@gnu.org>
Packit 70b277
	* dc/eval.c, dc/numeric.c: take more care to never pass
Packit 70b277
	  a sign-extended char to the <ctype.h> isXXX() functions.
Packit 70b277
	  Thanks to a NetBSD compiler warning for flagging this.
Packit 70b277
Packit 70b277
Thu Apr  6 22:47:46 PDT 2017 Phil Nelson <philnelson@acm.org>
Packit 70b277
	* bc/execute.c: More tweaks to fix for read() problems.
Packit 70b277
	* bc/Makefile.am: Attempt to fix parallel make problems.
Packit 70b277
Packit 70b277
Thu Apr  6 16:39:25 PDT 2017 Phil Nelson <philnelson@acm.org>
Packit 70b277
	* bc/execute.c: Correct leading space problem caused by last fix.
Packit 70b277
	* bc/configure.ac: version to 1.07.1
Packit 70b277
Packit 70b277
Thu Apr  6 15:37:22 PDT 2017 Phil Nelson <philnelson@acm.org>
Packit 70b277
	* bc/execute.c: Correct input_char for base 36 input.
Packit 70b277
	* doc/bc.1: Update documentation for base 36 input.
Packit 70b277
	* doc/bc.texi: Update documentation for base 36 input.
Packit 70b277
Packit 70b277
Thu Apr  6 14:26:27 PDT 2017 Ken Pizzini <ken@gnu.org>
Packit 70b277
	* dc/eval.c: The 'Q' command "fix" of 2016-09-24 was incorrect.
Packit 70b277
	  It fixed a reported bug, but introduced a regression for other
Packit 70b277
	  existing (and correct) code.  Let's try this again (sigh).
Packit 70b277
Packit 70b277
Thu Apr  6 13:11:15 PDT 2017 Ken Pizzini <ken@gnu.org>
Packit 70b277
	* dc/dc.c: bah, nevermind; just re-disovered commit of
Packit 70b277
	  Oct 26, 2013 where the setvbuf() was rendered unnecessary
Packit 70b277
	  by introduction of explicit fflush()-es.
Packit 70b277
Packit 70b277
Thu Apr  6 13:11:15 PDT 2017 Ken Pizzini <ken@gnu.org>
Packit 70b277
	* dc/dc.c: re-instate setvbuf() call that got lost
Packit 70b277
Packit 70b277
Mon Jan 16 14:30:00 PDT 2017 Phil Nelson <philnelson@acm.org>
Packit 70b277
	* Updated copyright to 2017.
Packit 70b277
Packit 70b277
Sun Oct 23 16:38:05 PDT 2016 Ken Pizzini <ken@gnu.org>
Packit 70b277
	* dc/eval.c: dc_system() already eats up to (and including)
Packit 70b277
	  a trailing newline, so don't fall-through in dc_evalstr()'s
Packit 70b277
	  DC_SYSTEM case to DC_COMMENT's skip_past_eol() call,
Packit 70b277
	  as that would unexpectedly require eating a second newline.
Packit 70b277
	  Thanks to David José for noticing and reporting the bug.
Packit 70b277
Packit 70b277
Thu Oct 20 03:11:43 PDT 2016 Ken Pizzini <ken@gnu.org>
Packit 70b277
	* doc/dc.texi: fix some typos.
Packit 70b277
Packit 70b277
Mon Oct 17 00:28:50 PDT 2016 2016 Ken Pizzini <ken@gnu.org>
Packit 70b277
	* doc/dc.1, doc/dc.texi: document the new default-to-zero
Packit 70b277
	  of the 'l' command.
Packit 70b277
Packit 70b277
Mon Oct 17 00:02:11 PDT 2016 Ken Pizzini <ken@gnu.org>
Packit 70b277
	* doc/dc.1, doc/dc.texi: be more careful in specifying how
Packit 70b277
	  the precision of the result of the "v" (square root)
Packit 70b277
	  command is determined.
Packit 70b277
	  Thanks to David José for pointing out that the old text
Packit 70b277
	  underspecified this.
Packit 70b277
Packit 70b277
Sun Oct 16 23:43:05 PDT 2016 Ken Pizzini <ken@gnu.org>
Packit 70b277
	* dc/stack.d: return a 0 (zero value; instead of reporting an error)
Packit 70b277
	  for the "l" command when the named register stack is empty.
Packit 70b277
	  Thanks to David José for the suggestion.  (This is a useful default
Packit 70b277
	  value, and make GNU dc more compatable with BSD dc and Bell Labs
Packit 70b277
	  version 7 dc.)
Packit 70b277
Packit 70b277
Wed Sep 28 13:24:50 PDT 2016 Ken Pizzini <ken@gnu.org>
Packit 70b277
	* dc/eval.c, doc/dc.1, doc/dc.texi: update copyright dates
Packit 70b277
Packit 70b277
Sat Sep 24 16:04:01 PDT 2016 Ken Pizzini <ken@gnu.org>
Packit 70b277
	* dc/dc.c, dc/eval.c: yesterday's fix for 'Q' created a
Packit 70b277
	  new bug for the 'q' command; this fresh (and simpler!)
Packit 70b277
	  fix does the right thing.  (Thanks again to Paul Rayner.)
Packit 70b277
Packit 70b277
Fri Sep 23 22:49:17 PDT 2016 Ken Pizzini <ken@gnu.org>
Packit 70b277
	* dc/dc.c: don't prematurely exit from stack-unwinding 'Q'
Packit 70b277
	  command
Packit 70b277
	* dc/eval.c: ensure that DC_FAIL API value does not
Packit 70b277
	  collide with any internal dc_status code
Packit 70b277
	* doc/dc.1, doc/dc.texi: clarify that 'Z' command reports
Packit 70b277
	  on digits in decimal representation in number (as opposed
Packit 70b277
	  to ambiguous, perhaps "o"base, digits).
Packit 70b277
	* (Bugs reported by Paul Rayner; thanks.)
Packit 70b277
Packit 70b277
Mon Feb 29 15:56:00 PST 2016 Phil Nelson <philnelson@acm.org>
Packit 70b277
	* Makefile.am, bc/Makefile.am: update to not include
Packit 70b277
	libmath.h in distribution.
Packit 70b277
	* configure.ac: update copyright with 2016
Packit 70b277
Packit 70b277
Mon Feb 29 13:06:00 PST 2016 Phil Nelson <philnelson@acm.org>
Packit 70b277
	* bc/Makefile: Add $(LIBBC) as dependency to fbc so
Packit 70b277
	libmath.h gets correctly built.  sbc also needed it.
Packit 70b277
Packit 70b277
Mon Feb 29 12:05:00 PST 2016 Phil Nelson <philnelson@acm.org>
Packit 70b277
	* bc/util.c, bc.y: Fix two memory leaks submitted to
Packit 70b277
	Gentoo by Bruce Dubbs.
Packit 70b277
Packit 70b277
Tue Jan 19 22:10:10 PST 2016 Phil Nelson <philnelson@acm.org>
Packit 70b277
	* bc/{execute.c, load.c, main.c, proto.h, scan.l, storage.c, util.c},
Packit 70b277
	  lib/number.c: Update copyrights, remove old style function
Packit 70b277
	declarations, remove _PROTOTYPE macros, update to GPL V3.
Packit 70b277
	Various other code cleanups.
Packit 70b277
Packit 70b277
Mon Jan 11 14:01:32 PST 2016 Ken Pizzini <ken@gnu.org>
Packit 70b277
	* doc/dc.texi: fix typo (reported by Avinash Sonawane)
Packit 70b277
Packit 70b277
Mon May 11 16:40:31 PDT 2015 Ken Pizzini <ken@gnu.org>
Packit 70b277
	* dc/stack.c: catch the case of an empty value on top of
Packit 70b277
	  a register stack (i.e., the stack entry is first created by
Packit 70b277
	  an array store on a previously unallocated register)
Packit 70b277
	  as a normal run-time error, rather than an abort() condition.
Packit 70b277
	  (Bug reported by Hanno Böck, who found it during fuzz testing.)
Packit 70b277
Packit 70b277
Mon Jan 26 22:30:00 PST 2015 Phil Nelson <philnelson@acm.org>
Packit 70b277
	* bc/execute.c, load.c, scan.l, storage.c:  Extend input
Packit 70b277
	  base to allow for base 36 with Z being the largest
Packit 70b277
	  input digit.  Now, ZZZZZ will be the largest 5 digit
Packit 70b277
	  number given the allowable bases.
Packit 70b277
Packit 70b277
Mon Jan 26 21:34:00 PST 2015 Phil Nelson <philnelson@acm.org>
Packit 70b277
	* various: updated copyright on all GPL licence comments.
Packit 70b277
Packit 70b277
Mon Jan 19 00:03:05 PST 2015 Ken Pizzini <ken@gnu.org>
Packit 70b277
	* News: brought up-to-date for dc-1.07 release
Packit 70b277
	* README: bump relase number
Packit 70b277
	* bootstrap.sh: let the autotools give us as much guidance as they can
Packit 70b277
	* configure.ac: modernize, based on autotools' -Wall suggestions;
Packit 70b277
	  update copyright years; GPL version 3; use URL to get copy of GPL,
Packit 70b277
	  instead of snail-mail address; version bump (for both dc and bc);
Packit 70b277
	  simplify the libedit/readline/flex cross-check logic
Packit 70b277
	* dc/eval.c: update copyright years
Packit 70b277
Packit 70b277
Thu Nov 27 22:17:17 PST 2014 Ken Pizzini <ken@gnu.org>
Packit 70b277
	* dc/eval.c: dc_evalstr() incorrectly used len-1, to omit counting the
Packit 70b277
	  closing ']', unconditionally, even when string parsing terminated
Packit 70b277
	  prematurely (end-of-string reached before closing ']' was found).
Packit 70b277
	  This is wrong in general, and painfully wrong when len==0.
Packit 70b277
	  (Bug reported by Hanno Böck, who found it during fuzz testing.)
Packit 70b277
Packit 70b277
Fri Oct 31 13:50:18 PDT 2014 Ken Pizzini <ken@gnu.org>
Packit 70b277
	* dc/eval.c: dc_evalstr() was inappropriately/prematurely returning
Packit 70b277
	  when the top-of-stack was a number.  (Bug reported by Saito Takaaki.)
Packit 70b277
Packit 70b277
Sun Sep  7 15:20:29 PDT 2014 Ken Pizzini <ken@gnu.org>
Packit 70b277
	* dc/eval.c: the '!' command was incorrectly interacting with stdin
Packit 70b277
	  rather than fp (the current input stream) when reading the
Packit 70b277
	  shell command to be executed.  (Bug reported by Dario Niedermann.)
Packit 70b277
Packit 70b277
Sat Oct 26 14:54:37 PDT 2013 Ken Pizzini <ken@gnu.org>
Packit 70b277
	* doc/dc.1, doc/dc.texi: Updated copyright dates.
Packit 70b277
Packit 70b277
Sat Oct 26 14:54:37 PDT 2013 Ken Pizzini <ken@gnu.org>
Packit 70b277
	* doc/dc.1, doc/dc.texi: Documented the "R" (rotate stack) command.
Packit 70b277
Packit 70b277
Sat Oct 26 14:39:10 PDT 2013 Ken Pizzini <ken@gnu.org>
Packit 70b277
	* dc/dc-proto.h, dc/dc.c, dc/eval.c, dc/misc.c, dc/numeric.c,
Packit 70b277
	  dc/stack.c, dc/string.c:
Packit 70b277
	  Explicitly flush output, instead of requesting line buffering,
Packit 70b277
	  as the user may be emitting a prompt (without a trailing newline)
Packit 70b277
	  within an inferior process.  Also, clean-up/simplify related code.
Packit 70b277
Packit 70b277
Fri Jun 29 13:14:18 PDT 2012 Ken Pizzini <ken@gnu.org>
Packit 70b277
	* dc/eval.c dc/stack.c, dc/dc-proto.h:
Packit 70b277
	  Implement 'R', general stack rotation command
Packit 70b277
Packit 70b277
Thu Mar  7 21:55:47 PST 2013 Phil Nelson <phil@cs.wwu.edu>
Packit 70b277
	* configure.ac, bc/Makefile.am, dc/Makefile.am, lib/Makefile.am:
Packit 70b277
	  Update automake definitions for newer versions of automake.
Packit 70b277
	  Tested with version 1.13.1.
Packit 70b277
Packit 70b277
Tue Nov  2 11:09:00 2010 Phil Nelson <phil@cs.wwu.edu>
Packit 70b277
	* bc/{bc.y, execute.c, load.c, main.c, proto.h, scan.l,
Packit 70b277
	  util.c}:  Add a bc_exit() routine that resets the editline
Packit 70b277
	  state in one place to exit.  Removed editline state reset
Packit 70b277
	  in other places.
Packit 70b277
Packit 70b277
Sun Mar 21 11:42:16 2010 Ken Pizzini <ken@gnu.org>
Packit 70b277
	* dc/eval.c: take a more nuanced approach to handling SIGINT
Packit 70b277
Packit 70b277
Thu May 22 17:28:07 2008 Ken Pizzini <ken@gnu.org>
Packit 70b277
	* All: update copyright statements and license statements:
Packit 70b277
	  the code is now released under GPL-3, and documentation
Packit 70b277
	  under FDL-1.2.
Packit 70b277
	* configure.in, Makefile.am, bootstrap.sh; h/* lib/* gnulib/* m4/*:
Packit 70b277
	  import portability code via gnulib-tools
Packit 70b277
	* bc/bc.y, bc/sbc.y, bc/execute.c, bc/load.c, bc/main.c, bc/proto.h,
Packit 70b277
	  bc/scan.l, bc/util.c: detect, report (if possible), and exit with
Packit 70b277
	  error if any I/O errors are encountered
Packit 70b277
	* doc/dc.texi: clean-up preamble (using more modern texinfo macros)
Packit 70b277
Packit 70b277
Mon Sep  4 19:27:49 2006 Ken Pizzini <ken@gnu.org>
Packit 70b277
	* configure.in: re-factor how version numbers are handled; add errno.h
Packit 70b277
	  and strtol() checks; add doc-texi-ver.incl output
Packit 70b277
	* bc/bcdefs.h: Prefer <string.h> over <strings.h>
Packit 70b277
	* bc/execute.c, bc/load.c, bc/main.c, bc/proto.h, bc/scan.l,
Packit 70b277
	  bc/storage.c, bc/util.c, bc/warranty.c: De-lint some with "const"
Packit 70b277
	  declarations, "static" declarations, and un-shadowing a few global
Packit 70b277
	  variables and functions
Packit 70b277
	* dc/dc.c: add "static" keyword on flush_okay() function declaration,
Packit 70b277
	  just for good hygene
Packit 70b277
	* dc/numeric.c: Reworked to avoid breaking C99 type-punning rules
Packit 70b277
Packit 70b277
Wed Jun 14 08:21:17 2006 Ken Pizzini <ken@gnu.org>
Packit 70b277
	* dc/numeric.c (dc_int2data): rework code so that C99 compilers
Packit 70b277
	  stop whining about the type punning
Packit 70b277
	* dc/dc.c (flush_okay): add "static" keyword as a matter of good
Packit 70b277
	  coding hygene
Packit 70b277
Packit 70b277
Sun Jun 11 21:40:37 2006 Ken Pizzini <ken@gnu.org>
Packit 70b277
	* doc/bc.1: strip release version information which is not being
Packit 70b277
	  automatically kept up-to-date
Packit 70b277
	* doc/dc.1: don't capitalize Dc or DC
Packit 70b277
Packit 70b277
Sun Jun 11 09:07:26 2006 Ken Pizzini <ken@gnu.org>
Packit 70b277
	* doc/bc.texi, doc/dc.texi, doc/texi-ver.incl.in, doc/Makefile.am:
Packit 70b277
	  make version text in texinfo-based documentation auto-derive from
Packit 70b277
	  configure.in
Packit 70b277
	* configure.in: update to use more modern automake/autoconf
Packit 70b277
	  directives; factor out version numbers so that AC_SUBST and
Packit 70b277
	  AC_OUTPUT kcan be used to create doc/texi-ver.incl
Packit 70b277
	* doc/Makefile.am: automake does (now) have a mechanism to
Packit 70b277
	  auto-include declared man pages in the dist tarball, so
Packit 70b277
	  remove FIXME block
Packit 70b277
Packit 70b277
Sun Jun 11 03:04:18 2006 Ken Pizzini <ken@gnu.org>
Packit 70b277
	* lib/Makefile.am: testmul, specialnumber, multidigits.h are
Packit 70b277
	  autogenerated by special request (only), and "make clean" should
Packit 70b277
	  remove them
Packit 70b277
	* lib/testmul.c: CLOCKS_PER_SEC is typically a "long" value, so make
Packit 70b277
	  test_time wide enough to hold it; add missing #include directives
Packit 70b277
	* lib/number.c: silly warning clean-up:
Packit 70b277
	  + declare rt_warn() and rt_error() to take a CONST char* first
Packit 70b277
	    argument
Packit 70b277
	  + neither _bc_rec_mul() nor _bc_simp_mul() use the full_scale
Packit 70b277
	    argument, so remove it in the function definitions and invocations
Packit 70b277
	  + some C libraries define an index() function; use a different index
Packit 70b277
	    variable name to avoid gratuitous namespace shadowing
Packit 70b277
Packit 70b277
Sun Jun  4 13:56:58 2006 Ken Pizzini <ken@gnu.org>
Packit 70b277
	* doc/dc.texi: document new DC_LINE_LENGTH variable; mention
Packit 70b277
	  traditional dc's handling of P with a numeric input
Packit 70b277
	* dc/dc.c (flush_okay, main): make code detecting and handling
Packit 70b277
	  write errors cleaner
Packit 70b277
Packit 70b277
Sun Jun  4 12:26:00 2006 Phil Nelson <phil@cs.wwu.edu>
Packit 70b277
	* bc/main.c: Make sure 3 is the minimum line length.
Packit 70b277
	* doc/bc.1, doc/bc.texi: Document the BC_LINE_LENGTH of 0 feature.
Packit 70b277
Packit 70b277
Sun Jun  4 04:41:28 2006 Ken Pizzini <ken@gnu.org>
Packit 70b277
	* dc/dc.c (main): fflush() isn't enough: also check that fclose()
Packit 70b277
	  does not return an error before exiting with EXIT_SUCCESS
Packit 70b277
Packit 70b277
Sun Jun  4 04:15:15 2006 Ken Pizzini <ken@gnu.org>
Packit 70b277
	* dc/dc.c, dc/eval.c: detect, report (if possible), and exit with error
Packit 70b277
	  if any I/O errors are encountered
Packit 70b277
Packit 70b277
Sun Jun  4 02:27:41 2006 Ken Pizzini <ken@gnu.org>
Packit 70b277
	* bc/main.c, bc/util.c: allow a BC_LINE_LENGTH of zero as a
Packit 70b277
	  special-case, meaning "don't ever wrap lines"
Packit 70b277
	* dc/numeric.c, configure.in: add support for a DC_LINE_LENGTH
Packit 70b277
	  variable, with a value of zero meaning "don't ever wrap lines"
Packit 70b277
Packit 70b277
Fri May  5 18:45:17 2006 Ken Pizzini <ken@gnu.org>
Packit 70b277
	* dc/dc.c (try_file): S_ISREG() test was inverted! :-(
Packit 70b277
	  (how very embarrassing)
Packit 70b277
Packit 70b277
	* configure.in: the "if test" -> "case" conversion in the last commit
Packit 70b277
	  translated the handling of flex incorrectly; fixed
Packit 70b277
Packit 70b277
	* src/scan.l: readline versions 4.2 and up give their own prototype
Packit 70b277
	  for readline() in readline.h, which conflicts with the one that is
Packit 70b277
	  in scan.l, so just do without the prototype in scan.l (if someone
Packit 70b277
	  needs to backport to a very old version of readline, they should be
Packit 70b277
	  able to handle adding the prototype back in themselves)
Packit 70b277
Packit 70b277
	* doc/bc.texi: use of @var{} in @item causes capitalization on output,
Packit 70b277
	  which is wrong, and furthermore the use of @var{} for e() and j() is
Packit 70b277
	  also inconsistent with how the other math functions are formatted
Packit 70b277
Packit 70b277
Sat Apr 29 05:02:15 2006 Ken Pizzini <ken@gnu.org>
Packit 70b277
	* configure.in: The "true" branch of AC_ARG_WITH needed to
Packit 70b277
	  be conditionalized on the value of $withval (thanks to Mike
Packit 70b277
	  Frysinger of Gentoo for pointing this out); prefer using
Packit 70b277
	  "case" over "if test" in shell string-match conditionals;
Packit 70b277
	  make use of AC_HELP_STRING; added copyright block; clean
Packit 70b277
	  out old "dnl"'d directives
Packit 70b277
Packit 70b277
Sat Apr 29 04:02:23 2006 Ken Pizzini <ken@gnu.org>
Packit 70b277
	* dc/dc.c (try_file): fix typo in S_ISFIFO conditional
Packit 70b277
Packit 70b277
	* doc/bc.1, doc/bc.texi, doc/dc.1, doc/dc.texi: make some
Packit 70b277
	  formatting clean-up (minor)
Packit 70b277
Packit 70b277
Wed Apr 26 15:38:32 2006 Ken Pizzini <ken@gnu.org>
Packit 70b277
	* dc/dc.c (try_file): rework special-file detection so that
Packit 70b277
	  friendlier error messages can be given for the most common
Packit 70b277
	  error of this class (i.e., the "dc directory" typo).
Packit 70b277
Packit 70b277
Thu Apr 20 17:45:46 2006 Ken Pizzini <ken@gnu.org>
Packit 70b277
	* configure.in: Newer versions of flex (such as ver. 2.5.33)
Packit 70b277
	  don't seem to like an argument of "-I8" anymore ("option `I'
Packit 70b277
	  doesn't allow an argument"), so split that into "-I -8".
Packit 70b277
Packit 70b277
Wed Mar 29 05:09:14 2006 Ken Pizzini <ken@gnu.org>
Packit 70b277
	* dc/string.c, dc/misc.c, dc/stack.c, dc/dc.c, dc/eval.c, dc/array.c:
Packit 70b277
	  Make splint (http://www.splint.org/) happier by making all
Packit 70b277
	  comparisons to 0 and NULL explicit, and adding some explicit casts
Packit 70b277
	  that aren't strictly necessary.  (But I'm omitting from this commit
Packit 70b277
	  various splint annotations that just serve to make the code ugly.)
Packit 70b277
Packit 70b277
Tue Mar 28 13:36:00 2006 Phil Nelson <phil@cs.wwu.edu>
Packit 70b277
	* bc/util.c: Move code so size checks are before use.
Packit 70b277
Packit 70b277
	* doc/bc.1: Quote .IP argument.
Packit 70b277
Packit 70b277
Tue Mar 28 12:09:38 2006 Ken Pizzini <ken@gnu.org>
Packit 70b277
	* dc/dc.c (try_file):  Added file type detection to ignore some
Packit 70b277
	  special files (particularly directories and block files), because
Packit 70b277
	  several people have asked that a typo for "cd" not fail silently.
Packit 70b277
Packit 70b277
	* configure.in: add detection of fstat() to determine how the
Packit 70b277
	  above detection should be implemented.
Packit 70b277
Packit 70b277
Wed Mar 15 9:50:00 2006 Phil Nelson <phil@cs.wwu.edu>
Packit 70b277
	* lib/getopt.c:  Added a define to disable/enable
Packit 70b277
	  gettext support.  May need to be deleted later
Packit 70b277
	  when gettext is fully supported. 
Packit 70b277
Packit 70b277
Mon Mar 13 13:57:00 2006 Phil Nelson <phil@cs.wwu.edu>
Packit 70b277
	* bc/bc.y: Remove second call to lookup() in a rule.
Packit 70b277
	  Removes a free'd twice bug.
Packit 70b277
Packit 70b277
Sat May 28 05:42:01 2005 Ken Pizzini <ken@gnu.org>
Packit 70b277
Packit 70b277
	* doc/dc.1, doc/dc.texi: add verbage about the need to use
Packit 70b277
	  upper-case letters for ibase>10 (bug reported by "TJIC").
Packit 70b277
Packit 70b277
Fri May 20 ??:??:?? 2005 Ken Pizzini <ken@gnu.org>
Packit 70b277
	* lib/getopt.c, lib/getopt1.c: Update to more recent versions.
Packit 70b277
Packit 70b277
Fri May 27 09:19:21 2005 Ken Pizzini <ken@gnu.org>
Packit 70b277
Packit 70b277
	* dc/eval.c: abstract out skip_past_eol() function to handle comments
Packit 70b277
Packit 70b277
Fri May 27 07:30:52 2005 Ken Pizzini <ken@gnu.org>
Packit 70b277
Packit 70b277
	* dc/numeric.c (dc_numlen), doc/dc.1, dc.texi: correct Z command
Packit 70b277
	  to match historical meaning
Packit 70b277
Packit 70b277
Fri May 27 06:54:19 2005 Ken Pizzini <ken@gnu.org>
Packit 70b277
Packit 70b277
	* dc/eval.c: ignore trailing comments in tail-recursion detection
Packit 70b277
Packit 70b277
	* dc/eval.c, doc/dc.texi: finally fix dc to trap interrupts,
Packit 70b277
	  aborting pending macros but not exiting
Packit 70b277
Packit 70b277
Fri May 27 03:37:30 2005 Ken Pizzini <ken@gnu.org>
Packit 70b277
Packit 70b277
	* dc/numeric.c: Address Debian bug #221781: values exceeding
Packit 70b277
	  a C "long" don't play well with k/i/o/a/Q/:/; commands.
Packit 70b277
	  Adding a diagnostic, and returning a "more bogus" value than
Packit 70b277
	  zero, for this situation.
Packit 70b277
Packit 70b277
Thu May 26 09:03:57 2005 Ken Pizzini <ken@gnu.org>
Packit 70b277
Packit 70b277
	* dc/eval.c:
Packit 70b277
	  1) fix tail recursion to also work for 'x' and '?' commands
Packit 70b277
	  2) fix tail recursion to ignore trailing spaces in the current
Packit 70b277
	     invocation string when determining if tail recursion is
Packit 70b277
	     appropriate
Packit 70b277
	  3) remove a couple of misleading and/or meaningless comments
Packit 70b277
	  4) add documentation for stdin_lookahead, since the code is far
Packit 70b277
	     from transparent about its purpose and usage
Packit 70b277
	  5) simplify ibase conditional by rearranging branches
Packit 70b277
Packit 70b277
Wed May 25 21:20:08 2005 Ken Pizzini <ken@gnu.org>
Packit 70b277
Packit 70b277
	* dc/array.c dc/dc-proto.h dc/dc-regdef.h dc/dc.c dc/dc.h
Packit 70b277
	  dc/eval.c dc/numeric.c: whitespace cleanup
Packit 70b277
Packit 70b277
Wed May 25 19:48:26 2005 Ken Pizzini <ken@gnu.org>
Packit 70b277
Packit 70b277
	* COPYING COPYING.LIB dc/dc-proto.h dc/dc-regdef.h dc/dc.h
Packit 70b277
	  dc/array.c dc/dc.c dc/eval.c dc/misc.c dc/numeric.c dc/stack.c
Packit 70b277
	  dc/string.c doc/dc.1 doc/dc.texi:
Packit 70b277
	  update FSF address in copyright notices
Packit 70b277
Packit 70b277
Wed May 25 19:39:46 2005 Ken Pizzini <ken@gnu.org>
Packit 70b277
Packit 70b277
	* dc/stack.c: If a register is used for an array, its corresponding
Packit 70b277
	  stack could be auto-created in the DC_UNINITIALIZED state; handle
Packit 70b277
	  this situation gracefully.  Thanks to Ben Collerson
Packit 70b277
	  (http://bur.st/~benc/) for the bug report.
Packit 70b277
Packit 70b277
Wed Dec 31 07:26:00 2003 Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* Makefile.am: add depcomp
Packit 70b277
Packit 70b277
	* {bc,dc,lib}/Makefile.am: CFLAGS -> AM_CFLAGS, YFLAGS -> AM_YFLAGS
Packit 70b277
Packit 70b277
	* bc/*: consistent copyright
Packit 70b277
Packit 70b277
Fri May  9 21:52:46 2003 Ken Pizzini <ken@gnu.org>
Packit 70b277
Packit 70b277
	* dc/dc-proto.h dc/dc.c dc/eval.c: add tail-recursion optimization
Packit 70b277
Packit 70b277
	* dc/numeric.c: clean up handling of conditional includes/defines;
Packit 70b277
	  editorial fix to comment; trivial (indentation, mostly) clean-up of
Packit 70b277
	  out_char() function [gratuitious; commit was accidental and I'm
Packit 70b277
	  adding this note to a replacement log message]
Packit 70b277
Packit 70b277
	* dc/misc.c: fixed spelling and grammatical errors in comment
Packit 70b277
Packit 70b277
	* dc/dc-regdef.h: simplify the handling of UCHAR_MAX/DC_REGCOUNT
Packit 70b277
	  defaults
Packit 70b277
Packit 70b277
Thu Apr 17 16:25:35 2003 Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* bc/{execute.c, proto.h, util.c}: char -> int in a few
Packit 70b277
	  places dealing with isdigit and getchar(), updated copyright
Packit 70b277
Packit 70b277
	* bc/main.c: minor formatting changes, updated copyright
Packit 70b277
Packit 70b277
	* bc/libmath.b, doc/{bc.1,bc.texi}: updated copyright
Packit 70b277
Packit 70b277
Mon Mar 31 22:19:00 2003  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* doc/{bc.1,bc.texi} Fix a couple of typos.
Packit 70b277
	* bc/main.c: exit value changed when exiting from interrupt.
Packit 70b277
Packit 70b277
Tue Mar 4 09:38:00 2003  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* bc/libmath.b: Add one level recursion to each function to
Packit 70b277
	  get ibase set to 10 (decimal) if called with other ibases.
Packit 70b277
Packit 70b277
Mon Nov 11 09:15:00 2002  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* doc/{bc.1,bc.texi} Fix documentation about array parameters.
Packit 70b277
Packit 70b277
Tue Mar 19 11:22:06 2002  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* bc/{bc.y,bcdefs.h,scan.l}: Add void functions.
Packit 70b277
	* doc/{bc.1,bc.texi}:  Document void functions.
Packit 70b277
	* bc/util.c:  Fix bug in AVL routines.
Packit 70b277
Packit 70b277
Wed May 23 08:40:00 2001  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* Makefile.am, */Makefile.am, configure.in: Add gcc specific
Packit 70b277
	  flags only if using gcc.
Packit 70b277
	* bc/{bc.y,sbc.y,bcdefs.h,const.h,execute.c,global.[ch],proto.h,
Packit 70b277
	      main.c,util.c}:  Removal of buffer overflow, new extern
Packit 70b277
	  and initialization code. New dynamic buffer manipulation.
Packit 70b277
	* bc/load.c: correct char extraction.
Packit 70b277
	* bc/storage.c: correct expansion of variables and arrays.
Packit 70b277
Packit 70b277
Sun May 13 19:29:43 2001 Ken Pizzini <ken@gnu.org>
Packit 70b277
Packit 70b277
	* dc/array.c: minor optimization: stop scanning array entry indicies
Packit 70b277
	  if we step beyond the target index
Packit 70b277
Packit 70b277
Sun May 13 19:09:31 2001 Ken Pizzini <ken@gnu.org>
Packit 70b277
Packit 70b277
	* dc/dc.c: traditional dc implementations drop into reading stdin
Packit 70b277
	  after processing command-line files; defer to tradition
Packit 70b277
Packit 70b277
Sat Feb 17 22:41:14 2001  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* bc/{main.c} Add case 0 for long options that set variables.
Packit 70b277
	  Correct spelling in usage statement.
Packit 70b277
Packit 70b277
Mon Jan 22 18:33:43 2001  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* bc/main.c: Make sure signal code doesn't stomp on errno.
Packit 70b277
	* bc/load.c: Make save_addr in load_code() static since it
Packit 70b277
	  is now possible to call load_code() multiple times in a single
Packit 70b277
	  function.
Packit 70b277
Packit 70b277
Fri Jan 19 10:33:13 2001  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* bc/{main.c,execute.c}: Don't use stdio calls in signal
Packit 70b277
	  handlers.  Call write directly and move code.
Packit 70b277
Packit 70b277
Wed Jan 10 11:33:51 2001  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* lib/getopt.c: Include string.h if available.
Packit 70b277
	  lib/number.c: (bcmath change) Include string.h if available.
Packit 70b277
Packit 70b277
Wed Sep 27 17:19:48 2000  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* doc/bc.texi: Added new file. Mainly translated from bc.1
Packit 70b277
		       by Brian Youmans.
Packit 70b277
	  doc/bc.1: Minor changes made as part of reviewing bc.texi.
Packit 70b277
Packit 70b277
Wed Sep 20 11:45:00 2000  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* bc/bc.y:  Added a comment on the meanings of lvals.
Packit 70b277
Packit 70b277
Wed Sep 13 11:40:24 2000  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* bc/main.c: add --interactive to long options.
Packit 70b277
	  bc/bc.1: add -i/--interactive to doc.
Packit 70b277
	  MANY: Update FSF address and Phil's e-mail.
Packit 70b277
Packit 70b277
Tue Sep 12 13:58:16 2000  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* NEWS: update for recent changes.
Packit 70b277
	  bc/bc.y: remove required parens around return expression.
Packit 70b277
	  doc/bc.1: update for recent changes.
Packit 70b277
Packit 70b277
Fri Sep  8 10:20:01 2000  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* bc/Makefile.am, dc/Makefile.am, lib/Makefile.am:
Packit 70b277
	    Compile with unsigned characters.
Packit 70b277
	  bc/main.c: Add --help option.
Packit 70b277
	  bc/scan.l: Print illegal, non-printable characters in octal.
Packit 70b277
Packit 70b277
Fri Sep  8 09:36:54 2000  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* bc/bc.y: Allow more newlines in function definitions.
Packit 70b277
	  bc/proto.h: Don't prototype main.
Packit 70b277
Packit 70b277
Fri Sep  1 16:09:50 2000  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* bc/bc.y: Spelling correction
Packit 70b277
	  bc/execute.c: Correct expressions for multi-byte names.
Packit 70b277
	  bc/load.c: Add parens for correct casting.
Packit 70b277
	  doc/bc.1: Typos.
Packit 70b277
	  Above fixes pointed out by kwzh@gnu.org (Karl Heuer).
Packit 70b277
Packit 70b277
Tue Aug 29 23:03:30 PDT 2000 Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* lib/testmul.c: #ifdef out a declaration matching #ifdef out
Packit 70b277
	  code.
Packit 70b277
Packit 70b277
Mon Jul 31 07:01:42 2000 Ken Pizzini <ken@gnu.org>
Packit 70b277
Packit 70b277
	* dc/numeric.c: use of the "n" command can cause a number to be printed
Packit 70b277
	  without a trailing newline, which would cause the column counter to
Packit 70b277
	  fail to be reset and result in inappropriately wrapped numeric outputs.
Packit 70b277
	  Fixed by always clearing the column counter before outputting each number.
Packit 70b277
Packit 70b277
	* dc/stack.c: if a stack is used without ever using the correspondingly
Packit 70b277
	  named register, it is perfectly legitimate for the register to be
Packit 70b277
	  uninitialized; added an "else if" to handle this case without aborting.
Packit 70b277
Packit 70b277
	* dc/eval.c: updated the comment explaining the restrictions
Packit 70b277
	  on the | command to better reflect reality.
Packit 70b277
Packit 70b277
	* doc/dc.texi: update the FSF office address in the copyright notice
Packit 70b277
Packit 70b277
Thu Jul 13 18:13:00 2000 Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* README: note --with-libedit configure parameter.
Packit 70b277
Packit 70b277
Tue Jun 20 22:52:10 2000  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* bc/bcdefs.h: Include <readline/history.h> to quiet warnings.
Packit 70b277
Packit 70b277
	* configure.in: make --with-readline and --with-libedit work correctly.
Packit 70b277
Packit 70b277
	* Makefile.am: use $(MAKE) instead of directly calling make.
Packit 70b277
Packit 70b277
	* lib/testmul.c: Update to use bc_ on all number.c routines.
Packit 70b277
Packit 70b277
Sat Jun 10 22:44:29 2000  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* bc/Makefile.am: Add scan.c to maintainer-clean target.
Packit 70b277
Packit 70b277
	* acconfig.h configure.in stamp-h.in bc/Makefile.am bc/execute.c
Packit 70b277
	  bc/fix-libmath_h bc/global.c bc/load.c bc/main.c bc/storage.c:
Packit 70b277
	    Remove long string for libmath.  Clean up for compiler errors.
Packit 70b277
Packit 70b277
	* dc/numeric.c: Correct parameter name.
Packit 70b277
Packit 70b277
Wed May 10 15:51:16 2000  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* {bc,doc,dc,lib}/Makefile.am: Add Makefile.in to maintainer-clean.
Packit 70b277
Packit 70b277
	* bootstrap.sh: Added script to run the auto* tools.
Packit 70b277
Packit 70b277
	* Imported all into CVS tree.
Packit 70b277
Packit 70b277
Sun 2000-05-07  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* bc/Makefile.am, dc/Makefile.am, lib/Makefile.am: Add -Wall to CFLAGS.
Packit 70b277
Packit 70b277
	* bc/{execute.c,proto.h,storage.c,util.c}, dc/numeric.c: Changes for
Packit 70b277
	  -Wall and for name changes in lib/number.c.  (Added bc_ to several
Packit 70b277
	  routine.  Updated copyright notice.)
Packit 70b277
Packit 70b277
	* h/number.h, lib/number.c:  Now comes from bcmath library which is
Packit 70b277
	  distributed in a different place.
Packit 70b277
Packit 70b277
Wed Mar 29 17:47:34 2000  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* bc/{bc.y,bcdefs.h,global.h,main.c,proto.h,scan.l,storage.c}:
Packit 70b277
	  Added BSD libedit support.  Generic support for both where possible.
Packit 70b277
	  Fixed bugs in readline support noticed during libedit addition.
Packit 70b277
	  Works with NetBSD-1.4.1 libedit.
Packit 70b277
	* doc/bc.1: Documented libedit addition.
Packit 70b277
Packit 70b277
Wed Mar 29 10:20:18 2000  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* FAQ: Added this file.
Packit 70b277
	* Makfile.am: Added FAQ to distribution
Packit 70b277
Packit 70b277
Tue Mar 28 13:52:35 2000  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* lib/number.c, h/number.h: Moved definitions so
Packit 70b277
	  number.c/number.h is a stand-alone "library".
Packit 70b277
	  Changed definition of out_num to not reference a global.
Packit 70b277
	* lib/testmul.c: updated #includes for number.h changes.
Packit 70b277
	* h/{bcdefs.h,const.h,global.h,proto.h} moved to
Packit 70b277
	  bc where they really belong.
Packit 70b277
	* bc/execute.c: Changed calls to out_num for correctness.
Packit 70b277
	* dc/numeric.c: Changed calls to out_num for correctness,
Packit 70b277
	  include only number.h now and not all the other junk.
Packit 70b277
	* configure.in, acconfig.h: Start of support for BSD libedit,
Packit 70b277
	  added --with-pkg for NetBSD /usr/pkg tree.
Packit 70b277
Packit 70b277
Tue Mar 28 11:20:00 2000  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* Test/{exp.b,fact.b,jn.b,mul.b,raise.b}: Tweeks on the tests
Packit 70b277
	  run to do more computation and test the recursive multiply.
Packit 70b277
	* bc/scan.l: Removed a printf('\r') that was unneeded.
Packit 70b277
Packit 70b277
Mon Mar 27 14:00:00 2000  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* NEWS: Updated for 1.06.
Packit 70b277
	* lib/number.c, h/number.h: Fixed bugs in recursive multiply.
Packit 70b277
		Changed these files to be under the LGPL.
Packit 70b277
	* Tests/jn.b: Added more tests.
Packit 70b277
	* lib/Makefile.am: Only generate a timed version of number.o if
Packit 70b277
		requested.
Packit 70b277
	* README: Updated with information on how to generate a timed
Packit 70b277
	        version of number.o.
Packit 70b277
	* h/version.h: Updated copyright and version number for dc.
Packit 70b277
Packit 70b277
Thu Mar 16 14:01:45 2000  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* doc/bc.1, doc/dc.1, doc/dc.texi: Changed bug reporting address
Packit 70b277
	  to bug-bc@gnu.org to update with what we hope will be reality.
Packit 70b277
Packit 70b277
Tue Feb  8 08:54:19 2000  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* doc/bc.1, bc/util.c: Removed "multiply digits"
Packit 70b277
	  limit due to new recursive algorithm that doesn't
Packit 70b277
	  have those limits.
Packit 70b277
Packit 70b277
Tue Feb  8 08:47:05 2000  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* lib/Makefile.am, lib/testmul.c, lib/number.c, Makefile.am:
Packit 70b277
	  Finally got a resonable version of the program
Packit 70b277
	  to test the crossover between non-recursive and
Packit 70b277
	  recursive multiply algorithms.  Added to distribution
Packit 70b277
	  and build process.  Does increase build time by
Packit 70b277
	  about 10 minutes.
Packit 70b277
Packit 70b277
Wed Oct  6 13:28:59 1999  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* lib/Makefile.am: Added rules to allow DEFSADD definitions.
Packit 70b277
Packit 70b277
Sat Oct  2 19:59:51 1999  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* bc/libmath.b: Correctly do the cosine accuracy.
Packit 70b277
Packit 70b277
Fri Oct  1 12:41:51 1999  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* lib/number.c: Increase accuracy of computing raise.
Packit 70b277
	  Also turn off use of recursive multiply routines
Packit 70b277
	  until furthur testing.
Packit 70b277
	* bc/libmath.b: Increase accuracy of cosine.
Packit 70b277
	* bc/Makefile.am: Remove -lfl from items to make.
Packit 70b277
Packit 70b277
Wed Jul 28 10:29:28 1999  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* bc/scan.l:  rl_len from char to int.  (From FreeBSD
Packit 70b277
	  bug tracking system and Nick Hibma <nick.hibma@jrc.it>)
Packit 70b277
Packit 70b277
Tue Jun 22 08:00:28 1999  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* lib/number.c: Rewrote bc_multiply to use a faster
Packit 70b277
	  algorithm.  Old code not removed yet.
Packit 70b277
Packit 70b277
Mon Jun 21 03:08:02 1999  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* h/version.h: Updated version number to 1.06.
Packit 70b277
	  bc/bc.y: Corrected bug in for statement, not popping.
Packit 70b277
	  bc/execute.c: Improved stack dump/instruction tracing.
Packit 70b277
Packit 70b277
Tue Jun 15 22:30:42 1999  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* configure.in: Updated bc version to 1.06.
Packit 70b277
Packit 70b277
Tue Jun 15 22:27:44 1999  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* h/bcdefs.h, h/const.h, bc/execute.c, bc/load.c, bc/storage.c,
Packit 70b277
	  bc/util.c: Removed segmented function storaged.  Now
Packit 70b277
	  dynamically expands (by doubling, starting at 1024 bytes)
Packit 70b277
	  to allow arbitrary sized functions.
Packit 70b277
Packit 70b277
Thu Jun 10 22:33:44 1999  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* bc/libmath.b: change scaling in computation of j(n,x) so
Packit 70b277
	  it correctly computes the value.
Packit 70b277
Packit 70b277
Wed Jun 10 10:10:10 1998 Release of bc-1.05a.
Packit 70b277
Packit 70b277
Fri Apr 17 10:40:59 1998  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* bc/main.c: Enable readline only if interactive.
Packit 70b277
Packit 70b277
Thu Apr 16 16:49:22 1998  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* bc/configure.in: Tweeking of AM_PROG_LEX and associated
Packit 70b277
	  special case goo for solaris.
Packit 70b277
Packit 70b277
Sat Mar 28 21:43:18 1998  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* bc/Makefile.am: Added "YFLAGS = -d" to get bc.h to build properly.
Packit 70b277
Packit 70b277
Mon Mar  9 12:54:42 PST 1998  Ken Pizzini <ken@halcyon.com>
Packit 70b277
Packit 70b277
	* doc/dc.texi, doc/dc.1: correct some documentation bugs.
Packit 70b277
Packit 70b277
Sun Mar  8 23:56:24 PST 1998  Ken Pizzini <ken@halcyon.com>
Packit 70b277
Packit 70b277
	* dc/numeric.c: eliminate superfluous variable from dc_dump_num();
Packit 70b277
	  annotate unused parameters in dc_add() and dc_sub().
Packit 70b277
Packit 70b277
	* h/version.h: change dc version number to 1.2 for release.
Packit 70b277
Packit 70b277
Sun Mar  8 21:13:50 1998  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* bc/main.c: Applied patch from Ken Pizzini to force line
Packit 70b277
	  mode buffering on stdout.
Packit 70b277
Packit 70b277
Tue Jan  6 09:15:04 PST 1998  Ken Pizzini <ken@halcyon.com>
Packit 70b277
Packit 70b277
	* h/version.h: dc is now up to version 1.1.5.
Packit 70b277
Packit 70b277
	* dc/eval.c, dc/numeric.c, doc/dc.texi, doc/dc.1: once again
Packit 70b277
	  changed the behavior of the 'P' command with a numeric argument
Packit 70b277
	  to make it more general.  It now dumps out the *whole* number
Packit 70b277
	  (or rather, the whole of its positive integer portion) as a
Packit 70b277
	  byte stream.  (For small values this is still the same as 'aP'.)
Packit 70b277
Packit 70b277
	* dc/dc-proto.h, dc/dc.h, dc/eval.c, dc/misc.c, dc/numeric.c,
Packit 70b277
	  dc/stack.c, dc/string.c: Changed most uses of dc_boolean to
Packit 70b277
	  either dc_discard or dc_newline, and instances of DC_TRUE and
Packit 70b277
	  DC_FALSE to appropriate instances of DC_TOSS, DC_KEEP, DC_NONL,
Packit 70b277
	  or DC_WITHNL so that the code self-documents a little better.
Packit 70b277
Packit 70b277
Sun Jan  4 15:39:46 PST 1998  Ken Pizzini <ken@halcyon.com>
Packit 70b277
Packit 70b277
	* dc/eval.c, doc/dc.texi, doc/dc.1: Changed the functionality
Packit 70b277
	  of the 'P' command, and added the 'n' command.  Due to
Packit 70b277
	  a quirk of the implementation of traditional dc, some
Packit 70b277
	  people have come to expect that the 'P' command on a
Packit 70b277
	  numeric argument in the range of 1 to 99 should output
Packit 70b277
	  the corresponding character, despite the fact that this
Packit 70b277
	  usage can have very weird results for numbers outside
Packit 70b277
	  that range.  This functionality is why the 'a' command
Packit 70b277
	  was introduced last March, but people really want it to
Packit 70b277
	  "just work" without needing to use the 'a' command.
Packit 70b277
	  Bowing to this demand, the 'P' command now does the
Packit 70b277
	  equivalent of "aP" if the argument is numeric, and the
Packit 70b277
	  'n' command has been added to support the previous
Packit 70b277
	  functionality of the 'P' command.
Packit 70b277
Packit 70b277
	* dc/misc.c, dc/eval.c, dc/stack.c, dc/dc-proto.h:
Packit 70b277
	  Changed prototype for dc_print().  It now additionally
Packit 70b277
	  takes two flags, newline_p and discard_p, which it
Packit 70b277
	  passes through to dc_out_num() and dc_out_str() as
Packit 70b277
	  needed.
Packit 70b277
Packit 70b277
	* h/version.h: dc is now up to version 1.1.4.
Packit 70b277
Packit 70b277
Sat Sep 27 13:48:53 1997  Ken Pizzini <ken@halcyon.com>
Packit 70b277
Packit 70b277
	* h/version.h: dc is now up to version 1.1.3.
Packit 70b277
Packit 70b277
	* dc/stack.c, dc/array.c, dc/dc-proto.h, doc/dc.texi, doc/dc.1:
Packit 70b277
	  It has come to my attention that, though undocumented,
Packit 70b277
	  traditional dc stacked its arrays in parallel with the
Packit 70b277
	  stacking of simple registers.  I have now duplicated
Packit 70b277
	  this functionality.
Packit 70b277
Packit 70b277
	* dc/dc.c, configure.in: line-buffer dc's output if setvbuf()
Packit 70b277
	  is supported.  This was requested to simplify using dc as
Packit 70b277
	  an inferior process under emacs.
Packit 70b277
Packit 70b277
Fri Sep 26 19:56:15 1997  Ken Pizzini <ken@halcyon.com>
Packit 70b277
Packit 70b277
	* dc/dc.c: fixed bug reporting address for --help.
Packit 70b277
Packit 70b277
	* doc/dc.1, doc/dc.texi: corrected documentation of the maximum
Packit 70b277
	  admissible input base.
Packit 70b277
Packit 70b277
	* doc/dc.texi: corrected sample code equivalence for the | command.
Packit 70b277
Packit 70b277
	* lib/number.c: added a warning for non-zero scale in the base
Packit 70b277
	  for bc_raisemod().
Packit 70b277
Packit 70b277
Fri Sep 26 18:15:31 1997  Ken Pizzini <ken@halcyon.com>
Packit 70b277
Packit 70b277
	* dc/eval.c, doc/dc.1, doc/dc.texi: added !=, !<, and !> commands.
Packit 70b277
Packit 70b277
	* dc/eval.c: eliminated double-free in 'a' command.
Packit 70b277
Packit 70b277
	* dc/dc.c: changed placment of check for filename "-" so that
Packit 70b277
	 "-f -" will work.
Packit 70b277
Packit 70b277
	* h/version.h: updated dc version to 1.1.2.
Packit 70b277
Packit 70b277
Thu Sep 18 17:41:10 1997  Ken Pizzini <ken@halcyon.com>
Packit 70b277
Packit 70b277
	* dc/eval.c: fixed off-by-one error for Q and q commands.
Packit 70b277
Packit 70b277
	* dc/dc.c: added missing f: to third argument of getopt().
Packit 70b277
Packit 70b277
	* h/version.h: updated dc version to 1.1.1.
Packit 70b277
Packit 70b277
Thu May 22 08:24:08 1997  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* lib/number.c(bc_sqrt): Fixed a bug that computed 0 for sqrt
Packit 70b277
	  of most numbers less than .000001.
Packit 70b277
Packit 70b277
Thu May  1 10:41:38 1997  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* Test/timetest: change path to bc executable.
Packit 70b277
Packit 70b277
Wed Apr 30 12:00:00 1997  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* Froze bc-1.04, started new directory for bc-1.05.
Packit 70b277
	  Fixes to bc-1.04 will be distributed as bc-1.05.
Packit 70b277
Packit 70b277
Mon Apr 21 14:57:14 1997  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* bc/scan.l: Changed rules for single line comment to work
Packit 70b277
	  with lex as well as flex.  Also, do not include \n in the
Packit 70b277
	  comment.
Packit 70b277
Packit 70b277
	* doc/bc.1: Clarified the single line comment and that \n
Packit 70b277
	  is processed outside of the comment.
Packit 70b277
Packit 70b277
Sun Apr 20 22:21:30 1997  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* bc/scan.l: Added rules for a single line comment starting
Packit 70b277
	  with the # character.
Packit 70b277
Packit 70b277
	* doc/bc.1: Documented the single line comment.
Packit 70b277
Packit 70b277
	* bc/Makefile.am: Added DISTCLEANFILES for proper clean up.
Packit 70b277
Packit 70b277
Sat Apr 19 22:08:05 1997  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* dc/Makefile.am: Removed file from distribution list.
Packit 70b277
Packit 70b277
	* h/version.h: Updated dc version to 1.1.
Packit 70b277
Packit 70b277
Fri Apr 18 16:43:04 1997  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* lib/number.c (bc_add, bc_sub) Added 1 to the length
Packit 70b277
	  of the memset call to make sure it zeroed all the
Packit 70b277
	  storage.
Packit 70b277
Packit 70b277
Fri Apr 18 13:58:56 1997  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* configure.in: Tweeks to get things right.  Not sure if things
Packit 70b277
	  changed much.  Still working with autoconf/automake to do
Packit 70b277
	  the right thing.
Packit 70b277
Packit 70b277
Wed Apr 16 16:49:17 1997  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* bc/main.c (main): Changed processing of BC_ENV_ARGS.
Packit 70b277
Packit 70b277
	* bc/main.c (parse_args): Removed "start" parameter.
Packit 70b277
Packit 70b277
Tue Apr 15 13:21:28 1997  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* acconfig.h: Included support for PACKAGE and VERSION.
Packit 70b277
Packit 70b277
	* configure.in: More tweeks for automake support.
Packit 70b277
Packit 70b277
	* h/number.h: Improve definition of MIN and MAX.
Packit 70b277
Packit 70b277
	* doc/bc.1: Changed copyright, tweeked other text, added
Packit 70b277
	  e-mail address for bugs.
Packit 70b277
Packit 70b277
	* doc/dc.1: Added copyright and GPL license information,
Packit 70b277
	  Changed a few .SH formats.
Packit 70b277
Packit 70b277
Fri Apr 11 16:14:42 1997  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* Makefile.am configure.in doc/Makefile.am lib/Makefile.am
Packit 70b277
	  bc/Makefile.am bc/bc.y dc/Makefile.am: Changes to accomodate
Packit 70b277
	  automake-1.1n (pre-release version of automake 1.2).
Packit 70b277
Packit 70b277
	* bc/bc.y bc/sbc.y: Changes to make sure tokens are numbered the
Packit 70b277
	  same in bc/bc.h and bc/sbc.h.
Packit 70b277
Packit 70b277
	* bc/scan.l: Changes for automake's naming convention.
Packit 70b277
Packit 70b277
	* NEWS: Fixed a typo.
Packit 70b277
Packit 70b277
Thu Apr 10 14:42:55 1997  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* bc/{execute.c, global.c, libmath.b, load.c, main.c, sbc.y
Packit 70b277
	  scan.l, storage.c, util.c}:  Changed copyright comment and
Packit 70b277
	  added 1997 to copyright years.
Packit 70b277
Packit 70b277
	* h/{bcdefs.h, const.h, global.h, number.h proto.h, version.h}:
Packit 70b277
	  Changed copyright comment and added 1997 to copyright years.
Packit 70b277
Packit 70b277
	* h/version.h: Changed bc version to 1.04.
Packit 70b277
Packit 70b277
	* lib/number.c: Changed copyright comment and added 1997 to
Packit 70b277
	  copyright years.
Packit 70b277
Packit 70b277
	* lib/vfprintf.c: Noted that this was only for minix.
Packit 70b277
Packit 70b277
	* NEWS, README: README is now comp.sources.reviewed readme only.
Packit 70b277
	  NEWS now lists changes from version to version.
Packit 70b277
Packit 70b277
Thu Apr 10 13:41:56 1997  Phil Nelson  <phil@fawn.cs.wwu.edu>
Packit 70b277
Packit 70b277
	* Makefile.am: Removed FIXME stuff.
Packit 70b277
Packit 70b277
Thu Apr 8 13:39:53 1997  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* bc/Makefile.am: Remove files that should not be distributed.
Packit 70b277
Packit 70b277
Mon Apr  7 17:14:28 1997  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* Makefile.am: Removed Misc directory from distribution.
Packit 70b277
Packit 70b277
Mon Apr  7 16:16:01 1997  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* bc/sbc.y: Corrected use of nextarg().
Packit 70b277
Packit 70b277
Tue Mar 25 19:32:28 1997  Ken Pizzini  <ken@halcyon.com>
Packit 70b277
Packit 70b277
	* dc/eval.c, dc/misc.c, dc/stack.c, dc/string.c,
Packit 70b277
	  dc/dc.h, dc/dc-proto.h, dc/dc.c, dc/numeric.c,
Packit 70b277
	  doc/dc.texi: updated years in copyright
Packit 70b277
	  notices.
Packit 70b277
Packit 70b277
	* dc/dc.1: updated last-revision date.
Packit 70b277
Packit 70b277
Tue Mar 25 16:35:46 1997  Ken Pizzini  <ken@halcyon.com>
Packit 70b277
Packit 70b277
	* lib/number.c: give a run-time warning in bc_raisemod()
Packit 70b277
	  if the modulus does not appear to be an integer.
Packit 70b277
Packit 70b277
	* doc/dc.texi, doc/dc.1: documented a warning against
Packit 70b277
	  the use of the new | command in conjunction with a
Packit 70b277
	  non-integral modulus.
Packit 70b277
Packit 70b277
Tue Mar 25 15:36:04 1997  Ken Pizzini  <ken@halcyon.com>
Packit 70b277
Packit 70b277
	* dc/string.c: dc_out_str() updated to use fwrite()
Packit 70b277
	  instead of printf(), to allow for the existence of
Packit 70b277
	  a NUL character in the string.
Packit 70b277
Packit 70b277
Tue Mar 25 13:42:51 1997  Ken Pizzini  <ken@halcyon.com>
Packit 70b277
Packit 70b277
	* doc/dc.texi, doc/dc.1: added documentation for new | command.
Packit 70b277
Packit 70b277
Tue Mar 25 13:19:55 1997  Ken Pizzini  <ken@halcyon.com>
Packit 70b277
Packit 70b277
	* dc/dc-proto.h: added prototype for dc_triop().
Packit 70b277
Packit 70b277
Tue Mar 25 12:00:38 1997  Ken Pizzini  <ken@halcyon.com>
Packit 70b277
Packit 70b277
	* lib/number.c: add bc_modexp() modular-exponentiation function.
Packit 70b277
Packit 70b277
	* h/proto.h: add prototypes for bc_modexp() and bc_divmod().
Packit 70b277
Packit 70b277
Tue Mar 25 09:07:13 1997  Ken Pizzini  <ken@halcyon.com>
Packit 70b277
Packit 70b277
	* doc/dc.texi, doc/dc.1: updated documentation with the
Packit 70b277
	  new command-line options.
Packit 70b277
Packit 70b277
	* doc/dc.texi, doc/dc.1: updated documentation with the
Packit 70b277
	  new '~', 'r', and 'a' commands.
Packit 70b277
Packit 70b277
	* dc/dc.c: added bug reporting information to --version text.
Packit 70b277
Packit 70b277
Mon Mar 24 19:37:30 1997  Ken Pizzini  <ken@halcyon.com>
Packit 70b277
Packit 70b277
	* lib/number.c: added new "bc_divmod" function.
Packit 70b277
Packit 70b277
	* dc/numeric.c: added new "dc_divrem" glue function to bc_divmod.
Packit 70b277
Packit 70b277
	* dc/stack.c: added new "dc_binop2" function.
Packit 70b277
Packit 70b277
	* dc/dc-proto.h: added new prototypes for dc_divrem() and dc_binop2().
Packit 70b277
Packit 70b277
	* dc/eval.c, dc/numeric.c: add new '~' command which
Packit 70b277
	  returns both the quotient and remainder from division.
Packit 70b277
Packit 70b277
Mon Mar 24 18:13:42 1997  Ken Pizzini  <ken@halcyon.com>
Packit 70b277
Packit 70b277
	* dc/eval.c: Add new 'r' (reverse top two stack elements) command.
Packit 70b277
Packit 70b277
Mon Mar 24 17:47:02 1997  Ken Pizzini  <ken@halcyon.com>
Packit 70b277
Packit 70b277
	* dc/misc.c: split out the main() related functions into
Packit 70b277
	  a seperate dc/dc.c file.
Packit 70b277
Packit 70b277
	* dc/Makefile.am: updated to reflect this split.
Packit 70b277
Packit 70b277
Sat Mar  1 04:57:54 1997  Ken Pizzini  <ken@halcyon.com>
Packit 70b277
Packit 70b277
	* dc/misc.c: added "--file" option.
Packit 70b277
Packit 70b277
Sat Mar  1 02:13:06 1997  Ken Pizzini  <ken@halcyon.com>
Packit 70b277
Packit 70b277
	* dc/eval.c: fixed bug of an excess increment in
Packit 70b277
	  dc_evalstr()'s DC_COMMENT case.  (Probably would
Packit 70b277
	  never show up in practice, but did violate the
Packit 70b277
	  letter of the C Standard.)
Packit 70b277
Packit 70b277
	* renamed dc/number.c to dc/numeric.c, to avoid
Packit 70b277
	  confusion with lib/number.c.
Packit 70b277
Packit 70b277
Thu Feb 27 19:45:45 1997  Ken Pizzini  <ken@halcyon.com>
Packit 70b277
Packit 70b277
	* dc/string.c, dc/dc.h: changed implementation of dc_str
Packit 70b277
	  type from a void * to a type which is only completed
Packit 70b277
	  in dc/string.c.  No functional change, just prettier code.
Packit 70b277
Packit 70b277
Thu Feb 27 18:25:19 1997  Ken Pizzini  <ken@halcyon.com>
Packit 70b277
Packit 70b277
	* Cleaned up Makefile.am files.
Packit 70b277
Packit 70b277
Thu Feb  6 00:41:02 1997  Ken Pizzini  <ken@halcyon.com>
Packit 70b277
Packit 70b277
	* Noticed pre-autoconf vestages (NO_XXX configuration options);
Packit 70b277
	  fixed to refer to autoconf HAVE_XXX definitions.
Packit 70b277
Packit 70b277
	* The definition of BC_XXX values in h/const.h might
Packit 70b277
	  conflict with values of the same name from <limits.h>;
Packit 70b277
	  fixed to override without spewing warnings.
Packit 70b277
Packit 70b277
	* Added check for ptrdiff_t to configure.in; removed
Packit 70b277
	  special ptrdiff_t definition from dc/string.c .
Packit 70b277
Packit 70b277
Wed Feb  5 22:28:37 1997  Ken Pizzini  <ken@halcyon.com>
Packit 70b277
Packit 70b277
	* Only compile (guts of) lib/vfprintf.c if system does
Packit 70b277
	  not have its own version.
Packit 70b277
Packit 70b277
Wed Feb  5 22:26:16 1997  Ken Pizzini  <ken@halcyon.com>
Packit 70b277
Packit 70b277
	* Changed dc/misc.c source to use standard GNU option
Packit 70b277
	  parsing routine (instead of special-case code).
Packit 70b277
Packit 70b277
	* Added "-e" option to dc.
Packit 70b277
Packit 70b277
	* Bumped dc version number to 1.0.4.
Packit 70b277
Packit 70b277
Wed Feb  5 22:08:06 1997  Ken Pizzini  <ken@halcyon.com>
Packit 70b277
Packit 70b277
	* rearranged source layout (added subdirectory structure);
Packit 70b277
	  removed "dc-" prefix from dc C source in its new home.
Packit 70b277
Packit 70b277
	* merged bc's "version.h" and dc's "dc-version.h" files
Packit 70b277
	  into h/version.h; patched dc/misc.c to refer to new
Packit 70b277
	  DC_VERSION macro name.
Packit 70b277
Packit 70b277
	* Tweaked configure.in in anticipation of using automake.
Packit 70b277
Packit 70b277
Wed Jul 24 16:27:20 1996  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* number.c (out_num): Move free of t_num to proper place.
Packit 70b277
Packit 70b277
Mon Jun  3 00:31:10 1996  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* number.c: (bc_sqrt, is_near_zero) Was hanging in an infinite
Packit 70b277
	  loop on sqrt(.9999).  Rewrote to take difference.  New routine
Packit 70b277
	  is_near_zero to check for one digit off.
Packit 70b277
Packit 70b277
Thu Feb 22 12:14:38 1996  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* dc-eval.c (dc_func): Added the 'a' (number to ascii character)
Packit 70b277
	  command.
Packit 70b277
Packit 70b277
Thu Feb 22 11:55:15 1996  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* dc-eval.c: (Changes from Ken) Changes dealing with stdin_lookahead
Packit 70b277
	  and peekc.
Packit 70b277
Packit 70b277
	* dc-misc.c: (Changes from Ken) Changes in option processing.
Packit 70b277
Packit 70b277
	* dc-version.c: (Change from Ken) Version is 1.0.2.
Packit 70b277
Packit 70b277
Mon Oct  9 15:40:06 1995  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* execute.c (execute): Add a pop to 'W' and 'P' codes.  Otherwise,
Packit 70b277
	  the stack continues to grow.
Packit 70b277
Packit 70b277
	* number.c (out_num): Free all bc_nums used.
Packit 70b277
Packit 70b277
Thu Jun 29 00:35:57 1995  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* bc.1: Added information about long options and use of the
Packit 70b277
	  readline library.
Packit 70b277
Packit 70b277
Wed Jun 28 21:03:45 1995  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* scan.l: rl_input: detect EOF.
Packit 70b277
Packit 70b277
Wed Jun 28 19:03:51 1995  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* Makefile.in: fbc target, changed $(LEXLIB) => $(LIBS)
Packit 70b277
Packit 70b277
Wed Jun 28 01:33:07 1995  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* acconfig.h, bc.y, scan.l, storage.c, util.c, configure.in:
Packit 70b277
	  Improved readline support with a new pseudo variable "history"
Packit 70b277
	  that controls the number of history lines available.
Packit 70b277
	  Also removed "optional" history.
Packit 70b277
Packit 70b277
Wed Jun 28 01:03:52 1995  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* getopt.h, getopt.c, getopt1.c: Imported from glibc-1.09
Packit 70b277
	  to allow long option processing.
Packit 70b277
Packit 70b277
	* main.c (parse_args): Make it use long arguments.
Packit 70b277
Packit 70b277
	* global.h: Change option flag variables from "char" to "int"
Packit 70b277
	  to allow long_arguments easy access to the variables.
Packit 70b277
Packit 70b277
	* Makefile.in: Add getopt.h, getopt.c, and getopt1.c in the
Packit 70b277
	  proper places in the Makefile.
Packit 70b277
Packit 70b277
Fri Jun 23 12:00:16 1995  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* scan.l, main.c (main), acconfig.h, configure.in:
Packit 70b277
	  Added support for readline input on stdin.
Packit 70b277
Packit 70b277
Thu Jun 22 20:08:57 1995  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* bc.1: Change documentation on POSIX array parameter support.
Packit 70b277
Packit 70b277
Fri Apr  7 12:29:28 1995  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* main.c (parse_args): change "char ch" to "int optch" with
Packit 70b277
	  related changes.
Packit 70b277
Packit 70b277
Thu Mar 23 04:11:00 1995  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* bc.1: Update documentation to include new -q
Packit 70b277
	  option and the environment variables.
Packit 70b277
Packit 70b277
Thu Mar 23 03:30:38 1995  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* bcdefs.h, global.h, main.c, util.c, bc.y: Reworked
Packit 70b277
	  argument processing to allow for getting arguments
Packit 70b277
	  from the environment and the command line.  Added
Packit 70b277
	  a new mechanism to access file names for opening
Packit 70b277
	  and for error messages.  Also added a "quiet"
Packit 70b277
	  option to turn off the welcome banner.
Packit 70b277
Packit 70b277
Thu Mar 23 03:12:11 1995  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* util.c: Corrected a comment.
Packit 70b277
Packit 70b277
Tue Mar 21 13:36:24 1995  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* bc.y: Added "opt_newline" to allow more newlines
Packit 70b277
	  in non-POSIX mode.
Packit 70b277
Packit 70b277
Tue Mar 21 09:38:28 1995  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* execute.c, main.c, util.c: Add support for user
Packit 70b277
	  defined line length, "correct POSIX line length",
Packit 70b277
	  no breaking of strings in std_only mode.  This
Packit 70b277
	  included adding a new function "out_schar" to
Packit 70b277
	  util.c.  Also removed "if (interactive)" before
Packit 70b277
	  all fflushes.
Packit 70b277
Packit 70b277
Tue Mar 21 09:12:16 1995  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* global.h: Added new variable "line_size". Cleaned up
Packit 70b277
	  some definitions by adding comments.
Packit 70b277
Packit 70b277
Mon Mar 20 23:33:01 1995  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* proto.h: Define getopt only if no unistd.h file.
Packit 70b277
Packit 70b277
Mon Mar 20 23:23:34 1995  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* number.c, proto.h, execute.c, storage.c, dc-number.c:
Packit 70b277
	  Changes to bc_add and bc_sub parameters to allow for
Packit 70b277
	  different scale results than were possible.  This is
Packit 70b277
	  for correct implementation of modulo.  All calls were
Packit 70b277
	  updated.
Packit 70b277
Packit 70b277
Mon Mar 20 19:26:06 1995  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* sbc.y: Removed second parameter on calls to arg_str to match
Packit 70b277
	  real function.
Packit 70b277
Packit 70b277
Tue Feb 28 14:30:18 1995  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* Makefile.in: Change realclean to maintainer-clean.  Added warning.
Packit 70b277
Packit 70b277
Mon Feb 27 17:08:24 1995  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* number.c: Change output to conform with POSIX standard for zero
Packit 70b277
	  only when the -s flag is given.  Otherwise it does the tradational
Packit 70b277
	  thing.
Packit 70b277
Packit 70b277
	* dc-misc.c: Add the "std_only" flag, always set to zero.  This is
Packit 70b277
	  needed due to the above change.
Packit 70b277
Packit 70b277
Tue Nov 29 15:18:20 1994  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* bc.1: Remove the "then" keyword in the if statement documentation.
Packit 70b277
Packit 70b277
Mon Nov 28 16:50:25 1994  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* bc.1: Fixed a font change error.
Packit 70b277
Packit 70b277
	* Makefile.in: Added missing \ in two targets.
Packit 70b277
Packit 70b277
Tue Nov 22 11:09:08 1994  Phil Nelson  <phil@cs.wwu.edu>
Packit 70b277
Packit 70b277
	* bc.1: clarified ibase and math routines.
Packit 70b277
Packit 70b277
Thu Nov  3 14:09:31 1994  Phil Nelson  (phil@cs.wwu.edu)
Packit 70b277
Packit 70b277
	* Makefile.in: added targets uninstall, installdirs and modified
Packit 70b277
	  other targets to get makes in a directory other than srcdir to
Packit 70b277
	  work.
Packit 70b277
Packit 70b277
	* configure.in: added shell commands to get configure to work
Packit 70b277
	  correctly in directories other than srcdir.
Packit 70b277
Packit 70b277
Wed Nov  2 10:18:19 1994  Phil Nelson  (phil@cs.wwu.edu)
Packit 70b277
Packit 70b277
	* bc.1 bc.y bcdefs.h const.h execute.c global.c global.h load.c
Packit 70b277
	  main.c number.c number.h proto.h sbc.y scan.l storage.c util.c:
Packit 70b277
	  updated copyright to 1994.
Packit 70b277
Packit 70b277
	* version.h: updated version number and copyright date.
Packit 70b277
Packit 70b277
	* Makefile.in, configure.in, Install: updated for use with
Packit 70b277
	  autoconf-2.0 and install-sh.  Changed target install a bit.
Packit 70b277
Packit 70b277
	* install-sh: Included this file from the autoconf-2.0
Packit 70b277
	  distribution to have configure run without errors.
Packit 70b277
Packit 70b277
	* README: updated to version 1.03.
Packit 70b277
Packit 70b277
Mon Oct 31 10:26:28 1994  Phil Nelson  (phil@cs.wwu.edu)
Packit 70b277
Packit 70b277
	* Added Ken Pizzini's dc implementation that uses bc numeric
Packit 70b277
	  routines.  The following files have been added:
Packit 70b277
	  dc-Concerns   dc-array.c   dc-eval.c   dc-misc.c    dc-number.c
Packit 70b277
	  dc-proto.h    dc-regdef.h  dc-stack.c  dc-string.c  dc-version.h
Packit 70b277
	  dc.1          dc.h         dc.texinfo
Packit 70b277
Packit 70b277
	* dc-array.c: Added a conditional include of stdlib.h to get
Packit 70b277
	  size_t defined on my SunOS 4.1.3 system.
Packit 70b277
Packit 70b277
	* configure.in: Added support for dc.
Packit 70b277
Packit 70b277
	* Makefile.in: Added support for dc.  Added rule to make
Packit 70b277
	  config.h.in.
Packit 70b277
Packit 70b277
Sun Aug  7 15:09:19 1994  Phil Nelson  (phil@cs.wwu.edu)
Packit 70b277
Packit 70b277
	* configure.in, Makefile.in, acconfig.h: Add support for autoconf.
Packit 70b277
	  Removed old Makefile.
Packit 70b277
Packit 70b277
Wed Jul 20 22:46:32 1994  Phil Nelson  (phil@cs.wwu.edu)
Packit 70b277
Packit 70b277
	* bc.y: change definition of next_label in function definition.
Packit 70b277
	  Previous value of 0 caused break to not work.  It is now 1.
Packit 70b277
Packit 70b277
Fri Apr  8 14:16:37 1994  Phil Nelson  (phil@cs.wwu.edu)
Packit 70b277
Packit 70b277
	* Makefile: Change the distribution to include libmath.h.dist
Packit 70b277
	  which is a copy of libmath.h that has the compiled libmath.b.
Packit 70b277
Packit 70b277
Sun Feb 13 01:08:14 1994  Phil Nelson  (phil@cs.wwu.edu)
Packit 70b277
Packit 70b277
	* execute.c: Change the string quote characters to be more like
Packit 70b277
	  C.  \a => alert (bell) \b => backspace and added \q => ".
Packit 70b277
Packit 70b277
	* bc.1: Updated information on above changes.
Packit 70b277
Packit 70b277
Wed Oct 27 23:34:40 1993  Phil Nelson  (phil@cs.wwu.edu)
Packit 70b277
Packit 70b277
	* Makefile: Changed compress to gzip.  Changed the
Packit 70b277
	  comment and definition of the DOT_IS_LAST compile option.
Packit 70b277
Packit 70b277
	* scan.l: Changed DOT_IS_LAST to NO_DOT_LAST and changed
Packit 70b277
	  the test so "." is the last variable is standard.
Packit 70b277
Packit 70b277
Wed May 19 15:15:12 1993  Phil Nelson  (phil at cs.wwu.edu)
Packit 70b277
Packit 70b277
	* number.c: Fixed output of negative numbers in bases other than
Packit 70b277
	  base 10.
Packit 70b277
Packit 70b277
Wed Apr 21 11:56:31 1993  Phil Nelson  (phil at cs.wwu.edu)
Packit 70b277
Packit 70b277
	* bc.1: Changed Steve Sommars e-mail address.
Packit 70b277
Packit 70b277
Wed Apr 14 12:13:39 1993  Phil Nelson  (phil at cs.wwu.edu)
Packit 70b277
Packit 70b277
	* sbc.y: removed leading , on first line.
Packit 70b277
Packit 70b277
Wed Mar 31 16:12:39 1993  Phil Nelson  (phil at cs.wwu.edu)
Packit 70b277
Packit 70b277
	* bc.1: Updated segment number for function bodies.
Packit 70b277
Packit 70b277
Thu Mar 11 15:34:34 1993  Phil Nelson  (phil at cs.wwu.edu)
Packit 70b277
Packit 70b277
	* Makefile: added version.h to bc.o's dependency list.
Packit 70b277
Packit 70b277
Mon Mar  1 14:00:46 1993  Phil Nelson  (phil at cs.wwu.edu)
Packit 70b277
Packit 70b277
	* util.c: (nextarg) changed parameter "val" to be an int.
Packit 70b277
Packit 70b277
Tue Feb 16 10:06:45 1993  Phil Nelson  (phil at cs.wwu.edu)
Packit 70b277
Packit 70b277
	* util.c: (call_str, arg_str) added a function call_str that
Packit 70b277
	  correctly produces the string of argmuent types for a function
Packit 70b277
	  call.  arg_str produced them in the reverse order.  This
Packit 70b277
	  eliminated the need for the "comma" argument to arg_str, which
Packit 70b277
	  was removed.
Packit 70b277
Packit 70b277
	* bc.y: changed the calls to arg_str to have only one parameter
Packit 70b277
	  in the function definition rule and replaced the call to arg_str
Packit 70b277
	  with call_str in the function call rule.
Packit 70b277
Packit 70b277
Tue Nov 24 17:38:40 1992  Phil Nelson  (phil at cs.wwu.edu)
Packit 70b277
Packit 70b277
	* Makefile: Added LEXLIB definitions for use with lex.
Packit 70b277
Packit 70b277
Thu Oct 22 13:43:16 1992  Phil Nelson  (phil at cs.wwu.edu)
Packit 70b277
Packit 70b277
	* number.c (bc_raise): Rearranged and added code to speed up
Packit 70b277
	  the computation by not doing unneeded multiplications.
Packit 70b277
Packit 70b277
Wed Sep 30 10:43:52 1992  Phil Nelson  (phil at cs.wwu.edu)
Packit 70b277
Packit 70b277
	* global.h: Fixed documentation.
Packit 70b277
Packit 70b277
Tue Sep 29 15:27:50 1992  Phil Nelson  (phil at cs.wwu.edu)
Packit 70b277
Packit 70b277
	* storage.c (process_params): Changed processing of more arguments
Packit 70b277
	  than in a function definition to just a return.
Packit 70b277
Packit 70b277
	* Makefile: Made changes to make it more in conformance with the
Packit 70b277
	  GNU coding standards.
Packit 70b277
Packit 70b277
Tue Jul  7 21:09:07 1992  Phil Nelson  (phil at cs.wwu.edu)
Packit 70b277
Packit 70b277
	* (const.h, bc.y, util.c) Added code so that when the math
Packit 70b277
	  library is loaded, redefinition of any math library function
Packit 70b277
	  will not cause the other functions to quit working correctly.
Packit 70b277
	  Before this change, redefining a(x) would cause s(x) and c(x)
Packit 70b277
	  to quit working and redefining s(x) would cause c(x) to quit
Packit 70b277
	  working.
Packit 70b277
Packit 70b277
Wed Jul  1 14:35:29 1992  Phil Nelson  (phil at cs.wwu.edu)
Packit 70b277
Packit 70b277
	* (libmath.b) Changed the calculation of scale for computing
Packit 70b277
	  e(x) and l(x).  This provides a little more accuracy in the
Packit 70b277
	  last digit at the expense of a little speed.
Packit 70b277
Packit 70b277
	* (Test/checklib.b) Changed tests to be parameterized and test
Packit 70b277
	  more values.
Packit 70b277
Packit 70b277
Thu Jun 25 09:22:59 1992  Phil Nelson  (phil at cs.wwu.edu)
Packit 70b277
Packit 70b277
	* (configure) changed the script from looking in the
Packit 70b277
	  include directory for a .h file to asking cc (gcc) to
Packit 70b277
	  find the .h file.  This will allow better detection
Packit 70b277
	  of include files available to the C compiler.
Packit 70b277
Packit 70b277
Wed Jun 24 22:11:37 1992  Phil Nelson  (phil at cs.wwu.edu)
Packit 70b277
Packit 70b277
	* (bc.y) Added a warning for the "last" variable.
Packit 70b277
Packit 70b277
	* (scan.l) Added code to allow for a single dot (.) to be the
Packit 70b277
	  same as the variable "last".  This is not a "standard" feature,
Packit 70b277
	  but is provided for those who want it.
Packit 70b277
Packit 70b277
	* (Install) Documented the new define for dot (.).
Packit 70b277
Packit 70b277
	* (bc.1) Documented the use of dot (.) for "last".
Packit 70b277
Packit 70b277
	* (Makefile) Added an easy method for adding extra defines for
Packit 70b277
	  use during the compile.  Set DOT_IS_LAST as a standard
Packit 70b277
	  extra define.
Packit 70b277
Packit 70b277
	* (number.c) Changed the code for sqrt for better speed.
Packit 70b277
Packit 70b277
Mon Jun 22 21:47:05 1992  Phil Nelson  (phil at cs.wwu.edu)
Packit 70b277
Packit 70b277
	* Changed the name of math.h to libmath.h to avoid conflict
Packit 70b277
	  with /usr/include/math.h.  Changed all references to math.h
Packit 70b277
	  to libmath.h in all files.
Packit 70b277
Packit 70b277
	* (configure) Changed the test for long strings accepted by
Packit 70b277
	  cc to not include libmath.h and thus not need to distribute
Packit 70b277
	  a file that is generated by the system.
Packit 70b277
Packit 70b277
	* (Makefile) Changed PREFIX, BINDIR, LIBDIR, and MANDIR to
Packit 70b277
	  lower case.
Packit 70b277
Packit 70b277
Tue Mar  3 10:16:07 1992  Phil Nelson  (phil at cs.wwu.edu)
Packit 70b277
Packit 70b277
	* (main.c) Added missing } at line 140.
Packit 70b277
Packit 70b277
	* (version.h) Changed date of version 1.02 to March 3, 1992.
Packit 70b277
Packit 70b277
Mon Feb  3 16:07:57 1992  Phil Nelson  (phil at cs.wwu.edu)
Packit 70b277
Packit 70b277
	* (version.h) Updated version number and date.
Packit 70b277
Packit 70b277
	* (bc.1) Added a new "VERSION" section.
Packit 70b277
Packit 70b277
Wed Jan 29 14:13:55 1992  Phil Nelson  (phil at cs.wwu.edu)
Packit 70b277
Packit 70b277
	* (execute.c) Removed the setjmp and longjmp calls that may have
Packit 70b277
	  caused some problems with interrupted programs.
Packit 70b277
Packit 70b277
Thu Jan 16 17:08:16 1992  Phil Nelson  (phil at cs.wwu.edu)
Packit 70b277
Packit 70b277
	* (Makefile) Changed install to install the manual.
Packit 70b277
Packit 70b277
Wed Jan  8 13:23:42 1992  Phil Nelson  (phil at cs.wwu.edu)
Packit 70b277
Packit 70b277
	* Change all copyright notices to include 1992.
Packit 70b277
Packit 70b277
	* (load.c) Added termination to "load_code" to ignore code
Packit 70b277
	  after an error has been found.
Packit 70b277
Packit 70b277
	* (scan.l) Changed the check for NUL characters in STRING tokens
Packit 70b277
	  (before the close quote) to work correctly.  Also added code to
Packit 70b277
	  report illegal characters in a more readable output format.
Packit 70b277
Packit 70b277
	* (bc.1) Added the exclusion of NUL characters from strings in
Packit 70b277
	  the "differences" section and updated date of last change.
Packit 70b277
Packit 70b277
	* (const.h) Changed BC_MAX_SEGS to 16.
Packit 70b277
Packit 70b277
Mon Jan  6 14:20:02 1992  Phil Nelson  (phil at cs.wwu.edu)
Packit 70b277
Packit 70b277
	* (number.c) Changed the out_num routine to use a correct field
Packit 70b277
	  size for bases greater than 16.  e.g.  For base 1000, each
Packit 70b277
	  "digit" is a three digit number.
Packit 70b277
Packit 70b277
	* (Makefile) Added the "8" flag to get an 8 bit scanner.
Packit 70b277
Packit 70b277
	* (scan.l) Changed "char *" to "unsigned char *" to match the
Packit 70b277
	  declaration of yytext for the 8 bit scanner.  Also added code
Packit 70b277
	  to detect the null character in strings and generate an error.
Packit 70b277
Packit 70b277
Sat Jan  4 20:32:20 1992  Phil Nelson  (phil at cs.wwu.edu)
Packit 70b277
Packit 70b277
	* (const.h) Changed BC_BASE_MAX to INT_MAX to allow more bases!
Packit 70b277
Packit 70b277
Mon Dec 30 21:47:28 1991  Phil Nelson  (phil at cs.wwu.edu)
Packit 70b277
Packit 70b277
	* (main.c) Fixed the bug that loaded the math library before
Packit 70b277
	  every file.
Packit 70b277
Packit 70b277
	* (bc.y) Removed some type declarations that duplicated token
Packit 70b277
	  definitions so it could be run through bison.
Packit 70b277
Packit 70b277
	* (load.c) Added a check for maximum code size.
Packit 70b277
Packit 70b277
	* (Makefile) Added a prefix for LIBDIR and BINDIR so it can be
Packit 70b277
	  changed easily.
Packit 70b277
Packit 70b277
Mon Nov 25 13:11:17 1991  Phil Nelson  (phil at cs.wwu.edu)
Packit 70b277
Packit 70b277
	* Changed version number in version.h to 1.01 with current date.
Packit 70b277
Packit 70b277
	* Changed LIBFILE definition in Makefile.
Packit 70b277
Packit 70b277
	* Added a recursive function example to bc.1.
Packit 70b277
Packit 70b277
Sun Nov 24 21:24:01 1991  Phil Nelson  (phil at cs.wwu.edu)
Packit 70b277
Packit 70b277
	* Changed the Makefile to make sure configure is run first.
Packit 70b277
	  Added the $(CC) the configure call.  Moved some defines
Packit 70b277
	  toward the front of the Makefile to make sure they are
Packit 70b277
	  read by installers.  Also added SUBDIRS variable and updated
Packit 70b277
	  the GNU distribution to include the subdirectories.  Included
Packit 70b277
	  math.h in the distribution for use by configure.  Included
Packit 70b277
	  ChangeLog in the distribution.
Packit 70b277
Packit 70b277
	* Split the README into README and Install.  Changed Install
Packit 70b277
	  to have current information.  Documented the STRINGS_H define.
Packit 70b277
	  Updated the version number in README.
Packit 70b277
Packit 70b277
	* Added a check for <strings.h> in configure.
Packit 70b277
Packit 70b277
Fri Nov 22 15:06:32 1991  Phil Nelson  (phil at cs.wwu.edu)
Packit 70b277
Packit 70b277
	* Changed configure to check for varargs.h first.  Also, added
Packit 70b277
	  checks to see if long strings (math.h) are accepted by the
Packit 70b277
	  C compiler.  Also added parameters to configure.
Packit 70b277
Packit 70b277
	* Deleted #include <sys/types.h> from proto.h.  Also made only
Packit 70b277
	  ANSI C compilers include <stdlib.h>.
Packit 70b277
Packit 70b277
	* Changed the Makefile to have the install bin directory be
Packit 70b277
	  /usr/local/bin and the install lib directory be /usr/local/lib.
Packit 70b277
Packit 70b277
	* Changed some files in the Test directory to eliminate the
Packit 70b277
	  <op>= form that some older bcs don't like.
Packit 70b277
Packit 70b277
	* Made some small corrections in bc.1.
Packit 70b277
Packit 70b277
Tue Oct 29 10:06:32 1991  Phil Nelson  (phil at cs.wwu.edu)
Packit 70b277
Packit 70b277
	* Called current version 1.00.
Packit 70b277
Packit 70b277
	* Submitted GNU bc-1.00 to comp.sources.reviewed