Enno Rehling
b22d838a57
move gamedata.c to kernel
2018-09-29 13:21:46 +02:00
Enno Rehling
dfa9c64465
clean includes for bindings
2018-09-23 19:44:05 +02:00
Enno Rehling
f98eab56c4
platform.h is only for WIN32 now.
...
replace MIN and MAX macros, they are BAD.
2017-12-29 06:13:28 +01:00
Enno Rehling
f82fe6e963
more frequent use util/macros.h instead of platform.h
2017-12-28 18:55:45 +01:00
Enno Rehling
4e5f1d05ce
Be very strict about C standards.
...
Compile with -std=c89 in gcc.
remove all // comments (they are nice, but unnecessary).
variables only declared at start of block.
various pedantery.
backwards compatible va_copy for pre-C99 gcc.
2017-02-18 21:15:14 +01:00
Enno Rehling
3fb12d8f1e
replace snprintf and the like.
...
you cannot trust _snprintf in MSVC (no zero-termination).
2017-01-07 21:09:39 +01:00
Enno Rehling
cbb18edb8f
declutter config.h, use it sparingly.
2016-11-17 10:38:09 +01:00
Enno Rehling
c352ab9f8e
move game-version information fom version.h to gamedata.h
2016-09-10 17:21:17 +02:00
Enno Rehling
01ecc72f2d
fix a FIXME: include gamedata.h directly, not through save.h
2016-04-09 18:22:20 +02:00
Enno Rehling
2d30d4cce6
trigger_type.read gets a gamedata object
...
github issue #479
2016-02-24 11:46:54 +01:00
Enno Rehling
73a6b96bc7
remove global.data_version from border.read
...
remove global.encoding
github issue #479
2016-02-24 11:44:19 +01:00
Enno Rehling
d1fdd9a89c
fix failing storage test
2016-02-24 11:39:27 +01:00
Enno Rehling
6ca81646eb
extract gamedata into a separate file.
2016-02-24 11:38:09 +01:00
Enno Rehling
8a3bb35987
eliminate global log_flags, revert the mode arguments for fopen.
...
turns out that text is default, and windows hates it if I open a binary file without 'b'
standardize on using join_path to create filenames
(use backslash on windows, even though fopen doesn't seem to care).
2016-02-05 23:10:05 +01:00
Enno Rehling
85010e5358
seems like there is a problem opening files with the optional 'b' mode, so remove it everywhere?
2016-02-01 12:29:41 +01:00
Enno Rehling
024e4c45ca
fix a bug introduced by f78fe842
(CID 22443)
2015-11-04 10:40:53 +01:00
Enno Rehling
f78fe84216
CID 22443 Ignoring number of bytes read
2015-11-03 23:03:40 +01:00
Enno Rehling
870d42ccfe
CID 22442 Unchecked return value from library
2015-11-03 23:01:09 +01:00
Enno Rehling
b3edd8dc5a
anerror in this bugfix was found by a lua test. sweet!
2015-10-29 18:55:47 +01:00
Enno Rehling
59069ae342
CID 26260: Resource leaks (RESOURCE_LEAK)
2015-10-29 16:28:59 +01:00
Enno Rehling
34580ab9fa
fix test requiring a data directory (sigsegv)
2015-09-06 20:07:15 +02:00
Enno Rehling
2967cd59cf
replace pushnumber with pushinteger where applicable (prep for Lua 5.3).
...
also kill an unreferenced string.
2015-06-08 20:53:40 +02:00
Enno Rehling
abca25d1d5
fix indentation in every file
...
fix copyright date
remove vi ts=2 code
remove a couple of superfluous extern declarations
2015-01-30 20:37:14 +01:00
Enno Rehling
dbf60a7ce5
update to latest version of storage library.
2014-11-03 22:29:04 +01:00
Enno Rehling
1af315ebf2
move magic out of kernel, into src.
...
clean up/remove a ton of includes, especially of types.h (include in header if you need it, not in every .c file).
2014-11-01 12:57:01 +01:00
Enno Rehling
9fc926864e
Fixes for Visual C++
...
snprintf and strncasecmp are not that.
_access needs to be fixed on gcc, next.
2014-03-15 12:35:20 -07:00
Enno Rehling
1a7d892a96
use cmake for autoconf, slim down platform.h
2014-03-15 19:29:11 +01:00
Enno Rehling
bf2bb7449b
move bindings into src/ make the code compile from scratch again.
2014-02-22 00:32:59 -08:00