diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2019-05-16 09:56:45 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2019-05-16 09:56:45 +0200 |
commit | 9bf6780c2888805908d9485681dadffeab3414f7 (patch) | |
tree | 15a88842ba3d149cf08c79d8410402c2a6396c7d | |
parent | 1113961dde21ce73c1543ca466913d9e17d06c1b (diff) | |
download | busybox-w32-9bf6780c2888805908d9485681dadffeab3414f7.tar.gz busybox-w32-9bf6780c2888805908d9485681dadffeab3414f7.tar.bz2 busybox-w32-9bf6780c2888805908d9485681dadffeab3414f7.zip |
shell: add TODO comment about BASE#nnn literals
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | shell/math.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/shell/math.h b/shell/math.h index 32e1ffe35..2c5ae9b44 100644 --- a/shell/math.h +++ b/shell/math.h | |||
@@ -72,6 +72,8 @@ typedef long arith_t; | |||
72 | #define ARITH_FMT "%ld" | 72 | #define ARITH_FMT "%ld" |
73 | #define strto_arith_t strtoul | 73 | #define strto_arith_t strtoul |
74 | #endif | 74 | #endif |
75 | //TODO: bash supports "BASE#nnnnn" numeric literals, e.g. 2#1111 = 15. | ||
76 | //Make strto_arith_t() support that? | ||
75 | 77 | ||
76 | typedef const char* FAST_FUNC (*arith_var_lookup_t)(const char *name); | 78 | typedef const char* FAST_FUNC (*arith_var_lookup_t)(const char *name); |
77 | typedef void FAST_FUNC (*arith_var_set_t)(const char *name, const char *val); | 79 | typedef void FAST_FUNC (*arith_var_set_t)(const char *name, const char *val); |