diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2021-02-26 14:48:04 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2021-02-26 14:48:04 +0100 |
commit | 1a37aa7a88722f49928f6cd7851476aa4525462d (patch) | |
tree | 82cd26603c44d729bfc5c548228d54488e3b78de | |
parent | ace81cd46ce53e60fe702cc1ac857989207e7ac4 (diff) | |
download | busybox-w32-1a37aa7a88722f49928f6cd7851476aa4525462d.tar.gz busybox-w32-1a37aa7a88722f49928f6cd7851476aa4525462d.tar.bz2 busybox-w32-1a37aa7a88722f49928f6cd7851476aa4525462d.zip |
dc: document what non-GNU commands do
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | miscutils/bc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/miscutils/bc.c b/miscutils/bc.c index 91564099e..cc48ed3fe 100644 --- a/miscutils/bc.c +++ b/miscutils/bc.c | |||
@@ -166,12 +166,12 @@ | |||
166 | //////// "\nq - DC_LEX_QUIT "break 2" (if less than 2 levels of macros, exit dc) | 166 | //////// "\nq - DC_LEX_QUIT "break 2" (if less than 2 levels of macros, exit dc) |
167 | //////// "\nX - DC_LEX_SCALE_FACTOR pop, push number of fractional digits | 167 | //////// "\nX - DC_LEX_SCALE_FACTOR pop, push number of fractional digits |
168 | //////// "\nZ - DC_LEX_LENGTH pop, push number of digits it has (or number of characters in string) | 168 | //////// "\nZ - DC_LEX_LENGTH pop, push number of digits it has (or number of characters in string) |
169 | //////// "\na - DC_LEX_ASCIIFY pop, push low-order byte as char or 1st string char | 169 | //////// "\na - DC_LEX_ASCIIFY pop, push low-order byte as char or 1st char of string |
170 | //////// "\n( - DC_LEX_LPAREN ? | 170 | //////// "\n( - DC_LEX_LPAREN (not in GNU) pop, pop, if top-of-stack was less push 1 else push 0 |
171 | //////// "\n{ - DC_LEX_LBRACE ? | 171 | //////// "\n{ - DC_LEX_LBRACE (not in GNU) pop, pop, if top-of-stack was less-or-equal push 1 else push 0 |
172 | //////// "\nG - DC_LEX_EQ_NO_REG (not in GNU) pop, pop, if equal push 1 else push 0 | ||
173 | //////// "\nN - DC_LEX_OP_BOOL_NOT (not in GNU) pop, if 0 push 1 else push 0 | ||
172 | //////// "\n_ - XC_LEX_NEG (not a command - starts negative number) | 174 | //////// "\n_ - XC_LEX_NEG (not a command - starts negative number) |
173 | //////// "\nG - DC_LEX_EQ_NO_REG (? GNU dc has no such cmd) | ||
174 | //////// "\nN - DC_LEX_OP_BOOL_NOT (? GNU dc has no such cmd) | ||
175 | //////// "\nn - DC_LEX_PRINT_POP pop, print without newline | 175 | //////// "\nn - DC_LEX_PRINT_POP pop, print without newline |
176 | //////// "\nP - DC_LEX_PRINT_STREAM pop, print string or hex bytes | 176 | //////// "\nP - DC_LEX_PRINT_STREAM pop, print string or hex bytes |
177 | //usage: ) | 177 | //usage: ) |