Skip to content
Permalink
Browse files
Progress toward complete implementation continues...
  • Loading branch information
icculus committed Jul 6, 2001
1 parent b7db289 commit c97f88fc338096d273420e3b0170fdcb720e264f
Showing with 314 additions and 165 deletions.
  1. +3 −1 Makefile
  2. +17 −7 dir.c
  3. +184 −127 physfs.c
  4. +83 −23 physfs_internal.h
  5. +16 −0 unix.c
  6. +11 −7 zip.c
@@ -173,7 +173,7 @@ $(BINDIR)/%.o: $(SRCDIR)/%.c
$(BINDIR)/%.o: $(SRCDIR)/%.asm
$(ASM) $(ASMFLAGS) -o $@ $<

.PHONY: all clean listobjs
.PHONY: all clean distclean listobjs

all: $(BINDIR) $(MAINLIB)

@@ -183,6 +183,8 @@ $(MAINLIB) : $(BINDIR) $(MAINOBJS)
$(BINDIR):
mkdir -p $(BINDIR)

distclean: clean

clean:
rm -f $(CLEANUP)
rm -rf $(BINDIR)
24 dir.c
@@ -12,11 +12,8 @@
#define __PHYSICSFS_INTERNAL__
#include "physfs_internal.h"

/* template for filehandles. */
const FileHandle __PHYSFS_FileHandle_DIR =
static const FileFunctions __PHYSFS_FileHandle_DIR =
{
NULL, /* opaque */
NULL, /* dirReader */
DIR_read, /* read() method */
NULL, /* write() method */
DIR_eof, /* eof() method */
@@ -25,15 +22,28 @@ const FileHandle __PHYSFS_FileHandle_DIR =
DIR_close, /* close() method */
};

/* template for directories. */
const DirReader __PHYSFS_DirReader_DIR =

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 =
{
NULL, /* opaque */
DIR_isArchive, /* isArchive() method */
DIR_openArchive, /* openArchive() method */
DIR_enumerate, /* enumerateFiles() method */
DIR_isDirectory, /* isDirectory() method */
DIR_isSymLink, /* isSymLink() method */
DIR_isOpenable, /* isOpenable() method */
DIR_openRead, /* openRead() method */
DIR_openWrite, /* openWrite() method */
DIR_dirClose, /* close() method */
};

0 comments on commit c97f88f

Please sign in to comment.