shell: implement optional "BASE#nnnn" numeric literals

function                                             old     new   delta
evaluate_string                                      729     851    +122

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2019-05-19 17:23:31 +02:00
parent 30a4c32a4d
commit 9edd268bad
3 changed files with 51 additions and 6 deletions

View File

@@ -99,6 +99,11 @@ config FEATURE_SH_MATH_64
slightly larger, but will allow computation with very large numbers.
This is not in POSIX, so do not rely on this in portable code.
config FEATURE_SH_MATH_BASE
bool "Support BASE#nnnn literals"
default y
depends on FEATURE_SH_MATH
config FEATURE_SH_EXTRA_QUIET
bool "Hide message on interactive shell startup"
default y