summaryrefslogtreecommitdiff
path: root/usr.bin/dc
AgeCommit message (Collapse)Author
2004-10-18Implement command line evaluation of expressions by implementing the -e option.Otto Moerbeek
ok weingart@
2004-09-14ARGSUSED before signal handler with unused signoTheo de Raadt
2004-07-11No need to free() after a failing realloc(), we're bailing out anyway.Otto Moerbeek
From Andrey Matveev.
2004-02-11Make flag set in signal handler volatileOtto Moerbeek
2004-02-01add paper.txt target;Jason McIntyre
2004-01-20duplicated entry; evarts@amazon.comTheo de Raadt
2004-01-13Add missing include. From espie@Otto Moerbeek
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
enabled by supplying the -x option on the command line. Allows long variable names in bc(1) (to appear soon). If no -x option is given, behave exactly as before. ok jmc@
2003-12-01Allow for more registers using a 2 byte index. This feature isOtto Moerbeek
enabled by supplying the -x option on the command line. Allows long variable names in bc(1) (to appear soon). If no -x option is given, behave exactly as before.
2003-11-26Avoid a core dump on reading uninitiazed array locations.Otto Moerbeek
2003-11-17A basic stack operation that is missing from the original dc (andOtto Moerbeek
GNU dc as well): drop ('R').
2003-11-14Implement new boolean operations 'N' (not), 'G' (equals), '(' (less)Otto Moerbeek
and '{' (less or equal). These operations push their result back to the stack. Used by soon to appear boolean operations in bc(1). man page tweaks and ok jmc@
2003-11-14The BN_add_word() bug has been squashed, so we don't need a workaroundOtto Moerbeek
any more.
2003-11-09Flush after 'n' operator.Otto Moerbeek
2003-11-06Describe non-portable extension # (comment), n (print w/o newline),Otto Moerbeek
and a (byte to char). Tweaks and ok jmc@
2003-11-06Implement non-portable extension # (comment), n (print w/o newline),Otto Moerbeek
and a (byte to char).
2003-11-04Duh, a stack machine without swap; implement GNU compatible 'r'Otto Moerbeek
(swap) operator. Prompted by Michael Knudsen <e at molioner dot dk>
2003-10-23quote args to make them expand properly;Jason McIntyre
2003-10-22Make J operator handle extended comparisons correctly.Otto Moerbeek
2003-10-22Document new extended comparison operators.Otto Moerbeek
ok jmc@
2003-10-22Implement extended comparison operators, to allow for an if ... else constructOtto Moerbeek
in bc(1).
2003-10-22Make ungetting a char read form a string behave the same as ungettingOtto Moerbeek
a char from a stream.
2003-10-20typos from Jared Yanovich;Jason McIntyre
2003-10-19Reorder descriptions of operators alphabetically.Otto Moerbeek
ok jmc@
2003-10-18- new sentence, new lineJason McIntyre
- spelling
2003-10-18err(1, "out of mem") -> err(1, NULL)Otto Moerbeek
2003-10-18#ifdef debug codeOtto Moerbeek
2003-10-18Describe new J and M operators. Also some small cleanup.Otto Moerbeek
2003-10-18o Implement new J (jump) and M (mark) operators. The J operatorOtto Moerbeek
pops n recursion levels and then skips to the first occurence of the M operator. These operators are used to implement the "continue" statement in bc(1). o Ifdef debug code.
2003-10-11Division and modulus operator (~). From hugh@.Otto Moerbeek
2003-10-01tweak;Jason McIntyre
ok otto@
2003-09-30Teach dc(1) how to read strings with unbalanced braces by introducingOtto Moerbeek
backslash as an escape char. This is needed for bc(1), which is required by Posix to handle strings with brackets in them.
2003-09-30Flush stdout after P operator. Improves interaction with bc(1).Otto Moerbeek
2003-09-28realloc cleanupOtto Moerbeek
2003-09-28Free memory after a failing realloc.Otto Moerbeek
2003-09-28Fix error check for array store operator.Otto Moerbeek
2003-09-22Kill warnings. Add a note saying the current paper describes theOtto Moerbeek
historical implementation, not the current one. At some point in time, I'll try to describe the current implementation. ok jmc@
2003-09-22Typo.Otto Moerbeek
2003-09-22Make registers contain zero initially. Needed for new bc(1) and original dc(1)Otto Moerbeek
compatible.
2003-09-22tweaks;Jason McIntyre
ok otto@
2003-09-20Remove bogus comment.Otto Moerbeek
2003-09-19spacesTheo de Raadt
2003-09-19blanksTheo de Raadt
2003-09-19Add missing copyright.Otto Moerbeek
2003-09-19spacesTheo de Raadt
2003-09-19Original USD.doc from 4.4 BSD, using the Caldera license. Needs cleanup.Otto Moerbeek
ok toby@ deraadt@
2003-09-19Man page based on 4.4 BSD man page, using the Caldera license.Otto Moerbeek
ok toby@ deraadt@
2003-09-19A complete, BSD licensed rewrite of dc(1), using the bn(3) big number routines.Otto Moerbeek
ok toby@ deraadt@