empserver/src/lib/commands
Markus Armbruster eccc5cb7d7 Sectors need space for items, deliveries and distribution thresholds.
To save space, the ancients invented `variables': a collection of
key-value pairs, missing means zero value, space for `enough' keys.
This complicates the code, as assigning to a `variable' can fail for
lack of space.  Over time, `enough' increased, and for quite some time
now `variables' have been *wasting* space.  This changeset replaces
them, except in struct mchrstr, struct lchrstr and struct pchrstr,
where they are read-only, and will be replaced later.  It is only a
first step; further cleanup is required.  To simplify and minimize
this necessarily huge changeset, the new item[] arrays have an unused
slot 0, and the old variable types V_CIVIL, ... are still defined, but
must have the same values as the item types I_CIVIL, ...
2004-03-03 16:54:22 +00:00
..
.cvsignore List generated files and directories that CVS doesn't ignore by 2003-10-04 14:54:09 +00:00
acce.c Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
add.c Sectors need space for items, deliveries and distribution thresholds. 2004-03-03 16:54:22 +00:00
anti.c Sectors need space for items, deliveries and distribution thresholds. 2004-03-03 16:54:22 +00:00
arm.c <string.h> is ISO C, no need to #if it. 2004-02-19 10:05:53 +00:00
army.c (bzero, bcopy): Obsolete BSDisms; remove. Remove some calls without 2004-01-08 17:54:28 +00:00
assa.c Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
atta.c Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
bdes.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
best.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
boar.c Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
bomb.c Sectors need space for items, deliveries and distribution thresholds. 2004-03-03 16:54:22 +00:00
brea.c Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
budg.c Remove some unused junk. 2004-03-01 13:48:45 +00:00
buil.c Sectors need space for items, deliveries and distribution thresholds. 2004-03-03 16:54:22 +00:00
buy.c Sectors need space for items, deliveries and distribution thresholds. 2004-03-03 16:54:22 +00:00
capi.c Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
carg.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
cede.c Sectors need space for items, deliveries and distribution thresholds. 2004-03-03 16:54:22 +00:00
cens.c Sectors need space for items, deliveries and distribution thresholds. 2004-03-03 16:54:22 +00:00
chan.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
coas.c Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
coll.c Sectors need space for items, deliveries and distribution thresholds. 2004-03-03 16:54:22 +00:00
comm.c Sectors need space for items, deliveries and distribution thresholds. 2004-03-03 16:54:22 +00:00
cons.c Fix the previous rev. 2004-02-19 21:10:25 +00:00
conv.c Sectors need space for items, deliveries and distribution thresholds. 2004-03-03 16:54:22 +00:00
coun.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
cuto.c Sectors need space for items, deliveries and distribution thresholds. 2004-03-03 16:54:22 +00:00
decl.c Indentation fixes; suspect indent-emp is to blame. 2004-02-28 18:06:11 +00:00
deli.c Sectors need space for items, deliveries and distribution thresholds. 2004-03-03 16:54:22 +00:00
demo.c Sectors need space for items, deliveries and distribution thresholds. 2004-03-03 16:54:22 +00:00
desi.c (sct_typematch): New. Use it instead of typematch() where 2004-02-27 19:53:02 +00:00
disa.c Declare all configuration parameters in optlist.h. Remove some 2004-02-19 16:46:18 +00:00
dist.c Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
drop.c Indentation fixes; suspect indent-emp is to blame. 2004-02-28 18:06:11 +00:00
dump.c Sectors need space for items, deliveries and distribution thresholds. 2004-03-03 16:54:22 +00:00
echo.c Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
edit.c Sectors need space for items, deliveries and distribution thresholds. 2004-03-03 16:54:22 +00:00
enab.c Declare all configuration parameters in optlist.h. Remove some 2004-02-19 16:46:18 +00:00
enli.c Sectors need space for items, deliveries and distribution thresholds. 2004-03-03 16:54:22 +00:00
expl.c Sectors need space for items, deliveries and distribution thresholds. 2004-03-03 16:54:22 +00:00
fina.c Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
flash.c POSIX has all we need in <time.h>. No need to fool around with 2004-02-19 09:57:25 +00:00
flee.c (bzero, bcopy): Obsolete BSDisms; remove. Remove some calls without 2004-01-08 17:54:28 +00:00
fly.c Indentation fixes; suspect indent-emp is to blame. 2004-02-28 18:06:11 +00:00
foll.c Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
forc.c New server.h for server startup, control and shutdown, i.e. stuff in 2004-02-19 19:02:30 +00:00
fort.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
fuel.c Sectors need space for items, deliveries and distribution thresholds. 2004-03-03 16:54:22 +00:00
give.c Sectors need space for items, deliveries and distribution thresholds. 2004-03-03 16:54:22 +00:00
grin.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
hard.c Sectors need space for items, deliveries and distribution thresholds. 2004-03-03 16:54:22 +00:00
head.c Indentation fix. 2004-02-06 23:26:25 +00:00
hidd.c Sectors need space for items, deliveries and distribution thresholds. 2004-03-03 16:54:22 +00:00
improve.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
info.c Add some missing declarations to headers. Remove some redundant 2004-02-20 10:51:03 +00:00
land.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
laun.c Indentation fixes; suspect indent-emp is to blame. 2004-02-28 18:06:11 +00:00
lboard.c Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
ldump.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
ledg.c Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
leve.c Sectors need space for items, deliveries and distribution thresholds. 2004-03-03 16:54:22 +00:00
load.c Sectors need space for items, deliveries and distribution thresholds. 2004-03-03 16:54:22 +00:00
look.c Sectors need space for items, deliveries and distribution thresholds. 2004-03-03 16:54:22 +00:00
lost.c Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
lstat.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
lten.c Sectors need space for items, deliveries and distribution thresholds. 2004-03-03 16:54:22 +00:00
Makefile (diss, player_coms): Command `dissolve' has been disabled at least 2004-03-03 08:20:45 +00:00
map.c (map): Reject flags t' and r' unless it's a bmap command. Both used 2004-02-03 17:24:05 +00:00
marc.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
mark.c (genitem, ship, plane, land): Remove unused member sell & equivalents. 2004-03-01 17:21:40 +00:00
mfir.c Sectors need space for items, deliveries and distribution thresholds. 2004-03-03 16:54:22 +00:00
mine.c Sectors need space for items, deliveries and distribution thresholds. 2004-03-03 16:54:22 +00:00
miss.c (nameofitem, produce, check, fire_dchrg, send_reacting_units_home, 2004-03-03 09:39:50 +00:00
mobq.c Declare all configuration variables in optlist.h. Include that 2004-02-17 22:58:04 +00:00
mobu.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
mora.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
move.c Sectors need space for items, deliveries and distribution thresholds. 2004-03-03 16:54:22 +00:00
name.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
nati.c Sectors need space for items, deliveries and distribution thresholds. 2004-03-03 16:54:22 +00:00
navi.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
ndump.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
new.c Sectors need space for items, deliveries and distribution thresholds. 2004-03-03 16:54:22 +00:00
newe.c Declare all configuration variables in optlist.h. Include that 2004-02-17 22:58:04 +00:00
news.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
nuke.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
offe.c (copy, atopi, same): Remove, use strcpy(), atoi(), strcmp(). Callers 2004-01-08 10:20:44 +00:00
offs.c (index, rindex): Obsolete BSDisms; remove. Use standard strchr() and 2004-01-08 18:15:13 +00:00
orde.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
orig.c Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
para.c Indentation fixes; suspect indent-emp is to blame. 2004-02-28 18:06:11 +00:00
path.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
payo.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
pboa.c Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
pdump.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
plan.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
play.c Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
powe.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
prod.c Sectors need space for items, deliveries and distribution thresholds. 2004-03-03 16:54:22 +00:00
pstat.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
rada.c Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
rang.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
rea.c (rea): Don't use L_SET, it's ancient BSD history, just use SEEK_SET. 2004-02-29 11:35:38 +00:00
real.c Indentation fixes; suspect indent-emp is to blame. 2004-02-28 18:06:11 +00:00
reco.c Indentation fixes; suspect indent-emp is to blame. 2004-02-28 18:06:11 +00:00
reje.c Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
rela.c Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
repa.c Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
repo.c (nameofitem, produce, check, fire_dchrg, send_reacting_units_home, 2004-03-03 09:39:50 +00:00
rese.c Sectors need space for items, deliveries and distribution thresholds. 2004-03-03 16:54:22 +00:00
reso.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
retr.c Clean up switch cases: proper fall through comments, no break after 2004-03-01 14:03:29 +00:00
rout.c Sectors need space for items, deliveries and distribution thresholds. 2004-03-03 16:54:22 +00:00
sabo.c Sectors need space for items, deliveries and distribution thresholds. 2004-03-03 16:54:22 +00:00
sail.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
sate.c Declare all configuration variables in optlist.h. Include that 2004-02-17 22:58:04 +00:00
scra.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
scut.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
sdump.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
sect.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
sell.c Sectors need space for items, deliveries and distribution thresholds. 2004-03-03 16:54:22 +00:00
set.c Sectors need space for items, deliveries and distribution thresholds. 2004-03-03 16:54:22 +00:00
setres.c Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
setsect.c Sectors need space for items, deliveries and distribution thresholds. 2004-03-03 16:54:22 +00:00
shar.c (sct_typematch): New. Use it instead of typematch() where 2004-02-27 19:53:02 +00:00
shark.c Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
shi.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
shoo.c Sectors need space for items, deliveries and distribution thresholds. 2004-03-03 16:54:22 +00:00
show.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
shut.c New server.h for server startup, control and shutdown, i.e. stuff in 2004-02-19 19:02:30 +00:00
sinf.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
skyw.c Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
sona.c Sectors need space for items, deliveries and distribution thresholds. 2004-03-03 16:54:22 +00:00
spy.c Break excessively long line. 2004-03-01 14:07:10 +00:00
sstat.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
star.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
stop.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
stre.c Sectors need space for items, deliveries and distribution thresholds. 2004-03-03 16:54:22 +00:00
strv.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
supp.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
surv.c (sect_ca, genitem_ca, ship_ca, plane_ca, land_ca, nuke_ca, treaty_ca, 2004-02-28 08:29:21 +00:00
swap.c Indentation fixes; suspect indent-emp is to blame. 2004-02-28 18:06:11 +00:00
tele.c Delete dead code, fix indentation, spelling, obvious warning 2004-02-27 20:13:28 +00:00
tend.c Sectors need space for items, deliveries and distribution thresholds. 2004-03-03 16:54:22 +00:00
terr.c Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
thre.c Sectors need space for items, deliveries and distribution thresholds. 2004-03-03 16:54:22 +00:00
togg.c Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
torp.c Sectors need space for items, deliveries and distribution thresholds. 2004-03-03 16:54:22 +00:00
trad.c (genitem, ship, plane, land): Remove unused member sell & equivalents. 2004-03-01 17:21:40 +00:00
tran.c Sectors need space for items, deliveries and distribution thresholds. 2004-03-03 16:54:22 +00:00
trea.c Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
turn.c Declare all configuration parameters in optlist.h. Remove some 2004-02-19 16:46:18 +00:00
upda.c New server.h for server startup, control and shutdown, i.e. stuff in 2004-02-19 19:02:30 +00:00
upgr.c Delete dead code, fix indentation, spelling, obvious warning 2004-02-27 20:13:28 +00:00
vers.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
wai.c Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
wing.c Indented with src/scripts/indent-emp. 2003-09-02 20:48:48 +00:00
wipe.c Sectors need space for items, deliveries and distribution thresholds. 2004-03-03 16:54:22 +00:00
work.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00
zdon.c deity.h is redundant, remove it. 2004-02-20 20:34:43 +00:00