projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1113961
)
shell: add TODO comment about BASE#nnn literals
author
Denys Vlasenko
<vda.linux@googlemail.com>
Thu, 16 May 2019 07:56:45 +0000
(09:56 +0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Thu, 16 May 2019 07:56:45 +0000
(09:56 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/math.h
patch
|
blob
|
history
diff --git
a/shell/math.h
b/shell/math.h
index 32e1ffe350cbe00157e54a347e9d1463db8f66a5..2c5ae9b44ce641b9413430edd52e35541bdaf0c2 100644
(file)
--- 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);