Cleaned up some #includes.
authorRyan C. Gordon <icculus@icculus.org>
Mon, 06 Sep 2010 19:35:01 -0400
changeset 1129 d81afe4b0a97
parent 1128 067d8e76261e
child 1130 2db92d026ec6
Cleaned up some #includes.
src/archiver_dir.c
src/archiver_grp.c
src/archiver_hog.c
src/archiver_iso9660.c
src/archiver_lzma.c
src/archiver_mvl.c
src/archiver_qpak.c
src/archiver_unpacked.c
src/archiver_wad.c
src/archiver_zip.c
src/physfs.c
src/physfs_byteorder.c
src/physfs_internal.h
src/physfs_unicode.c
src/platform_beos.cpp
src/platform_os2.c
src/platform_pocketpc.c
src/platform_posix.c
src/platform_unix.c
src/platform_windows.c
--- a/src/archiver_dir.c	Mon Sep 06 02:50:29 2010 -0400
+++ b/src/archiver_dir.c	Mon Sep 06 19:35:01 2010 -0400
@@ -6,11 +6,6 @@
  *  This file written by Ryan C. Gordon.
  */
 
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include "physfs.h"
-
 #define __PHYSICSFS_INTERNAL__
 #include "physfs_internal.h"
 
--- a/src/archiver_grp.c	Mon Sep 06 02:50:29 2010 -0400
+++ b/src/archiver_grp.c	Mon Sep 06 19:35:01 2010 -0400
@@ -26,11 +26,6 @@
 
 #if (defined PHYSFS_SUPPORTS_GRP)
 
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include "physfs.h"
-
 #define __PHYSICSFS_INTERNAL__
 #include "physfs_internal.h"
 
--- a/src/archiver_hog.c	Mon Sep 06 02:50:29 2010 -0400
+++ b/src/archiver_hog.c	Mon Sep 06 19:35:01 2010 -0400
@@ -31,11 +31,6 @@
 
 #if (defined PHYSFS_SUPPORTS_HOG)
 
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include "physfs.h"
-
 #define __PHYSICSFS_INTERNAL__
 #include "physfs_internal.h"
 
--- a/src/archiver_iso9660.c	Mon Sep 06 02:50:29 2010 -0400
+++ b/src/archiver_iso9660.c	Mon Sep 06 19:35:01 2010 -0400
@@ -29,8 +29,6 @@
 #define __PHYSICSFS_INTERNAL__
 #include "physfs_internal.h"
 
-#include <stdio.h>
-#include <string.h>
 #include <time.h>
 
 /* cache files smaller than this completely in memory */
--- a/src/archiver_lzma.c	Mon Sep 06 02:50:29 2010 -0400
+++ b/src/archiver_lzma.c	Mon Sep 06 19:35:01 2010 -0400
@@ -9,12 +9,6 @@
 
 #if (defined PHYSFS_SUPPORTS_7Z)
 
-#include <stdlib.h>
-#include <string.h>
-#include <time.h>
-
-#include "physfs.h"
-
 #define __PHYSICSFS_INTERNAL__
 #include "physfs_internal.h"
 
--- a/src/archiver_mvl.c	Mon Sep 06 02:50:29 2010 -0400
+++ b/src/archiver_mvl.c	Mon Sep 06 19:35:01 2010 -0400
@@ -29,11 +29,6 @@
 
 #if (defined PHYSFS_SUPPORTS_MVL)
 
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include "physfs.h"
-
 #define __PHYSICSFS_INTERNAL__
 #include "physfs_internal.h"
 
--- a/src/archiver_qpak.c	Mon Sep 06 02:50:29 2010 -0400
+++ b/src/archiver_qpak.c	Mon Sep 06 19:35:01 2010 -0400
@@ -31,11 +31,6 @@
 
 #if (defined PHYSFS_SUPPORTS_QPAK)
 
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include "physfs.h"
-
 #define __PHYSICSFS_INTERNAL__
 #include "physfs_internal.h"
 
--- a/src/archiver_unpacked.c	Mon Sep 06 02:50:29 2010 -0400
+++ b/src/archiver_unpacked.c	Mon Sep 06 19:35:01 2010 -0400
@@ -14,11 +14,6 @@
  *  This file written by Ryan C. Gordon.
  */
 
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include "physfs.h"
-
 #define __PHYSICSFS_INTERNAL__
 #include "physfs_internal.h"
 
--- a/src/archiver_wad.c	Mon Sep 06 02:50:29 2010 -0400
+++ b/src/archiver_wad.c	Mon Sep 06 19:35:01 2010 -0400
@@ -44,11 +44,6 @@
 
 #if (defined PHYSFS_SUPPORTS_WAD)
 
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include "physfs.h"
-
 #define __PHYSICSFS_INTERNAL__
 #include "physfs_internal.h"
 
