diff options
Diffstat (limited to 'coreutils/expr.c')
| -rw-r--r-- | coreutils/expr.c | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/coreutils/expr.c b/coreutils/expr.c index efc435443..5d2fbf2f7 100644 --- a/coreutils/expr.c +++ b/coreutils/expr.c | |||
| @@ -13,7 +13,6 @@ | |||
| 13 | * | 13 | * |
| 14 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 14 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
| 15 | */ | 15 | */ |
| 16 | |||
| 17 | /* This program evaluates expressions. Each token (operator, operand, | 16 | /* This program evaluates expressions. Each token (operator, operand, |
| 18 | * parenthesis) of the expression must be a separate argument. The | 17 | * parenthesis) of the expression must be a separate argument. The |
| 19 | * parser used is a reasonably general one, though any incarnation of | 18 | * parser used is a reasonably general one, though any incarnation of |
| @@ -21,9 +20,27 @@ | |||
| 21 | * | 20 | * |
| 22 | * No parse tree is needed; a new node is evaluated immediately. | 21 | * No parse tree is needed; a new node is evaluated immediately. |
| 23 | * One function can handle multiple operators all of equal precedence, | 22 | * One function can handle multiple operators all of equal precedence, |
| 24 | * provided they all associate ((x op x) op x). */ | 23 | * provided they all associate ((x op x) op x). |
| 25 | 24 | */ | |
| 26 | /* no getopt needed */ | 25 | //config:config EXPR |
| 26 | //config: bool "expr" | ||
| 27 | //config: default y | ||
| 28 | //config: help | ||
| 29 | //config: expr is used to calculate numbers and print the result | ||
| 30 | //config: to standard output. | ||
| 31 | //config: | ||
| 32 | //config:config EXPR_MATH_SUPPORT_64 | ||
| 33 | //config: bool "Extend Posix numbers support to 64 bit" | ||
| 34 | //config: default y | ||
| 35 | //config: depends on EXPR | ||
| 36 | //config: help | ||
| 37 | //config: Enable 64-bit math support in the expr applet. This will make | ||
| 38 | //config: the applet slightly larger, but will allow computation with very | ||
| 39 | //config: large numbers. | ||
| 40 | |||
| 41 | //applet:IF_EXPR(APPLET(expr, BB_DIR_USR_BIN, BB_SUID_DROP)) | ||
| 42 | |||
| 43 | //kbuild:lib-$(CONFIG_EXPR) += expr.o | ||
| 27 | 44 | ||
| 28 | //usage:#define expr_trivial_usage | 45 | //usage:#define expr_trivial_usage |
| 29 | //usage: "EXPRESSION" | 46 | //usage: "EXPRESSION" |
