Add vfwprintf.c to the printscan list.

This causes the build to produce no-long-double and no-floating-point
versions of this file, following what is done for vfprintf.c.
This commit is contained in:
Dan Gohman 2019-04-22 06:23:56 -07:00
parent 1cbedc6d7e
commit 2201343c17
2 changed files with 3 additions and 0 deletions

View File

@ -143,6 +143,7 @@ LIBC_TOP_HALF_MUSL_SOURCES = \
MUSL_PRINTSCAN_SOURCES = \
$(LIBC_TOP_HALF_MUSL_SRC_DIR)/internal/floatscan.c \
$(LIBC_TOP_HALF_MUSL_SRC_DIR)/stdio/vfprintf.c \
$(LIBC_TOP_HALF_MUSL_SRC_DIR)/stdio/vfwprintf.c \
$(LIBC_TOP_HALF_MUSL_SRC_DIR)/stdio/vfscanf.c \
$(LIBC_TOP_HALF_MUSL_SRC_DIR)/stdlib/strtod.c \
$(LIBC_TOP_HALF_MUSL_SRC_DIR)/stdlib/wcstod.c

View File

@ -355,9 +355,11 @@ static int wprintf_core(FILE *f, const wchar_t *fmt, va_list *ap, union arg *nl_
sizeprefix[(t|32)-'a'], t);
switch (t|32) {
#if !defined(__wasilibc_printscan_no_floating_point)
case 'a': case 'e': case 'f': case 'g':
l = fprintf(f, charfmt, w, p, arg.f);
break;
#endif
case 'd': case 'i': case 'o': case 'u': case 'x': case 'p':
l = fprintf(f, charfmt, w, p, arg.i);
break;