From 517e71000218f91fa6d479887f2f85514f1e80b7 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sat, 7 Jul 2001 08:23:40 +0000 Subject: [PATCH] Moved to subdir --- dir.c | 64 ---------------------------------------------------------- unix.c | 63 --------------------------------------------------------- zip.c | 54 ------------------------------------------------- 3 files changed, 181 deletions(-) delete mode 100644 dir.c delete mode 100644 unix.c delete mode 100644 zip.c diff --git a/dir.c b/dir.c deleted file mode 100644 index 54e7b3b..0000000 --- a/dir.c +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Standard directory I/O support routines for PhysicsFS. - * - * Please see the file LICENSE in the source's root directory. - * - * This file written by Ryan C. Gordon. - */ - -#include -#include - -#define __PHYSICSFS_INTERNAL__ -#include "physfs_internal.h" - -static const FileFunctions __PHYSFS_FileHandle_DIR = -{ - DIR_read, /* read() method */ - NULL, /* write() method */ - DIR_eof, /* eof() method */ - DIR_tell, /* tell() method */ - DIR_seek, /* seek() method */ - DIR_close, /* close() method */ -}; - - -static const FileFunctions __PHYSFS_FileHandle_DIRW = -{ - NULL, /* read() method */ - DIR_write, /* write() method */ - DIR_eof, /* eof() method */ - DIR_tell, /* tell() method */ - DIR_seek, /* seek() method */ - DIR_close, /* close() method */ -}; - - -const DirFunctions __PHYSFS_DirFunctions_DIR = -{ - DIR_isArchive, /* isArchive() method */ - DIR_openArchive, /* openArchive() method */ - DIR_enumerate, /* enumerateFiles() method */ - DIR_exists, /* exists() method */ - DIR_isDirectory, /* isDirectory() method */ - DIR_isSymLink, /* isSymLink() method */ - DIR_openRead, /* openRead() method */ - DIR_openWrite, /* openWrite() method */ - DIR_openAppend, /* openAppend() method */ - DIR_remove, /* remove() method */ - DIR_mkdir, /* mkdir() method */ - DIR_close, /* close() method */ -}; - - -/* This doesn't get listed, since it's technically not an archive... */ -#if 0 -const __PHYSFS_ArchiveInfo __PHYSFS_ArchiveInfo_DIR = -{ - "DIR", - "non-archive directory I/O" -}; -#endif - -/* end of dir.c ... */ - diff --git a/unix.c b/unix.c deleted file mode 100644 index 487ba3c..0000000 --- a/unix.c +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Unix support routines for PhysicsFS. - * - * Please see the file LICENSE in the source's root directory. - * - * This file written by Ryan C. Gordon. - */ - -#include -#include -#include - -#define __PHYSICSFS_INTERNAL__ -#include "physfs_internal.h" - - -const char *__PHYSFS_platformDirSeparator = "/"; - -char **__PHYSFS_platformDetectAvailableCDs(void) -{ -} /* __PHYSFS_detectAvailableCDs */ - - -char *__PHYSFS_platformCalcBaseDir(char *argv0) -{ - return(NULL); -} /* __PHYSFS_platformCalcBaseDir */ - - -char *__PHYSFS_platformGetUserName(void) -{ -} /* __PHYSFS_platformGetUserName */ - - -char *__PHYSFS_platformGetUserDir(void) -{ -} /* __PHYSFS_platformGetUserDir */ - - -int __PHYSFS_platformGetThreadID(void) -{ - return((int) pthread_self()); -} /* __PHYSFS_platformGetThreadID */ - - -int __PHYSFS_platformStricmp(const char *str1, const char *str2) -{ - return(strcasecmp(str1, str2)); -} /* __PHYSFS_platformStricmp */ - - -int __PHYSFS_platformIsSymlink(const char *fname) -{ -} /* __PHYSFS_platformIsSymlink */ - - -int __PHYSFS_platformIsDirectory(const char *fname) -{ -} /* __PHYSFS_platformIsDirectory */ - - -/* end of unix.c ... */ - diff --git a/zip.c b/zip.c deleted file mode 100644 index c1f5d87..0000000 --- a/zip.c +++ /dev/null @@ -1,54 +0,0 @@ -/* - * ZIP support routines for PhysicsFS. - * - * Please see the file LICENSE in the source's root directory. - * - * This file written by Ryan C. Gordon. - */ - -#include -#include - -#define __PHYSICSFS_INTERNAL__ -#include "physfs_internal.h" - -#if (!defined PHYSFS_SUPPORTS_ZIP) -#error PHYSFS_SUPPORTS_ZIP must be defined. -#endif - - -static const FileFunctions __PHYSFS_FileHandle_ZIP = -{ - ZIP_read, /* read() method */ - NULL, /* write() method */ - ZIP_eof, /* eof() method */ - ZIP_tell, /* tell() method */ - ZIP_seek, /* seek() method */ - ZIP_close, /* close() method */ -}; - - -const DirFunctions __PHYSFS_DirFunctions_ZIP = -{ - ZIP_isArchive, /* isArchive() method */ - ZIP_openArchive, /* openArchive() method */ - ZIP_enumerate, /* enumerateFiles() method */ - ZIP_exists, /* exists() method */ - ZIP_isDirectory, /* isDirectory() method */ - ZIP_isSymLink, /* isSymLink() method */ - ZIP_openRead, /* openRead() method */ - NULL, /* openWrite() method */ - NULL, /* openAppend() method */ - NULL, /* remove() method */ - NULL, /* mkdir() method */ - ZIP_close, /* close() method */ -}; - -const __PHYSFS_ArchiveInfo __PHYSFS_ArchiveInfo_ZIP = -{ - "ZIP", - "PkZip/WinZip/Info-Zip compatible" -}; - -/* end of zip.c ... */ -