فهرست منبع

Removed archive description macros, moved those strings inline.

Ryan C. Gordon 14 سال پیش
والد
کامیت
320b154a11
9فایلهای تغییر یافته به همراه8 افزوده شده و 17 حذف شده
  1. 1 1
      src/archiver_dir.c
  2. 1 1
      src/archiver_grp.c
  3. 1 1
      src/archiver_hog.c
  4. 1 1
      src/archiver_lzma.c
  5. 1 1
      src/archiver_mvl.c
  6. 1 1
      src/archiver_qpak.c
  7. 1 1
      src/archiver_wad.c
  8. 1 1
      src/archiver_zip.c
  9. 0 9
      src/physfs_internal.h

+ 1 - 1
src/archiver_dir.c

@@ -181,7 +181,7 @@ static int DIR_stat(dvoid *opaque, const char *name, int *exists,
 const PHYSFS_ArchiveInfo __PHYSFS_ArchiveInfo_DIR =
 const PHYSFS_ArchiveInfo __PHYSFS_ArchiveInfo_DIR =
 {
 {
     "",
     "",
-    DIR_ARCHIVE_DESCRIPTION,
+    "Non-archive, direct filesystem I/O",
     "Ryan C. Gordon <icculus@icculus.org>",
     "Ryan C. Gordon <icculus@icculus.org>",
     "http://icculus.org/physfs/",
     "http://icculus.org/physfs/",
 };
 };

+ 1 - 1
src/archiver_grp.c

@@ -88,7 +88,7 @@ static void *GRP_openArchive(PHYSFS_Io *io, const char *name, int forWriting)
 const PHYSFS_ArchiveInfo __PHYSFS_ArchiveInfo_GRP =
 const PHYSFS_ArchiveInfo __PHYSFS_ArchiveInfo_GRP =
 {
 {
     "GRP",
     "GRP",
-    GRP_ARCHIVE_DESCRIPTION,
+    "Build engine Groupfile format",
     "Ryan C. Gordon <icculus@icculus.org>",
     "Ryan C. Gordon <icculus@icculus.org>",
     "http://icculus.org/physfs/",
     "http://icculus.org/physfs/",
 };
 };

+ 1 - 1
src/archiver_hog.c

@@ -94,7 +94,7 @@ static void *HOG_openArchive(PHYSFS_Io *io, const char *name, int forWriting)
 const PHYSFS_ArchiveInfo __PHYSFS_ArchiveInfo_HOG =
 const PHYSFS_ArchiveInfo __PHYSFS_ArchiveInfo_HOG =
 {
 {
     "HOG",
     "HOG",
-    HOG_ARCHIVE_DESCRIPTION,
+    "Descent I/II HOG file format",
     "Bradley Bell <btb@icculus.org>",
     "Bradley Bell <btb@icculus.org>",
     "http://icculus.org/physfs/",
     "http://icculus.org/physfs/",
 };
 };

+ 1 - 1
src/archiver_lzma.c

@@ -678,7 +678,7 @@ static int LZMA_stat(dvoid *opaque, const char *filename, int *exists,
 const PHYSFS_ArchiveInfo __PHYSFS_ArchiveInfo_LZMA =
 const PHYSFS_ArchiveInfo __PHYSFS_ArchiveInfo_LZMA =
 {
 {
     "7Z",
     "7Z",
-    LZMA_ARCHIVE_DESCRIPTION,
+    "LZMA (7zip) format",
     "Dennis Schridde <devurandom@gmx.net>",
     "Dennis Schridde <devurandom@gmx.net>",
     "http://icculus.org/physfs/",
     "http://icculus.org/physfs/",
 };
 };

+ 1 - 1
src/archiver_mvl.c

@@ -81,7 +81,7 @@ static void *MVL_openArchive(PHYSFS_Io *io, const char *name, int forWriting)
 const PHYSFS_ArchiveInfo __PHYSFS_ArchiveInfo_MVL =
 const PHYSFS_ArchiveInfo __PHYSFS_ArchiveInfo_MVL =
 {
 {
     "MVL",
     "MVL",
-    MVL_ARCHIVE_DESCRIPTION,
+    "Descent II Movielib format",
     "Bradley Bell <btb@icculus.org>",
     "Bradley Bell <btb@icculus.org>",
     "http://icculus.org/physfs/",
     "http://icculus.org/physfs/",
 };
 };

+ 1 - 1
src/archiver_qpak.c

@@ -550,7 +550,7 @@ static int QPAK_stat(dvoid *opaque, const char *filename, int *exists,
 const PHYSFS_ArchiveInfo __PHYSFS_ArchiveInfo_QPAK =
 const PHYSFS_ArchiveInfo __PHYSFS_ArchiveInfo_QPAK =
 {
 {
     "PAK",
     "PAK",
-    QPAK_ARCHIVE_DESCRIPTION,
+    "Quake I/II format",
     "Ryan C. Gordon <icculus@icculus.org>",
     "Ryan C. Gordon <icculus@icculus.org>",
     "http://icculus.org/physfs/",
     "http://icculus.org/physfs/",
 };
 };

+ 1 - 1
src/archiver_wad.c

@@ -105,7 +105,7 @@ static void *WAD_openArchive(PHYSFS_Io *io, const char *name, int forWriting)
 const PHYSFS_ArchiveInfo __PHYSFS_ArchiveInfo_WAD =
 const PHYSFS_ArchiveInfo __PHYSFS_ArchiveInfo_WAD =
 {
 {
     "WAD",
     "WAD",
-    WAD_ARCHIVE_DESCRIPTION,
+    "DOOM engine format",
     "Travis Wells <traviswells@mchsi.com>",
     "Travis Wells <traviswells@mchsi.com>",
     "http://www.3dmm2.com/doom/",
     "http://www.3dmm2.com/doom/",
 };
 };

+ 1 - 1
src/archiver_zip.c

@@ -1404,7 +1404,7 @@ static int ZIP_stat(dvoid *opaque, const char *filename, int *exists,
 const PHYSFS_ArchiveInfo __PHYSFS_ArchiveInfo_ZIP =
 const PHYSFS_ArchiveInfo __PHYSFS_ArchiveInfo_ZIP =
 {
 {
     "ZIP",
     "ZIP",
-    ZIP_ARCHIVE_DESCRIPTION,
+    "PkZip/WinZip/Info-Zip compatible",
     "Ryan C. Gordon <icculus@icculus.org>",
     "Ryan C. Gordon <icculus@icculus.org>",
     "http://icculus.org/physfs/",
     "http://icculus.org/physfs/",
 };
 };

+ 0 - 9
src/physfs_internal.h

@@ -118,15 +118,6 @@ void __PHYSFS_smallFree(void *ptr);
 #define PHYSFS_SUPPORTS_ISO9660 0
 #define PHYSFS_SUPPORTS_ISO9660 0
 #endif
 #endif
 
 
-#define DIR_ARCHIVE_DESCRIPTION  "Non-archive, direct filesystem I/O"
-#define GRP_ARCHIVE_DESCRIPTION  "Build engine Groupfile format"
-#define HOG_ARCHIVE_DESCRIPTION  "Descent I/II HOG file format"
-#define MVL_ARCHIVE_DESCRIPTION  "Descent II Movielib format"
-#define QPAK_ARCHIVE_DESCRIPTION "Quake I/II format"
-#define ZIP_ARCHIVE_DESCRIPTION  "PkZip/WinZip/Info-Zip compatible"
-#define WAD_ARCHIVE_DESCRIPTION  "DOOM engine format"
-#define LZMA_ARCHIVE_DESCRIPTION "LZMA (7zip) format"
-
 
 
 /* !!! FIXME: find something better than "dvoid" and "fvoid" ... */
 /* !!! FIXME: find something better than "dvoid" and "fvoid" ... */
 /* Opaque data for file and dir handlers... */
 /* Opaque data for file and dir handlers... */