1 Wed Sep 27 17:19:48 2000 Phil Nelson <phil@cs.wwu.edu>
3 * doc/bc.texi: Added new file. Mainly translated from bc.1
5 doc/bc.1: Minor changes made as part of reviewing bc.texi.
7 Wed Sep 20 11:45:00 2000 Phil Nelson <phil@cs.wwu.edu>
9 * bc/bc.y: Added a comment on the meanings of lvals.
11 Wed Sep 13 11:40:24 2000 Phil Nelson <phil@cs.wwu.edu>
13 * bc/main.c: add --interactive to long options.
14 bc/bc.1: add -i/--interactive to doc.
15 MANY: Update FSF address and Phil's e-mail.
17 Tue Sep 12 13:58:16 2000 Phil Nelson <phil@cs.wwu.edu>
19 * NEWS: update for recent changes.
20 bc/bc.y: remove required parens around return expression.
21 doc/bc.1: update for recent changes.
23 Fri Sep 8 10:20:01 2000 Phil Nelson <phil@cs.wwu.edu>
25 * bc/Makefile.am, dc/Makefile.am, lib/Makefile.am:
26 Compile with unsigned characters.
27 bc/main.c: Add --help option.
28 bc/scan.l: Print illegal, non-printable characters in octal.
30 Fri Sep 8 09:36:54 2000 Phil Nelson <phil@cs.wwu.edu>
32 * bc/bc.y: Allow more newlines in function definitions.
33 bc/proto.h: Don't prototype main.
35 Fri Sep 1 16:09:50 2000 Phil Nelson <phil@cs.wwu.edu>
37 * bc/bc.y: Spelling correction
38 bc/execute.c: Correct expressions for multi-byte names.
39 bc/load.c: Add parens for correct casting.
41 Above fixes pointed out by kwzh@gnu.org (Karl Heuer).
43 Tue Aug 29 23:03:30 PDT 2000 Phil Nelson <phil@cs.wwu.edu>
45 * lib/testmul.c: #ifdef out a declaration matching #ifdef out
48 Mon Jul 31 07:01:42 2000 Ken Pizzini <ken@gnu.org>
50 * dc/numeric.c: use of the "n" command can cause a number to be printed
51 without a trailing newline, which would cause the column counter to
52 fail to be reset and result in inappropriately wrapped numeric outputs.
53 Fixed by always clearing the column counter before outputting each number.
55 * dc/stack.c: if a stack is used without ever using the correspondingly
56 named register, it is perfectly legitimate for the register to be
57 uninitialized; added an "else if" to handle this case without aborting.
59 * dc/eval.c: updated the comment explaining the restrictions
60 on the | command to better reflect reality.
62 * doc/dc.texi: update the FSF office address in the copyright notice
64 Thu Jul 13 18:13:00 2000 Phil Nelson <phil@cs.wwu.edu>
66 * README: note --with-libedit configure parameter.
68 Tue Jun 20 22:52:10 2000 Phil Nelson <phil@cs.wwu.edu>
70 * bc/bcdefs.h: Include <readline/history.h> to quiet warnings.
72 * configure.in: make --with-readline and --with-libedit work correctly.
74 * Makefile.am: use $(MAKE) instead of directly calling make.
76 * lib/testmul.c: Update to use bc_ on all number.c routines.
78 Sat Jun 10 22:44:29 2000 Phil Nelson <phil@cs.wwu.edu>
80 * bc/Makefile.am: Add scan.c to maintainer-clean target.
82 * acconfig.h configure.in stamp-h.in bc/Makefile.am bc/execute.c
83 bc/fix-libmath_h bc/global.c bc/load.c bc/main.c bc/storage.c:
84 Remove long string for libmath. Clean up for compiler errors.
86 * dc/numeric.c: Correct parameter name.
88 Wed May 10 15:51:16 2000 Phil Nelson <phil@cs.wwu.edu>
90 * {bc,doc,dc,lib}/Makefile.am: Add Makefile.in to maintainer-clean.
92 * bootstrap.sh: Added script to run the auto* tools.
94 * Imported all into CVS tree.
96 Sun 2000-05-07 Phil Nelson <phil@cs.wwu.edu>
98 * bc/Makefile.am, dc/Makefile.am, lib/Makefile.am: Add -Wall to CFLAGS.
100 * bc/{execute.c,proto.h,storage.c,util.c}, dc/numeric.c: Changes for
101 -Wall and for name changes in lib/number.c. (Added bc_ to several
102 routine. Updated copyright notice.)
104 * h/number.h, lib/number.c: Now comes from bcmath library which is
105 distributed in a different place.
107 Wed Mar 29 17:47:34 2000 Phil Nelson <phil@cs.wwu.edu>
109 * bc/{bc.y,bcdefs.h,global.h,main.c,proto.h,scan.l,storage.c}:
110 Added BSD libedit support. Generic support for both where possible.
111 Fixed bugs in readline support noticed during libedit addition.
112 Works with NetBSD-1.4.1 libedit.
113 * doc/bc.1: Documented libedit addition.
115 Wed Mar 29 10:20:18 2000 Phil Nelson <phil@cs.wwu.edu>
117 * FAQ: Added this file.
118 * Makfile.am: Added FAQ to distribution
120 Tue Mar 28 13:52:35 2000 Phil Nelson <phil@cs.wwu.edu>
122 * lib/number.c, h/number.h: Moved definitions so
123 number.c/number.h is a stand-alone "library".
124 Changed definition of out_num to not reference a global.
125 * lib/testmul.c: updated #includes for number.h changes.
126 * h/{bcdefs.h,const.h,global.h,proto.h} moved to
127 bc where they really belong.
128 * bc/execute.c: Changed calls to out_num for correctness.
129 * dc/numeric.c: Changed calls to out_num for correctness,
130 include only number.h now and not all the other junk.
131 * configure.in, acconfig.h: Start of support for BSD libedit,
132 added --with-pkg for NetBSD /usr/pkg tree.
134 Tue Mar 28 11:20:00 2000 Phil Nelson <phil@cs.wwu.edu>
136 * Test/{exp.b,fact.b,jn.b,mul.b,raise.b}: Tweeks on the tests
137 run to do more computation and test the recursive multiply.
138 * bc/scan.l: Removed a printf('\r') that was unneeded.
140 Mon Mar 27 14:00:00 2000 Phil Nelson <phil@cs.wwu.edu>
142 * NEWS: Updated for 1.06.
143 * lib/number.c, h/number.h: Fixed bugs in recursive multiply.
144 Changed these files to be under the LGPL.
145 * Tests/jn.b: Added more tests.
146 * lib/Makefile.am: Only generate a timed version of number.o if
148 * README: Updated with information on how to generate a timed
150 * h/version.h: Updated copyright and version number for dc.
152 Thu Mar 16 14:01:45 2000 Phil Nelson <phil@cs.wwu.edu>
154 * doc/bc.1, doc/dc.1, doc/dc.texi: Changed bug reporting address
155 to bug-bc@gnu.org to update with what we hope will be reality.
157 Tue Feb 8 08:54:19 2000 Phil Nelson <phil@cs.wwu.edu>
159 * doc/bc.1, bc/util.c: Removed "multiply digits"
160 limit due to new recursive algorithm that doesn't
163 Tue Feb 8 08:47:05 2000 Phil Nelson <phil@cs.wwu.edu>
165 * lib/Makefile.am, lib/testmul.c, lib/number.c, Makefile.am:
166 Finally got a resonable version of the program
167 to test the crossover between non-recursive and
168 recursive multiply algorithms. Added to distribution
169 and build process. Does increase build time by
172 Wed Oct 6 13:28:59 1999 Phil Nelson <phil@cs.wwu.edu>
174 * lib/Makefile.am: Added rules to allow DEFSADD definitions.
176 Sat Oct 2 19:59:51 1999 Phil Nelson <phil@cs.wwu.edu>
178 * bc/libmath.b: Correctly do the cosine accuracy.
180 Fri Oct 1 12:41:51 1999 Phil Nelson <phil@cs.wwu.edu>
182 * lib/number.c: Increase accuracy of computing raise.
183 Also turn off use of recursive multiply routines
184 until furthur testing.
185 * bc/libmath.b: Increase accuracy of cosine.
186 * bc/Makefile.am: Remove -lfl from items to make.
188 Wed Jul 28 10:29:28 1999 Phil Nelson <phil@cs.wwu.edu>
190 * bc/scan.l: rl_len from char to int. (From FreeBSD
191 bug tracking system and Nick Hibma <nick.hibma@jrc.it>)
193 Tue Jun 22 08:00:28 1999 Phil Nelson <phil@cs.wwu.edu>
195 * lib/number.c: Rewrote bc_multiply to use a faster
196 algorithm. Old code not removed yet.
198 Mon Jun 21 03:08:02 1999 Phil Nelson <phil@cs.wwu.edu>
200 * h/version.h: Updated version number to 1.06.
201 bc/bc.y: Corrected bug in for statement, not popping.
202 bc/execute.c: Improved stack dump/instruction tracing.
204 Tue Jun 15 22:30:42 1999 Phil Nelson <phil@cs.wwu.edu>
206 * configure.in: Updated bc version to 1.06.
208 Tue Jun 15 22:27:44 1999 Phil Nelson <phil@cs.wwu.edu>
210 * h/bcdefs.h, h/const.h, bc/execute.c, bc/load.c, bc/storage.c,
211 bc/util.c: Removed segmented function storaged. Now
212 dynamically expands (by doubling, starting at 1024 bytes)
213 to allow arbitrary sized functions.
215 Thu Jun 10 22:33:44 1999 Phil Nelson <phil@cs.wwu.edu>
217 * bc/libmath.b: change scaling in computation of j(n,x) so
218 it correctly computes the value.
220 Wed Jun 10 10:10:10 1998 Release of bc-1.05a.
222 Fri Apr 17 10:40:59 1998 Phil Nelson <phil@cs.wwu.edu>
224 * bc/main.c: Enable readline only if interactive.
226 Thu Apr 16 16:49:22 1998 Phil Nelson <phil@cs.wwu.edu>
228 * bc/configure.in: Tweeking of AM_PROG_LEX and associated
229 special case goo for solaris.
231 Sat Mar 28 21:43:18 1998 Phil Nelson <phil@cs.wwu.edu>
233 * bc/Makefile.am: Added "YFLAGS = -d" to get bc.h to build properly.
235 Mon Mar 9 12:54:42 PST 1998 Ken Pizzini <ken@halcyon.com>
237 * doc/dc.texi, doc/dc.1: correct some documentation bugs.
239 Sun Mar 8 23:56:24 PST 1998 Ken Pizzini <ken@halcyon.com>
241 * dc/numeric.c: eliminate superfluous variable from dc_dump_num();
242 annotate unused parameters in dc_add() and dc_sub().
244 * h/version.h: change dc version number to 1.2 for release.
246 Sun Mar 8 21:13:50 1998 Phil Nelson <phil@cs.wwu.edu>
248 * bc/main.c: Applied patch from Ken Pizzini to force line
249 mode buffering on stdout.
251 Tue Jan 6 09:15:04 PST 1998 Ken Pizzini <ken@halcyon.com>
253 * h/version.h: dc is now up to version 1.1.5.
255 * dc/eval.c, dc/numeric.c, doc/dc.texi, doc/dc.1: once again
256 changed the behavior of the 'P' command with a numeric argument
257 to make it more general. It now dumps out the *whole* number
258 (or rather, the whole of its positive integer portion) as a
259 byte stream. (For small values this is still the same as 'aP'.)
261 * dc/dc-proto.h, dc/dc.h, dc/eval.c, dc/misc.c, dc/numeric.c,
262 dc/stack.c, dc/string.c: Changed most uses of dc_boolean to
263 either dc_discard or dc_newline, and instances of DC_TRUE and
264 DC_FALSE to appropriate instances of DC_TOSS, DC_KEEP, DC_NONL,
265 or DC_WITHNL so that the code self-documents a little better.
267 Sun Jan 4 15:39:46 PST 1998 Ken Pizzini <ken@halcyon.com>
269 * dc/eval.c, doc/dc.texi, doc/dc.1: Changed the functionality
270 of the 'P' command, and added the 'n' command. Due to
271 a quirk of the implementation of traditional dc, some
272 people have come to expect that the 'P' command on a
273 numeric argument in the range of 1 to 99 should output
274 the corresponding character, despite the fact that this
275 usage can have very weird results for numbers outside
276 that range. This functionality is why the 'a' command
277 was introduced last March, but people really want it to
278 "just work" without needing to use the 'a' command.
279 Bowing to this demand, the 'P' command now does the
280 equivalent of "aP" if the argument is numeric, and the
281 'n' command has been added to support the previous
282 functionality of the 'P' command.
284 * dc/misc.c, dc/eval.c, dc/stack.c, dc/dc-proto.h:
285 Changed prototype for dc_print(). It now additionally
286 takes two flags, newline_p and discard_p, which it
287 passes through to dc_out_num() and dc_out_str() as
290 * h/version.h: dc is now up to version 1.1.4.
292 Sat Sep 27 13:48:53 1997 Ken Pizzini <ken@halcyon.com>
294 * h/version.h: dc is now up to version 1.1.3.
296 * dc/stack.c, dc/array.c, dc/dc-proto.h, doc/dc.texi, doc/dc.1:
297 It has come to my attention that, though undocumented,
298 traditional dc stacked its arrays in parallel with the
299 stacking of simple registers. I have now duplicated
302 * dc/dc.c, configure.in: line-buffer dc's output if setvbuf()
303 is supported. This was requested to simplify using dc as
304 an inferior process under emacs.
306 Fri Sep 26 19:56:15 1997 Ken Pizzini <ken@halcyon.com>
308 * dc/dc.c: fixed bug reporting address for --help.
310 * doc/dc.1, doc/dc.texi: corrected documentation of the maximum
311 admissible input base.
313 * doc/dc.texi: corrected sample code equivalence for the | command.
315 * lib/number.c: added a warning for non-zero scale in the base
318 Fri Sep 26 18:15:31 1997 Ken Pizzini <ken@halcyon.com>
320 * dc/eval.c, doc/dc.1, doc/dc.texi: added !=, !<, and !> commands.
322 * dc/eval.c: eliminated double-free in 'a' command.
324 * dc/dc.c: changed placment of check for filename "-" so that
327 * h/version.h: updated dc version to 1.1.2.
329 Thu Sep 18 17:41:10 1997 Ken Pizzini <ken@halcyon.com>
331 * dc/eval.c: fixed off-by-one error for Q and q commands.
333 * dc/dc.c: added missing f: to third argument of getopt().
335 * h/version.h: updated dc version to 1.1.1.
337 Thu May 22 08:24:08 1997 Phil Nelson <phil@cs.wwu.edu>
339 * lib/number.c(bc_sqrt): Fixed a bug that computed 0 for sqrt
340 of most numbers less than .000001.
342 Thu May 1 10:41:38 1997 Phil Nelson <phil@cs.wwu.edu>
344 * Test/timetest: change path to bc executable.
346 Wed Apr 30 12:00:00 1997 Phil Nelson <phil@cs.wwu.edu>
348 * Froze bc-1.04, started new directory for bc-1.05.
349 Fixes to bc-1.04 will be distributed as bc-1.05.
351 Mon Apr 21 14:57:14 1997 Phil Nelson <phil@cs.wwu.edu>
353 * bc/scan.l: Changed rules for single line comment to work
354 with lex as well as flex. Also, do not include \n in the
357 * doc/bc.1: Clarified the single line comment and that \n
358 is processed outside of the comment.
360 Sun Apr 20 22:21:30 1997 Phil Nelson <phil@cs.wwu.edu>
362 * bc/scan.l: Added rules for a single line comment starting
363 with the # character.
365 * doc/bc.1: Documented the single line comment.
367 * bc/Makefile.am: Added DISTCLEANFILES for proper clean up.
369 Sat Apr 19 22:08:05 1997 Phil Nelson <phil@cs.wwu.edu>
371 * dc/Makefile.am: Removed file from distribution list.
373 * h/version.h: Updated dc version to 1.1.
375 Fri Apr 18 16:43:04 1997 Phil Nelson <phil@cs.wwu.edu>
377 * lib/number.c (bc_add, bc_sub) Added 1 to the length
378 of the memset call to make sure it zeroed all the
381 Fri Apr 18 13:58:56 1997 Phil Nelson <phil@cs.wwu.edu>
383 * configure.in: Tweeks to get things right. Not sure if things
384 changed much. Still working with autoconf/automake to do
387 Wed Apr 16 16:49:17 1997 Phil Nelson <phil@cs.wwu.edu>
389 * bc/main.c (main): Changed processing of BC_ENV_ARGS.
391 * bc/main.c (parse_args): Removed "start" parameter.
393 Tue Apr 15 13:21:28 1997 Phil Nelson <phil@cs.wwu.edu>
395 * acconfig.h: Included support for PACKAGE and VERSION.
397 * configure.in: More tweeks for automake support.
399 * h/number.h: Improve definition of MIN and MAX.
401 * doc/bc.1: Changed copyright, tweeked other text, added
402 e-mail address for bugs.
404 * doc/dc.1: Added copyright and GPL license information,
405 Changed a few .SH formats.
407 Fri Apr 11 16:14:42 1997 Phil Nelson <phil@cs.wwu.edu>
409 * Makefile.am configure.in doc/Makefile.am lib/Makefile.am
410 bc/Makefile.am bc/bc.y dc/Makefile.am: Changes to accomodate
411 automake-1.1n (pre-release version of automake 1.2).
413 * bc/bc.y bc/sbc.y: Changes to make sure tokens are numbered the
414 same in bc/bc.h and bc/sbc.h.
416 * bc/scan.l: Changes for automake's naming convention.
418 * NEWS: Fixed a typo.
420 Thu Apr 10 14:42:55 1997 Phil Nelson <phil@cs.wwu.edu>
422 * bc/{execute.c, global.c, libmath.b, load.c, main.c, sbc.y
423 scan.l, storage.c, util.c}: Changed copyright comment and
424 added 1997 to copyright years.
426 * h/{bcdefs.h, const.h, global.h, number.h proto.h, version.h}:
427 Changed copyright comment and added 1997 to copyright years.
429 * h/version.h: Changed bc version to 1.04.
431 * lib/number.c: Changed copyright comment and added 1997 to
434 * lib/vfprintf.c: Noted that this was only for minix.
436 * NEWS, README: README is now comp.sources.reviewed readme only.
437 NEWS now lists changes from version to version.
439 Thu Apr 10 13:41:56 1997 Phil Nelson <phil@fawn.cs.wwu.edu>
441 * Makefile.am: Removed FIXME stuff.
443 Thu Apr 8 13:39:53 1997 Phil Nelson <phil@cs.wwu.edu>
445 * bc/Makefile.am: Remove files that should not be distributed.
447 Mon Apr 7 17:14:28 1997 Phil Nelson <phil@cs.wwu.edu>
449 * Makefile.am: Removed Misc directory from distribution.
451 Mon Apr 7 16:16:01 1997 Phil Nelson <phil@cs.wwu.edu>
453 * bc/sbc.y: Corrected use of nextarg().
455 Tue Mar 25 19:32:28 1997 Ken Pizzini <ken@halcyon.com>
457 * dc/eval.c, dc/misc.c, dc/stack.c, dc/string.c,
458 dc/dc.h, dc/dc-proto.h, dc/dc.c, dc/numeric.c,
459 doc/dc.texi: updated years in copyright
462 * dc/dc.1: updated last-revision date.
464 Tue Mar 25 16:35:46 1997 Ken Pizzini <ken@halcyon.com>
466 * lib/number.c: give a run-time warning in bc_raisemod()
467 if the modulus does not appear to be an integer.
469 * doc/dc.texi, doc/dc.1: documented a warning against
470 the use of the new | command in conjunction with a
471 non-integral modulus.
473 Tue Mar 25 15:36:04 1997 Ken Pizzini <ken@halcyon.com>
475 * dc/string.c: dc_out_str() updated to use fwrite()
476 instead of printf(), to allow for the existence of
477 a NUL character in the string.
479 Tue Mar 25 13:42:51 1997 Ken Pizzini <ken@halcyon.com>
481 * doc/dc.texi, doc/dc.1: added documentation for new | command.
483 Tue Mar 25 13:19:55 1997 Ken Pizzini <ken@halcyon.com>
485 * dc/dc-proto.h: added prototype for dc_triop().
487 Tue Mar 25 12:00:38 1997 Ken Pizzini <ken@halcyon.com>
489 * lib/number.c: add bc_modexp() modular-exponentiation function.
491 * h/proto.h: add prototypes for bc_modexp() and bc_divmod().
493 Tue Mar 25 09:07:13 1997 Ken Pizzini <ken@halcyon.com>
495 * doc/dc.texi, doc/dc.1: updated documentation with the
496 new command-line options.
498 * doc/dc.texi, doc/dc.1: updated documentation with the
499 new '~', 'r', and 'a' commands.
501 * dc/dc.c: added bug reporting information to --version text.
503 Mon Mar 24 19:37:30 1997 Ken Pizzini <ken@halcyon.com>
505 * lib/number.c: added new "bc_divmod" function.
507 * dc/numeric.c: added new "dc_divrem" glue function to bc_divmod.
509 * dc/stack.c: added new "dc_binop2" function.
511 * dc/dc-proto.h: added new prototypes for dc_divrem() and dc_binop2().
513 * dc/eval.c, dc/numeric.c: add new '~' command which
514 returns both the quotient and remainder from division.
516 Mon Mar 24 18:13:42 1997 Ken Pizzini <ken@halcyon.com>
518 * dc/eval.c: Add new 'r' (reverse top two stack elements) command.
520 Mon Mar 24 17:47:02 1997 Ken Pizzini <ken@halcyon.com>
522 * dc/misc.c: split out the main() related functions into
523 a seperate dc/dc.c file.
525 * dc/Makefile.am: updated to reflect this split.
527 Sat Mar 1 04:57:54 1997 Ken Pizzini <ken@halcyon.com>
529 * dc/misc.c: added "--file" option.
531 Sat Mar 1 02:13:06 1997 Ken Pizzini <ken@halcyon.com>
533 * dc/eval.c: fixed bug of an excess increment in
534 dc_evalstr()'s DC_COMMENT case. (Probably would
535 never show up in practice, but did violate the
536 letter of the C Standard.)
538 * renamed dc/number.c to dc/numeric.c, to avoid
539 confusion with lib/number.c.
541 Thu Feb 27 19:45:45 1997 Ken Pizzini <ken@halcyon.com>
543 * dc/string.c, dc/dc.h: changed implementation of dc_str
544 type from a void * to a type which is only completed
545 in dc/string.c. No functional change, just prettier code.
547 Thu Feb 27 18:25:19 1997 Ken Pizzini <ken@halcyon.com>
549 * Cleaned up Makefile.am files.
551 Thu Feb 6 00:41:02 1997 Ken Pizzini <ken@halcyon.com>
553 * Noticed pre-autoconf vestages (NO_XXX configuration options);
554 fixed to refer to autoconf HAVE_XXX definitions.
556 * The definition of BC_XXX values in h/const.h might
557 conflict with values of the same name from <limits.h>;
558 fixed to override without spewing warnings.
560 * Added check for ptrdiff_t to configure.in; removed
561 special ptrdiff_t definition from dc/string.c .
563 Wed Feb 5 22:28:37 1997 Ken Pizzini <ken@halcyon.com>
565 * Only compile (guts of) lib/vfprintf.c if system does
566 not have its own version.
568 Wed Feb 5 22:26:16 1997 Ken Pizzini <ken@halcyon.com>
570 * Changed dc/misc.c source to use standard GNU option
571 parsing routine (instead of special-case code).
573 * Added "-e" option to dc.
575 * Bumped dc version number to 1.0.4.
577 Wed Feb 5 22:08:06 1997 Ken Pizzini <ken@halcyon.com>
579 * rearranged source layout (added subdirectory structure);
580 removed "dc-" prefix from dc C source in its new home.
582 * merged bc's "version.h" and dc's "dc-version.h" files
583 into h/version.h; patched dc/misc.c to refer to new
584 DC_VERSION macro name.
586 * Tweaked configure.in in anticipation of using automake.
588 Wed Jul 24 16:27:20 1996 Phil Nelson <phil@cs.wwu.edu>
590 * number.c (out_num): Move free of t_num to proper place.
592 Mon Jun 3 00:31:10 1996 Phil Nelson <phil@cs.wwu.edu>
594 * number.c: (bc_sqrt, is_near_zero) Was hanging in an infinite
595 loop on sqrt(.9999). Rewrote to take difference. New routine
596 is_near_zero to check for one digit off.
598 Thu Feb 22 12:14:38 1996 Phil Nelson <phil@cs.wwu.edu>
600 * dc-eval.c (dc_func): Added the 'a' (number to ascii character)
603 Thu Feb 22 11:55:15 1996 Phil Nelson <phil@cs.wwu.edu>
605 * dc-eval.c: (Changes from Ken) Changes dealing with stdin_lookahead
608 * dc-misc.c: (Changes from Ken) Changes in option processing.
610 * dc-version.c: (Change from Ken) Version is 1.0.2.
612 Mon Oct 9 15:40:06 1995 Phil Nelson <phil@cs.wwu.edu>
614 * execute.c (execute): Add a pop to 'W' and 'P' codes. Otherwise,
615 the stack continues to grow.
617 * number.c (out_num): Free all bc_nums used.
619 Thu Jun 29 00:35:57 1995 Phil Nelson <phil@cs.wwu.edu>
621 * bc.1: Added information about long options and use of the
624 Wed Jun 28 21:03:45 1995 Phil Nelson <phil@cs.wwu.edu>
626 * scan.l: rl_input: detect EOF.
628 Wed Jun 28 19:03:51 1995 Phil Nelson <phil@cs.wwu.edu>
630 * Makefile.in: fbc target, changed $(LEXLIB) => $(LIBS)
632 Wed Jun 28 01:33:07 1995 Phil Nelson <phil@cs.wwu.edu>
634 * acconfig.h, bc.y, scan.l, storage.c, util.c, configure.in:
635 Improved readline support with a new pseudo variable "history"
636 that controls the number of history lines available.
637 Also removed "optional" history.
639 Wed Jun 28 01:03:52 1995 Phil Nelson <phil@cs.wwu.edu>
641 * getopt.h, getopt.c, getopt1.c: Imported from glibc-1.09
642 to allow long option processing.
644 * main.c (parse_args): Make it use long arguments.
646 * global.h: Change option flag variables from "char" to "int"
647 to allow long_arguments easy access to the variables.
649 * Makefile.in: Add getopt.h, getopt.c, and getopt1.c in the
650 proper places in the Makefile.
652 Fri Jun 23 12:00:16 1995 Phil Nelson <phil@cs.wwu.edu>
654 * scan.l, main.c (main), acconfig.h, configure.in:
655 Added support for readline input on stdin.
657 Thu Jun 22 20:08:57 1995 Phil Nelson <phil@cs.wwu.edu>
659 * bc.1: Change documentation on POSIX array parameter support.
661 Fri Apr 7 12:29:28 1995 Phil Nelson <phil@cs.wwu.edu>
663 * main.c (parse_args): change "char ch" to "int optch" with
666 Thu Mar 23 04:11:00 1995 Phil Nelson <phil@cs.wwu.edu>
668 * bc.1: Update documentation to include new -q
669 option and the environment variables.
671 Thu Mar 23 03:30:38 1995 Phil Nelson <phil@cs.wwu.edu>
673 * bcdefs.h, global.h, main.c, util.c, bc.y: Reworked
674 argument processing to allow for getting arguments
675 from the environment and the command line. Added
676 a new mechanism to access file names for opening
677 and for error messages. Also added a "quiet"
678 option to turn off the welcome banner.
680 Thu Mar 23 03:12:11 1995 Phil Nelson <phil@cs.wwu.edu>
682 * util.c: Corrected a comment.
684 Tue Mar 21 13:36:24 1995 Phil Nelson <phil@cs.wwu.edu>
686 * bc.y: Added "opt_newline" to allow more newlines
689 Tue Mar 21 09:38:28 1995 Phil Nelson <phil@cs.wwu.edu>
691 * execute.c, main.c, util.c: Add support for user
692 defined line length, "correct POSIX line length",
693 no breaking of strings in std_only mode. This
694 included adding a new function "out_schar" to
695 util.c. Also removed "if (interactive)" before
698 Tue Mar 21 09:12:16 1995 Phil Nelson <phil@cs.wwu.edu>
700 * global.h: Added new variable "line_size". Cleaned up
701 some definitions by adding comments.
703 Mon Mar 20 23:33:01 1995 Phil Nelson <phil@cs.wwu.edu>
705 * proto.h: Define getopt only if no unistd.h file.
707 Mon Mar 20 23:23:34 1995 Phil Nelson <phil@cs.wwu.edu>
709 * number.c, proto.h, execute.c, storage.c, dc-number.c:
710 Changes to bc_add and bc_sub parameters to allow for
711 different scale results than were possible. This is
712 for correct implementation of modulo. All calls were
715 Mon Mar 20 19:26:06 1995 Phil Nelson <phil@cs.wwu.edu>
717 * sbc.y: Removed second parameter on calls to arg_str to match
720 Tue Feb 28 14:30:18 1995 Phil Nelson <phil@cs.wwu.edu>
722 * Makefile.in: Change realclean to maintainer-clean. Added warning.
724 Mon Feb 27 17:08:24 1995 Phil Nelson <phil@cs.wwu.edu>
726 * number.c: Change output to conform with POSIX standard for zero
727 only when the -s flag is given. Otherwise it does the tradational
730 * dc-misc.c: Add the "std_only" flag, always set to zero. This is
731 needed due to the above change.
733 Tue Nov 29 15:18:20 1994 Phil Nelson <phil@cs.wwu.edu>
735 * bc.1: Remove the "then" keyword in the if statement documentation.
737 Mon Nov 28 16:50:25 1994 Phil Nelson <phil@cs.wwu.edu>
739 * bc.1: Fixed a font change error.
741 * Makefile.in: Added missing \ in two targets.
743 Tue Nov 22 11:09:08 1994 Phil Nelson <phil@cs.wwu.edu>
745 * bc.1: clarified ibase and math routines.
747 Thu Nov 3 14:09:31 1994 Phil Nelson (phil@cs.wwu.edu)
749 * Makefile.in: added targets uninstall, installdirs and modified
750 other targets to get makes in a directory other than srcdir to
753 * configure.in: added shell commands to get configure to work
754 correctly in directories other than srcdir.
756 Wed Nov 2 10:18:19 1994 Phil Nelson (phil@cs.wwu.edu)
758 * bc.1 bc.y bcdefs.h const.h execute.c global.c global.h load.c
759 main.c number.c number.h proto.h sbc.y scan.l storage.c util.c:
760 updated copyright to 1994.
762 * version.h: updated version number and copyright date.
764 * Makefile.in, configure.in, Install: updated for use with
765 autoconf-2.0 and install-sh. Changed target install a bit.
767 * install-sh: Included this file from the autoconf-2.0
768 distribution to have configure run without errors.
770 * README: updated to version 1.03.
772 Mon Oct 31 10:26:28 1994 Phil Nelson (phil@cs.wwu.edu)
774 * Added Ken Pizzini's dc implementation that uses bc numeric
775 routines. The following files have been added:
776 dc-Concerns dc-array.c dc-eval.c dc-misc.c dc-number.c
777 dc-proto.h dc-regdef.h dc-stack.c dc-string.c dc-version.h
780 * dc-array.c: Added a conditional include of stdlib.h to get
781 size_t defined on my SunOS 4.1.3 system.
783 * configure.in: Added support for dc.
785 * Makefile.in: Added support for dc. Added rule to make
788 Sun Aug 7 15:09:19 1994 Phil Nelson (phil@cs.wwu.edu)
790 * configure.in, Makefile.in, acconfig.h: Add support for autoconf.
791 Removed old Makefile.
793 Wed Jul 20 22:46:32 1994 Phil Nelson (phil@cs.wwu.edu)
795 * bc.y: change definition of next_label in function definition.
796 Previous value of 0 caused break to not work. It is now 1.
798 Fri Apr 8 14:16:37 1994 Phil Nelson (phil@cs.wwu.edu)
800 * Makefile: Change the distribution to include libmath.h.dist
801 which is a copy of libmath.h that has the compiled libmath.b.
803 Sun Feb 13 01:08:14 1994 Phil Nelson (phil@cs.wwu.edu)
805 * execute.c: Change the string quote characters to be more like
806 C. \a => alert (bell) \b => backspace and added \q => ".
808 * bc.1: Updated information on above changes.
810 Wed Oct 27 23:34:40 1993 Phil Nelson (phil@cs.wwu.edu)
812 * Makefile: Changed compress to gzip. Changed the
813 comment and definition of the DOT_IS_LAST compile option.
815 * scan.l: Changed DOT_IS_LAST to NO_DOT_LAST and changed
816 the test so "." is the last variable is standard.
818 Wed May 19 15:15:12 1993 Phil Nelson (phil at cs.wwu.edu)
820 * number.c: Fixed output of negative numbers in bases other than
823 Wed Apr 21 11:56:31 1993 Phil Nelson (phil at cs.wwu.edu)
825 * bc.1: Changed Steve Sommars e-mail address.
827 Wed Apr 14 12:13:39 1993 Phil Nelson (phil at cs.wwu.edu)
829 * sbc.y: removed leading , on first line.
831 Wed Mar 31 16:12:39 1993 Phil Nelson (phil at cs.wwu.edu)
833 * bc.1: Updated segment number for function bodies.
835 Thu Mar 11 15:34:34 1993 Phil Nelson (phil at cs.wwu.edu)
837 * Makefile: added version.h to bc.o's dependency list.
839 Mon Mar 1 14:00:46 1993 Phil Nelson (phil at cs.wwu.edu)
841 * util.c: (nextarg) changed parameter "val" to be an int.
843 Tue Feb 16 10:06:45 1993 Phil Nelson (phil at cs.wwu.edu)
845 * util.c: (call_str, arg_str) added a function call_str that
846 correctly produces the string of argmuent types for a function
847 call. arg_str produced them in the reverse order. This
848 eliminated the need for the "comma" argument to arg_str, which
851 * bc.y: changed the calls to arg_str to have only one parameter
852 in the function definition rule and replaced the call to arg_str
853 with call_str in the function call rule.
855 Tue Nov 24 17:38:40 1992 Phil Nelson (phil at cs.wwu.edu)
857 * Makefile: Added LEXLIB definitions for use with lex.
859 Thu Oct 22 13:43:16 1992 Phil Nelson (phil at cs.wwu.edu)
861 * number.c (bc_raise): Rearranged and added code to speed up
862 the computation by not doing unneeded multiplications.
864 Wed Sep 30 10:43:52 1992 Phil Nelson (phil at cs.wwu.edu)
866 * global.h: Fixed documentation.
868 Tue Sep 29 15:27:50 1992 Phil Nelson (phil at cs.wwu.edu)
870 * storage.c (process_params): Changed processing of more arguments
871 than in a function definition to just a return.
873 * Makefile: Made changes to make it more in conformance with the
874 GNU coding standards.
876 Tue Jul 7 21:09:07 1992 Phil Nelson (phil at cs.wwu.edu)
878 * (const.h, bc.y, util.c) Added code so that when the math
879 library is loaded, redefinition of any math library function
880 will not cause the other functions to quit working correctly.
881 Before this change, redefining a(x) would cause s(x) and c(x)
882 to quit working and redefining s(x) would cause c(x) to quit
885 Wed Jul 1 14:35:29 1992 Phil Nelson (phil at cs.wwu.edu)
887 * (libmath.b) Changed the calculation of scale for computing
888 e(x) and l(x). This provides a little more accuracy in the
889 last digit at the expense of a little speed.
891 * (Test/checklib.b) Changed tests to be parameterized and test
894 Thu Jun 25 09:22:59 1992 Phil Nelson (phil at cs.wwu.edu)
896 * (configure) changed the script from looking in the
897 include directory for a .h file to asking cc (gcc) to
898 find the .h file. This will allow better detection
899 of include files available to the C compiler.
901 Wed Jun 24 22:11:37 1992 Phil Nelson (phil at cs.wwu.edu)
903 * (bc.y) Added a warning for the "last" variable.
905 * (scan.l) Added code to allow for a single dot (.) to be the
906 same as the variable "last". This is not a "standard" feature,
907 but is provided for those who want it.
909 * (Install) Documented the new define for dot (.).
911 * (bc.1) Documented the use of dot (.) for "last".
913 * (Makefile) Added an easy method for adding extra defines for
914 use during the compile. Set DOT_IS_LAST as a standard
917 * (number.c) Changed the code for sqrt for better speed.
919 Mon Jun 22 21:47:05 1992 Phil Nelson (phil at cs.wwu.edu)
921 * Changed the name of math.h to libmath.h to avoid conflict
922 with /usr/include/math.h. Changed all references to math.h
923 to libmath.h in all files.
925 * (configure) Changed the test for long strings accepted by
926 cc to not include libmath.h and thus not need to distribute
927 a file that is generated by the system.
929 * (Makefile) Changed PREFIX, BINDIR, LIBDIR, and MANDIR to
932 Tue Mar 3 10:16:07 1992 Phil Nelson (phil at cs.wwu.edu)
934 * (main.c) Added missing } at line 140.
936 * (version.h) Changed date of version 1.02 to March 3, 1992.
938 Mon Feb 3 16:07:57 1992 Phil Nelson (phil at cs.wwu.edu)
940 * (version.h) Updated version number and date.
942 * (bc.1) Added a new "VERSION" section.
944 Wed Jan 29 14:13:55 1992 Phil Nelson (phil at cs.wwu.edu)
946 * (execute.c) Removed the setjmp and longjmp calls that may have
947 caused some problems with interrupted programs.
949 Thu Jan 16 17:08:16 1992 Phil Nelson (phil at cs.wwu.edu)
951 * (Makefile) Changed install to install the manual.
953 Wed Jan 8 13:23:42 1992 Phil Nelson (phil at cs.wwu.edu)
955 * Change all copyright notices to include 1992.
957 * (load.c) Added termination to "load_code" to ignore code
958 after an error has been found.
960 * (scan.l) Changed the check for NUL characters in STRING tokens
961 (before the close quote) to work correctly. Also added code to
962 report illegal characters in a more readable output format.
964 * (bc.1) Added the exclusion of NUL characters from strings in
965 the "differences" section and updated date of last change.
967 * (const.h) Changed BC_MAX_SEGS to 16.
969 Mon Jan 6 14:20:02 1992 Phil Nelson (phil at cs.wwu.edu)
971 * (number.c) Changed the out_num routine to use a correct field
972 size for bases greater than 16. e.g. For base 1000, each
973 "digit" is a three digit number.
975 * (Makefile) Added the "8" flag to get an 8 bit scanner.
977 * (scan.l) Changed "char *" to "unsigned char *" to match the
978 declaration of yytext for the 8 bit scanner. Also added code
979 to detect the null character in strings and generate an error.
981 Sat Jan 4 20:32:20 1992 Phil Nelson (phil at cs.wwu.edu)
983 * (const.h) Changed BC_BASE_MAX to INT_MAX to allow more bases!
985 Mon Dec 30 21:47:28 1991 Phil Nelson (phil at cs.wwu.edu)
987 * (main.c) Fixed the bug that loaded the math library before
990 * (bc.y) Removed some type declarations that duplicated token
991 definitions so it could be run through bison.
993 * (load.c) Added a check for maximum code size.
995 * (Makefile) Added a prefix for LIBDIR and BINDIR so it can be
998 Mon Nov 25 13:11:17 1991 Phil Nelson (phil at cs.wwu.edu)
1000 * Changed version number in version.h to 1.01 with current date.
1002 * Changed LIBFILE definition in Makefile.
1004 * Added a recursive function example to bc.1.
1006 Sun Nov 24 21:24:01 1991 Phil Nelson (phil at cs.wwu.edu)
1008 * Changed the Makefile to make sure configure is run first.
1009 Added the $(CC) the configure call. Moved some defines
1010 toward the front of the Makefile to make sure they are
1011 read by installers. Also added SUBDIRS variable and updated
1012 the GNU distribution to include the subdirectories. Included
1013 math.h in the distribution for use by configure. Included
1014 ChangeLog in the distribution.
1016 * Split the README into README and Install. Changed Install
1017 to have current information. Documented the STRINGS_H define.
1018 Updated the version number in README.
1020 * Added a check for <strings.h> in configure.
1022 Fri Nov 22 15:06:32 1991 Phil Nelson (phil at cs.wwu.edu)
1024 * Changed configure to check for varargs.h first. Also, added
1025 checks to see if long strings (math.h) are accepted by the
1026 C compiler. Also added parameters to configure.
1028 * Deleted #include <sys/types.h> from proto.h. Also made only
1029 ANSI C compilers include <stdlib.h>.
1031 * Changed the Makefile to have the install bin directory be
1032 /usr/local/bin and the install lib directory be /usr/local/lib.
1034 * Changed some files in the Test directory to eliminate the
1035 <op>= form that some older bcs don't like.
1037 * Made some small corrections in bc.1.
1039 Tue Oct 29 10:06:32 1991 Phil Nelson (phil at cs.wwu.edu)
1041 * Called current version 1.00.
1043 * Submitted GNU bc-1.00 to comp.sources.reviewed