--- a/src/archiver_zip.c	Mon Sep 06 02:50:29 2010 -0400
+++ b/src/archiver_zip.c	Mon Sep 06 19:35:01 2010 -0400
@@ -9,14 +9,11 @@
 
 #if (defined PHYSFS_SUPPORTS_ZIP)
 
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
 #ifndef _WIN32_WCE
 #include <errno.h>
 #include <time.h>
 #endif
-#include "physfs.h"
+
 #include "zlib.h"
 
 #define __PHYSICSFS_INTERNAL__
--- a/src/physfs.c	Mon Sep 06 02:50:29 2010 -0400
+++ b/src/physfs.c	Mon Sep 06 19:35:01 2010 -0400
@@ -10,11 +10,6 @@
 
 /* !!! FIXME: ERR_PAST_EOF shouldn't trigger for reads. Just return zero. */
 
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include "physfs.h"
-
 #define __PHYSICSFS_INTERNAL__
 #include "physfs_internal.h"
 
--- a/src/physfs_byteorder.c	Mon Sep 06 02:50:29 2010 -0400
+++ b/src/physfs_byteorder.c	Mon Sep 06 19:35:01 2010 -0400
@@ -8,9 +8,6 @@
  *  This file written by Ryan C. Gordon.
  */
 
-#include <stdio.h>
-#include <stdlib.h>
-
 #define __PHYSICSFS_INTERNAL__
 #include "physfs_internal.h"
 
--- a/src/physfs_internal.h	Mon Sep 06 02:50:29 2010 -0400
+++ b/src/physfs_internal.h	Mon Sep 06 19:35:01 2010 -0400
@@ -16,7 +16,10 @@
 
 #include "physfs.h"
 
-#include <stdlib.h>  /* make sure NULL is defined... */
+/* The holy trinity. */
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
 
 #ifdef HAVE_ASSERT_H
 #include <assert.h>
@@ -29,11 +32,6 @@
 #include <malloc.h>
 #endif
 
-/* !!! FIXME: if HAVE_ALLOCA_H would be good, too. */
-#if sun
-#include <alloca.h>
-#endif
-
 #if defined(__sun) || defined(sun)
 #include <alloca.h>
 #endif
--- a/src/physfs_unicode.c	Mon Sep 06 02:50:29 2010 -0400
+++ b/src/physfs_unicode.c	Mon Sep 06 19:35:01 2010 -0400
@@ -1,5 +1,3 @@
-#include "physfs.h"
-
 #define __PHYSICSFS_INTERNAL__
 #include "physfs_internal.h"
 
--- a/src/platform_beos.cpp	Mon Sep 06 02:50:29 2010 -0400
+++ b/src/platform_beos.cpp	Mon Sep 06 19:35:01 2010 -0400
@@ -35,9 +35,6 @@
 #include <be/support/Locker.h>
 #endif
 
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
 #include <errno.h>
 #include <unistd.h>
 
--- a/src/platform_os2.c	Mon Sep 06 02:50:29 2010 -0400
+++ b/src/platform_os2.c	Mon Sep 06 19:35:01 2010 -0400
@@ -22,10 +22,7 @@
 #define INCL_DOSMISC
 #include <os2.h>
 
-#include <stdio.h>
-#include <stdlib.h>
 #include <errno.h>
-#include <string.h>
 #include <time.h>
 #include <ctype.h>
 
--- a/src/platform_pocketpc.c	Mon Sep 06 02:50:29 2010 -0400
+++ b/src/platform_pocketpc.c	Mon Sep 06 19:35:01 2010 -0400
@@ -11,7 +11,6 @@
 
 #ifdef PHYSFS_PLATFORM_POCKETPC
 
-#include <stdio.h>
 #include <windows.h>
 
 #include "physfs_internal.h"
--- a/src/platform_posix.c	Mon Sep 06 02:50:29 2010 -0400
+++ b/src/platform_posix.c	Mon Sep 06 19:35:01 2010 -0400
@@ -11,9 +11,6 @@
 
 #ifdef PHYSFS_PLATFORM_POSIX
 
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
 #include <unistd.h>
 #include <ctype.h>
 #include <sys/types.h>
--- a/src/platform_unix.c	Mon Sep 06 02:50:29 2010 -0400
+++ b/src/platform_unix.c	Mon Sep 06 19:35:01 2010 -0400
@@ -11,9 +11,6 @@
 
 #ifdef PHYSFS_PLATFORM_UNIX
 
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
 #include <ctype.h>
 #include <unistd.h>
 #include <sys/types.h>
--- a/src/platform_windows.c	Mon Sep 06 02:50:29 2010 -0400
+++ b/src/platform_windows.c	Mon Sep 06 19:35:01 2010 -0400
@@ -17,9 +17,6 @@
 #endif
 
 #include <windows.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
 #include <errno.h>
 #include <ctype.h>
 #include <time.h>