Ryan C. Gordon
2362abe855
Some minor (albeit incomplete) MingW fixes.
2005-09-06 06:25:48 +00:00
Ryan C. Gordon
64599213f1
Don't use size_t in physfs.h, since it relies on C runtime headers.
2005-09-06 06:24:42 +00:00
Ryan C. Gordon
7b4181684e
Patched to compile again on BeOS.
2005-07-25 01:38:07 +00:00
Ryan C. Gordon
49ebc305ac
More minor OS/2 tweaks.
2005-07-23 22:01:03 +00:00
Ryan C. Gordon
507b099d5d
Patched to compile on OS/2 again.
2005-07-21 18:10:17 +00:00
Ryan C. Gordon
e9cf90feda
Ehh...I lied. Reverting change.
2005-03-16 12:07:10 +00:00
Ryan C. Gordon
5c7308cdd3
Whoops, this goes here.
2005-03-16 12:06:18 +00:00
Ryan C. Gordon
12684647dc
MacOS Classic fixes and MPW support (thanks, Chris!).
2005-03-16 11:42:54 +00:00
Ryan C. Gordon
3a0e6fa051
Builds on Mac Classic again.
2005-03-14 12:05:07 +00:00
Ryan C. Gordon
d840403c1c
All memory management now goes through allocation hooks instead of directly to
...
C runtime malloc/realloc/free...
2005-03-14 11:49:30 +00:00
Ryan C. Gordon
389a4d826a
Cleaned up some minor bloat with my new evil GOTO_*_MACRO macros.
2005-03-13 03:33:11 +00:00
Ryan C. Gordon
9f9800928d
Fixed unix.c to compile again on MacOS X.
2005-03-13 03:18:18 +00:00
Ryan C. Gordon
ed5de27c73
Fixed incorrect comment.
2005-02-15 22:25:03 +00:00
Ryan C. Gordon
c2765f8571
Added callback APIs and ripped up the internals everywhere to use them.
2004-09-29 06:09:29 +00:00
Ryan C. Gordon
27f82cc5e2
Changed vars named "FileHandle" to "Handle" to not cause confusion with
...
new type in physfs.c ...
2004-09-26 13:03:00 +00:00
Ryan C. Gordon
94759513d9
Cleaned up archiver interface to not deal with DirHandles anymore,
...
which simplifies things, removes some responsibility and code
duplication from the archivers, and trims some malloc pressure.
Also ripped up the allocation hook code a little. We'll try to screw
with memory locking later, since it makes everything ugly and
complex. Oh well.
2004-09-26 00:25:04 +00:00
Ryan C. Gordon
c0acfc0118
Initial structure for replacable allocator work.
2004-09-23 06:45:36 +00:00
Ryan C. Gordon
0cc3dea44f
Removed more .cvsignore files from Subversion repository.
2004-09-23 03:33:17 +00:00
Ryan C. Gordon
24c8651f7f
Patches to get this building on Mac Classic again.
2003-12-29 08:50:21 +00:00
Ryan C. Gordon
ffb2e6ca45
Fixed search-and-replace fuckup (thanks, Brian!).
2003-12-22 17:12:00 +00:00
Ryan C. Gordon
9ac33cdcbe
Fixed Win32 seeking on > 2gig files, other Cygwin issues.
2003-12-08 12:37:58 +00:00
Ryan C. Gordon
1822399aec
Patched to compile on OS/2.
2003-11-11 14:08:32 +00:00
Ryan C. Gordon
09ef260209
Added internal function __PHYSFS_platformStrnicmp().
2003-11-09 20:59:07 +00:00
Ryan C. Gordon
f4309f51e8
Tabs-to-spaces patch by James Turk.
2003-07-20 21:08:24 +00:00
Ryan C. Gordon
01b8809162
Rewrote MacOSX/Darwin CD detection to use IOKit, for accurate results.
2003-05-24 03:36:36 +00:00
Ryan C. Gordon
8dbc9bf877
Fixed crash if PHYSFS_init(NULL) is used...
2003-05-22 04:01:19 +00:00
Ryan C. Gordon
b50342ad13
PocketPC fixes (thanks, David Hedbor!)
2003-05-18 07:52:28 +00:00
Ryan C. Gordon
fbbaf19a4f
Minor strcasecmp optimization.
2003-03-30 20:46:45 +00:00
Ryan C. Gordon
3a479b6cd8
Now compiles on CodeWarrior 6 for MacOS Classic again.
2003-01-31 04:07:48 +00:00
Ryan C. Gordon
8701e4d98d
Added hack for OSX bundles, from Eric Wing.
2003-01-04 23:24:50 +00:00
Ryan C. Gordon
2193cd81b7
Hack to make this compile with Mingw32.
2002-12-11 15:56:53 +00:00
Ryan C. Gordon
c79285af0e
Minor fix for odd PATH entries.
2002-11-30 04:50:49 +00:00
Ryan C. Gordon
9d82110b57
Some cleanups for PocketPC port.
2002-11-22 06:24:10 +00:00
Ryan C. Gordon
7d08cd6232
Initial add.
2002-11-22 06:17:59 +00:00
Ryan C. Gordon
edfd5082b9
Removed a FIXME.
2002-08-28 07:56:14 +00:00
Ryan C. Gordon
593db4b13b
Took out a FIXME comment (decided it was a safe operation anyhow).
2002-08-21 23:34:18 +00:00
Ryan C. Gordon
1f5b571be7
Bunch of tedious corrections, optimizations, and cleanups.
2002-08-21 02:59:15 +00:00
Ryan C. Gordon
9852dec8eb
Attempt to fix pthread-to-ui64 cast issue.
2002-08-09 19:47:06 +00:00
Ryan C. Gordon
721d7395b7
Fixed typo.
2002-08-01 20:22:27 +00:00
Ryan C. Gordon
55afcada59
Updated.
2002-07-30 05:43:27 +00:00
Ryan C. Gordon
d701627335
Patched memory leaks (thanks, Valgrind!)
2002-07-29 06:18:58 +00:00
Ryan C. Gordon
42be0046aa
Natural language #defines and build system support.
2002-07-28 21:03:27 +00:00
Ryan C. Gordon
286ce8f00e
Now returns human-readable error messages when possible. Minor fix in
...
__PHYSFS_platformClose() and other tweaks.
2002-07-28 18:02:55 +00:00
Ryan C. Gordon
d302b1e169
Minor error string correction.
2002-07-28 18:01:45 +00:00
Ryan C. Gordon
5aae2b749a
Determines correct case for basedir.
2002-07-28 04:02:06 +00:00
Ryan C. Gordon
e6e26f58bf
Lots of fixes...seems to be fully functional, now.
2002-07-27 22:41:58 +00:00
Ryan C. Gordon
ac74982b7a
Minor patch.
2002-07-27 06:49:36 +00:00
Ryan C. Gordon
ece998dd3a
Fixed basedir/userdir calculation.
2002-07-27 06:38:28 +00:00
Ryan C. Gordon
2580f1460d
Added platform/os2.c to build system.
2002-07-27 06:28:45 +00:00
Ryan C. Gordon
a83a9c81c6
Patched to compile...works a little.
2002-07-27 06:26:06 +00:00
Ryan C. Gordon
021752e953
Initial add.
2002-07-27 01:27:19 +00:00
Ryan C. Gordon
0c05876240
Whoops; the pthread-disabling condition was flipped. Fixed.
2002-07-25 23:22:29 +00:00
Ryan C. Gordon
69859a7bd9
Minor cleanups.
2002-07-25 21:52:07 +00:00
Ryan C. Gordon
2b0cecee7c
First step towards getting __PHYSFS_platformGetThreadID() to work universally.
2002-07-25 17:42:21 +00:00
Ryan C. Gordon
cdac19f131
Stub code for platforms without functional pthreads.
2002-07-25 17:13:03 +00:00
Ryan C. Gordon
1ce70462bd
Can now disable CD-ROM code on Unix systems at build time if need be. The
...
configure option is not exposed, but the configure script can check this
on a system by system basis.
2002-07-25 05:21:00 +00:00
Ryan C. Gordon
5b55a52af7
Changed enumeration code to use __PHYSFS_addToLinkedStringList().
2002-07-23 07:46:36 +00:00
Ryan C. Gordon
248b3381bf
Generalized CD-ROM routine selection.
2002-07-20 00:19:53 +00:00
Ryan C. Gordon
c02838ad5e
FreeBSD patches; appears to be fully functional now.
2002-07-17 23:25:18 +00:00
Ryan C. Gordon
0db235a52b
Changed CD-ROM detection code to be compatible with Windows NT 3.x.
2002-07-14 15:11:39 +00:00
Ryan C. Gordon
959a15e27f
FIXME cleanups.
2002-07-11 21:37:30 +00:00
Ryan C. Gordon
0b0c57d1be
Removed extra #endif
2002-07-11 08:44:27 +00:00
Ryan C. Gordon
99a03b9452
Build system corrections for BeOS and Cygwin.
2002-07-10 21:14:33 +00:00
Ryan C. Gordon
5482d9cdf9
Added some files to ignore.
2002-06-29 22:32:53 +00:00
Ryan C. Gordon
bbffe2d832
Readded.
2002-06-29 22:31:03 +00:00
Ryan C. Gordon
3df9dda733
Fixed buffer overflow in CD-ROM detection code.
2002-06-29 22:25:57 +00:00
Ryan C. Gordon
9acdd83369
Clean up dynamically loaded libraries at deinit, have a lastmodtime fallback.
2002-06-29 22:23:30 +00:00
Ryan C. Gordon
6f41886cd9
_LOTS_ of cleanups, rewrites, fixes, and improvements. Builds on Cygwin again,
...
too.
2002-06-29 22:05:12 +00:00
Ryan C. Gordon
3b0f1c896f
Patched to compile on Cygwin.
2002-06-29 10:23:17 +00:00
Ryan C. Gordon
2cfd38c9bf
Ugh.
2002-06-28 06:30:07 +00:00
Ryan C. Gordon
f3b6485f60
More build stuff.
2002-06-28 06:21:17 +00:00
Ryan C. Gordon
c4ac06ec28
Blargh.
2002-06-28 06:14:52 +00:00
Ryan C. Gordon
a5b01bc1f2
Build dance continues.
2002-06-28 05:59:14 +00:00
Ryan C. Gordon
6fd6e1e2ea
Updated.
2002-06-28 05:51:37 +00:00
Ryan C. Gordon
c6e68d3dcc
More build system dancing.
2002-06-28 05:40:52 +00:00
Ryan C. Gordon
ffb3f0150a
Readded.
2002-06-28 03:50:24 +00:00
Ryan C. Gordon
0a0b14f0e4
Patched a bug where doOpen() reported success when the file couldn't be
...
opened (doh!).
2002-06-23 09:17:59 +00:00
Ryan C. Gordon
e2c5ea91e1
Removed for new build system.
2002-06-14 21:20:34 +00:00
Ryan C. Gordon
8e5e1b5c42
Removed in build system rewrite.
2002-06-14 21:11:58 +00:00
Ryan C. Gordon
d75aa8a84f
Lots of cleanups, fixes, and corrections. Should now work on all win32
...
platforms, and maybe even WinCE.
2002-06-10 06:33:15 +00:00
Ryan C. Gordon
a1b30e8103
Fixed incorrect free() in Darwin CD detection code.
2002-06-08 20:59:29 +00:00
Ryan C. Gordon
1a665efb6a
Enumerate files code: cleaned up memory leak, Doesn't throw away file entry
...
from FindFirstFile(), and handles paths more robustly.
2002-06-08 06:19:27 +00:00
Gregory S. Read
2b1142343f
-Fixed file enumerator function (needed a wildcard '*' specification)
...
-CD enumeration only reports CDs that have media
-GetLastModified has been implemented.
-1.0 worthy except for a crash bug after enumerating files.
2002-06-07 02:33:45 +00:00
Ryan C. Gordon
81a9df44bc
64-bit _llseek() support for the future.
2002-06-06 06:09:19 +00:00
Ryan C. Gordon
2f15add38f
Fixed __PHYSFS_platformSeek().
2002-06-06 05:39:06 +00:00
Ryan C. Gordon
22412b925b
Actual POSIX calls to replace ANSI stdio routines.
2002-06-02 03:48:56 +00:00
Ryan C. Gordon
5be59c1592
Added a bunch of explicit casts when using malloc().
2002-05-27 19:10:45 +00:00
Ryan C. Gordon
c1be8137b7
Implemented __PHYSFS_platformGetLastModTime().
2002-05-25 22:15:39 +00:00
Ryan C. Gordon
2cc2477ebb
Only attempt to build BeOS code on BeOS (don't even try building an empty
...
object file elsewhere).
2002-05-25 10:54:13 +00:00
Ryan C. Gordon
5386a5c6a2
Added PHYSFS_getLastModTime() API. (Thanks, John Hall!)
2002-05-25 09:41:14 +00:00
Ryan C. Gordon
3bfbd39f5c
Updated.
2002-05-24 09:51:04 +00:00
Ryan C. Gordon
62e36b61f7
Initial add.
2002-05-24 09:46:43 +00:00
Ryan C. Gordon
2ea62ae1fb
Split some of the unix.c code out to posix.c for BeOS to use.
2002-05-24 09:23:23 +00:00
Ryan C. Gordon
e7920f0e74
Corrected to fix "make dist".
2002-05-24 03:39:05 +00:00
Ryan C. Gordon
769b2a5464
FIXME removal.
2002-05-21 11:29:00 +00:00
Ryan C. Gordon
fe8c832ef5
Initial add.
2002-05-20 12:27:46 +00:00
Ryan C. Gordon
a2c89d7ad2
Fixed OpenAppend to actually open for append. Used "wb+" instead of "ab".
2002-05-16 07:08:59 +00:00
Ryan C. Gordon
a2bec46a6b
Initial autoconf support.
2002-05-10 09:25:25 +00:00
Ryan C. Gordon
bd450d0e68
Initial add.
2002-05-10 09:16:38 +00:00
Gregory S. Read
d3dfd7f464
-Fixed a lot of the file functions error handling. Many were handling
...
success as failure, etc...
-File position is 0 based, EOF was being tested as though position was
1 based.
-All file i/o and archive i/o functions tested okay with physfs_test app.
2002-05-08 00:02:35 +00:00