Ryan C. Gordon
f49c122784
Added Linux and Solaris tests.
2012-03-19 20:31:50 -04:00
Ryan C. Gordon
bb6c5e468c
Let's gamble that everything has assert.h.
...
(and we'll mask out specific platforms if we find one that doesn't.)
2012-03-19 20:27:28 -04:00
Ryan C. Gordon
e5fa9ab9fc
Minor code style cleanup in platform_beos.cpp ...
2012-03-19 02:58:41 -04:00
Ryan C. Gordon
52267fe380
Removed some unused code.
2012-03-19 02:46:38 -04:00
Ryan C. Gordon
82a6ce0abf
Use physfs_platforms.h in physfs_internal.h, to avoid repeated macro tests.
2012-03-19 02:04:27 -04:00
Ryan C. Gordon
1030e5d5ec
Removed llseek().
...
Use Linux's off64_t support instead.
2012-03-18 12:31:29 -04:00
Ryan C. Gordon
391f94681c
Fixed a comment. Cut and paste error, I guess?
2012-03-18 12:23:30 -04:00
Ryan C. Gordon
be4ae4d401
Removed __PHYSFS_platformCvtToDependent().
...
It's only used by archive_dir.c, and it's trivial to make it into
platform-independent code for that one module.
Bonus: less malloc() pressure...now every access to the native filesystem
doesn't require a temporary heap allocation.
2012-03-15 01:58:39 -04:00
Ryan C. Gordon
03dbc3f758
Make __PHYSFS_platformDirSeparator into a single char.
...
This multichar thing was always stupid. Pull it out of revision control if
you ever need it.
2012-03-15 01:54:57 -04:00
Ryan C. Gordon
aaf8868c8d
Removed __PHYSFS_convertToDependent(), as dead code.
2012-03-15 00:40:00 -04:00
Ryan C. Gordon
466f538926
Reworked BeOS CD detection code.
...
Cleaned up, removed a malloc(), removed unnecessary BAIL macros.
2012-03-14 21:24:32 -04:00
Ryan C. Gordon
abd2624c59
Added Evgeny Podjachev to the credits.
2012-03-14 05:47:42 -04:00
Ryan C. Gordon
624d7f3a42
Fixed PHYSFS_read() and PHYSFS_write() in the dev branch.
...
PHYSFS_read() and PHYSFS_write() should return number of objects written,
not object size.
Thanks to Evgeny Podjachev for the fix!
2012-03-14 05:47:15 -04:00
Ryan C. Gordon
519046db72
Removed check that .zip files are less than 4 gigabytes.
...
This would become a bogus check with zip64 support anyhow, but even here, if
you have a .zip that's close to 4 gigabytes, and a self-extracting program
prepended to it that pushes it over that limit, this test fails
incorrectly.
2012-03-13 08:21:02 -04:00
Ryan C. Gordon
a42ada1380
Fixed dereference of free()'d memory.
...
Thanks to Evgeny Podjachev for the fix!
2012-03-13 07:49:59 -04:00
Ryan C. Gordon
c57bd94f84
Apparently, __PHYSFS_platformCurrentDir() is dead code.
2012-03-13 04:25:05 -04:00
Ryan C. Gordon
0ae446d970
Move Windows CD-ROM detection to another thread that uses device notifications.
...
Fixes blocking when a disc is spinning up, except on initial call.
2012-03-12 04:05:31 -04:00
Ryan C. Gordon
16ff5c8aca
PhysicsFS works on Win64 now.
2012-03-12 03:48:34 -04:00
Ryan C. Gordon
5ad70036b2
Fixed stack smashing in newly-aligned __PHYSFS_smallAlloc().
2012-03-12 01:33:16 -04:00
Ryan C. Gordon
1d41608a64
More doc tweaks.
2012-03-11 05:05:02 -04:00
Ryan C. Gordon
611aeec61b
Removed __PHYSFS_platformRealPath().
...
It was an ugly piece of code, didn't work on The Hurd (apparently), likely
dangerous in its incomplete understanding of Windows paths, and only
used in places that should have given us normalized, absolute
paths in the first place anyhow.
2012-03-11 04:19:36 -04:00
Ryan C. Gordon
2aa0c5a278
Replace C++/C99 single-line comments in miniz with C98 /* comments */ ...
2012-03-11 03:56:24 -04:00
Ryan C. Gordon
c94d70ec0a
Moved __PHYSFS_platformCurrentDir() from Unix to POSIX sources.
...
getcwd() is part of POSIX, after all.
2012-03-11 03:43:07 -04:00
Ryan C. Gordon
b7e0ec7391
Change how Unix version of __PHYSFS_platformCurrentDir() allocates memory.
2012-03-11 03:39:57 -04:00
Ryan C. Gordon
7a8e3de103
Minor updates to the docs.
2012-03-11 03:09:07 -04:00
Ryan C. Gordon
df3c281014
Fixed some compiler warnings.
2012-03-10 03:18:33 -05:00
Ryan C. Gordon
700d94e577
Replaced zlib with a hacked up copy of miniz: http://code.google.com/p/miniz/
2012-03-10 02:31:58 -05:00
Ryan C. Gordon
c8fc8cf957
Merge with pocketpc removal.
2012-03-10 01:13:03 -05:00
Ryan C. Gordon
6e4279e76a
Bump the smallAlloc threshold up to 256 bytes.
2012-03-09 22:27:36 -05:00
Ryan C. Gordon
9dceda3d9f
Align smallAllocs to the native pointer size.
2012-03-09 22:27:51 -05:00
Ryan C. Gordon
a0b21c9ae9
Cleaned up all the readAll() cut and paste.
2012-03-09 04:50:27 -05:00
Ryan C. Gordon
25224b0e7a
We never use calloc() internally.
2012-03-09 03:55:23 -05:00
Ryan C. Gordon
eac0f11005
Cleaned up the updated TODO.txt, removed things that are already done, etc.
2012-03-09 03:55:04 -05:00
Ryan C. Gordon
86dbf54fc7
Updated TODO.txt from notes I had scratch down elsewhere over time.
2012-03-09 03:36:31 -05:00
Ryan C. Gordon
54cc53349d
Cleaned up some __PHYSFS_platformStat() details.
2012-03-09 03:32:26 -05:00
Ryan C. Gordon
de27c2a422
Removed the non-Unicode fallbacks from platform_windows.c, other cleanups.
...
This brings the minimum required OS up to Windows XP, which is around 11
years old at this point.
2012-03-10 03:07:30 -05:00
Ryan C. Gordon
9e2acfd8a6
Removed OS/2 support.
2012-03-09 01:24:40 -05:00
Ryan C. Gordon
4d46d42f73
Removed PocketPC support. It was old and crusty and targeted a dead platform.
2012-03-09 00:44:59 -05:00
Ryan C. Gordon
d1d0de3947
Fixed a compiler warning.
2011-11-18 01:08:19 -05:00
Ryan C. Gordon
608958b8ce
Add support for SDL 1.3 to physfsrwops.
2011-10-18 23:48:28 -04:00
Sam Lantinga
9fb20ec349
Fixed deprecation warning in physfsrwops
2011-10-18 22:48:45 -04:00
Ryan C. Gordon
9d11b991bc
Fixed up some bugs that clang's static analysis reported.
2011-10-18 15:55:29 -04:00
Ryan C. Gordon
bbd356a27b
Patched to compile.
2011-10-06 03:24:53 -04:00
Ryan C. Gordon
b97ad1f366
Added Norfanin to the credits.
2011-10-05 04:04:06 -04:00
Ryan C. Gordon
6d4d91414a
Check _M_X64 (Visual Studio, Windows/x86-64) in littleendian test.
...
Thanks to Norfanin for the tip!
2011-10-05 03:58:52 -04:00
Ryan C. Gordon
9d1ef087a9
Put some include-once and extern "C" blocks in the extras' headers.
2011-09-24 00:55:15 -07:00
Ryan C. Gordon
28007c9bae
Fixed a typo in the docs.
2011-09-22 04:45:04 -04:00
Ryan C. Gordon
025a02f4c0
Corrected __PHYSFS_platformTell()'s return value to be correct.
2011-08-01 17:56:30 -04:00
Ryan C. Gordon
8258274a90
Removed __PHYSFS_platformEOF(). It's not used anymore.
2011-08-01 17:32:56 -04:00
Ryan C. Gordon
e4cc3fcd9b
Removed a space in CMakeLists.txt that can make the linker grumpy.
2011-07-25 11:32:32 -07:00