Enno Rehling
ecd74c53f5
More PVS-Studio warnings eliminated.
2016-11-23 19:19:04 +01: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
3a719226a2
Merge branch 'master' into develop
...
Conflicts:
src/buildno.h
2016-09-01 21:55:52 +02:00
Enno Rehling
a08ad52809
Merge branch 'develop'
...
Conflicts:
src/util/log.c
2016-08-31 18:15:07 +02:00
Enno Rehling
2eb9b5c5ea
delete dead code (dbrace)
2016-08-29 13:49:39 +01:00
Enno Rehling
3e47f02fc2
coverity CID 141509 Unchecked return value from library
...
Conflicts:
src/util/log.c
2016-08-13 10:18:42 +02:00
Enno Rehling
1735ec9eee
coverity CID 141509 Unchecked return value from library
2016-08-09 18:28:15 +02:00
Enno Rehling
03a8b7383c
fix log_rotate warnings ( #529 )
...
* ignore file-not-found errors when trying to rotate logs.
I suspect this is faster and safer than testing existence.
* block rename warnings, part deux
2016-08-05 20:15:05 +02:00
Enno Rehling
36e1060fc7
turn maxsize assert into an error
...
fix log rotation on windows
2016-07-31 18:48:27 +02:00
Enno Rehling
eebdcf5d93
control log level from command line (with -l, like -v)
...
make newplayer.lua use the autoseed module, eliminate duplication
seeding new players is broken
Conflicts:
src/gmtool.c
src/main.c
src/util/log.c
src/util/log.h
2016-07-30 22:46:57 +02:00
Enno Rehling
c4d31d368e
Merge branch 'master' into develop
...
Conflicts:
src/buildno.h
src/util/log.c
src/util/log.h
2016-05-01 13:47:30 +02:00
Enno Rehling
f24b1c1cdc
fix multi-logging
2016-05-01 13:40:01 +02:00
Enno Rehling
41277ed5ee
prove that logging is broken (new test segfaults)
2016-05-01 13:39:25 +02: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
3e57b19d62
stop duplicate parsing of arguments
2016-01-31 21:36:01 +01:00
Enno Rehling
8f4e6475c7
complete redesign of the log library (almost finished?)
2016-01-31 19:54:49 +01:00
Enno Rehling
40651d57cd
22583 Time of check time of use
...
avoid use of access()
2015-11-05 14:05:58 +01:00
Enno Rehling
075de3c919
math is hard, typing is harder. bugfix. thank you, valgrind my friend.
2015-11-04 15:00:15 +01:00
Enno Rehling
67e2eafbcf
add missing include (MSVC is not picky enough)
2015-11-04 14:55:13 +01:00
Enno Rehling
eea0186601
22440 Unchecked return value from library
...
rewrite log rotation, check errors
2015-11-04 14:16:15 +01:00
Enno Rehling
78899ca801
coverity scan CID 22433: buffer not null terminated, prefer strlcpy over strncpy
2015-10-29 09:06:53 +01:00
Enno Rehling
ef4052b0f6
the outcome of a casual static analysis session.
2015-07-06 19:53:09 +02:00
Enno Rehling
e2421b3fe7
make lua errors show up on stderr, always (log_fatal).
...
this could have been prettier. log.c could use some loving.
2015-02-23 02:47:08 +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
3c2ae7ca93
preview script and logging cleanup
...
1. all log messages will be terminated with \n, whether the user provided
it or not.
2. remove a bunch of print() calls from scripts to reduce clutter
3. replace printf calls with log_* calls to reduce clutter
4. add the new release preview script
2014-08-11 12:04:12 +02:00
Enno Rehling
e44d4aa9b9
implemented a suggested change to RESERVE.
...
http://bugs.eressea.de/view.php?id=1675#c5240
new setting "rule.reserve.twophase" reserves from self first, before reserving from others.
fix a crash when trying to flush logs and there is no logfile.
2014-07-20 06:19:21 +02:00
Enno Rehling
12e15978b8
read weight, capacity and flags of items
2014-06-25 08:00:09 -07:00
Enno Rehling
0af5e96e3a
Renaming keyword tokens to English.
2014-06-16 20:16:06 -07:00
Enno Rehling
8db8dbeefd
fix usage of access()
...
those were the wrong constants.
2014-03-15 14:36:55 -07: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
03c247c788
I am killing the core/ directory.
...
Lots of files are moving to a new location in src/
Some intersting CMake changes.
2014-02-18 05:45:00 +01:00