summaryrefslogtreecommitdiff
path: root/usr.bin/dc/bcode.c
AgeCommit message (Expand)Author
2023-03-08Delete obsolete /* ARGSUSED */ lint comments.Philip Guenther
2017-12-29small optimization in bexp; 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-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-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-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-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-03-27some style(9) and redundant tests for NULL, from Michael W. BombardieriOtto Moerbeek
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-10-08userland reallocarray audit.Doug Hogan
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-03-08let length(0.000) conform to what gnu bc does; from AIDA ShinraOtto Moerbeek
2010-05-15normalize() cannot be inline and extern at the same time; prompted byOtto Moerbeek
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
2009-09-06check for unitialized elements when accessing an array; from Simon Kellner.Otto Moerbeek
2008-11-24although there's no EOF condition defined for the handling of '?',Otto Moerbeek
2008-04-28plug three leaks, one reported and fixed by Andreas Gunnarsson in PR 5802,Otto Moerbeek
2008-04-26use correct printf format for size_t (debug only code)Otto Moerbeek
2007-09-02more malloc(n * m) -> calloc(n, m); from Igor ZinovikTheo de Raadt
2006-01-19delint: check value against UINT_MAX before casting to u_int; whileOtto Moerbeek
2006-01-16delint; use size_t as stack size and ssize_t as stack pointer.Otto Moerbeek
2006-01-15delint; index is a global symbol, so rename some locals to avoidOtto Moerbeek
2006-01-15delint wrt return values, including some missing BN returnOtto Moerbeek
2005-09-25Fix wrong normalization in compare. From andreas@Otto Moerbeek
2005-04-02- Fix raise for negative exponents (noted by naddy@)Otto Moerbeek
2005-03-28spacingTheo de Raadt
2005-03-27Make call stack auto-growing, instead of fixed size. Enables much deeperOtto Moerbeek
2004-12-01use volatile sig_atomic_t for vars set in signal handlers. spotted by deraadt@Otto Moerbeek
2004-12-01Fix stop condition for sqrt. Due to the fact that we're doing NewtonOtto Moerbeek
2004-10-18Implement command line evaluation of expressions by implementing the -e option.Otto Moerbeek
2004-09-14ARGSUSED before signal handler with unused signoTheo de Raadt
2004-02-11Make flag set in signal handler volatileOtto Moerbeek
2004-01-20duplicated entry; evarts@amazon.comTheo de Raadt
2003-12-19Do something sensible on ^C: unwind stack and be ready for new input.Otto Moerbeek
2003-12-02Fix a max recursion off-by-one.Otto Moerbeek
2003-12-01Allow for more registers using a 2 byte index. This feature isOtto Moerbeek
2003-11-17A basic stack operation that is missing from the original dc (andOtto Moerbeek
2003-11-14Implement new boolean operations 'N' (not), 'G' (equals), '(' (less)Otto Moerbeek
2003-11-09Flush after 'n' operator.Otto Moerbeek
2003-11-06Implement non-portable extension # (comment), n (print w/o newline),Otto Moerbeek