summaryrefslogtreecommitdiff
path: root/usr.bin/dc
AgeCommit message (Expand)Author
2024-11-07Use LibreSSLs specialized functions to print base 10 and base 16.Otto Moerbeek
2024-04-23correct indentation; no functional changeJonathan Gray
2023-03-08Delete obsolete /* ARGSUSED */ lint comments.Philip Guenther
2021-11-10Move two BIGNUMs in printnumber() from the stack to the heap toTheo Buehler
2021-03-08Add some references, most of these were removed when we stopped buildingJonathan Gray
2019-09-06More Version 1 AT&T UNIX history.Ingo Schwarze
2017-12-29small optimization in bexp; from ksheOtto Moerbeek
2017-12-17Use proper BN functions for error reporting; from ksheOtto Moerbeek
2017-12-12Use bn_checkp() always; from ksheOtto Moerbeek
2017-12-12Minor cleanup from ksheOtto Moerbeek
2017-12-12optimize add, sub and mul; from kshe; ok tom@Otto Moerbeek
2017-12-07zap a few stray backslashes from the time thesse two were #defines; fromOtto Moerbeek
2017-12-06strdup -> bstrdup; from Michael W. BombardieriOtto Moerbeek
2017-12-05use a global BN_CTX; from kshe with a twist from myselfOtto Moerbeek
2017-12-02make 0Z do what the original dc and gnu bcc do; ok tom@Otto Moerbeek
2017-12-02Add a caveat wrt use of non-decimal fractional notation; from kshe; ok jmc@Otto Moerbeek
2017-12-01fix buglet in split_number() and optimize count_digits();Otto Moerbeek
2017-11-29fold bsqrt_stop into bsqrt; from kshe; ok tom@Otto Moerbeek
2017-11-29simplify print_ascii; from kshe; ok tom@Otto Moerbeek
2017-11-29Pledge can be done earlier; from ksheOtto Moerbeek
2017-11-28zap newline in warn(); from ksheOtto Moerbeek
2017-11-28zap dead stores; prompted by a diff from ksheOtto Moerbeek
2017-11-28garbage collect a few functions that are not really needed; from ksheOtto Moerbeek
2017-11-28document that the 'e' command is non-portable; from kshe; ok jmc@Otto Moerbeek
2017-11-27Safer handling of the jump_table[] in dc's bcode.cTom Cosgrove
2017-02-26Move away from BN_zero, the one returning an int is deprecated and theOtto Moerbeek
2017-02-23Introduce e command, equivalent to p, but writes to stderrOtto Moerbeek
2016-12-10replace all references to bn(3) with BN_new(3),Ingo Schwarze
2016-07-17getopt(3) can be called twice (once for bc and once for dc), so reinit getoptOtto Moerbeek
2016-03-27some style(9) and redundant tests for NULL, from Michael W. BombardieriOtto Moerbeek
2015-11-03Surround pledge calls with blank lines.mmcc
2015-10-10Rather than invoking fork/execve of dc(1) on a pipe, compile in the dc(1)Theo de Raadt
2015-10-09Change all tame callers to namechange to pledge(2).Theo de Raadt
2015-10-03Now that dc(1) no longer supports !command with popen(), we can startTheo de Raadt
2015-10-03delete documentation for ! commandTheo de Raadt
2015-10-03disable ! command, makes dc(1) more tameableOtto Moerbeek
2015-02-16Include bn.h and err.h from <openssl/...>, not the old <ssl/...> location.Jeremie Courreges-Anglas
2014-12-01more opportunity to use reallocarray(); ok ottoTheo de Raadt
2014-11-26Prefer setvbuf() to setlinebuf() for portability; ok deraadt@Todd C. Miller
2014-11-26init array field in the proper place, see regress test t27;Otto Moerbeek
2014-10-08userland reallocarray audit.Doug Hogan
2014-05-20Use errc/warnc to simplify code.Philip Guenther
2012-11-07fix fractional number exponentiation, especially for negative exponentsOtto Moerbeek
2012-11-06use BN_set_negative() and BN_is_negative() instead of subtracting orOtto Moerbeek
2012-11-06For exponenttion, only warn if the fractional part of the exponentOtto Moerbeek
2012-08-19Stefan Unterweger pointed out that, contrary to the man page,Jason McIntyre
2012-03-08let length(0.000) conform to what gnu bc does; from AIDA ShinraOtto Moerbeek
2010-10-18more usd/psd stuff lurking...Jason McIntyre
2010-09-19more wacky macro fixing;Jason McIntyre
2010-05-15normalize() cannot be inline and extern at the same time; prompted byOtto Moerbeek