Skip to content

Commit

Permalink
Removed archive description macros, moved those strings inline.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Mar 23, 2012
1 parent 0584117 commit 320b154
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 17 deletions.
2 changes: 1 addition & 1 deletion src/archiver_dir.c
Expand Up @@ -181,7 +181,7 @@ static int DIR_stat(dvoid *opaque, const char *name, int *exists,
const PHYSFS_ArchiveInfo __PHYSFS_ArchiveInfo_DIR =
{
"",
DIR_ARCHIVE_DESCRIPTION,
"Non-archive, direct filesystem I/O",
"Ryan C. Gordon <icculus@icculus.org>",
"http://icculus.org/physfs/",
};
Expand Down
2 changes: 1 addition & 1 deletion src/archiver_grp.c
Expand Up @@ -88,7 +88,7 @@ static void *GRP_openArchive(PHYSFS_Io *io, const char *name, int forWriting)
const PHYSFS_ArchiveInfo __PHYSFS_ArchiveInfo_GRP =
{
"GRP",
GRP_ARCHIVE_DESCRIPTION,
"Build engine Groupfile format",
"Ryan C. Gordon <icculus@icculus.org>",
"http://icculus.org/physfs/",
};
Expand Down
2 changes: 1 addition & 1 deletion src/archiver_hog.c
Expand Up @@ -94,7 +94,7 @@ static void *HOG_openArchive(PHYSFS_Io *io, const char *name, int forWriting)
const PHYSFS_ArchiveInfo __PHYSFS_ArchiveInfo_HOG =
{
"HOG",
HOG_ARCHIVE_DESCRIPTION,
"Descent I/II HOG file format",
"Bradley Bell <btb@icculus.org>",
"http://icculus.org/physfs/",
};
Expand Down
2 changes: 1 addition & 1 deletion src/archiver_lzma.c
Expand Up @@ -678,7 +678,7 @@ static int LZMA_stat(dvoid *opaque, const char *filename, int *exists,
const PHYSFS_ArchiveInfo __PHYSFS_ArchiveInfo_LZMA =
{
"7Z",
LZMA_ARCHIVE_DESCRIPTION,
"LZMA (7zip) format",
"Dennis Schridde <devurandom@gmx.net>",
"http://icculus.org/physfs/",
};
Expand Down
2 changes: 1 addition & 1 deletion src/archiver_mvl.c
Expand Up @@ -81,7 +81,7 @@ static void *MVL_openArchive(PHYSFS_Io *io, const char *name, int forWriting)
const PHYSFS_ArchiveInfo __PHYSFS_ArchiveInfo_MVL =
{
"MVL",
MVL_ARCHIVE_DESCRIPTION,
"Descent II Movielib format",
"Bradley Bell <btb@icculus.org>",
"http://icculus.org/physfs/",
};
Expand Down
2 changes: 1 addition & 1 deletion src/archiver_qpak.c
Expand Up @@ -550,7 +550,7 @@ static int QPAK_stat(dvoid *opaque, const char *filename, int *exists,
const PHYSFS_ArchiveInfo __PHYSFS_ArchiveInfo_QPAK =
{
"PAK",
QPAK_ARCHIVE_DESCRIPTION,
"Quake I/II format",
"Ryan C. Gordon <icculus@icculus.org>",
"http://icculus.org/physfs/",
};
Expand Down
2 changes: 1 addition & 1 deletion src/archiver_wad.c
Expand Up @@ -105,7 +105,7 @@ static void *WAD_openArchive(PHYSFS_Io *io, const char *name, int forWriting)
const PHYSFS_ArchiveInfo __PHYSFS_ArchiveInfo_WAD =
{
"WAD",
WAD_ARCHIVE_DESCRIPTION,
"DOOM engine format",
"Travis Wells <traviswells@mchsi.com>",
"http://www.3dmm2.com/doom/",
};
Expand Down
2 changes: 1 addition & 1 deletion src/archiver_zip.c
Expand Up @@ -1404,7 +1404,7 @@ static int ZIP_stat(dvoid *opaque, const char *filename, int *exists,
const PHYSFS_ArchiveInfo __PHYSFS_ArchiveInfo_ZIP =
{
"ZIP",
ZIP_ARCHIVE_DESCRIPTION,
"PkZip/WinZip/Info-Zip compatible",
"Ryan C. Gordon <icculus@icculus.org>",
"http://icculus.org/physfs/",
};
Expand Down
9 changes: 0 additions & 9 deletions src/physfs_internal.h
Expand Up @@ -118,15 +118,6 @@ void __PHYSFS_smallFree(void *ptr);
#define PHYSFS_SUPPORTS_ISO9660 0
#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" ... */
/* Opaque data for file and dir handlers... */
Expand Down

0 comments on commit 320b154

Please sign in to comment.