empserver/include
Markus Armbruster d89c268b8b (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.
2004-09-04 08:07:51 +00:00
..
.cvsignore List generated files and directories that CVS doesn't ignore by 2003-10-04 14:54:09 +00:00
budg.h Declare update related variables in budg.h. Remove some redundant 2004-02-19 17:28:03 +00:00
com.h (player_coms): Declaration in com.h was misspelled. Remove redundant 2004-02-19 20:38:02 +00:00
combat.h Don't declare things in more than one place. Move some declarations 2004-02-20 20:45:18 +00:00
commands.h (xdump): New command xdump (experimental). 2004-08-20 12:39:16 +00:00
commodity.h caddr_t is obsolete. Replace by void *, except for struct empfile 2004-08-23 18:29:44 +00:00
common.h caddr_t is obsolete. Replace by void *, except for struct empfile 2004-08-23 18:29:44 +00:00
damage.h Import of Empire 4.2.12 2003-08-23 12:23:04 +00:00
distribute.h Import of Empire 4.2.12 2003-08-23 12:23:04 +00:00
econfig-spec.h (keymatch): Replace member km_func by km_type. Initializers adapted. 2004-09-04 08:07:51 +00:00
empio.h (iop, iop_t): Unused, remove. 2004-04-08 19:53:17 +00:00
empthread.h (empth_ctx_t): Unused, remove. 2004-08-28 12:49:13 +00:00
event.h Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
file.h caddr_t is obsolete. Replace by void *, except for struct empfile 2004-08-23 18:29:44 +00:00
gen.h Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
genitem.h (genobject, genchrstr): Unused, remove. 2004-03-03 10:23:07 +00:00
global.h Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
ioqueue.h Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
item.h (IPKG): New. 2004-08-28 08:43:57 +00:00
land.h caddr_t is obsolete. Replace by void *, except for struct empfile 2004-08-23 18:29:44 +00:00
loan.h caddr_t is obsolete. Replace by void *, except for struct empfile 2004-08-23 18:29:44 +00:00
lost.h caddr_t is obsolete. Replace by void *, except for struct empfile 2004-08-23 18:29:44 +00:00
lwp.h Use gcc function attribute `format' to catch bad format strings. Fix 2004-03-09 12:27:40 +00:00
map.h Remove some unused stuff, mostly Empire 3 leftovers. 2004-02-28 09:45:10 +00:00
match.h Doc fixes & clarifications. 2004-08-21 11:47:17 +00:00
misc.h (ANNO_KEEP_DAYS, anno_keep_days): Replace macro ANNO_KEEP_DAYS by 2004-08-28 15:28:54 +00:00
mission.h Remove some unused stuff, mostly Empire 3 leftovers. 2004-02-28 09:45:10 +00:00
nat.h caddr_t is obsolete. Replace by void *, except for struct empfile 2004-08-23 18:29:44 +00:00
news.h caddr_t is obsolete. Replace by void *, except for struct empfile 2004-08-23 18:29:44 +00:00
nsc.h caddr_t is obsolete. Replace by void *, except for struct empfile 2004-08-23 18:29:44 +00:00
nuke.h caddr_t is obsolete. Replace by void *, except for struct empfile 2004-08-23 18:29:44 +00:00
options.h (PLANENAMES, opt_PLANENAMES, Options, plchrstr, plchr_ca, plchr, 2004-08-21 06:48:34 +00:00
optlist.h (keymatch): Replace member km_func by km_type. Initializers adapted. 2004-09-04 08:07:51 +00:00
path.h Supply prototypes where possible. This uncovered type errors with 2004-02-17 17:59:30 +00:00
plane.h caddr_t is obsolete. Replace by void *, except for struct empfile 2004-08-23 18:29:44 +00:00
player.h Supply prototypes where possible. This uncovered type errors with 2004-02-17 17:59:30 +00:00
power.h caddr_t is obsolete. Replace by void *, except for struct empfile 2004-08-23 18:29:44 +00:00
product.h Use plain char * instead of s_char *. Doc clarifications. 2004-08-17 19:22:43 +00:00
proto.h (KILL): Off by one in fnlist[]. This is why client option -k didn't 2004-01-31 09:42:34 +00:00
prototypes.h (pln_arm): Callers don't use parameter tech; remove it. Callers 2004-08-30 16:13:37 +00:00
queue.h Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
retreat.h Import of Empire 4.2.12 2003-08-23 12:23:04 +00:00
sect.h (getsect, putsect, getsectp): Remove superflous casts, parenthesize 2004-08-23 18:35:50 +00:00
server.h Remove junk at end of #endif. 2004-02-24 18:26:34 +00:00
ship.h caddr_t is obsolete. Replace by void *, except for struct empfile 2004-08-23 18:29:44 +00:00
struct.h Import of Empire 4.2.12 2003-08-23 12:23:04 +00:00
subs.h Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
tel.h Don't declare things in more than one place. Move some declarations 2004-02-20 20:45:18 +00:00
trade.h (trad, set): Treat trade file slots with zero owner as unused, so that 2004-08-28 15:22:50 +00:00
treaty.h caddr_t is obsolete. Replace by void *, except for struct empfile 2004-08-23 18:29:44 +00:00
update.h Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
var.h (V_CIVIL, V_MILIT, V_SHELL, V_GUN, V_PETROL, V_IRON, V_DUST, V_BAR, 2004-08-17 16:12:31 +00:00
version.h Update for 4.2.17. 2004-08-14 20:03:08 +00:00
wantupd.h Import of Empire 4.2.12 2003-08-23 12:23:04 +00:00
xy.h (strtox, strtoy): New. Use it instead of inputxy() to avoid the 2004-04-07 17:13:47 +00:00