klibc-bot for Herbert Xu
2019-Jan-25 03:15 UTC
[klibc] [klibc:update-dash] [BUILTIN] Add printf support for format string a, A, and F
Commit-ID: d3d81496ead793b36ffd5e9c5c03d3a6bb356efc Gitweb: git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=d3d81496ead793b36ffd5e9c5c03d3a6bb356efc Author: Herbert Xu <herbert at gondor.apana.org.au> AuthorDate: Mon, 27 Oct 2014 11:45:01 +0800 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Fri, 25 Jan 2019 02:57:21 +0000 [klibc] [BUILTIN] Add printf support for format string a, A, and F This patch adds the format string characters a, A and F to the supported set of the built-in printf command. They're already supported by the underlying printf function. Signed-off-by: Herbert Xu <herbert at gondor.apana.org.au> Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- usr/dash/bltin/printf.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/usr/dash/bltin/printf.c b/usr/dash/bltin/printf.c index add89095..a1c1e918 100644 --- a/usr/dash/bltin/printf.c +++ b/usr/dash/bltin/printf.c @@ -194,9 +194,12 @@ pc: break; } #ifdef HAVE_STRTOD + case 'a': + case 'A': case 'e': case 'E': case 'f': + case 'F': case 'g': case 'G': { double p = getdouble();
Possibly Parallel Threads
- [klibc:update-dash] dash: [BUILTIN] Add printf support for format string a, A, and F
- [klibc:update-dash] dash: [BUILTIN] Remove getintmax in printf
- [klibc:update-dash] [BUILTIN] Remove getintmax in printf
- [klibc:update-dash] dash: [BUILTIN] Handle embedded NULs correctly in printf
- [klibc:update-dash] [BUILTIN] Handle embedded NULs correctly in printf