[git commit] shell: add TODO comment about BASE#nnn literals
Denys Vlasenko
vda.linux at googlemail.com
Thu May 16 07:56:45 UTC 2019
commit: https://git.busybox.net/busybox/commit/?id=9bf6780c2888805908d9485681dadffeab3414f7
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
shell/math.h | 2 ++
1 file changed, 2 insertions(+)
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;
#define ARITH_FMT "%ld"
#define strto_arith_t strtoul
#endif
+//TODO: bash supports "BASE#nnnnn" numeric literals, e.g. 2#1111 = 15.
+//Make strto_arith_t() support that?
typedef const char* FAST_FUNC (*arith_var_lookup_t)(const char *name);
typedef void FAST_FUNC (*arith_var_set_t)(const char *name, const char *val);
More information about the busybox-cvs
mailing list