- Update to 1.07.1
- Enable Readline support in interactive mode.
Changelog :
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)