Kp
b8b81ba5fc
Move PHYSFSX_writeAngleVec to gamesave.cpp
2014-10-26 22:56:50 +00:00
Kp
bf57d03930
Move PHYSFSX_writeMatrix to gamesave.cpp
2014-10-26 22:56:50 +00:00
Kp
44084ff261
Pass PHYSFSX_readVector vector by &
2014-10-26 22:08:58 +00:00
Kp
af318b9eb2
Pass PHYSFSX_writeVector vector by const &
2014-10-26 22:08:58 +00:00
Kp
f465c7972f
Move PHYSFSX_readVectorX to ai.cpp
2014-10-26 22:08:58 +00:00
Kp
c704cc9fc9
Add const void* conversion to various types
...
Add operator const void*() to prevent accidental use of pointer
comparison. With the overload present, comparing two objects triggers
an ambiguous conversion to pointer, instead of comparing the pointer
values.
2014-10-12 22:11:28 +00:00
Kp
0e65268037
Detect writing pointers
2014-09-28 21:41:06 +00:00
Kp
6b7b991bc4
Detect writing excessive data from non-integers
2014-09-28 21:37:37 +00:00
Kp
3f3b8084d1
Fix non-gcc build of physfsx.h
2014-09-22 03:34:08 +00:00
Kp
703f60ac3f
Fix -Wtype-limits warnings
2014-09-21 21:41:55 +00:00
Kp
e8f4b20d1d
Use special type for PHYSFSX_fgets
2014-09-07 20:07:20 +00:00
Kp
1f0bf71c5e
Fix off-by-one in PHYSFSX_puts_literal
2014-08-26 02:41:33 +00:00
Kp
f1713f2fec
Rewrite DXX_PHYSFS_CHECK_* to avoid if
2014-08-01 03:34:08 +00:00
Kp
51fdeea84b
Use unique_ptr for model_data
2014-07-26 04:01:35 +00:00
Kp
c1d184240d
Use unique_ptr to manage fonts
2014-07-22 23:48:23 +00:00
Matt Vandermeulen
28f307eb85
Fixes #5 - Byteswap header renamed to byteutil, plus sed magic
...
[Kp: switch to #pragma for byteutil.h]
2014-07-03 02:03:08 +00:00
Kp
b3c953375c
Read lines in blocks
2014-06-22 21:56:03 +00:00
Kp
dc42dad15a
Check that types passed to PHYSFS_read are POD
...
More is needed to trap some misuses, but those traps flag existing code.
2014-06-22 18:52:00 +00:00
Kp
e6a691c5c7
Check that types passed to PHYSFS_write are POD
...
More is needed to trap some misuses, but those traps flag existing code.
2014-06-22 03:54:35 +00:00
zico
ad7cb106bc
Changed custom D1X license to GPLv3
2014-06-01 19:55:23 +02:00
Kp
094dfbf3d4
Reduce header inclusions
2013-12-31 03:22:03 +00:00
Kp
1694eed536
Match PHYSFSX_readSXE?? return types to the internal type
2013-12-28 22:03:50 +00:00
Kp
7894647bc9
Let PHYSFSX_puts receive optional string length
2013-12-22 20:13:22 +00:00
Kp
6de986d39c
Print file offset on read error
2013-12-22 20:02:26 +00:00
Kp
3bf16e57dc
Remove PHYSFSX_gets, PHYSFSX_readString
...
They do not check for a buffer overflow.
2013-12-20 03:16:46 +00:00
Kp
7efeb3f29d
Use PHYSFSX_puts instead of PHYSFSX_printf where possible
2013-12-17 04:03:34 +00:00
Kp
cb4fd7c1b4
Compact known file extension storage
2013-12-13 03:58:01 +00:00
Kp
4dfceab50b
Factor out file extension filtering
2013-12-13 03:51:14 +00:00
Kp
60727dd7d5
Add missing va_end calls
2013-12-07 18:42:50 +00:00
Kp
706b458699
Mark PHYSFSX_find* functions nonnull
2013-12-07 18:40:32 +00:00
Kp
a2cec5d71f
Switch PHYSFSX_fgets to auto-sized variant where possible
2013-12-07 18:39:19 +00:00
Kp
9de54cfa74
Switch to C++ linkage
...
import fileinput
guard = 0
cxxguard = '#ifdef __cplusplus\n'
for line in fileinput.input(inplace=True):
if line == cxxguard:
guard = 1
continue
if guard:
if line == 'extern "C" {\n':
guard = 2
continue
if line == '}\n':
guard = 0
continue
if guard == 2:
assert(line == '#endif\n')
guard = 0
print cxxguard,
continue
print line,
2013-12-06 03:35:32 +00:00
Kp
2cd7748e93
Convert vsprintf to vsnprintf
2013-08-09 01:58:17 +00:00
Kp
f8cb11d714
Move common/misc/hmp.c -> common/misc/hmp.cpp
2013-08-04 17:55:00 +00:00
Kp
ff90315978
Use SConscript configure support to probe for format(printf) attribute
2013-07-27 22:17:13 +00:00
Kp
b87e7c2325
Merge branch 'd2x-rebirth/master' into unification/master
2013-06-02 20:14:42 +00:00
Kp
0c2a08ec01
Move */include/physfsx.h -> common/include/physfsx.h
2013-03-03 01:03:33 +00:00