← Commit list

9bf6780c2

Denys Vlasenko
Denys Vlasenko
2019-05-16
SUCCESS Duration: 153s

Subject

shell: add TODO comment about BASE#nnn literals

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

shell/math.h+2 -0
@@ -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);