Commit Graph

216 Commits

Author SHA1 Message Date
Ryan C. Gordon 607d39a1d3 Bunch of work on Unicode...added case-folding stricmp, removed
platform-specific stricmp implementations, changed appropriate calls to an
ASCII-only stricmp that ignores locale. Fixed case on UTF-8 API entry points.
2007-03-15 08:16:23 +00:00
Ryan C. Gordon 0ed7bbc3cf Dropped classic Mac OS support. Mac OS X remains supported, though. 2007-03-14 07:20:59 +00:00
Ryan C. Gordon 31ff24a38f Mac Classic platform layer: don't strcmp() a NULL string. 2007-03-14 06:39:17 +00:00
Ryan C. Gordon 5908057d71 Minor comment removal. 2007-03-14 06:30:52 +00:00
Ryan C. Gordon a600edf8ab Patched to compile on Mac OS X. 2007-03-14 06:30:20 +00:00
Ryan C. Gordon 69598e49ab Now compiles everything whether we need it or not, removing whole files with
#ifdefs...this will make it easier to "embed" this library in other projects
 or use a different build system: just push everything through the compiler
 with preprocessor defines for the parts you want/need...platform modules are
 determined automatically without the build system needing to intervene, so
 you just have to #define the archivers, etc that you want.
2007-03-11 22:50:53 +00:00
Ryan C. Gordon e029cb54e5 Fixed some comments. 2007-03-11 10:12:39 +00:00
Ryan C. Gordon 53bbe35ddd Renamed LICENSE to LICENSE.txt 2007-03-11 10:10:28 +00:00
Ryan C. Gordon ca2489418e Removed config.h references from old autotools build system. 2007-03-11 09:44:21 +00:00
Ryan C. Gordon 6cdd5b5e57 Moved to CMake! 2007-03-10 06:32:52 +00:00
Ryan C. Gordon d5327897cb Updated PocketPC code to handle UTF-8 strings. 2007-03-09 08:15:47 +00:00
Ryan C. Gordon a41e32d112 Ryanized the formatting in pocketpc.c 2007-03-08 22:37:51 +00:00
Ryan C. Gordon f6790ee34e Renamed win32.c to windows.c (since it would be used for Win64, too.) 2007-03-08 22:22:24 +00:00
Ryan C. Gordon afd7163321 Apparently BeOS's BPath constructor doesn't actually _need_ leaf to be
manually split out.
2006-11-05 19:06:23 +00:00
Ryan C. Gordon 5a25658811 Silly comment typo. 2006-11-05 11:09:42 +00:00
Ryan C. Gordon a66c36b42a Cleaned up overflow checks in platform memory allocators (thanks to Nicolas
Lebedenco for pointing out the original issue with long long literals).
2006-01-01 12:19:44 +00:00
Ryan C. Gordon c28540fe89 Made unix mutexes recursive. 2005-09-20 04:01:36 +00:00
Ryan C. Gordon 6e7e45cdaf API BREAKAGE: Changed PHYSFS_enumerateFilesCallback() to pass the originally
requested directory back to the app.
2005-09-18 21:44:42 +00:00
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