[BusyBox-cvs] busybox/include usage.h,1.171,1.172
Erik Andersen
andersen at busybox.net
Wed Oct 22 11:24:41 UTC 2003
Update of /var/cvs/busybox/include
In directory winder:/tmp/cvs-serv13190/include
Modified Files:
usage.h
Log Message:
Goetz Bock writes:
Dear list,
during my quest do pack busybox into an RPM, I've fixed a small bug
(missing \n) in dc's usage. And added two additional operations: mod and
exp/power.
Feel free to drop them.
Index: usage.h
===================================================================
RCS file: /var/cvs/busybox/include/usage.h,v
retrieving revision 1.171
retrieving revision 1.172
diff -u -d -r1.171 -r1.172
--- usage.h 10 Oct 2003 23:15:23 -0000 1.171
+++ usage.h 22 Oct 2003 11:24:38 -0000 1.172
@@ -280,8 +280,10 @@
"expression ..."
#define dc_full_usage \
"This is a Tiny RPN calculator that understands the\n" \
- "following operations: +, -, /, *, and, or, not, eor.\n" \
- "i.e., 'dc 2 2 add' -> 4, and 'dc 8 8 \\* 2 2 + /' -> 16" \
+ "following operations: +, add, -, sub, *, mul, /, div, %, mod, "\
+ "**, exp, and, or, not, eor.\n" \
+ "For example: 'dc 2 2 add' -> 4, and 'dc 8 8 \\* 2 2 + /' -> 16.\n" \
+ "\nOptions:\n" \
"p - Prints the value on the top of the stack, without altering the stack.\n" \
"f - Prints the entire contents of the stack without altering anything.\n" \
"o - Pops the value off the top of the stack and uses it to set the output radix.\n" \
More information about the busybox-cvs
mailing list