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.
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include <float.h>
|
||||
#include <limits.h>
|
||||
#include <errno.h>
|
||||
#include <ctype.h>
|
||||
|
||||
#include "shgetc.h"
|
||||
#include "floatscan.h"
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user