summaryrefslogtreecommitdiff
path: root/usr.bin/bc
AgeCommit message (Collapse)Author
2006-06-30CLEANFILES no longer needed since this is now done by bsd.*.mkOtto Moerbeek
2006-05-27SRCS should refer to the .l and .c files; spotted by naddyTheo de Raadt
2006-05-18Avoid segv when a syntax error occurs while reading from command line.Otto Moerbeek
found by jmc@
2006-04-20unused variableTheo de Raadt
2006-03-31Better useage string. From Alexey Dobriyan.Otto Moerbeek
2006-03-18Forgotten part in previous commit; having multiple source trees is aOtto Moerbeek
dangerous hobbby.
2006-03-18Interchange roles: bc becomes parent, dc child. This leads to sanerOtto Moerbeek
tty handling (try bc | grep foo followed by ^C, as noted by deraadt@). To make it all work, bc now waits for dc to exit after giving it a quit command. ok deraadt@ jaredy@
2006-01-24fclose file stream before opening a new one.Otto Moerbeek
2005-12-03ARGSUSED signal handlerTheo de Raadt
2005-10-29do not put a .Pp before a display;Jason McIntyre
2005-09-30deploy .An -nosplit; ok jmcJared Yanovich
2005-09-18Do not check pointer for NULL, but check for return value of asprintf(),Otto Moerbeek
like the man page says.
2005-05-23Fix some pedantic signed vs unsigned warnings. From Michael Knudsen, 10xOtto Moerbeek
2005-04-13Always use lex in interactive mode. Makes bc running as a co-processOtto Moerbeek
behave. Very, very little performance loss. Spotted by and ok fschg@
2005-03-28mark potential signal race so we fix it later, ok ottoTheo de Raadt
2005-03-17Fix eof without newline handling. spotted by and ok deraadt@Otto Moerbeek
2004-12-02Fix signal races for isatty(3) (calls ioctl(2)) and printf(3);Otto Moerbeek
save/restore errno. YY_FLUSH_BUFFER might still be a problem. Spotted by and ok deraadt@
2004-10-19Implement -e expression, for command line expression evaluation.Otto Moerbeek
ok deraadt@
2004-08-25typos from -f (PR #3907);Jason McIntyre
2004-07-09typo from rohee@Jason McIntyre
2004-04-21point people to usd doc;Jason McIntyre
ok otto@
2004-04-06- add margins when formatting w/ -TasciiJason McIntyre
- remove some macros that were causing formatting errors
2004-02-18Rewrite argv processing to not alter argv[] and optind while in theOtto Moerbeek
getopt() loop. ok deraadt@
2004-02-01add paper.txt target;Jason McIntyre
2004-01-13Missing cast. From deraadt@Otto Moerbeek
2003-12-19Pass SIGINT to dc process.Otto Moerbeek
2003-12-02Describe long variable names, a non-portable extension.Otto Moerbeek
help and ok jmc@
2003-12-02o Introduce long variable names, a non-portable extension.Otto Moerbeek
o Make main program target left recursive. Reduces parse stack usage, making it possible to compile programs > 10000 lines.
2003-11-17Document non-portable extensions:Otto Moerbeek
o boolean operators !, && and ||. o allow relational operators to appear in any expression, not just conditional expressions. help and ok jmc@
2003-11-17Implement non-portable extensions:Otto Moerbeek
o boolean operators !, && and ||. o allow relational operators to appear in any expression, not just conditional expressions.
2003-11-13When using print, do not leave garbage on the dc stack.Otto Moerbeek
2003-11-13Exponentiation operatator ^ is right associative.Otto Moerbeek
2003-11-12kill some .Pp's before displays;Jason McIntyre
ok otto@
2003-11-11Some syntactic sugar (all non-portable extensions):Otto Moerbeek
- a line comment, starting with # - opening brace of define statement may be on next line - return expression, equivalent to return (expression) tweaks and ok jmc@
2003-11-11Some syntactic sugar (all non-portable extensions):Otto Moerbeek
- a line comment, starting with # - opening brace of define statement may be on next line - return expression, equivalent to return (expression) tweaks and ok jmc@
2003-11-11Some syntactic sugar (all non-portable extensions):Otto Moerbeek
- a line comment, starting with # - opening brace of define statement may be on next line - return expression, equivalent to return (expression)
2003-11-11Describe new 'print' statement plus some tweaks.Otto Moerbeek
ok jmc@
2003-11-11Document new 'print' statement, plus some tweaks.Otto Moerbeek
help and ok jmc@
2003-11-11Implement `print' statement, a non-portable extension.Otto Moerbeek
2003-11-09Introduce `last' as a synonym for `.' and document them.Otto Moerbeek
2003-11-03Don't define a specific target when the default rule will do perfectly.Otto Moerbeek
ok mickey@
2003-11-03Install bc(1) USD doc.Otto Moerbeek
ok deraadt@ mickey@ jmc@
2003-10-22Document if ... elseOtto Moerbeek
2003-10-22Implement if ... else statement. If you do not use 'else', code generatedOtto Moerbeek
is still classic dc(1) compatible. If you do use 'else', you'll need a dc(1) that implements the new extended comparison operators like '=xey'.
2003-10-21Document continue and for with empty parts. Also, our implementationOtto Moerbeek
allows for scale > 99.
2003-10-20tweaks;Jason McIntyre
ok otto@
2003-10-19Allow the expressions in for (E ; E ; E ) to be empty.Otto Moerbeek
2003-10-19Document modern assignment ops +=, -=, ... instead of the old =+, =-, ...,Otto Moerbeek
which were already smelling funny for a long time.
2003-10-18err(1, "cannot allocate mem") -> err(1, NULL)Otto Moerbeek
2003-10-18o Fix assignment operators (+=, -=, ... )Otto Moerbeek
o Implement "continue" in loops. If continue is not used, generated code is still "classic" dc(1) compatible. If continue is used, you'll need a dc(1) that implements the J and M operators.