aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/stdio/svfiwprintf.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2022-02-25 23:17:42 -0500
committerMike Frysinger <vapier@gentoo.org>2022-02-28 19:04:11 -0500
commit28724b2f6257ef982efc17ed288ca1ee4b734111 (patch)
tree3c0c1c4350cd012f672edb2512c653e2bd5d7363 /newlib/libc/stdio/svfiwprintf.c
parentec5ea6efaebae94f0b37d88b6f1cdc5d24ef878a (diff)
downloadnewlib-28724b2f6257ef982efc17ed288ca1ee4b734111.zip
newlib-28724b2f6257ef982efc17ed288ca1ee4b734111.tar.gz
newlib-28724b2f6257ef982efc17ed288ca1ee4b734111.tar.bz2
newlib: libc: move stdio multiplex logic from build to source files
Rather than define per-object rules in the Makefile, have small files that define & include the right content. This simplifies the build rules, and makes understanding the source a little easier (imo) as it makes all the subdirs behave the same: you have 1 source file and it produces 1 object. It's also about the same amount of boiler plate, without having to define custom build rules that can fall out of sync. Some of these rules were already unnecessary as they were compiling a single source file into the same named object w/out custom flags, and Automake handles that for us completely. This will also be important as we merge the libc.a build into the top dir since it relies on a single flat list of objects for overrides. Also take the opportunity to clean up the unnecessary header deps in here. Automake provides dependency generation for free now.
Diffstat (limited to 'newlib/libc/stdio/svfiwprintf.c')
-rw-r--r--newlib/libc/stdio/svfiwprintf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/newlib/libc/stdio/svfiwprintf.c b/newlib/libc/stdio/svfiwprintf.c
new file mode 100644
index 0000000..a9df2ca
--- /dev/null
+++ b/newlib/libc/stdio/svfiwprintf.c
@@ -0,0 +1,3 @@
+#define INTEGER_ONLY
+#define STRING_ONLY
+#include "vfwprintf.c"