diff options
author | Elliott Hughes <enh@google.com> | 2017-11-01 13:54:47 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2017-11-01 18:13:36 -0700 |
commit | 2f9c8ce38a885791dfa4cefb6370b5025c55ae82 (patch) | |
tree | efbdbe306e126b1bad2d3bd455e23e49639f0a64 /libc/stdio/parsefloat.c | |
parent | 0cbbdaa5cfa131e33dbfc80ce9b34c9fe1523f08 (diff) |
Start de-duplicating the regular and wide printf implementations.
This patch switches to C++ (in anticipation of needing it later), removes
a little duplication (via a macro for now), and ensures uniform support
for %C/%lc and %S/%ls between regular and wide (with new tests).
Since it's so hard to debug problems in printf (as the time I've wasted
already today will testify), that's all I want to do in this change. The
other 500 lines of diff can wait...
(Also merge "floatio.h" into "local.h" now all the users are in forked
code.)
Bug: http://b/67371539
Test: ran tests
Change-Id: I083353d89c32b9302d759ca6967cc6d8a62cd8a5
Diffstat (limited to 'libc/stdio/parsefloat.c')
-rw-r--r-- | libc/stdio/parsefloat.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libc/stdio/parsefloat.c b/libc/stdio/parsefloat.c index e911da412..d81e71359 100644 --- a/libc/stdio/parsefloat.c +++ b/libc/stdio/parsefloat.c @@ -34,7 +34,6 @@ #include <stdlib.h> #include "local.h" -#include "floatio.h" #define BUF 513 /* Maximum length of numeric string. */ |