Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Progress toward complete implementation continues...
  • Loading branch information
icculus committed Jul 6, 2001
1 parent b7db289 commit c97f88f
Show file tree
Hide file tree
Showing 6 changed files with 314 additions and 165 deletions.
4 changes: 3 additions & 1 deletion Makefile
Expand Up @@ -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)

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

distclean: clean

clean:
rm -f $(CLEANUP)
rm -rf $(BINDIR)
Expand Down
24 changes: 17 additions & 7 deletions dir.c
Expand Up @@ -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 */
Expand All @@ -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 */
};

Expand Down

0 comments on commit c97f88f

Please sign in to comment.