]> git.pond.sub.org Git - empserver/commit
(keymatch): Replace member km_func by km_type. Initializers adapted.
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 4 Sep 2004 08:07:51 +0000 (08:07 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 4 Sep 2004 08:07:51 +0000 (08:07 +0000)
commitd89c268b8b68ba3d71dbb509f75371f418335ac1
treef2650436d62cee081cf56d049b540fba40d06d99
parent4798d1466b71ac2740c62e3dbd5664ff13d4268e
(keymatch): Replace member km_func by km_type.  Initializers adapted.
(emp_config, print_config): Cope with km_type.
(worldxset, intset, floatset, optstrset, doubleset, longset): Unused,
remove.

(emp_config): Fail if specified file can't be read or contains errors.
Used to succeed always, returning RET_OK.  RET_OK is not appropriate,
since this is not a command.  Return 0 on success, -1 on failure.
Callers ignore failure at the moment.  A missing or unreadable econfig
file used to be silently ignored.  It is still ignored, but no longer
silently.  It is questionable whether ignoring is wise, but that's
left for another day.

(emp_config): Improve diagnostic messages.

(set_option): Move diagnostics to caller.

(emp_config): Ignore leading whitespace in `#' comment lines.

(print_config): Simplify printing of km_comment.

(set_option): New parameter val, so it can set and clear options.
(delete_option): Remove.

(KM_ALLOC): Turn macro into enumeration constant.

(KM_INTERNAL): New.
(xdump, xdver): New version dump.

(keymatch, infodir, datadir, teldir, upfil, downfil, disablefil,
telfil, annfil, banfil, timestampfil, privname, privlog, update_times,
update_demandtimes, game_days, game_hours): Use plain char * instead
of s_char * for strings, void * for generic pointers.
include/econfig-spec.h
include/optlist.h
src/lib/commands/xdump.c
src/lib/gen/emp_config.c
src/lib/global/constants.c
src/lib/global/path.c