summaryrefslogtreecommitdiff
path: root/libc/stdio/old_vfprintf.c
diff options
context:
space:
mode:
authorManuel Novoa III <mjn3@codepoet.org>2002-05-11 14:50:18 +0000
committerManuel Novoa III <mjn3@codepoet.org>2002-05-11 14:50:18 +0000
commitfd2907fec23831499b7c324f008df85d6f38db97 (patch)
tree898da677f1a4587abfa4266531772a1cc96a5289 /libc/stdio/old_vfprintf.c
parentfd15708e6476164990e7b364dc5b2aa1600f8e89 (diff)
Adjust preprocessor logic to initialize QUAL_CHARS correctly for Erik's alpha
port. Also, explicitly use the macro versions of isdigit and isspace in the printf and scanf code.
Diffstat (limited to 'libc/stdio/old_vfprintf.c')
-rw-r--r--libc/stdio/old_vfprintf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/stdio/old_vfprintf.c b/libc/stdio/old_vfprintf.c
index c7c07f34a..2158d9741 100644
--- a/libc/stdio/old_vfprintf.c
+++ b/libc/stdio/old_vfprintf.c
@@ -128,6 +128,7 @@
#include <limits.h>
#include <string.h>
#include <errno.h>
+#include <ctype.h>
#define __PRINTF_INFO_NO_BITFIELD
#include <printf.h>
@@ -140,7 +141,7 @@
/* #undef WANT_FLOAT_ERROR */
/* #define WANT_FLOAT_ERROR 1 */
-#define __isdigit(c) (((unsigned int)(c - '0')) < 10)
+/* #define __isdigit(c) (((unsigned int)(c - '0')) < 10) */
extern size_t _dtostr(FILE * fp, long double x, struct printf_info *info);