Enno Rehling
0759482934
clean includes for bindings and main
2018-09-23 19:53:01 +02:00
Enno Rehling
e4aa8f505e
cppcheck warnings for battle
2018-02-25 14:18:36 +01:00
Enno Rehling
0435c9ee8b
jsonconf reads game rules outside of kernel, so move it out.
2018-01-14 17:50:54 +01:00
Enno Rehling
a8140f1dc9
rename strlcpy->str_strlcpy, etc.
2017-12-30 19:49:21 +01:00
Enno Rehling
79b5464aab
posix systems have PATH_MAX in limits.h
2017-12-29 11:58:39 +01:00
Enno Rehling
50173d5be3
PATH_MAX and MAX_PATH are crazy.
2017-12-29 11:44:14 +01: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
f6fcd39293
add a failing test for familiars (disabled).
...
remove superfluous init_locales calls.
2017-02-11 22:28:57 +01:00
Enno Rehling
b504899b07
fix locale initialization
2017-02-09 23:28:50 +01:00
Enno Rehling
99274e3ab1
make runtests.bat not crash.
...
disable auto-load of config.lua (sob).
free messages and config in config.reset().
2017-01-23 21:35:01 +01:00
Enno Rehling
8d02d5a5aa
never use strncpy, anywhere.
2017-01-06 21:24:31 +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
54304af182
allocate space for null terminator
2015-10-30 12:08:09 +01:00
Enno Rehling
7fa12ae3af
CID 22556: String not null terminated (STRING_NULL)
...
add missing null-termination
2015-10-30 11:59:05 +01:00
Enno Rehling
db6e9444d6
CID 26263: Memory - illegal accesses (UNINIT)
2015-10-29 16:27:10 +01:00
Enno Rehling
5f4c31af1c
bad variable reuse leads to gcc confusion
2015-10-29 12:04:52 +01:00
Enno Rehling
8b6da79984
64 bit compatibility, thank you gcc.
2015-10-29 11:32:04 +01:00
Enno Rehling
4384183ab8
coverity scan CID 22504: argument cannot be negative
...
handle error cases for ftell, just because they could happen, I guess?
2015-10-29 11:20:09 +01: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
23b8f2bc8a
call init_locales after parse_json from Lua, downgrade missing string warnings during that to DEBUG (because it's quite common not to have them).
...
also, these int to bool conversion warnings made a good point, even if I could not reproduce them.
2015-01-08 20:55:29 +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
6bd52012c0
read keywords from json configuration, use German imperative forms.
2014-10-29 19:40:09 +01:00
Enno Rehling
f9c5d58f41
read json config file if available.
...
missed an include, broke the build.
2014-10-29 08:30:07 +01:00
Enno Rehling
b5439a1279
fix line/column calculation for JSON Errors.
...
+ start building a test for http://bugs.eressea.de/view.php?id=1692
2014-07-02 21:17:31 -07:00
Enno Rehling
8166519d30
add a list of valid coasts to ship definition in JSON.
...
fix endless loop in error-line counting.
2014-06-17 21:33:42 -07:00
Enno Rehling
b6b790d7e7
add a config.reset function to clear configuration state before tests.
2014-06-17 08:46:22 -07:00
Enno Rehling
e27bde06ac
bindings for error logging, phase 1.
...
better error reporting for json parse errors.
2014-06-13 13:02:03 -07:00
Enno Rehling
6e56c56d39
read ships from config file (only very basic) and create them in a lua test.
2014-06-13 08:28:33 -07:00
Enno Rehling
b84bf7ba56
add json configuration parser to lua bindings.
2014-06-12 17:39:09 -07:00