summaryrefslogtreecommitdiff
path: root/src/internal
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-11-08 16:39:41 -0500
committerRich Felker <dalias@aerifal.cx>2012-11-08 16:39:41 -0500
commit835f9f950e2f6059532bd9ab9857a856ed21a4fd (patch)
tree496ea32dceca7e6573a534dfcfab26e322f0a0c6 /src/internal
parent1e717ea3d2a864e00e507f1a70a892c551955f1b (diff)
downloadmusl-835f9f950e2f6059532bd9ab9857a856ed21a4fd.tar.gz
clean up stdio_impl.h
this header evolved to facilitate the extremely lazy practice of omitting explicit includes of the necessary headers in individual stdio source files; not only was this sloppy, but it also increased build time. now, stdio_impl.h is only including the headers it needs for its own use; any further headers needed by source files are included directly where needed.
Diffstat (limited to 'src/internal')
-rw-r--r--src/internal/floatscan.c1
-rw-r--r--src/internal/intscan.c1
-rw-r--r--src/internal/stdio_impl.h17
3 files changed, 2 insertions, 17 deletions
diff --git a/src/internal/floatscan.c b/src/internal/floatscan.c
index 08251213..f6e331d4 100644
--- a/src/internal/floatscan.c
+++ b/src/internal/floatscan.c
@@ -4,6 +4,7 @@
#include <float.h>
#include <limits.h>
#include <errno.h>
+#include <ctype.h>
#include "shgetc.h"
#include "floatscan.h"
diff --git a/src/internal/intscan.c b/src/internal/intscan.c
index 178cdf0d..69350efa 100644
--- a/src/internal/intscan.c
+++ b/src/internal/intscan.c
@@ -1,5 +1,6 @@
#include <limits.h>
#include <errno.h>
+#include <ctype.h>
#include "shgetc.h"
/* Lookup table for digit values. -1==255>=36 -> invalid */
diff --git a/src/internal/stdio_impl.h b/src/internal/stdio_impl.h
index e9045f27..c9d20fac 100644
--- a/src/internal/stdio_impl.h
+++ b/src/internal/stdio_impl.h
@@ -2,23 +2,6 @@
#define _STDIO_IMPL_H
#include <stdio.h>
-#include <stdlib.h>
-#include <stddef.h>
-#include <stdarg.h>
-#include <string.h>
-#include <inttypes.h>
-#include <wchar.h>
-#include <unistd.h>
-#include <fcntl.h>
-#include <limits.h>
-#include <errno.h>
-#include <termios.h>
-#include <sys/ioctl.h>
-#include <ctype.h>
-#include <sys/wait.h>
-#include <math.h>
-#include <float.h>
-#include <sys/uio.h>
#include "syscall.h"
#include "libc.h"