Enno Rehling
|
af1ce9b84e
|
issue #633: parse FACTION/PARTEI in any language.
added a test since the first fix did not work.
|
2017-01-26 18:06:48 +01:00 |
|
Enno Rehling
|
b51349df6b
|
change error message categories.
also removing some unused messages and code that supports them.
https://bugs.eressea.de/view.php?id=2270
|
2017-01-26 18:05:26 +01:00 |
|
Enno Rehling
|
7b25ed282d
|
more stbool.h includes, MSVC has no unlink
|
2017-01-26 18:05:26 +01:00 |
|
Enno Rehling
|
5ddd511aa8
|
continue fixing compilation (gcc/clang)
|
2017-01-26 18:03:48 +01:00 |
|
Enno Rehling
|
d94cde67a4
|
kill autoconf.h, replace platform.h for C99 compatibility work
|
2017-01-26 18:03:48 +01:00 |
|
Enno Rehling
|
03def6ae5e
|
replace snprintf and the like.
you cannot trust _snprintf in MSVC (no zero-termination).
|
2017-01-26 17:57:21 +01:00 |
|
Enno Rehling
|
2422e63af2
|
never use strncpy, anywhere.
|
2017-01-26 17:57:21 +01:00 |
|
Enno Rehling
|
d71d5e413a
|
eliminate unnecessary strncpy use.
|
2017-01-26 17:57:21 +01:00 |
|
Enno Rehling
|
47c8b20f68
|
add a happy test for mt_new.
refactor to not use strncpy.
|
2017-01-26 17:57:21 +01:00 |
|
Enno Rehling
|
a4badc0a75
|
remove quicklist shim, use selist everywhere
|
2017-01-26 17:41:21 +01:00 |
|
Enno Rehling
|
d9213c8f25
|
WIP: still converting to clibs/selist
|
2017-01-26 10:12:12 +01:00 |
|
Enno Rehling
|
43b8ff1ea8
|
fix strdup compilications when compiling with gcc and autoconf.
|
2016-11-26 16:21:41 +01:00 |
|
Enno Rehling
|
e52cf75c59
|
remove autoconf.h from platform.h, fix lots of includes
|
2016-11-25 20:15:11 +01:00 |
|
Enno Rehling
|
ecd74c53f5
|
More PVS-Studio warnings eliminated.
|
2016-11-23 19:19:04 +01:00 |
|
Enno Rehling
|
ec4060cb9a
|
fix curse-vigour calculation math.
also fix a ton of small other niggles from pvs-studio.
|
2016-11-20 19:08:39 +01:00 |
|
Enno Rehling
|
9ac74ceecc
|
fix constant conversion error
|
2016-11-20 15:14:03 +01:00 |
|
Enno Rehling
|
ae951ee780
|
Merge branch 'develop' of https://github.com/ennorehling/eressea.git
|
2016-11-20 14:50:49 +01:00 |
|
Enno Rehling
|
55a0388eb2
|
fix truncated names that split a utf8 sequence.
|
2016-11-20 14:50:38 +01:00 |
|
Enno Rehling
|
7d874f1606
|
fix clang builds
|
2016-11-18 13:24:50 +01:00 |
|
Enno Rehling
|
a08563e846
|
Merge branch 'develop' of https://github.com/ennorehling/eressea.git
|
2016-11-17 22:10:53 +01:00 |
|
Enno Rehling
|
dc2452e2c1
|
config.h globals cleanup.
|
2016-11-17 22:10:41 +01:00 |
|
Enno Rehling
|
6c9e1fb345
|
more config.h removal.
freset/fset/fval must die!
|
2016-11-17 17:06:31 +01:00 |
|
Enno Rehling
|
d5218b99b8
|
do not include config.h from util (also, wasn't needed)
also remove it from monsters.
|
2016-11-17 10:55:23 +01:00 |
|
Enno Rehling
|
49e5b5b67e
|
gcc missing include
|
2016-11-14 23:19:28 +01:00 |
|
Enno Rehling
|
b48b80a1e9
|
verify errno in test_atoip
|
2016-11-14 22:21:32 +01:00 |
|
Enno Rehling
|
c512d180f8
|
prevent atoip setting errno on mac.
only call atoi when string starts with a digit
|
2016-11-14 22:15:52 +01:00 |
|
Enno Rehling
|
d28d3f4690
|
move read/write_items to item.c.
fix bad memset in attrib.test.c.
|
2016-11-14 01:00:48 +01:00 |
|
Enno Rehling
|
3cc719ba93
|
fix gcc build
|
2016-11-13 19:51:41 +01:00 |
|
Enno Rehling
|
0eaa750ef4
|
move read/write_attribs to attrib.h, too
|
2016-11-13 19:47:36 +01:00 |
|
Enno Rehling
|
11b122048b
|
reduce dependency on save.h
moving a_write* functions to attrib.h, which was most of the reason everyone and their mom include save.h
|
2016-11-13 19:40:38 +01:00 |
|
Enno Rehling
|
f63baddd51
|
use memmove, not memcpy.
fix unicode_trim for windows.
remove unused unicode_mkname.
|
2016-11-13 15:49:26 +01:00 |
|
Enno Rehling
|
e0add2275f
|
also remove trailing spaces.
|
2016-11-11 01:34:59 +01:00 |
|
Enno Rehling
|
97e91fd8eb
|
fix bad names.
trim leading whitespace and non-printable characters from existing
unit, region and faction names/descriptions.
|
2016-11-11 00:30:49 +01:00 |
|
Enno Rehling
|
7b412399b7
|
delete leading spaces from names.
|
2016-11-09 22:03:46 +01:00 |
|
Enno Rehling
|
f03e8f3b62
|
return an error code if the string had any characters removed.
|
2016-11-09 14:58:51 +01:00 |
|
Enno Rehling
|
7d79822aa4
|
fix missing nul-terminator.
|
2016-11-09 11:54:34 +01:00 |
|
Enno Rehling
|
f68fcf40a6
|
custom function to make "valid" names.
remove any non-printable characters from a string.
TODO: test with utf-8 values.
TODO: remove leading/trainling whitespace.
|
2016-11-08 22:54:47 +01:00 |
|
Enno Rehling
|
75422e1ba6
|
fix gcc conversion warnings
|
2016-10-09 10:07:05 +02:00 |
|
Enno Rehling
|
fadf591a32
|
gcc appeasement (overflow in constant conversion).
|
2016-10-02 13:19:39 +02:00 |
|
Enno Rehling
|
693f1be6d1
|
fix endless loop in cp1252 search (wrong sort)
fix indentation
additional testing
|
2016-10-02 13:12:47 +02:00 |
|
Enno Rehling
|
8728fccaec
|
fix an endless loop in unicode_utf8_to_cp437 for characters not in the table.
|
2016-10-02 12:46:07 +02:00 |
|
Enno Rehling
|
c352ab9f8e
|
move game-version information fom version.h to gamedata.h
|
2016-09-10 17:21:17 +02:00 |
|
Enno Rehling
|
d84ed1f89d
|
move static variable cleanup to kernel_done.
clean up some more.
|
2016-09-07 21:22:05 +02:00 |
|
Enno Rehling
|
dda845e2f4
|
free configuration data (valgrind calls it still-reachable leaks).
|
2016-09-07 20:46:41 +02:00 |
|
Enno Rehling
|
a5ce809f41
|
fix memory leak in umlaut.c with reference counting (sad).
|
2016-09-06 19:57:07 +01:00 |
|
Enno Rehling
|
b62fa64d8c
|
closer leak debugging
|
2016-09-05 20:05:36 +02:00 |
|
Enno Rehling
|
c525553c49
|
unused variable
|
2016-09-05 17:48:54 +01:00 |
|
Enno Rehling
|
fa6a3e377d
|
relocate the addtoken leak "test" to umlaut.test.c
|
2016-09-05 18:46:02 +02:00 |
|
Enno Rehling
|
19d490ce71
|
test_create_locale leaks memory.
adding a simple test that shows this (under valgrind).
|
2016-09-04 22:07:52 +02:00 |
|
Enno Rehling
|
a5b3fad67a
|
skeleton of a language test, try to find init_direction memory leak.
|
2016-09-04 20:27:36 +01:00 |
|