Debian Codegraph @

ChangeLog

raw
1 Fri Apr 7 15:14:43 PDT 2017 Phil Nelson <[email protected]>
2 * NEWS: update for 1.07.1 and 1.4.1
3 * FAQ: add a couple new FAQs.
4 * doc/bc.1: change doucumentation of length() and correctly
5 represent newline.
6 * doc/bc.texi: change doucumentation of length()
7
8
9 Fri Apr 7 13:43:31 PDT 2017 Ken Pizzini <[email protected]>
10 * bc/configure.ac: update dc version to 1.4.1;
11 update dc copyright year list
12
13 Fri Apr 7 13:14:41 PDT 2017 Phil Nelson <[email protected]>
14 * bc/Makefie.am: Do a different fix for parallel make issues.
15
16 Fri Apr 7 00:11:49 PDT 2017 Ken Pizzini <[email protected]>
17 * dc/eval.c, dc/numeric.c: take more care to never pass
18 a sign-extended char to the <ctype.h> isXXX() functions.
19 Thanks to a NetBSD compiler warning for flagging this.
20
21 Thu Apr 6 22:47:46 PDT 2017 Phil Nelson <[email protected]>
22 * bc/execute.c: More tweaks to fix for read() problems.
23 * bc/Makefile.am: Attempt to fix parallel make problems.
24
25 Thu Apr 6 16:39:25 PDT 2017 Phil Nelson <[email protected]>
26 * bc/execute.c: Correct leading space problem caused by last fix.
27 * bc/configure.ac: version to 1.07.1
28
29 Thu Apr 6 15:37:22 PDT 2017 Phil Nelson <[email protected]>
30 * bc/execute.c: Correct input_char for base 36 input.
31 * doc/bc.1: Update documentation for base 36 input.
32 * doc/bc.texi: Update documentation for base 36 input.
33
34 Thu Apr 6 14:26:27 PDT 2017 Ken Pizzini <[email protected]>
35 * dc/eval.c: The 'Q' command "fix" of 2016-09-24 was incorrect.
36 It fixed a reported bug, but introduced a regression for other
37 existing (and correct) code. Let's try this again (sigh).
38
39 Thu Apr 6 13:11:15 PDT 2017 Ken Pizzini <[email protected]>
40 * dc/dc.c: bah, nevermind; just re-disovered commit of
41 Oct 26, 2013 where the setvbuf() was rendered unnecessary
42 by introduction of explicit fflush()-es.
43
44 Thu Apr 6 13:11:15 PDT 2017 Ken Pizzini <[email protected]>
45 * dc/dc.c: re-instate setvbuf() call that got lost
46
47 Mon Jan 16 14:30:00 PDT 2017 Phil Nelson <[email protected]>
48 * Updated copyright to 2017.
49
50 Sun Oct 23 16:38:05 PDT 2016 Ken Pizzini <[email protected]>
51 * dc/eval.c: dc_system() already eats up to (and including)
52 a trailing newline, so don't fall-through in dc_evalstr()'s
53 DC_SYSTEM case to DC_COMMENT's skip_past_eol() call,
54 as that would unexpectedly require eating a second newline.
55 Thanks to David José for noticing and reporting the bug.
56
57 Thu Oct 20 03:11:43 PDT 2016 Ken Pizzini <[email protected]>
58 * doc/dc.texi: fix some typos.
59
60 Mon Oct 17 00:28:50 PDT 2016 2016 Ken Pizzini <[email protected]>
61 * doc/dc.1, doc/dc.texi: document the new default-to-zero
62 of the 'l' command.
63
64 Mon Oct 17 00:02:11 PDT 2016 Ken Pizzini <[email protected]>
65 * doc/dc.1, doc/dc.texi: be more careful in specifying how
66 the precision of the result of the "v" (square root)
67 command is determined.
68 Thanks to David José for pointing out that the old text
69 underspecified this.
70
71 Sun Oct 16 23:43:05 PDT 2016 Ken Pizzini <[email protected]>
72 * dc/stack.d: return a 0 (zero value; instead of reporting an error)
73 for the "l" command when the named register stack is empty.
74 Thanks to David José for the suggestion. (This is a useful default
75 value, and make GNU dc more compatable with BSD dc and Bell Labs
76 version 7 dc.)
77
78 Wed Sep 28 13:24:50 PDT 2016 Ken Pizzini <[email protected]>
79 * dc/eval.c, doc/dc.1, doc/dc.texi: update copyright dates
80
81 Sat Sep 24 16:04:01 PDT 2016 Ken Pizzini <[email protected]>
82 * dc/dc.c, dc/eval.c: yesterday's fix for 'Q' created a
83 new bug for the 'q' command; this fresh (and simpler!)
84 fix does the right thing. (Thanks again to Paul Rayner.)
85
86 Fri Sep 23 22:49:17 PDT 2016 Ken Pizzini <[email protected]>
87 * dc/dc.c: don't prematurely exit from stack-unwinding 'Q'
88 command
89 * dc/eval.c: ensure that DC_FAIL API value does not
90 collide with any internal dc_status code
91 * doc/dc.1, doc/dc.texi: clarify that 'Z' command reports
92 on digits in decimal representation in number (as opposed
93 to ambiguous, perhaps "o"base, digits).
94 * (Bugs reported by Paul Rayner; thanks.)
95
96 Mon Feb 29 15:56:00 PST 2016 Phil Nelson <[email protected]>
97 * Makefile.am, bc/Makefile.am: update to not include
98 libmath.h in distribution.
99 * configure.ac: update copyright with 2016
100
101 Mon Feb 29 13:06:00 PST 2016 Phil Nelson <[email protected]>
102 * bc/Makefile: Add $(LIBBC) as dependency to fbc so
103 libmath.h gets correctly built. sbc also needed it.
104
105 Mon Feb 29 12:05:00 PST 2016 Phil Nelson <[email protected]>
106 * bc/util.c, bc.y: Fix two memory leaks submitted to
107 Gentoo by Bruce Dubbs.
108
109 Tue Jan 19 22:10:10 PST 2016 Phil Nelson <[email protected]>
110 * bc/{execute.c, load.c, main.c, proto.h, scan.l, storage.c, util.c},
111 lib/number.c: Update copyrights, remove old style function
112 declarations, remove _PROTOTYPE macros, update to GPL V3.
113 Various other code cleanups.
114
115 Mon Jan 11 14:01:32 PST 2016 Ken Pizzini <[email protected]>
116 * doc/dc.texi: fix typo (reported by Avinash Sonawane)
117
118 Mon May 11 16:40:31 PDT 2015 Ken Pizzini <[email protected]>
119 * dc/stack.c: catch the case of an empty value on top of
120 a register stack (i.e., the stack entry is first created by
121 an array store on a previously unallocated register)
122 as a normal run-time error, rather than an abort() condition.
123 (Bug reported by Hanno Böck, who found it during fuzz testing.)
124
125 Mon Jan 26 22:30:00 PST 2015 Phil Nelson <[email protected]>
126 * bc/execute.c, load.c, scan.l, storage.c: Extend input
127 base to allow for base 36 with Z being the largest
128 input digit. Now, ZZZZZ will be the largest 5 digit
129 number given the allowable bases.
130
131 Mon Jan 26 21:34:00 PST 2015 Phil Nelson <[email protected]>
132 * various: updated copyright on all GPL licence comments.
133
134 Mon Jan 19 00:03:05 PST 2015 Ken Pizzini <[email protected]>
135 * News: brought up-to-date for dc-1.07 release
136 * README: bump relase number
137 * bootstrap.sh: let the autotools give us as much guidance as they can
138 * configure.ac: modernize, based on autotools' -Wall suggestions;
139 update copyright years; GPL version 3; use URL to get copy of GPL,
140 instead of snail-mail address; version bump (for both dc and bc);
141 simplify the libedit/readline/flex cross-check logic
142 * dc/eval.c: update copyright years
143
144 Thu Nov 27 22:17:17 PST 2014 Ken Pizzini <[email protected]>
145 * dc/eval.c: dc_evalstr() incorrectly used len-1, to omit counting the
146 closing ']', unconditionally, even when string parsing terminated
147 prematurely (end-of-string reached before closing ']' was found).
148 This is wrong in general, and painfully wrong when len==0.
149 (Bug reported by Hanno Böck, who found it during fuzz testing.)
150
151 Fri Oct 31 13:50:18 PDT 2014 Ken Pizzini <[email protected]>
152 * dc/eval.c: dc_evalstr() was inappropriately/prematurely returning
153 when the top-of-stack was a number. (Bug reported by Saito Takaaki.)
154
155 Sun Sep 7 15:20:29 PDT 2014 Ken Pizzini <[email protected]>
156 * dc/eval.c: the '!' command was incorrectly interacting with stdin
157 rather than fp (the current input stream) when reading the
158 shell command to be executed. (Bug reported by Dario Niedermann.)
159
160 Sat Oct 26 14:54:37 PDT 2013 Ken Pizzini <[email protected]>
161 * doc/dc.1, doc/dc.texi: Updated copyright dates.
162
163 Sat Oct 26 14:54:37 PDT 2013 Ken Pizzini <[email protected]>
164 * doc/dc.1, doc/dc.texi: Documented the "R" (rotate stack) command.
165
166 Sat Oct 26 14:39:10 PDT 2013 Ken Pizzini <[email protected]>
167 * dc/dc-proto.h, dc/dc.c, dc/eval.c, dc/misc.c, dc/numeric.c,
168 dc/stack.c, dc/string.c:
169 Explicitly flush output, instead of requesting line buffering,
170 as the user may be emitting a prompt (without a trailing newline)
171 within an inferior process. Also, clean-up/simplify related code.
172
173 Fri Jun 29 13:14:18 PDT 2012 Ken Pizzini <[email protected]>
174 * dc/eval.c dc/stack.c, dc/dc-proto.h:
175 Implement 'R', general stack rotation command
176
177 Thu Mar 7 21:55:47 PST 2013 Phil Nelson <[email protected]>
178 * configure.ac, bc/Makefile.am, dc/Makefile.am, lib/Makefile.am:
179 Update automake definitions for newer versions of automake.
180 Tested with version 1.13.1.
181
182 Tue Nov 2 11:09:00 2010 Phil Nelson <[email protected]>
183 * bc/{bc.y, execute.c, load.c, main.c, proto.h, scan.l,
184 util.c}: Add a bc_exit() routine that resets the editline
185 state in one place to exit. Removed editline state reset
186 in other places.
187
188 Sun Mar 21 11:42:16 2010 Ken Pizzini <[email protected]>
189 * dc/eval.c: take a more nuanced approach to handling SIGINT
190
191 Thu May 22 17:28:07 2008 Ken Pizzini <[email protected]>
192 * All: update copyright statements and license statements:
193 the code is now released under GPL-3, and documentation
194 under FDL-1.2.
195 * configure.in, Makefile.am, bootstrap.sh; h/* lib/* gnulib/* m4/*:
196 import portability code via gnulib-tools
197 * bc/bc.y, bc/sbc.y, bc/execute.c, bc/load.c, bc/main.c, bc/proto.h,
198 bc/scan.l, bc/util.c: detect, report (if possible), and exit with
199 error if any I/O errors are encountered
200 * doc/dc.texi: clean-up preamble (using more modern texinfo macros)
201
202 Mon Sep 4 19:27:49 2006 Ken Pizzini <[email protected]>
203 * configure.in: re-factor how version numbers are handled; add errno.h
204 and strtol() checks; add doc-texi-ver.incl output
205 * bc/bcdefs.h: Prefer <string.h> over <strings.h>
206 * bc/execute.c, bc/load.c, bc/main.c, bc/proto.h, bc/scan.l,
207 bc/storage.c, bc/util.c, bc/warranty.c: De-lint some with "const"
208 declarations, "static" declarations, and un-shadowing a few global
209 variables and functions
210 * dc/dc.c: add "static" keyword on flush_okay() function declaration,
211 just for good hygene
212 * dc/numeric.c: Reworked to avoid breaking C99 type-punning rules
213
214 Wed Jun 14 08:21:17 2006 Ken Pizzini <[email protected]>
215 * dc/numeric.c (dc_int2data): rework code so that C99 compilers
216 stop whining about the type punning
217 * dc/dc.c (flush_okay): add "static" keyword as a matter of good
218 coding hygene
219
220 Sun Jun 11 21:40:37 2006 Ken Pizzini <[email protected]>
221 * doc/bc.1: strip release version information which is not being
222 automatically kept up-to-date
223 * doc/dc.1: don't capitalize Dc or DC
224
225 Sun Jun 11 09:07:26 2006 Ken Pizzini <[email protected]>
226 * doc/bc.texi, doc/dc.texi, doc/texi-ver.incl.in, doc/Makefile.am:
227 make version text in texinfo-based documentation auto-derive from
228 configure.in
229 * configure.in: update to use more modern automake/autoconf
230 directives; factor out version numbers so that AC_SUBST and
231 AC_OUTPUT kcan be used to create doc/texi-ver.incl
232 * doc/Makefile.am: automake does (now) have a mechanism to
233 auto-include declared man pages in the dist tarball, so
234 remove FIXME block
235
236 Sun Jun 11 03:04:18 2006 Ken Pizzini <[email protected]>
237 * lib/Makefile.am: testmul, specialnumber, multidigits.h are
238 autogenerated by special request (only), and "make clean" should
239 remove them
240 * lib/testmul.c: CLOCKS_PER_SEC is typically a "long" value, so make
241 test_time wide enough to hold it; add missing #include directives
242 * lib/number.c: silly warning clean-up:
243 + declare rt_warn() and rt_error() to take a CONST char* first
244 argument
245 + neither _bc_rec_mul() nor _bc_simp_mul() use the full_scale
246 argument, so remove it in the function definitions and invocations
247 + some C libraries define an index() function; use a different index
248 variable name to avoid gratuitous namespace shadowing
249
250 Sun Jun 4 13:56:58 2006 Ken Pizzini <[email protected]>
251 * doc/dc.texi: document new DC_LINE_LENGTH variable; mention
252 traditional dc's handling of P with a numeric input
253 * dc/dc.c (flush_okay, main): make code detecting and handling
254 write errors cleaner
255
256 Sun Jun 4 12:26:00 2006 Phil Nelson <[email protected]>
257 * bc/main.c: Make sure 3 is the minimum line length.
258 * doc/bc.1, doc/bc.texi: Document the BC_LINE_LENGTH of 0 feature.
259
260 Sun Jun 4 04:41:28 2006 Ken Pizzini <[email protected]>
261 * dc/dc.c (main): fflush() isn't enough: also check that fclose()
262 does not return an error before exiting with EXIT_SUCCESS
263
264 Sun Jun 4 04:15:15 2006 Ken Pizzini <[email protected]>
265 * dc/dc.c, dc/eval.c: detect, report (if possible), and exit with error
266 if any I/O errors are encountered
267
268 Sun Jun 4 02:27:41 2006 Ken Pizzini <[email protected]>
269 * bc/main.c, bc/util.c: allow a BC_LINE_LENGTH of zero as a
270 special-case, meaning "don't ever wrap lines"
271 * dc/numeric.c, configure.in: add support for a DC_LINE_LENGTH
272 variable, with a value of zero meaning "don't ever wrap lines"
273
274 Fri May 5 18:45:17 2006 Ken Pizzini <[email protected]>
275 * dc/dc.c (try_file): S_ISREG() test was inverted! :-(
276 (how very embarrassing)
277
278 * configure.in: the "if test" -> "case" conversion in the last commit
279 translated the handling of flex incorrectly; fixed
280
281 * src/scan.l: readline versions 4.2 and up give their own prototype
282 for readline() in readline.h, which conflicts with the one that is
283 in scan.l, so just do without the prototype in scan.l (if someone
284 needs to backport to a very old version of readline, they should be
285 able to handle adding the prototype back in themselves)
286
287 * doc/bc.texi: use of @var{} in @item causes capitalization on output,
288 which is wrong, and furthermore the use of @var{} for e() and j() is
289 also inconsistent with how the other math functions are formatted
290
291 Sat Apr 29 05:02:15 2006 Ken Pizzini <[email protected]>
292 * configure.in: The "true" branch of AC_ARG_WITH needed to
293 be conditionalized on the value of $withval (thanks to Mike
294 Frysinger of Gentoo for pointing this out); prefer using
295 "case" over "if test" in shell string-match conditionals;
296 make use of AC_HELP_STRING; added copyright block; clean
297 out old "dnl"'d directives
298
299 Sat Apr 29 04:02:23 2006 Ken Pizzini <[email protected]>
300 * dc/dc.c (try_file): fix typo in S_ISFIFO conditional
301
302 * doc/bc.1, doc/bc.texi, doc/dc.1, doc/dc.texi: make some
303 formatting clean-up (minor)
304
305 Wed Apr 26 15:38:32 2006 Ken Pizzini <[email protected]>
306 * dc/dc.c (try_file): rework special-file detection so that
307 friendlier error messages can be given for the most common
308 error of this class (i.e., the "dc directory" typo).
309
310 Thu Apr 20 17:45:46 2006 Ken Pizzini <[email protected]>
311 * configure.in: Newer versions of flex (such as ver. 2.5.33)
312 don't seem to like an argument of "-I8" anymore ("option `I'
313 doesn't allow an argument"), so split that into "-I -8".
314
315 Wed Mar 29 05:09:14 2006 Ken Pizzini <[email protected]>
316 * dc/string.c, dc/misc.c, dc/stack.c, dc/dc.c, dc/eval.c, dc/array.c:
317 Make splint (http://www.splint.org/) happier by making all
318 comparisons to 0 and NULL explicit, and adding some explicit casts
319 that aren't strictly necessary. (But I'm omitting from this commit
320 various splint annotations that just serve to make the code ugly.)
321
322 Tue Mar 28 13:36:00 2006 Phil Nelson <[email protected]>
323 * bc/util.c: Move code so size checks are before use.
324
325 * doc/bc.1: Quote .IP argument.
326
327 Tue Mar 28 12:09:38 2006 Ken Pizzini <[email protected]>
328 * dc/dc.c (try_file): Added file type detection to ignore some
329 special files (particularly directories and block files), because
330 several people have asked that a typo for "cd" not fail silently.
331
332 * configure.in: add detection of fstat() to determine how the
333 above detection should be implemented.
334
335 Wed Mar 15 9:50:00 2006 Phil Nelson <[email protected]>
336 * lib/getopt.c: Added a define to disable/enable
337 gettext support. May need to be deleted later
338 when gettext is fully supported.
339
340 Mon Mar 13 13:57:00 2006 Phil Nelson <[email protected]>
341 * bc/bc.y: Remove second call to lookup() in a rule.
342 Removes a free'd twice bug.
343
344 Sat May 28 05:42:01 2005 Ken Pizzini <[email protected]>
345
346 * doc/dc.1, doc/dc.texi: add verbage about the need to use
347 upper-case letters for ibase>10 (bug reported by "TJIC").
348
349 Fri May 20 ??:??:?? 2005 Ken Pizzini <[email protected]>
350 * lib/getopt.c, lib/getopt1.c: Update to more recent versions.
351
352 Fri May 27 09:19:21 2005 Ken Pizzini <[email protected]>
353
354 * dc/eval.c: abstract out skip_past_eol() function to handle comments
355
356 Fri May 27 07:30:52 2005 Ken Pizzini <[email protected]>
357
358 * dc/numeric.c (dc_numlen), doc/dc.1, dc.texi: correct Z command
359 to match historical meaning
360
361 Fri May 27 06:54:19 2005 Ken Pizzini <[email protected]>
362
363 * dc/eval.c: ignore trailing comments in tail-recursion detection
364
365 * dc/eval.c, doc/dc.texi: finally fix dc to trap interrupts,
366 aborting pending macros but not exiting
367
368 Fri May 27 03:37:30 2005 Ken Pizzini <[email protected]>
369
370 * dc/numeric.c: Address Debian bug #221781: values exceeding
371 a C "long" don't play well with k/i/o/a/Q/:/; commands.
372 Adding a diagnostic, and returning a "more bogus" value than
373 zero, for this situation.
374
375 Thu May 26 09:03:57 2005 Ken Pizzini <[email protected]>
376
377 * dc/eval.c:
378 1) fix tail recursion to also work for 'x' and '?' commands
379 2) fix tail recursion to ignore trailing spaces in the current
380 invocation string when determining if tail recursion is
381 appropriate
382 3) remove a couple of misleading and/or meaningless comments
383 4) add documentation for stdin_lookahead, since the code is far
384 from transparent about its purpose and usage
385 5) simplify ibase conditional by rearranging branches
386
387 Wed May 25 21:20:08 2005 Ken Pizzini <[email protected]>
388
389 * dc/array.c dc/dc-proto.h dc/dc-regdef.h dc/dc.c dc/dc.h
390 dc/eval.c dc/numeric.c: whitespace cleanup
391
392 Wed May 25 19:48:26 2005 Ken Pizzini <[email protected]>
393
394 * COPYING COPYING.LIB dc/dc-proto.h dc/dc-regdef.h dc/dc.h
395 dc/array.c dc/dc.c dc/eval.c dc/misc.c dc/numeric.c dc/stack.c
396 dc/string.c doc/dc.1 doc/dc.texi:
397 update FSF address in copyright notices
398
399 Wed May 25 19:39:46 2005 Ken Pizzini <[email protected]>
400
401 * dc/stack.c: If a register is used for an array, its corresponding
402 stack could be auto-created in the DC_UNINITIALIZED state; handle
403 this situation gracefully. Thanks to Ben Collerson
404 (http://bur.st/~benc/) for the bug report.
405
406 Wed Dec 31 07:26:00 2003 Phil Nelson <[email protected]>
407
408 * Makefile.am: add depcomp
409
410 * {bc,dc,lib}/Makefile.am: CFLAGS -> AM_CFLAGS, YFLAGS -> AM_YFLAGS
411
412 * bc/*: consistent copyright
413
414 Fri May 9 21:52:46 2003 Ken Pizzini <[email protected]>
415
416 * dc/dc-proto.h dc/dc.c dc/eval.c: add tail-recursion optimization
417
418 * dc/numeric.c: clean up handling of conditional includes/defines;
419 editorial fix to comment; trivial (indentation, mostly) clean-up of
420 out_char() function [gratuitious; commit was accidental and I'm
421 adding this note to a replacement log message]
422
423 * dc/misc.c: fixed spelling and grammatical errors in comment
424
425 * dc/dc-regdef.h: simplify the handling of UCHAR_MAX/DC_REGCOUNT
426 defaults
427
428 Thu Apr 17 16:25:35 2003 Phil Nelson <[email protected]>
429
430 * bc/{execute.c, proto.h, util.c}: char -> int in a few
431 places dealing with isdigit and getchar(), updated copyright
432
433 * bc/main.c: minor formatting changes, updated copyright
434
435 * bc/libmath.b, doc/{bc.1,bc.texi}: updated copyright
436
437 Mon Mar 31 22:19:00 2003 Phil Nelson <[email protected]>
438
439 * doc/{bc.1,bc.texi} Fix a couple of typos.
440 * bc/main.c: exit value changed when exiting from interrupt.
441
442 Tue Mar 4 09:38:00 2003 Phil Nelson <[email protected]>
443
444 * bc/libmath.b: Add one level recursion to each function to
445 get ibase set to 10 (decimal) if called with other ibases.
446
447 Mon Nov 11 09:15:00 2002 Phil Nelson <[email protected]>
448
449 * doc/{bc.1,bc.texi} Fix documentation about array parameters.
450
451 Tue Mar 19 11:22:06 2002 Phil Nelson <[email protected]>
452
453 * bc/{bc.y,bcdefs.h,scan.l}: Add void functions.
454 * doc/{bc.1,bc.texi}: Document void functions.
455 * bc/util.c: Fix bug in AVL routines.
456
457 Wed May 23 08:40:00 2001 Phil Nelson <[email protected]>
458
459 * Makefile.am, */Makefile.am, configure.in: Add gcc specific
460 flags only if using gcc.
461 * bc/{bc.y,sbc.y,bcdefs.h,const.h,execute.c,global.[ch],proto.h,
462 main.c,util.c}: Removal of buffer overflow, new extern
463 and initialization code. New dynamic buffer manipulation.
464 * bc/load.c: correct char extraction.
465 * bc/storage.c: correct expansion of variables and arrays.
466
467 Sun May 13 19:29:43 2001 Ken Pizzini <[email protected]>
468
469 * dc/array.c: minor optimization: stop scanning array entry indicies
470 if we step beyond the target index
471
472 Sun May 13 19:09:31 2001 Ken Pizzini <[email protected]>
473
474 * dc/dc.c: traditional dc implementations drop into reading stdin
475 after processing command-line files; defer to tradition
476
477 Sat Feb 17 22:41:14 2001 Phil Nelson <[email protected]>
478
479 * bc/{main.c} Add case 0 for long options that set variables.
480 Correct spelling in usage statement.
481
482 Mon Jan 22 18:33:43 2001 Phil Nelson <[email protected]>
483
484 * bc/main.c: Make sure signal code doesn't stomp on errno.
485 * bc/load.c: Make save_addr in load_code() static since it
486 is now possible to call load_code() multiple times in a single
487 function.
488
489 Fri Jan 19 10:33:13 2001 Phil Nelson <[email protected]>
490
491 * bc/{main.c,execute.c}: Don't use stdio calls in signal
492 handlers. Call write directly and move code.
493
494 Wed Jan 10 11:33:51 2001 Phil Nelson <[email protected]>
495
496 * lib/getopt.c: Include string.h if available.
497 lib/number.c: (bcmath change) Include string.h if available.
498
499 Wed Sep 27 17:19:48 2000 Phil Nelson <[email protected]>
500
501 * doc/bc.texi: Added new file. Mainly translated from bc.1
502 by Brian Youmans.
503 doc/bc.1: Minor changes made as part of reviewing bc.texi.
504
505 Wed Sep 20 11:45:00 2000 Phil Nelson <[email protected]>
506
507 * bc/bc.y: Added a comment on the meanings of lvals.
508
509 Wed Sep 13 11:40:24 2000 Phil Nelson <[email protected]>
510
511 * bc/main.c: add --interactive to long options.
512 bc/bc.1: add -i/--interactive to doc.
513 MANY: Update FSF address and Phil's e-mail.
514
515 Tue Sep 12 13:58:16 2000 Phil Nelson <[email protected]>
516
517 * NEWS: update for recent changes.
518 bc/bc.y: remove required parens around return expression.
519 doc/bc.1: update for recent changes.
520
521 Fri Sep 8 10:20:01 2000 Phil Nelson <[email protected]>
522
523 * bc/Makefile.am, dc/Makefile.am, lib/Makefile.am:
524 Compile with unsigned characters.
525 bc/main.c: Add --help option.
526 bc/scan.l: Print illegal, non-printable characters in octal.
527
528 Fri Sep 8 09:36:54 2000 Phil Nelson <[email protected]>
529
530 * bc/bc.y: Allow more newlines in function definitions.
531 bc/proto.h: Don't prototype main.
532
533 Fri Sep 1 16:09:50 2000 Phil Nelson <[email protected]>
534
535 * bc/bc.y: Spelling correction
536 bc/execute.c: Correct expressions for multi-byte names.
537 bc/load.c: Add parens for correct casting.
538 doc/bc.1: Typos.
539 Above fixes pointed out by [email protected] (Karl Heuer).
540
541 Tue Aug 29 23:03:30 PDT 2000 Phil Nelson <[email protected]>
542
543 * lib/testmul.c: #ifdef out a declaration matching #ifdef out
544 code.
545
546 Mon Jul 31 07:01:42 2000 Ken Pizzini <[email protected]>
547
548 * dc/numeric.c: use of the "n" command can cause a number to be printed
549 without a trailing newline, which would cause the column counter to
550 fail to be reset and result in inappropriately wrapped numeric outputs.
551 Fixed by always clearing the column counter before outputting each number.
552
553 * dc/stack.c: if a stack is used without ever using the correspondingly
554 named register, it is perfectly legitimate for the register to be
555 uninitialized; added an "else if" to handle this case without aborting.
556
557 * dc/eval.c: updated the comment explaining the restrictions
558 on the | command to better reflect reality.
559
560 * doc/dc.texi: update the FSF office address in the copyright notice
561
562 Thu Jul 13 18:13:00 2000 Phil Nelson <[email protected]>
563
564 * README: note --with-libedit configure parameter.
565
566 Tue Jun 20 22:52:10 2000 Phil Nelson <[email protected]>
567
568 * bc/bcdefs.h: Include <readline/history.h> to quiet warnings.
569
570 * configure.in: make --with-readline and --with-libedit work correctly.
571
572 * Makefile.am: use $(MAKE) instead of directly calling make.
573
574 * lib/testmul.c: Update to use bc_ on all number.c routines.
575
576 Sat Jun 10 22:44:29 2000 Phil Nelson <[email protected]>
577
578 * bc/Makefile.am: Add scan.c to maintainer-clean target.
579
580 * acconfig.h configure.in stamp-h.in bc/Makefile.am bc/execute.c
581 bc/fix-libmath_h bc/global.c bc/load.c bc/main.c bc/storage.c:
582 Remove long string for libmath. Clean up for compiler errors.
583
584 * dc/numeric.c: Correct parameter name.
585
586 Wed May 10 15:51:16 2000 Phil Nelson <[email protected]>
587
588 * {bc,doc,dc,lib}/Makefile.am: Add Makefile.in to maintainer-clean.
589
590 * bootstrap.sh: Added script to run the auto* tools.
591
592 * Imported all into CVS tree.
593
594 Sun 2000-05-07 Phil Nelson <[email protected]>
595
596 * bc/Makefile.am, dc/Makefile.am, lib/Makefile.am: Add -Wall to CFLAGS.
597
598 * bc/{execute.c,proto.h,storage.c,util.c}, dc/numeric.c: Changes for
599 -Wall and for name changes in lib/number.c. (Added bc_ to several
600 routine. Updated copyright notice.)
601
602 * h/number.h, lib/number.c: Now comes from bcmath library which is
603 distributed in a different place.
604
605 Wed Mar 29 17:47:34 2000 Phil Nelson <[email protected]>
606
607 * bc/{bc.y,bcdefs.h,global.h,main.c,proto.h,scan.l,storage.c}:
608 Added BSD libedit support. Generic support for both where possible.
609 Fixed bugs in readline support noticed during libedit addition.
610 Works with NetBSD-1.4.1 libedit.
611 * doc/bc.1: Documented libedit addition.
612
613 Wed Mar 29 10:20:18 2000 Phil Nelson <[email protected]>
614
615 * FAQ: Added this file.
616 * Makfile.am: Added FAQ to distribution
617
618 Tue Mar 28 13:52:35 2000 Phil Nelson <[email protected]>
619
620 * lib/number.c, h/number.h: Moved definitions so
621 number.c/number.h is a stand-alone "library".
622 Changed definition of out_num to not reference a global.
623 * lib/testmul.c: updated #includes for number.h changes.
624 * h/{bcdefs.h,const.h,global.h,proto.h} moved to
625 bc where they really belong.
626 * bc/execute.c: Changed calls to out_num for correctness.
627 * dc/numeric.c: Changed calls to out_num for correctness,
628 include only number.h now and not all the other junk.
629 * configure.in, acconfig.h: Start of support for BSD libedit,
630 added --with-pkg for NetBSD /usr/pkg tree.
631
632 Tue Mar 28 11:20:00 2000 Phil Nelson <[email protected]>
633
634 * Test/{exp.b,fact.b,jn.b,mul.b,raise.b}: Tweeks on the tests
635 run to do more computation and test the recursive multiply.
636 * bc/scan.l: Removed a printf('\r') that was unneeded.
637
638 Mon Mar 27 14:00:00 2000 Phil Nelson <[email protected]>
639
640 * NEWS: Updated for 1.06.
641 * lib/number.c, h/number.h: Fixed bugs in recursive multiply.
642 Changed these files to be under the LGPL.
643 * Tests/jn.b: Added more tests.
644 * lib/Makefile.am: Only generate a timed version of number.o if
645 requested.
646 * README: Updated with information on how to generate a timed
647 version of number.o.
648 * h/version.h: Updated copyright and version number for dc.
649
650 Thu Mar 16 14:01:45 2000 Phil Nelson <[email protected]>
651
652 * doc/bc.1, doc/dc.1, doc/dc.texi: Changed bug reporting address
653 to [email protected] to update with what we hope will be reality.
654
655 Tue Feb 8 08:54:19 2000 Phil Nelson <[email protected]>
656
657 * doc/bc.1, bc/util.c: Removed "multiply digits"
658 limit due to new recursive algorithm that doesn't
659 have those limits.
660
661 Tue Feb 8 08:47:05 2000 Phil Nelson <[email protected]>
662
663 * lib/Makefile.am, lib/testmul.c, lib/number.c, Makefile.am:
664 Finally got a resonable version of the program
665 to test the crossover between non-recursive and
666 recursive multiply algorithms. Added to distribution
667 and build process. Does increase build time by
668 about 10 minutes.
669
670 Wed Oct 6 13:28:59 1999 Phil Nelson <[email protected]>
671
672 * lib/Makefile.am: Added rules to allow DEFSADD definitions.
673
674 Sat Oct 2 19:59:51 1999 Phil Nelson <[email protected]>
675
676 * bc/libmath.b: Correctly do the cosine accuracy.
677
678 Fri Oct 1 12:41:51 1999 Phil Nelson <[email protected]>
679
680 * lib/number.c: Increase accuracy of computing raise.
681 Also turn off use of recursive multiply routines
682 until furthur testing.
683 * bc/libmath.b: Increase accuracy of cosine.
684 * bc/Makefile.am: Remove -lfl from items to make.
685
686 Wed Jul 28 10:29:28 1999 Phil Nelson <[email protected]>
687
688 * bc/scan.l: rl_len from char to int. (From FreeBSD
689 bug tracking system and Nick Hibma <[email protected]>)
690
691 Tue Jun 22 08:00:28 1999 Phil Nelson <[email protected]>
692
693 * lib/number.c: Rewrote bc_multiply to use a faster
694 algorithm. Old code not removed yet.
695
696 Mon Jun 21 03:08:02 1999 Phil Nelson <[email protected]>
697
698 * h/version.h: Updated version number to 1.06.
699 bc/bc.y: Corrected bug in for statement, not popping.
700 bc/execute.c: Improved stack dump/instruction tracing.
701
702 Tue Jun 15 22:30:42 1999 Phil Nelson <[email protected]>
703
704 * configure.in: Updated bc version to 1.06.
705
706 Tue Jun 15 22:27:44 1999 Phil Nelson <[email protected]>
707
708 * h/bcdefs.h, h/const.h, bc/execute.c, bc/load.c, bc/storage.c,
709 bc/util.c: Removed segmented function storaged. Now
710 dynamically expands (by doubling, starting at 1024 bytes)
711 to allow arbitrary sized functions.
712
713 Thu Jun 10 22:33:44 1999 Phil Nelson <[email protected]>
714
715 * bc/libmath.b: change scaling in computation of j(n,x) so
716 it correctly computes the value.
717
718 Wed Jun 10 10:10:10 1998 Release of bc-1.05a.
719
720 Fri Apr 17 10:40:59 1998 Phil Nelson <[email protected]>
721
722 * bc/main.c: Enable readline only if interactive.
723
724 Thu Apr 16 16:49:22 1998 Phil Nelson <[email protected]>
725
726 * bc/configure.in: Tweeking of AM_PROG_LEX and associated
727 special case goo for solaris.
728
729 Sat Mar 28 21:43:18 1998 Phil Nelson <[email protected]>
730
731 * bc/Makefile.am: Added "YFLAGS = -d" to get bc.h to build properly.
732
733 Mon Mar 9 12:54:42 PST 1998 Ken Pizzini <[email protected]>
734
735 * doc/dc.texi, doc/dc.1: correct some documentation bugs.
736
737 Sun Mar 8 23:56:24 PST 1998 Ken Pizzini <[email protected]>
738
739 * dc/numeric.c: eliminate superfluous variable from dc_dump_num();
740 annotate unused parameters in dc_add() and dc_sub().
741
742 * h/version.h: change dc version number to 1.2 for release.
743
744 Sun Mar 8 21:13:50 1998 Phil Nelson <[email protected]>
745
746 * bc/main.c: Applied patch from Ken Pizzini to force line
747 mode buffering on stdout.
748
749 Tue Jan 6 09:15:04 PST 1998 Ken Pizzini <[email protected]>
750
751 * h/version.h: dc is now up to version 1.1.5.
752
753 * dc/eval.c, dc/numeric.c, doc/dc.texi, doc/dc.1: once again
754 changed the behavior of the 'P' command with a numeric argument
755 to make it more general. It now dumps out the *whole* number
756 (or rather, the whole of its positive integer portion) as a
757 byte stream. (For small values this is still the same as 'aP'.)
758
759 * dc/dc-proto.h, dc/dc.h, dc/eval.c, dc/misc.c, dc/numeric.c,
760 dc/stack.c, dc/string.c: Changed most uses of dc_boolean to
761 either dc_discard or dc_newline, and instances of DC_TRUE and
762 DC_FALSE to appropriate instances of DC_TOSS, DC_KEEP, DC_NONL,
763 or DC_WITHNL so that the code self-documents a little better.
764
765 Sun Jan 4 15:39:46 PST 1998 Ken Pizzini <[email protected]>
766
767 * dc/eval.c, doc/dc.texi, doc/dc.1: Changed the functionality
768 of the 'P' command, and added the 'n' command. Due to
769 a quirk of the implementation of traditional dc, some
770 people have come to expect that the 'P' command on a
771 numeric argument in the range of 1 to 99 should output
772 the corresponding character, despite the fact that this
773 usage can have very weird results for numbers outside
774 that range. This functionality is why the 'a' command
775 was introduced last March, but people really want it to
776 "just work" without needing to use the 'a' command.
777 Bowing to this demand, the 'P' command now does the
778 equivalent of "aP" if the argument is numeric, and the
779 'n' command has been added to support the previous
780 functionality of the 'P' command.
781
782 * dc/misc.c, dc/eval.c, dc/stack.c, dc/dc-proto.h:
783 Changed prototype for dc_print(). It now additionally
784 takes two flags, newline_p and discard_p, which it
785 passes through to dc_out_num() and dc_out_str() as
786 needed.
787
788 * h/version.h: dc is now up to version 1.1.4.
789
790 Sat Sep 27 13:48:53 1997 Ken Pizzini <[email protected]>
791
792 * h/version.h: dc is now up to version 1.1.3.
793
794 * dc/stack.c, dc/array.c, dc/dc-proto.h, doc/dc.texi, doc/dc.1:
795 It has come to my attention that, though undocumented,
796 traditional dc stacked its arrays in parallel with the
797 stacking of simple registers. I have now duplicated
798 this functionality.
799
800 * dc/dc.c, configure.in: line-buffer dc's output if setvbuf()
801 is supported. This was requested to simplify using dc as
802 an inferior process under emacs.
803
804 Fri Sep 26 19:56:15 1997 Ken Pizzini <[email protected]>
805
806 * dc/dc.c: fixed bug reporting address for --help.
807
808 * doc/dc.1, doc/dc.texi: corrected documentation of the maximum
809 admissible input base.
810
811 * doc/dc.texi: corrected sample code equivalence for the | command.
812
813 * lib/number.c: added a warning for non-zero scale in the base
814 for bc_raisemod().
815
816 Fri Sep 26 18:15:31 1997 Ken Pizzini <[email protected]>
817
818 * dc/eval.c, doc/dc.1, doc/dc.texi: added !=, !<, and !> commands.
819
820 * dc/eval.c: eliminated double-free in 'a' command.
821
822 * dc/dc.c: changed placment of check for filename "-" so that
823 "-f -" will work.
824
825 * h/version.h: updated dc version to 1.1.2.
826
827 Thu Sep 18 17:41:10 1997 Ken Pizzini <[email protected]>
828
829 * dc/eval.c: fixed off-by-one error for Q and q commands.
830
831 * dc/dc.c: added missing f: to third argument of getopt().
832
833 * h/version.h: updated dc version to 1.1.1.
834
835 Thu May 22 08:24:08 1997 Phil Nelson <[email protected]>
836
837 * lib/number.c(bc_sqrt): Fixed a bug that computed 0 for sqrt
838 of most numbers less than .000001.
839
840 Thu May 1 10:41:38 1997 Phil Nelson <[email protected]>
841
842 * Test/timetest: change path to bc executable.
843
844 Wed Apr 30 12:00:00 1997 Phil Nelson <[email protected]>
845
846 * Froze bc-1.04, started new directory for bc-1.05.
847 Fixes to bc-1.04 will be distributed as bc-1.05.
848
849 Mon Apr 21 14:57:14 1997 Phil Nelson <[email protected]>
850
851 * bc/scan.l: Changed rules for single line comment to work
852 with lex as well as flex. Also, do not include \n in the
853 comment.
854
855 * doc/bc.1: Clarified the single line comment and that \n
856 is processed outside of the comment.
857
858 Sun Apr 20 22:21:30 1997 Phil Nelson <[email protected]>
859
860 * bc/scan.l: Added rules for a single line comment starting
861 with the # character.
862
863 * doc/bc.1: Documented the single line comment.
864
865 * bc/Makefile.am: Added DISTCLEANFILES for proper clean up.
866
867 Sat Apr 19 22:08:05 1997 Phil Nelson <[email protected]>
868
869 * dc/Makefile.am: Removed file from distribution list.
870
871 * h/version.h: Updated dc version to 1.1.
872
873 Fri Apr 18 16:43:04 1997 Phil Nelson <[email protected]>
874
875 * lib/number.c (bc_add, bc_sub) Added 1 to the length
876 of the memset call to make sure it zeroed all the
877 storage.
878
879 Fri Apr 18 13:58:56 1997 Phil Nelson <[email protected]>
880
881 * configure.in: Tweeks to get things right. Not sure if things
882 changed much. Still working with autoconf/automake to do
883 the right thing.
884
885 Wed Apr 16 16:49:17 1997 Phil Nelson <[email protected]>
886
887 * bc/main.c (main): Changed processing of BC_ENV_ARGS.
888
889 * bc/main.c (parse_args): Removed "start" parameter.
890
891 Tue Apr 15 13:21:28 1997 Phil Nelson <[email protected]>
892
893 * acconfig.h: Included support for PACKAGE and VERSION.
894
895 * configure.in: More tweeks for automake support.
896
897 * h/number.h: Improve definition of MIN and MAX.
898
899 * doc/bc.1: Changed copyright, tweeked other text, added
900 e-mail address for bugs.
901
902 * doc/dc.1: Added copyright and GPL license information,
903 Changed a few .SH formats.
904
905 Fri Apr 11 16:14:42 1997 Phil Nelson <[email protected]>
906
907 * Makefile.am configure.in doc/Makefile.am lib/Makefile.am
908 bc/Makefile.am bc/bc.y dc/Makefile.am: Changes to accomodate
909 automake-1.1n (pre-release version of automake 1.2).
910
911 * bc/bc.y bc/sbc.y: Changes to make sure tokens are numbered the
912 same in bc/bc.h and bc/sbc.h.
913
914 * bc/scan.l: Changes for automake's naming convention.
915
916 * NEWS: Fixed a typo.
917
918 Thu Apr 10 14:42:55 1997 Phil Nelson <[email protected]>
919
920 * bc/{execute.c, global.c, libmath.b, load.c, main.c, sbc.y
921 scan.l, storage.c, util.c}: Changed copyright comment and
922 added 1997 to copyright years.
923
924 * h/{bcdefs.h, const.h, global.h, number.h proto.h, version.h}:
925 Changed copyright comment and added 1997 to copyright years.
926
927 * h/version.h: Changed bc version to 1.04.
928
929 * lib/number.c: Changed copyright comment and added 1997 to
930 copyright years.
931
932 * lib/vfprintf.c: Noted that this was only for minix.
933
934 * NEWS, README: README is now comp.sources.reviewed readme only.
935 NEWS now lists changes from version to version.
936
937 Thu Apr 10 13:41:56 1997 Phil Nelson <[email protected]>
938
939 * Makefile.am: Removed FIXME stuff.
940
941 Thu Apr 8 13:39:53 1997 Phil Nelson <[email protected]>
942
943 * bc/Makefile.am: Remove files that should not be distributed.
944
945 Mon Apr 7 17:14:28 1997 Phil Nelson <[email protected]>
946
947 * Makefile.am: Removed Misc directory from distribution.
948
949 Mon Apr 7 16:16:01 1997 Phil Nelson <[email protected]>
950
951 * bc/sbc.y: Corrected use of nextarg().
952
953 Tue Mar 25 19:32:28 1997 Ken Pizzini <[email protected]>
954
955 * dc/eval.c, dc/misc.c, dc/stack.c, dc/string.c,
956 dc/dc.h, dc/dc-proto.h, dc/dc.c, dc/numeric.c,
957 doc/dc.texi: updated years in copyright
958 notices.
959
960 * dc/dc.1: updated last-revision date.
961
962 Tue Mar 25 16:35:46 1997 Ken Pizzini <[email protected]>
963
964 * lib/number.c: give a run-time warning in bc_raisemod()
965 if the modulus does not appear to be an integer.
966
967 * doc/dc.texi, doc/dc.1: documented a warning against
968 the use of the new | command in conjunction with a
969 non-integral modulus.
970
971 Tue Mar 25 15:36:04 1997 Ken Pizzini <[email protected]>
972
973 * dc/string.c: dc_out_str() updated to use fwrite()
974 instead of printf(), to allow for the existence of
975 a NUL character in the string.
976
977 Tue Mar 25 13:42:51 1997 Ken Pizzini <[email protected]>
978
979 * doc/dc.texi, doc/dc.1: added documentation for new | command.
980
981 Tue Mar 25 13:19:55 1997 Ken Pizzini <[email protected]>
982
983 * dc/dc-proto.h: added prototype for dc_triop().
984
985 Tue Mar 25 12:00:38 1997 Ken Pizzini <[email protected]>
986
987 * lib/number.c: add bc_modexp() modular-exponentiation function.
988
989 * h/proto.h: add prototypes for bc_modexp() and bc_divmod().
990
991 Tue Mar 25 09:07:13 1997 Ken Pizzini <[email protected]>
992
993 * doc/dc.texi, doc/dc.1: updated documentation with the
994 new command-line options.
995
996 * doc/dc.texi, doc/dc.1: updated documentation with the
997 new '~', 'r', and 'a' commands.
998
999 * dc/dc.c: added bug reporting information to --version text.
1000
1001 Mon Mar 24 19:37:30 1997 Ken Pizzini <[email protected]>
1002
1003 * lib/number.c: added new "bc_divmod" function.
1004
1005 * dc/numeric.c: added new "dc_divrem" glue function to bc_divmod.
1006
1007 * dc/stack.c: added new "dc_binop2" function.
1008
1009 * dc/dc-proto.h: added new prototypes for dc_divrem() and dc_binop2().
1010
1011 * dc/eval.c, dc/numeric.c: add new '~' command which
1012 returns both the quotient and remainder from division.
1013
1014 Mon Mar 24 18:13:42 1997 Ken Pizzini <[email protected]>
1015
1016 * dc/eval.c: Add new 'r' (reverse top two stack elements) command.
1017
1018 Mon Mar 24 17:47:02 1997 Ken Pizzini <[email protected]>
1019
1020 * dc/misc.c: split out the main() related functions into
1021 a seperate dc/dc.c file.
1022
1023 * dc/Makefile.am: updated to reflect this split.
1024
1025 Sat Mar 1 04:57:54 1997 Ken Pizzini <[email protected]>
1026
1027 * dc/misc.c: added "--file" option.
1028
1029 Sat Mar 1 02:13:06 1997 Ken Pizzini <[email protected]>
1030
1031 * dc/eval.c: fixed bug of an excess increment in
1032 dc_evalstr()'s DC_COMMENT case. (Probably would
1033 never show up in practice, but did violate the
1034 letter of the C Standard.)
1035
1036 * renamed dc/number.c to dc/numeric.c, to avoid
1037 confusion with lib/number.c.
1038
1039 Thu Feb 27 19:45:45 1997 Ken Pizzini <[email protected]>
1040
1041 * dc/string.c, dc/dc.h: changed implementation of dc_str
1042 type from a void * to a type which is only completed
1043 in dc/string.c. No functional change, just prettier code.
1044
1045 Thu Feb 27 18:25:19 1997 Ken Pizzini <[email protected]>
1046
1047 * Cleaned up Makefile.am files.
1048
1049 Thu Feb 6 00:41:02 1997 Ken Pizzini <[email protected]>
1050
1051 * Noticed pre-autoconf vestages (NO_XXX configuration options);
1052 fixed to refer to autoconf HAVE_XXX definitions.
1053
1054 * The definition of BC_XXX values in h/const.h might
1055 conflict with values of the same name from <limits.h>;
1056 fixed to override without spewing warnings.
1057
1058 * Added check for ptrdiff_t to configure.in; removed
1059 special ptrdiff_t definition from dc/string.c .
1060
1061 Wed Feb 5 22:28:37 1997 Ken Pizzini <[email protected]>
1062
1063 * Only compile (guts of) lib/vfprintf.c if system does
1064 not have its own version.
1065
1066 Wed Feb 5 22:26:16 1997 Ken Pizzini <[email protected]>
1067
1068 * Changed dc/misc.c source to use standard GNU option
1069 parsing routine (instead of special-case code).
1070
1071 * Added "-e" option to dc.
1072
1073 * Bumped dc version number to 1.0.4.
1074
1075 Wed Feb 5 22:08:06 1997 Ken Pizzini <[email protected]>
1076
1077 * rearranged source layout (added subdirectory structure);
1078 removed "dc-" prefix from dc C source in its new home.
1079
1080 * merged bc's "version.h" and dc's "dc-version.h" files
1081 into h/version.h; patched dc/misc.c to refer to new
1082 DC_VERSION macro name.
1083
1084 * Tweaked configure.in in anticipation of using automake.
1085
1086 Wed Jul 24 16:27:20 1996 Phil Nelson <[email protected]>
1087
1088 * number.c (out_num): Move free of t_num to proper place.
1089
1090 Mon Jun 3 00:31:10 1996 Phil Nelson <[email protected]>
1091
1092 * number.c: (bc_sqrt, is_near_zero) Was hanging in an infinite
1093 loop on sqrt(.9999). Rewrote to take difference. New routine
1094 is_near_zero to check for one digit off.
1095
1096 Thu Feb 22 12:14:38 1996 Phil Nelson <[email protected]>
1097
1098 * dc-eval.c (dc_func): Added the 'a' (number to ascii character)
1099 command.
1100
1101 Thu Feb 22 11:55:15 1996 Phil Nelson <[email protected]>
1102
1103 * dc-eval.c: (Changes from Ken) Changes dealing with stdin_lookahead
1104 and peekc.
1105
1106 * dc-misc.c: (Changes from Ken) Changes in option processing.
1107
1108 * dc-version.c: (Change from Ken) Version is 1.0.2.
1109
1110 Mon Oct 9 15:40:06 1995 Phil Nelson <[email protected]>
1111
1112 * execute.c (execute): Add a pop to 'W' and 'P' codes. Otherwise,
1113 the stack continues to grow.
1114
1115 * number.c (out_num): Free all bc_nums used.
1116
1117 Thu Jun 29 00:35:57 1995 Phil Nelson <[email protected]>
1118
1119 * bc.1: Added information about long options and use of the
1120 readline library.
1121
1122 Wed Jun 28 21:03:45 1995 Phil Nelson <[email protected]>
1123
1124 * scan.l: rl_input: detect EOF.
1125
1126 Wed Jun 28 19:03:51 1995 Phil Nelson <[email protected]>
1127
1128 * Makefile.in: fbc target, changed $(LEXLIB) => $(LIBS)
1129
1130 Wed Jun 28 01:33:07 1995 Phil Nelson <[email protected]>
1131
1132 * acconfig.h, bc.y, scan.l, storage.c, util.c, configure.in:
1133 Improved readline support with a new pseudo variable "history"
1134 that controls the number of history lines available.
1135 Also removed "optional" history.
1136
1137 Wed Jun 28 01:03:52 1995 Phil Nelson <[email protected]>
1138
1139 * getopt.h, getopt.c, getopt1.c: Imported from glibc-1.09
1140 to allow long option processing.
1141
1142 * main.c (parse_args): Make it use long arguments.
1143
1144 * global.h: Change option flag variables from "char" to "int"
1145 to allow long_arguments easy access to the variables.
1146
1147 * Makefile.in: Add getopt.h, getopt.c, and getopt1.c in the
1148 proper places in the Makefile.
1149
1150 Fri Jun 23 12:00:16 1995 Phil Nelson <[email protected]>
1151
1152 * scan.l, main.c (main), acconfig.h, configure.in:
1153 Added support for readline input on stdin.
1154
1155 Thu Jun 22 20:08:57 1995 Phil Nelson <[email protected]>
1156
1157 * bc.1: Change documentation on POSIX array parameter support.
1158
1159 Fri Apr 7 12:29:28 1995 Phil Nelson <[email protected]>
1160
1161 * main.c (parse_args): change "char ch" to "int optch" with
1162 related changes.
1163
1164 Thu Mar 23 04:11:00 1995 Phil Nelson <[email protected]>
1165
1166 * bc.1: Update documentation to include new -q
1167 option and the environment variables.
1168
1169 Thu Mar 23 03:30:38 1995 Phil Nelson <[email protected]>
1170
1171 * bcdefs.h, global.h, main.c, util.c, bc.y: Reworked
1172 argument processing to allow for getting arguments
1173 from the environment and the command line. Added
1174 a new mechanism to access file names for opening
1175 and for error messages. Also added a "quiet"
1176 option to turn off the welcome banner.
1177
1178 Thu Mar 23 03:12:11 1995 Phil Nelson <[email protected]>
1179
1180 * util.c: Corrected a comment.
1181
1182 Tue Mar 21 13:36:24 1995 Phil Nelson <[email protected]>
1183
1184 * bc.y: Added "opt_newline" to allow more newlines
1185 in non-POSIX mode.
1186
1187 Tue Mar 21 09:38:28 1995 Phil Nelson <[email protected]>
1188
1189 * execute.c, main.c, util.c: Add support for user
1190 defined line length, "correct POSIX line length",
1191 no breaking of strings in std_only mode. This
1192 included adding a new function "out_schar" to
1193 util.c. Also removed "if (interactive)" before
1194 all fflushes.
1195
1196 Tue Mar 21 09:12:16 1995 Phil Nelson <[email protected]>
1197
1198 * global.h: Added new variable "line_size". Cleaned up
1199 some definitions by adding comments.
1200
1201 Mon Mar 20 23:33:01 1995 Phil Nelson <[email protected]>
1202
1203 * proto.h: Define getopt only if no unistd.h file.
1204
1205 Mon Mar 20 23:23:34 1995 Phil Nelson <[email protected]>
1206
1207 * number.c, proto.h, execute.c, storage.c, dc-number.c:
1208 Changes to bc_add and bc_sub parameters to allow for
1209 different scale results than were possible. This is
1210 for correct implementation of modulo. All calls were
1211 updated.
1212
1213 Mon Mar 20 19:26:06 1995 Phil Nelson <[email protected]>
1214
1215 * sbc.y: Removed second parameter on calls to arg_str to match
1216 real function.
1217
1218 Tue Feb 28 14:30:18 1995 Phil Nelson <[email protected]>
1219
1220 * Makefile.in: Change realclean to maintainer-clean. Added warning.
1221
1222 Mon Feb 27 17:08:24 1995 Phil Nelson <[email protected]>
1223
1224 * number.c: Change output to conform with POSIX standard for zero
1225 only when the -s flag is given. Otherwise it does the tradational
1226 thing.
1227
1228 * dc-misc.c: Add the "std_only" flag, always set to zero. This is
1229 needed due to the above change.
1230
1231 Tue Nov 29 15:18:20 1994 Phil Nelson <[email protected]>
1232
1233 * bc.1: Remove the "then" keyword in the if statement documentation.
1234
1235 Mon Nov 28 16:50:25 1994 Phil Nelson <[email protected]>
1236
1237 * bc.1: Fixed a font change error.
1238
1239 * Makefile.in: Added missing \ in two targets.
1240
1241 Tue Nov 22 11:09:08 1994 Phil Nelson <[email protected]>
1242
1243 * bc.1: clarified ibase and math routines.
1244
1245 Thu Nov 3 14:09:31 1994 Phil Nelson ([email protected])
1246
1247 * Makefile.in: added targets uninstall, installdirs and modified
1248 other targets to get makes in a directory other than srcdir to
1249 work.
1250
1251 * configure.in: added shell commands to get configure to work
1252 correctly in directories other than srcdir.
1253
1254 Wed Nov 2 10:18:19 1994 Phil Nelson ([email protected])
1255
1256 * bc.1 bc.y bcdefs.h const.h execute.c global.c global.h load.c
1257 main.c number.c number.h proto.h sbc.y scan.l storage.c util.c:
1258 updated copyright to 1994.
1259
1260 * version.h: updated version number and copyright date.
1261
1262 * Makefile.in, configure.in, Install: updated for use with
1263 autoconf-2.0 and install-sh. Changed target install a bit.
1264
1265 * install-sh: Included this file from the autoconf-2.0
1266 distribution to have configure run without errors.
1267
1268 * README: updated to version 1.03.
1269
1270 Mon Oct 31 10:26:28 1994 Phil Nelson ([email protected])
1271
1272 * Added Ken Pizzini's dc implementation that uses bc numeric
1273 routines. The following files have been added:
1274 dc-Concerns dc-array.c dc-eval.c dc-misc.c dc-number.c
1275 dc-proto.h dc-regdef.h dc-stack.c dc-string.c dc-version.h
1276 dc.1 dc.h dc.texinfo
1277
1278 * dc-array.c: Added a conditional include of stdlib.h to get
1279 size_t defined on my SunOS 4.1.3 system.
1280
1281 * configure.in: Added support for dc.
1282
1283 * Makefile.in: Added support for dc. Added rule to make
1284 config.h.in.
1285
1286 Sun Aug 7 15:09:19 1994 Phil Nelson ([email protected])
1287
1288 * configure.in, Makefile.in, acconfig.h: Add support for autoconf.
1289 Removed old Makefile.
1290
1291 Wed Jul 20 22:46:32 1994 Phil Nelson ([email protected])
1292
1293 * bc.y: change definition of next_label in function definition.
1294 Previous value of 0 caused break to not work. It is now 1.
1295
1296 Fri Apr 8 14:16:37 1994 Phil Nelson ([email protected])
1297
1298 * Makefile: Change the distribution to include libmath.h.dist
1299 which is a copy of libmath.h that has the compiled libmath.b.
1300
1301 Sun Feb 13 01:08:14 1994 Phil Nelson ([email protected])
1302
1303 * execute.c: Change the string quote characters to be more like
1304 C. \a => alert (bell) \b => backspace and added \q => ".
1305
1306 * bc.1: Updated information on above changes.
1307
1308 Wed Oct 27 23:34:40 1993 Phil Nelson ([email protected])
1309
1310 * Makefile: Changed compress to gzip. Changed the
1311 comment and definition of the DOT_IS_LAST compile option.
1312
1313 * scan.l: Changed DOT_IS_LAST to NO_DOT_LAST and changed
1314 the test so "." is the last variable is standard.
1315
1316 Wed May 19 15:15:12 1993 Phil Nelson (phil at cs.wwu.edu)
1317
1318 * number.c: Fixed output of negative numbers in bases other than
1319 base 10.
1320
1321 Wed Apr 21 11:56:31 1993 Phil Nelson (phil at cs.wwu.edu)
1322
1323 * bc.1: Changed Steve Sommars e-mail address.
1324
1325 Wed Apr 14 12:13:39 1993 Phil Nelson (phil at cs.wwu.edu)
1326
1327 * sbc.y: removed leading , on first line.
1328
1329 Wed Mar 31 16:12:39 1993 Phil Nelson (phil at cs.wwu.edu)
1330
1331 * bc.1: Updated segment number for function bodies.
1332
1333 Thu Mar 11 15:34:34 1993 Phil Nelson (phil at cs.wwu.edu)
1334
1335 * Makefile: added version.h to bc.o's dependency list.
1336
1337 Mon Mar 1 14:00:46 1993 Phil Nelson (phil at cs.wwu.edu)
1338
1339 * util.c: (nextarg) changed parameter "val" to be an int.
1340
1341 Tue Feb 16 10:06:45 1993 Phil Nelson (phil at cs.wwu.edu)
1342
1343 * util.c: (call_str, arg_str) added a function call_str that
1344 correctly produces the string of argmuent types for a function
1345 call. arg_str produced them in the reverse order. This
1346 eliminated the need for the "comma" argument to arg_str, which
1347 was removed.
1348
1349 * bc.y: changed the calls to arg_str to have only one parameter
1350 in the function definition rule and replaced the call to arg_str
1351 with call_str in the function call rule.
1352
1353 Tue Nov 24 17:38:40 1992 Phil Nelson (phil at cs.wwu.edu)
1354
1355 * Makefile: Added LEXLIB definitions for use with lex.
1356
1357 Thu Oct 22 13:43:16 1992 Phil Nelson (phil at cs.wwu.edu)
1358
1359 * number.c (bc_raise): Rearranged and added code to speed up
1360 the computation by not doing unneeded multiplications.
1361
1362 Wed Sep 30 10:43:52 1992 Phil Nelson (phil at cs.wwu.edu)
1363
1364 * global.h: Fixed documentation.
1365
1366 Tue Sep 29 15:27:50 1992 Phil Nelson (phil at cs.wwu.edu)
1367
1368 * storage.c (process_params): Changed processing of more arguments
1369 than in a function definition to just a return.
1370
1371 * Makefile: Made changes to make it more in conformance with the
1372 GNU coding standards.
1373
1374 Tue Jul 7 21:09:07 1992 Phil Nelson (phil at cs.wwu.edu)
1375
1376 * (const.h, bc.y, util.c) Added code so that when the math
1377 library is loaded, redefinition of any math library function
1378 will not cause the other functions to quit working correctly.
1379 Before this change, redefining a(x) would cause s(x) and c(x)
1380 to quit working and redefining s(x) would cause c(x) to quit
1381 working.
1382
1383 Wed Jul 1 14:35:29 1992 Phil Nelson (phil at cs.wwu.edu)
1384
1385 * (libmath.b) Changed the calculation of scale for computing
1386 e(x) and l(x). This provides a little more accuracy in the
1387 last digit at the expense of a little speed.
1388
1389 * (Test/checklib.b) Changed tests to be parameterized and test
1390 more values.
1391
1392 Thu Jun 25 09:22:59 1992 Phil Nelson (phil at cs.wwu.edu)
1393
1394 * (configure) changed the script from looking in the
1395 include directory for a .h file to asking cc (gcc) to
1396 find the .h file. This will allow better detection
1397 of include files available to the C compiler.
1398
1399 Wed Jun 24 22:11:37 1992 Phil Nelson (phil at cs.wwu.edu)
1400
1401 * (bc.y) Added a warning for the "last" variable.
1402
1403 * (scan.l) Added code to allow for a single dot (.) to be the
1404 same as the variable "last". This is not a "standard" feature,
1405 but is provided for those who want it.
1406
1407 * (Install) Documented the new define for dot (.).
1408
1409 * (bc.1) Documented the use of dot (.) for "last".
1410
1411 * (Makefile) Added an easy method for adding extra defines for
1412 use during the compile. Set DOT_IS_LAST as a standard
1413 extra define.
1414
1415 * (number.c) Changed the code for sqrt for better speed.
1416
1417 Mon Jun 22 21:47:05 1992 Phil Nelson (phil at cs.wwu.edu)
1418
1419 * Changed the name of math.h to libmath.h to avoid conflict
1420 with /usr/include/math.h. Changed all references to math.h
1421 to libmath.h in all files.
1422
1423 * (configure) Changed the test for long strings accepted by
1424 cc to not include libmath.h and thus not need to distribute
1425 a file that is generated by the system.
1426
1427 * (Makefile) Changed PREFIX, BINDIR, LIBDIR, and MANDIR to
1428 lower case.
1429
1430 Tue Mar 3 10:16:07 1992 Phil Nelson (phil at cs.wwu.edu)
1431
1432 * (main.c) Added missing } at line 140.
1433
1434 * (version.h) Changed date of version 1.02 to March 3, 1992.
1435
1436 Mon Feb 3 16:07:57 1992 Phil Nelson (phil at cs.wwu.edu)
1437
1438 * (version.h) Updated version number and date.
1439
1440 * (bc.1) Added a new "VERSION" section.
1441
1442 Wed Jan 29 14:13:55 1992 Phil Nelson (phil at cs.wwu.edu)
1443
1444 * (execute.c) Removed the setjmp and longjmp calls that may have
1445 caused some problems with interrupted programs.
1446
1447 Thu Jan 16 17:08:16 1992 Phil Nelson (phil at cs.wwu.edu)
1448
1449 * (Makefile) Changed install to install the manual.
1450
1451 Wed Jan 8 13:23:42 1992 Phil Nelson (phil at cs.wwu.edu)
1452
1453 * Change all copyright notices to include 1992.
1454
1455 * (load.c) Added termination to "load_code" to ignore code
1456 after an error has been found.
1457
1458 * (scan.l) Changed the check for NUL characters in STRING tokens
1459 (before the close quote) to work correctly. Also added code to
1460 report illegal characters in a more readable output format.
1461
1462 * (bc.1) Added the exclusion of NUL characters from strings in
1463 the "differences" section and updated date of last change.
1464
1465 * (const.h) Changed BC_MAX_SEGS to 16.
1466
1467 Mon Jan 6 14:20:02 1992 Phil Nelson (phil at cs.wwu.edu)
1468
1469 * (number.c) Changed the out_num routine to use a correct field
1470 size for bases greater than 16. e.g. For base 1000, each
1471 "digit" is a three digit number.
1472
1473 * (Makefile) Added the "8" flag to get an 8 bit scanner.
1474
1475 * (scan.l) Changed "char *" to "unsigned char *" to match the
1476 declaration of yytext for the 8 bit scanner. Also added code
1477 to detect the null character in strings and generate an error.
1478
1479 Sat Jan 4 20:32:20 1992 Phil Nelson (phil at cs.wwu.edu)
1480
1481 * (const.h) Changed BC_BASE_MAX to INT_MAX to allow more bases!
1482
1483 Mon Dec 30 21:47:28 1991 Phil Nelson (phil at cs.wwu.edu)
1484
1485 * (main.c) Fixed the bug that loaded the math library before
1486 every file.
1487
1488 * (bc.y) Removed some type declarations that duplicated token
1489 definitions so it could be run through bison.
1490
1491 * (load.c) Added a check for maximum code size.
1492
1493 * (Makefile) Added a prefix for LIBDIR and BINDIR so it can be
1494 changed easily.
1495
1496 Mon Nov 25 13:11:17 1991 Phil Nelson (phil at cs.wwu.edu)
1497
1498 * Changed version number in version.h to 1.01 with current date.
1499
1500 * Changed LIBFILE definition in Makefile.
1501
1502 * Added a recursive function example to bc.1.
1503
1504 Sun Nov 24 21:24:01 1991 Phil Nelson (phil at cs.wwu.edu)
1505
1506 * Changed the Makefile to make sure configure is run first.
1507 Added the $(CC) the configure call. Moved some defines
1508 toward the front of the Makefile to make sure they are
1509 read by installers. Also added SUBDIRS variable and updated
1510 the GNU distribution to include the subdirectories. Included
1511 math.h in the distribution for use by configure. Included
1512 ChangeLog in the distribution.
1513
1514 * Split the README into README and Install. Changed Install
1515 to have current information. Documented the STRINGS_H define.
1516 Updated the version number in README.
1517
1518 * Added a check for <strings.h> in configure.
1519
1520 Fri Nov 22 15:06:32 1991 Phil Nelson (phil at cs.wwu.edu)
1521
1522 * Changed configure to check for varargs.h first. Also, added
1523 checks to see if long strings (math.h) are accepted by the
1524 C compiler. Also added parameters to configure.
1525
1526 * Deleted #include <sys/types.h> from proto.h. Also made only
1527 ANSI C compilers include <stdlib.h>.
1528
1529 * Changed the Makefile to have the install bin directory be
1530 /usr/local/bin and the install lib directory be /usr/local/lib.
1531
1532 * Changed some files in the Test directory to eliminate the
1533 <op>= form that some older bcs don't like.
1534
1535 * Made some small corrections in bc.1.
1536
1537 Tue Oct 29 10:06:32 1991 Phil Nelson (phil at cs.wwu.edu)
1538
1539 * Called current version 1.00.
1540
1541 * Submitted GNU bc-1.00 to comp.sources.reviewed