Removed archive description macros, moved those strings inline.

This commit is contained in:
Ryan C. Gordon 2012-03-23 00:55:56 -04:00
parent 0584117f85
commit 320b154a11
9 changed files with 8 additions and 17 deletions

View File

@ -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/",
}; };

View File

@ -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/",
}; };

View File

@ -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/",
}; };

View File

@ -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/",
}; };

View File

@ -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/",
}; };

View File

@ -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/",
}; };

View File

@ -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/",
}; };

View File

@ -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/",
}; };

View File

@ -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... */