]> git.pond.sub.org Git - empserver/commitdiff
commands: Rename the command functions
authorMarkus Armbruster <armbru@pond.sub.org>
Mon, 18 Jan 2021 05:00:04 +0000 (06:00 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 23 Jan 2021 07:39:14 +0000 (08:39 +0100)
Command functions are traditionally named like the command shortened
to four characters.  When this name collides with a keyword or library
function, we abbreviate more: brea(), rea().  A few are unabbreviated,
e.g.  execute().  A few have different names, e.g. explain(), not
list().

Commit 23726b379 (v4.3.0) suppressed a GCC warning about carg()
colliding with its built-in function.

Ron Koenderink reported Microsoft Visual Studio 2019 fails to link:
"_carg already defined in ucrtd.lib(ucrtbased.dll)".

Time to clean this up: rename the functions to c_FOO(), where FOO is
the unabbreviated name of the command.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
158 files changed:
configure.ac
include/prototypes.h
include/testing.h
src/lib/commands/acce.c
src/lib/commands/add.c
src/lib/commands/anti.c
src/lib/commands/arm.c
src/lib/commands/army.c
src/lib/commands/assa.c
src/lib/commands/atta.c
src/lib/commands/bdes.c
src/lib/commands/best.c
src/lib/commands/boar.c
src/lib/commands/bomb.c
src/lib/commands/brea.c
src/lib/commands/budg.c
src/lib/commands/buil.c
src/lib/commands/buy.c
src/lib/commands/capi.c
src/lib/commands/carg.c
src/lib/commands/cens.c
src/lib/commands/chan.c
src/lib/commands/coas.c
src/lib/commands/coll.c
src/lib/commands/comm.c
src/lib/commands/cons.c
src/lib/commands/conv.c
src/lib/commands/coun.c
src/lib/commands/cuto.c
src/lib/commands/decl.c
src/lib/commands/deli.c
src/lib/commands/demo.c
src/lib/commands/desi.c
src/lib/commands/disa.c
src/lib/commands/dist.c
src/lib/commands/drop.c
src/lib/commands/dump.c
src/lib/commands/echo.c
src/lib/commands/edit.c
src/lib/commands/enab.c
src/lib/commands/enli.c
src/lib/commands/expl.c
src/lib/commands/fina.c
src/lib/commands/flash.c
src/lib/commands/flee.c
src/lib/commands/fly.c
src/lib/commands/forc.c
src/lib/commands/fort.c
src/lib/commands/give.c
src/lib/commands/grin.c
src/lib/commands/hard.c
src/lib/commands/head.c
src/lib/commands/improve.c
src/lib/commands/info.c
src/lib/commands/land.c
src/lib/commands/laun.c
src/lib/commands/lboard.c
src/lib/commands/ldump.c
src/lib/commands/ledg.c
src/lib/commands/leve.c
src/lib/commands/load.c
src/lib/commands/look.c
src/lib/commands/lost.c
src/lib/commands/lstat.c
src/lib/commands/lten.c
src/lib/commands/map.c
src/lib/commands/marc.c
src/lib/commands/mark.c
src/lib/commands/mfir.c
src/lib/commands/mine.c
src/lib/commands/miss.c
src/lib/commands/mora.c
src/lib/commands/move.c
src/lib/commands/name.c
src/lib/commands/nati.c
src/lib/commands/navi.c
src/lib/commands/ndump.c
src/lib/commands/new.c
src/lib/commands/newe.c
src/lib/commands/news.c
src/lib/commands/nuke.c
src/lib/commands/offe.c
src/lib/commands/orig.c
src/lib/commands/para.c
src/lib/commands/path.c
src/lib/commands/payo.c
src/lib/commands/pboa.c
src/lib/commands/pdump.c
src/lib/commands/peek.c
src/lib/commands/plan.c
src/lib/commands/play.c
src/lib/commands/powe.c
src/lib/commands/prod.c
src/lib/commands/pstat.c
src/lib/commands/rada.c
src/lib/commands/rang.c
src/lib/commands/rea.c
src/lib/commands/real.c
src/lib/commands/reco.c
src/lib/commands/reje.c
src/lib/commands/rela.c
src/lib/commands/relo.c
src/lib/commands/repa.c
src/lib/commands/repo.c
src/lib/commands/rese.c
src/lib/commands/reso.c
src/lib/commands/retr.c
src/lib/commands/rout.c
src/lib/commands/sabo.c
src/lib/commands/sate.c
src/lib/commands/scra.c
src/lib/commands/scut.c
src/lib/commands/sdump.c
src/lib/commands/sect.c
src/lib/commands/sell.c
src/lib/commands/set.c
src/lib/commands/setres.c
src/lib/commands/setsect.c
src/lib/commands/shar.c
src/lib/commands/shark.c
src/lib/commands/shi.c
src/lib/commands/shoo.c
src/lib/commands/show.c
src/lib/commands/shut.c
src/lib/commands/sinf.c
src/lib/commands/skyw.c
src/lib/commands/sona.c
src/lib/commands/spy.c
src/lib/commands/sstat.c
src/lib/commands/stoc.c
src/lib/commands/stop.c
src/lib/commands/stre.c
src/lib/commands/strv.c
src/lib/commands/supp.c
src/lib/commands/surv.c
src/lib/commands/swap.c
src/lib/commands/tele.c
src/lib/commands/tend.c
src/lib/commands/terr.c
src/lib/commands/testing.c
src/lib/commands/thre.c
src/lib/commands/togg.c
src/lib/commands/torp.c
src/lib/commands/trad.c
src/lib/commands/tran.c
src/lib/commands/turn.c
src/lib/commands/upda.c
src/lib/commands/upgr.c
src/lib/commands/vers.c
src/lib/commands/wing.c
src/lib/commands/wipe.c
src/lib/commands/work.c
src/lib/commands/xdump.c
src/lib/commands/zdon.c
src/lib/player/empdis.c
src/lib/player/empmod.c
src/lib/player/player.c
src/lib/subs/unitsub.c

index ea2e22ef5f797cf8f36c27ece15dd595fee6558d..240343238fda14268e8176e24b0b1b2e957f0c30 100644 (file)
@@ -124,9 +124,6 @@ dnl -Wswitch-default dnl
 -Wno-unused-parameter dnl
 ], [], [$cflags_test])
 
-# Our carg() conflicts with libm's TODO clean that up
-MY_APPEND_COMPILE_FLAGS([-fno-builtin-carg -Wno-incompatible-library-redeclaration])
-
 # No multiple definitions of uninitialized global variables
 MY_APPEND_COMPILE_FLAGS([-fno-common])
 
index 29eb013d4f0b1278aaec8983f59f6b896c2ad488..b4d674820131c492a556cf028c73dd0629bf5d14 100644 (file)
@@ -71,170 +71,170 @@ extern int radar(int);
 extern void update_power(void);
 extern int show_first_tel(char *);
 /* Commands */
-int acce(void);
-int add(void);
-int anti(void);
-int apro(void);
-int arm(void);
-int army(void);
-int assa(void);
-int atta(void);
-int bdes(void);
-int best(void);
-int boar(void);
-int bomb(void);
-int brea(void);
-int budg(void);
-int buil(void);
-int buy(void);
-int capi(void);
-int carg(void);
-int cens(void);
-int chan(void);
-int coas(void);
-int coll(void);
-int comm(void);
-int cons(void);
-int conv(void);
-int coun(void);
-int cuto(void);
-int decl(void);
-int deli(void);
-int demo(void);
-int desi(void);
-int disa(void);
-int disarm(void);
-int dist(void);
-int drop(void);
-int dump(void);
-int echo(void);
-int edit(void);
-int enab(void);
-int enli(void);
-int execute(void);
-int explain(void);
-int explore(void);
-int fina(void);
-int flash(void);
-int flee(void);
-int fly(void);
-int force(void);
-int fort(void);
-int give(void);
-int grin(void);
-int hard(void);
-int head(void);
-int improve(void);
-int info(void);
-int land(void);
-int landmine(void);
-int laun(void);
-int lboa(void);
-int lcarg(void);
-int ldump(void);
-int ledg(void);
-int leve(void);
-int lload(void);
-int llook(void);
-int load(void);
-int look(void);
-int lost(void);
-int lrad(void);
-int lretr(void);
-int lsta(void);
-int ltend(void);
-int map(void);
-int march(void);
-int mark(void);
-int mine(void);
-int mission(void);
-int morale(void);
-int move(void);
-int multifire(void);
-int name(void);
-int nati(void);
-int navi(void);
-int ndump(void);
-int new(void);
-int newe(void);
-int news(void);
-int nuke(void);
-int offe(void);
-int orig(void);
-int para(void);
-int path(void);
-int payo(void);
-int pboa(void);
-int pdump(void);
-int peek(void);
-int plan(void);
-int play(void);
-int powe(void);
-int prod(void);
-int pstat(void);
-int quit(void);
-int rada(void);
-int range(void);
-int rea(void);
-int real(void);
-int reco(void);
-int reje(void);
-int rela(void);
-int relo(void);
-int repa(void);
-int repo(void);
-int rese(void);
-int reso(void);
-int retr(void);
-int rout(void);
-int sabo(void);
-int sate(void);
-int scra(void);
-int sct(void);
-int scut(void);
-int sdump(void);
-int sell(void);
-int set(void);
-int setres(void);
-int setsector(void);
-int shar(void);
-int shark(void);
-int shi(void);
-int shoo(void);
-int show(void);
-int show_motd(void);
-int shut(void);
-int sinfra(void);
-int skyw(void);
-int sona(void);
-int spy(void);
-int sstat(void);
-int start(void);
-int starve(void);
-int stoc(void);
-int stop(void);
-int stre(void);
-int supp(void);
-int surv(void);
-int swaps(void);
-int tele(void);
-int tend(void);
-int terr(void);
-int thre(void);
-int togg(void);
-int torp(void);
-int trad(void);
-int tran(void);
-int turn(void);
-int upda(void);
-int upgr(void);
-int vers(void);
-int wall(void);
-int wing(void);
-int wipe(void);
-int work(void);
-int xdump(void);
-int zdon(void);
+int c_accept(void);
+int c_add(void);
+int c_anti(void);
+int c_apropos(void);
+int c_arm(void);
+int c_army(void);
+int c_assault(void);
+int c_attack(void);
+int c_bdes(void);
+int c_bestpath(void);
+int c_board(void);
+int c_bomb(void);
+int c_break(void);
+int c_budget(void);
+int c_build(void);
+int c_buy(void);
+int c_capital(void);
+int c_cargo(void);
+int c_census(void);
+int c_change(void);
+int c_coastwatch(void);
+int c_collect(void);
+int c_commodity(void);
+int c_consider(void);
+int c_convert(void);
+int c_country(void);
+int c_cutoff(void);
+int c_declare(void);
+int c_deliver(void);
+int c_demobilize(void);
+int c_designate(void);
+int c_disable(void);
+int c_disarm(void);
+int c_distribute(void);
+int c_drop(void);
+int c_dump(void);
+int c_echo(void);
+int c_edit(void);
+int c_enable(void);
+int c_enlist(void);
+int c_execute(void);
+int c_explore(void);
+int c_financial(void);
+int c_fire(void);
+int c_flash(void);
+int c_fleetadd(void);
+int c_fly(void);
+int c_force(void);
+int c_fortify(void);
+int c_give(void);
+int c_grind(void);
+int c_harden(void);
+int c_headlines(void);
+int c_improve(void);
+int c_info(void);
+int c_land(void);
+int c_launch(void);
+int c_lboard(void);
+int c_lcargo(void);
+int c_ldump(void);
+int c_ledger(void);
+int c_level(void);
+int c_list(void);
+int c_lload(void);
+int c_llookout(void);
+int c_lmine(void);
+int c_load(void);
+int c_lookout(void);
+int c_lost(void);
+int c_lradar(void);
+int c_lretreat(void);
+int c_lstat(void);
+int c_ltend(void);
+int c_map(void);
+int c_march(void);
+int c_market(void);
+int c_mine(void);
+int c_mission(void);
+int c_morale(void);
+int c_motd(void);
+int c_move(void);
+int c_name(void);
+int c_nation(void);
+int c_navigate(void);
+int c_ndump(void);
+int c_newcap(void);
+int c_neweff(void);
+int c_newspaper(void);
+int c_nuke(void);
+int c_offer(void);
+int c_origin(void);
+int c_paradrop(void);
+int c_path(void);
+int c_payoff(void);
+int c_pboard(void);
+int c_pdump(void);
+int c_peek(void);
+int c_plane(void);
+int c_players(void);
+int c_power(void);
+int c_production(void);
+int c_pstat(void);
+int c_quit(void);
+int c_radar(void);
+int c_range(void);
+int c_read(void);
+int c_realm(void);
+int c_recon(void);
+int c_reject(void);
+int c_relations(void);
+int c_reload(void);
+int c_repay(void);
+int c_report(void);
+int c_reset(void);
+int c_resource(void);
+int c_retreat(void);
+int c_route(void);
+int c_sabotage(void);
+int c_satellite(void);
+int c_scrap(void);
+int c_scuttle(void);
+int c_sdump(void);
+int c_sect(void);
+int c_sell(void);
+int c_set(void);
+int c_setresource(void);
+int c_setsector(void);
+int c_sharebmap(void);
+int c_shark(void);
+int c_ship(void);
+int c_shoot(void);
+int c_show(void);
+int c_shutdown(void);
+int c_sinfrastructure(void);
+int c_skywatch(void);
+int c_sonar(void);
+int c_spy(void);
+int c_sstat(void);
+int c_start(void);
+int c_starvation(void);
+int c_stockpile(void);
+int c_stop(void);
+int c_strength(void);
+int c_supply(void);
+int c_survey(void);
+int c_swapsector(void);
+int c_telegram(void);
+int c_tend(void);
+int c_territory(void);
+int c_threshold(void);
+int c_toggle(void);
+int c_torpedo(void);
+int c_trade(void);
+int c_transport(void);
+int c_turn(void);
+int c_update(void);
+int c_upgrade(void);
+int c_version(void);
+int c_wall(void);
+int c_wingadd(void);
+int c_wipe(void);
+int c_work(void);
+int c_xdump(void);
+int c_zdone(void);
 
 /*
  * src/lib/common/ *.c
index 4ed2d1f5f5e856e002c56511504b941e76990024..198daf37b9b84ddc97b9f0c64e00f57d447b501f 100644 (file)
@@ -36,6 +36,6 @@
 extern int test_suite_prng_seed;
 
 /* Commands for test suite use */
-int testing_cmd(void);
+int c___cmd(void);
 
 #endif
index ce781f03946484dfd7d0b3a7208c5d6c562dd732..3453faf626c2a966470fa94536b47738db96146d 100644 (file)
@@ -42,7 +42,7 @@ static void pr_accept(natid, natid);
  * viewpoint of another country
  */
 int
-acce(void)
+c_accept(void)
 {
     struct natstr *natp;
     struct natstr *np;
index 2bdefd2f4dddccb9025c0bbf3e81e69cc605d7f1..754986f9f34f3491328970a56e93b8c638513db0 100644 (file)
@@ -36,7 +36,7 @@
 #include "commands.h"
 
 int
-add(void)
+c_add(void)
 {
     struct natstr *natp;
     int i;
index 5e95518aff05c46f0fe030d2b6ad00934596b2ba..ffb19678c3adf2aa385a88d3e5008144192034f1 100644 (file)
@@ -43,7 +43,7 @@
  * format: anti <SECT>
  */
 int
-anti(void)
+c_anti(void)
 {
     struct sctstr sect;
     int nsect;
index 4bbfe74201c0b6efc92f36d8f9c5075b5f083ca3..d1cbce96bf8e08ba375f7abc158196a74341c4ac 100644 (file)
@@ -42,7 +42,7 @@
 #include "plane.h"
 
 int
-arm(void)
+c_arm(void)
 {
     struct nchrstr *ncp;
     struct plchrstr *plc;
@@ -132,7 +132,7 @@ arm(void)
 }
 
 int
-disarm(void)
+c_disarm(void)
 {
     struct plnstr pl;
     struct nukstr nuke;
index fc72c2c91774f3b8a2e3a5669df45eff0e944de4..49dffd515c76c949b7492299fa9a4c71ca46832b 100644 (file)
@@ -37,7 +37,7 @@
 #include "land.h"
 
 int
-army(void)
+c_army(void)
 {
     struct lndstr land;
     int count;
index 4f0395554e22d9ba4cc089098c64bf3a8f340a81..2812e0e9ce685b731072206fb6890906417bb2dd 100644 (file)
@@ -45,7 +45,7 @@ static void sneak_ashore(struct combat[], struct emp_qelem *,
                         struct combat *);
 
 int
-assa(void)
+c_assault(void)
 {
     struct combat off[1];      /* assaulting ship */
     struct combat def[1];      /* defending sector */
index efe3fb39b55808363f09ffd966394151f859dec7..cd2c84a2a33fdd1139a1cd0d5ae7d1f0bc293856 100644 (file)
@@ -40,7 +40,7 @@
 #include "ship.h"
 
 int
-atta(void)
+c_attack(void)
 {
     struct combat off[6];      /* attacking sectors */
     struct combat def[1];      /* defending sector */
index 3122d5fbe75f39b846b7eb182bc62cd475f9e8b0..55de905613a16a67d40a064d8ec208b84cc473f5 100644 (file)
@@ -37,7 +37,7 @@
 #include "map.h"
 
 int
-bdes(void)
+c_bdes(void)
 {
     char *p, d;
     struct nstr_sect nstr;
index ab2fe97930c300f105b118a858db6b47398deec5..38fb91786107276e4aa1a6e84a465b7dff9cd735 100644 (file)
@@ -36,7 +36,7 @@
 #include "path.h"
 
 int
-best(void)
+c_bestpath(void)
 {
     double cost;
     struct sctstr s1, s2;
index 7652ad1144d059911f367222f97eb01e8a4350a8..676f625609c2cc5b264ac5d0665845465898390e 100644 (file)
@@ -40,7 +40,7 @@
 #include "ship.h"
 
 int
-boar(void)
+c_board(void)
 {
     struct combat off[1];      /* boarding ship or sector */
     struct combat def[1];      /* defending ship */
index ba19b392fa70509ce416c0a11d705564f2c7eda7..ad0ecf24c051de96c3505aff13c0a5ea9a0aea0c 100644 (file)
@@ -61,7 +61,7 @@ static int pinflak_planedamage(struct plnstr *, struct plchrstr *,
                               natid, int);
 
 int
-bomb(void)
+c_bomb(void)
 {
     char *p;
     coord tx, ty;
index 9693f74f260656ce0ab9fd0ad326df420d4d2fc8..0dea808f9f2c58bd52a55c64a8b6512e5e0203f2 100644 (file)
@@ -35,7 +35,7 @@
 #include "commands.h"
 
 int
-brea(void)
+c_break(void)
 {
     struct natstr *natp;
 
index 2b2af028bb1b0954cbbdc55598a76bd03459a200..5c26a45fc59553b1172697bb28ac5567f8f67849 100644 (file)
@@ -46,7 +46,7 @@ static struct budget *calc_all(void);
 static char *dotsprintf(char *buf, char *format, int data);
 
 int
-budg(void)
+c_budget(void)
 {
     static struct {
        char *activity;
index 58651046fe96e9bde5f68fbb88f7e8ec391c9e74..02888f9369a161cf90cb65ad537e692e6c4b6192 100644 (file)
@@ -65,7 +65,7 @@ static int build_can_afford(double, int, char *);
  * build <WHAT> <SECTS> <TYPE|DIR|MEG> [NUMBER]
  */
 int
-buil(void)
+c_build(void)
 {
     struct natstr *natp = getnatp(player->cnum);
     int tlev = (int)natp->nat_level[NAT_TLEV];
index 72afa28c20e10c86349a77d15dfadd1a31864f9d..45dbec50dd7393a274ae48ee8bc738118784890e 100644 (file)
@@ -48,7 +48,7 @@
  *
  */
 int
-buy(void)
+c_buy(void)
 {
     struct sctstr sect;
     struct natstr *natp;
index 3aa5650fc87b050624a4113c07d3c5ae7051ea73..37288250fbb2c1035f3309faf41e00bb15e34eac 100644 (file)
@@ -37,7 +37,7 @@
 #include "commands.h"
 
 int
-capi(void)
+c_capital(void)
 {
     char buf[1024];
     char *p;
index a615121efd446a5a819530a20e319f530005c77b..dcad074b3c363be912a89ca587a210bebfd295a0 100644 (file)
@@ -37,7 +37,7 @@
 #include "ship.h"
 
 int
-carg(void)
+c_cargo(void)
 {
     int nships;
     struct nstr_item ni;
@@ -86,7 +86,7 @@ carg(void)
 }
 
 int
-lcarg(void)
+c_lcargo(void)
 {
     int nunits;
     struct nstr_item ni;
index 145ad46b941b71d3bde528cd35d30173ada945c3..29cff4da41a699970dab678b4d2923007ffea023 100644 (file)
@@ -39,7 +39,7 @@
 static void cens_hdr(void);
 
 int
-cens(void)
+c_census(void)
 {
     struct sctstr sect;
     int nsect;
index e5948a422c51d5103d9f8a85aebdfde1c1f239df..f481fffc33aacd1ecd33a5b7363fceb2a5fd27f5 100644 (file)
@@ -37,7 +37,7 @@
 #include "optlist.h"
 
 int
-chan(void)
+c_change(void)
 {
     char *p;
     int charge;
index d4e7ee56f5d4fbd3c11355bce9bb117611a3c151..bd35946d554f37c5c9b42f7f756cd0c29bf4604e 100644 (file)
@@ -53,7 +53,7 @@ static int showship(struct coast **cpp, int x, int y);
  * format: coastwatch [<SECTS>]
  */
 int
-coas(void)
+c_coastwatch(void)
 {
     struct sctstr sect;
     struct nstr_sect nstr;
index bbe99ce2c4864f5590f420425d8efa59256c6d18..bf695ee02776fefbdea1f899545066f48aecfb6c 100644 (file)
@@ -43,7 +43,7 @@
 static double appraise_sect(struct sctstr *);
 
 int
-coll(void)
+c_collect(void)
 {
     int arg;
     time_t now;
index bfa2df148dd70e5cad3fb0d3502f12e9c4f85b0b..4a70ef91decaf66b63df19f580a64a4656310f25 100644 (file)
@@ -38,7 +38,7 @@
 static void prthresh(int val);
 
 int
-comm(void)
+c_commodity(void)
 {
     struct sctstr sect;
     char dirstr[12];
index 186fe454d06d9c7b9dcb7b412df9689deb6597bb..a2d56dbf16cb0f3bf07a5e5dd5fa22e7a3656cd3 100644 (file)
@@ -64,7 +64,7 @@ static void late(struct ltcomstr *ltcp);
 static void prev_signed(struct ltcomstr *ltcp);
 
 int
-cons(void)
+c_consider(void)
 {
     int rv;
     struct ltcomstr ltc;
index d3d023edc1cd298cf429aba87f0c7d51b70c415d..70977511ab3a0cc1739e19785c44d93b12199cef 100644 (file)
@@ -41,7 +41,7 @@
 #include "commands.h"
 
 int
-conv(void)
+c_convert(void)
 {
     struct natstr *natp;
     struct sctstr sect;
index 97f29f24c1f126910f152f6c8897329ccee95886..fb572495908442fd6999e2687b9ee4c52d73b1dd 100644 (file)
@@ -38,7 +38,7 @@
 static void coun_list(struct natstr *natp);
 
 int
-coun(void)
+c_country(void)
 {
     struct nstr_item ni;
     struct natstr nat;
index ed4b7a331647bf0eadf4afde9de00527d8dbfc7b..17be7d87f74e872e75391d991ccd191b63b09176 100644 (file)
@@ -36,7 +36,7 @@
 #include "path.h"
 
 int
-cuto(void)
+c_cutoff(void)
 {
     struct sctstr sect;
     int nsect;
index 84cce1a228d5c1835a9669a4e7a1ca8fb8757349..f961323d0b1cf7a511d34d69bf5260f69f102d39 100644 (file)
@@ -36,7 +36,7 @@
 #include "optlist.h"
 
 int
-decl(void)
+c_declare(void)
 {
     struct natstr nat;
     enum relations rel;
index 73088c12d8e6d5695d15995168e652b9b4eda701..66632ef387b9df721d664c38ba6213352c3df0f8 100644 (file)
@@ -37,7 +37,7 @@
 #include "path.h"
 
 int
-deli(void)
+c_deliver(void)
 {
     struct sctstr sect;
     int dir, del;
index 1db1b460938023fcfc01cd9fddd0f438dbd7bf3d..ff564394d945afb58372973f125b3bed9598031a 100644 (file)
@@ -40,7 +40,7 @@
  */
 
 int
-demo(void)
+c_demobilize(void)
 {
     struct natstr *natp;
     int number;
index a963f82951d84a74780954f013e5a22c50b31fb4..3e539eae1c5ee8397c0c8d6b3c6aa39f0815b0fe 100644 (file)
@@ -38,7 +38,7 @@
 #include "optlist.h"
 
 int
-desi(void)
+c_designate(void)
 {
     int n;
     char *p;
index 4de9a61581152edfd756a8f1646548bc6156f10e..b6fe2b3d42880b83dd10a834ae691a72363e25ef 100644 (file)
@@ -36,7 +36,7 @@
 #include "game.h"
 
 int
-disa(void)
+c_disable(void)
 {
     game_ctrl_update(0);
     pr("Updates are disabled\n");
index 48d6e81daf591c1da80646a42797ba2959f3455c..799aac083252b1c76e2945b260186a5f42d97fe5 100644 (file)
@@ -42,7 +42,7 @@
  * distribute <SECT> <DISTSECT|.|h>
  */
 int
-dist(void)
+c_distribute(void)
 {
     struct sctstr sect, dsect, tsect;
     struct nstr_sect nstr;
index 6e7eb4cbbb64b3fe83dd20d51921469963a16066..2c6261fe547e0c9c0e9252d0d3d2739330adc530 100644 (file)
@@ -39,7 +39,7 @@
 #include "plane.h"
 
 int
-drop(void)
+c_drop(void)
 {
     coord tx, ty;
     coord ax, ay;
index 8cc132a3f29b466bb920b465256a643e2367d4c8..9a88f6c84f624c8694adbcb1f8bdb31b9a84f44e 100644 (file)
@@ -38,7 +38,7 @@
 #include "path.h"
 
 int
-dump(void)
+c_dump(void)
 {
     struct sctstr sect;
     char dirstr[20];
index 2478daa1aa48c8cd0568a59790140e12d5f3207a..45609a8483887fe300781b55accec92ed11fd86d 100644 (file)
@@ -35,7 +35,7 @@
 #include "commands.h"
 
 int
-echo(void)
+c_echo(void)
 {
     pr("%s\n", player->argp[1] ? player->argp[1] : "");
 
index cdbc92509504d462f28803af57fb8454d0627419..80683694a160c04c45452c4005624a6792a78d49 100644 (file)
@@ -63,7 +63,7 @@ static int edit_plane(struct plnstr *, char *, char *);
 static int edit_nuke(struct nukstr *, char *, char *);
 
 int
-edit(void)
+c_edit(void)
 {
     union empobj_storage item;
     char *what;
index 509751840ce5fc31882b29c20ef42a73e6fb3d08..c340c9fc63e8344fc5b47650263a5b27a1364168 100644 (file)
@@ -36,7 +36,7 @@
 #include "game.h"
 
 int
-enab(void)
+c_enable(void)
 {
     game_ctrl_update(1);
     pr("Updates are enabled\n");
index 47f3a49b113053547e4913e64d690a148c46a3b0..af710c5c6ce38e7856a2f3a8411bdf7956947a0e 100644 (file)
@@ -36,7 +36,7 @@
 #include "commands.h"
 
 int
-enli(void)
+c_enlist(void)
 {
     struct nstr_sect nstr;
     struct sctstr sect;
index cc10cf74681a6f0e00551a17bb01325508380421..63a67ff7d15f0e1ce20080438fe929724272adb8 100644 (file)
@@ -42,7 +42,7 @@
 static int explore_map(coord, coord, char *, char *);
 
 int
-explore(void)
+c_explore(void)
 {
     int amount;
     struct sctstr sect;
index 9bafdd3d41c771c83185be97fd63a83e915a5708..6645479a1b4148467852ad882ccc7d86ef84d658 100644 (file)
@@ -42,7 +42,7 @@
  * format: fina
  */
 int
-fina(void)
+c_financial(void)
 {
     struct lonstr loan;
     struct nstr_item ni;
index 0119684b6c134374b15a80399b3bbc9792bef3d4..4f95cde1b67fe61a17032f4e5be601af9741beb9 100644 (file)
@@ -41,7 +41,7 @@ static int chat(struct natstr *, char *);
 static int sendmessage(struct natstr *, char *, int);
 
 int
-flash(void)
+c_flash(void)
 {
     struct natstr *us;
     struct natstr *to;
@@ -73,7 +73,7 @@ flash(void)
 }
 
 int
-wall(void)
+c_wall(void)
 {
     return chat(NULL, player->comtail[1]);
 }
index 76351b4c062fb0e6f515d9befb08481709c4edf0..c399b4af78d4eb61536c7afe780b8e1273ef25fd 100644 (file)
@@ -37,7 +37,7 @@
 #include "ship.h"
 
 int
-flee(void)
+c_fleetadd(void)
 {
     struct shpstr ship;
     int count;
index 2aab73384dbb959f31eac1970772f8f241a590d7..4df04bb2fc3640c5c7a368acdf362aa138a841c7 100644 (file)
@@ -41,7 +41,7 @@
 #include "plane.h"
 
 int
-fly(void)
+c_fly(void)
 {
     coord tx, ty;
     coord ax, ay;
index 2e9e0c2a8bb806161f2b6d0f4d725cfdece6c11e..021c0ca0a1730f32a57001ad3d38cd875544154d 100644 (file)
@@ -38,7 +38,7 @@
 #include "server.h"
 
 int
-force(void)
+c_force(void)
 {
     if (shutdown_pending) {
        pr("Shutdown is pending\n");
index 112b8d0ebfdb24861ee65ae3fc2105a1f1de7b17..2d218ca7d3b404a9c2517f1bfe6c838c74428778 100644 (file)
@@ -37,7 +37,7 @@
 #include "optlist.h"
 
 int
-fort(void)
+c_fortify(void)
 {
     int nunits;
     struct nstr_item ni;
index bd74b12a1208b04ec67314e57914270152a7d888..c05a7d5b5b399bb3d37539f41c9fdd8ae4f4f4c2 100644 (file)
@@ -42,7 +42,7 @@
  * format: give <commod> <sect> <amt>
  */
 int
-give(void)
+c_give(void)
 {
     struct sctstr sect;
     int amt;
index e4c281fcd5d909bb41394574f89f27ef88d0e27d..16f55db6579a09bcf38dd940edafb61e3fd8cf91 100644 (file)
@@ -36,7 +36,7 @@
 #include "product.h"
 
 int
-grin(void)
+c_grind(void)
 {
     struct nstr_sect nstr;
     struct sctstr sect;
index 649f4466c249cae85a87a431a6251d40a6a799e7..de27306279c65676ee2ea2393c980b932a3ceadf 100644 (file)
@@ -40,7 +40,7 @@
  * harden <PLANE> <LEVEL>
  */
 int
-hard(void)
+c_harden(void)
 {
     struct plchrstr *pcp;
     struct plnstr pln;
index 00ce25cce9f1a1ddc2258f0027cdb843e90b2617..c1f48fe1357f02d383071fd46b4f6dbd12109eb9 100644 (file)
@@ -48,7 +48,7 @@ static int head_findscoop(struct histstr (*hist)[MAXNOC],
                          natid maxcnum, natid *ano, natid *vno);
 
 int
-head(void)
+c_headlines(void)
 {
     struct histstr *hp;
     natid maxcnum;
index 72f0ba8095b9cb73994e5e19f80e6999a0ba3a25..fa135c7b9f99735817a9af4bb9419a623c2d64a3 100644 (file)
@@ -37,7 +37,7 @@
 #include "commands.h"
 
 int
-improve(void)
+c_improve(void)
 {
     struct sctintrins *incp;
     struct sctstr sect;
index 962ec3d024185758f14e2e36ac281512baf7c690..39842159e69ab7ea8da2991c9c5a9da77ead128c 100644 (file)
@@ -63,7 +63,7 @@ lowerit(char *buf, int n, char *orig)
 #if !defined(_WIN32)
 
 int
-info(void)
+c_info(void)
 {
     char buf[255];
     FILE *fp;
@@ -159,7 +159,7 @@ info(void)
 }
 
 int
-apro(void)
+c_apropos(void)
 {
     FILE *fp;
     char *name, *lbp;
@@ -271,7 +271,7 @@ apro(void)
 #else  /* _WIN32 */
 
 int
-info(void)
+c_info(void)
 {
     char buf[255];
     FILE *fp;
@@ -384,7 +384,7 @@ info(void)
 }
 
 int
-apro(void)
+c_apropos(void)
 {
     HANDLE hDir;
     WIN32_FIND_DATA fData;
index c7ecbcc59d96fa744b3d2bd063977ca4e226ad28..4c298407587b1cc427debe068b3c5d7a620208de 100644 (file)
@@ -37,7 +37,7 @@
 #include "land.h"
 
 int
-land(void)
+c_land(void)
 {
     int nunits, noff;
     struct nstr_item ni;
index 7a78c4e5c6ee37667cd1fc9a56791461dbcab03c..9e1466b5cb282d0f0d7db4de2d68e115f4af1b8d 100644 (file)
@@ -56,7 +56,7 @@ static int msl_equip(struct plnstr *, char);
  * laun <PLANES>
  */
 int
-laun(void)
+c_launch(void)
 {
     struct nstr_item nstr;
     struct plnstr plane;
index 91972d634b754b53b794da1db4f99851c12debe0..b12123f32ac5fab68ff84282782171c0156521ac 100644 (file)
@@ -38,7 +38,7 @@
 #include "ship.h"
 
 int
-lboa(void)
+c_lboard(void)
 {
     struct combat off[1];      /* boarding sector */
     struct combat def[1];      /* defending land unit */
index 6109cd0e70796b9c23fbda9c8819005aa6b33429..1186244b196870afb8108fc85bf8f0c284d9355f 100644 (file)
@@ -37,7 +37,7 @@
 #include "land.h"
 
 int
-ldump(void)
+c_ldump(void)
 {
     int nunits;
     int field[128];
index edd307ebc824479c2b948cbd273d50a566e8dcfe..1e154c903ed03fa0d35a1bea442ace82892551bf 100644 (file)
@@ -37,7 +37,7 @@
 #include "optlist.h"
 
 int
-ledg(void)
+c_ledger(void)
 {
     struct nstr_item nstr;
     struct lonstr loan;
index 1a1a189c54dc968e2f99fd422ef1e2d2678e56af..ee73bf448d3693897341e932fd381644c2147174 100644 (file)
@@ -35,7 +35,7 @@
 #include "commands.h"
 
 int
-leve(void)
+c_level(void)
 {
     struct sctstr sect;
     int nsect;
index 0cae81bc70a29eaf46c195c717e97119b7980ce6..b3e9b60c1e4899945e214a21b44312359cc61eb7 100644 (file)
@@ -61,7 +61,7 @@ static int load_comm_land(struct sctstr *sectp, struct lndstr *lp,
                          int *nunitsp);
 
 int
-load(void)
+c_load(void)
 {
     int loading = **player->argp == 'l';
     int noisy;
@@ -190,7 +190,7 @@ load(void)
 }
 
 int
-lload(void)
+c_lload(void)
 {
     int loading = player->argp[0][1] == 'l';
     int noisy;
index 5984b4c4b5f7f64859951b30b515f8a56f74cbfd..9f4ae5f950f004b11a63caab4d998e45ff10b820 100644 (file)
@@ -44,13 +44,13 @@ static void look_ship(struct shpstr *lookship);
 static void look_land(struct lndstr *lookland);
 
 int
-look(void)
+c_lookout(void)
 {
     return do_look(EF_SHIP);
 }
 
 int
-llook(void)
+c_llookout(void)
 {
     return do_look(EF_LAND);
 }
index 2151c508b22b23699ec5add75b768c938d2b5c9c..08ba874ee5cf624edba0570c535d83acbdd00f4f 100644 (file)
@@ -36,7 +36,7 @@
 #include "lost.h"
 
 int
-lost(void)
+c_lost(void)
 {
     int nlost;
     struct nstr_item ni;
index f30438085dba0e3feda508fee7d07cda62416907..794f7534621948db5f60faf751378320ec108c0c 100644 (file)
@@ -36,7 +36,7 @@
 #include "land.h"
 
 int
-lsta(void)
+c_lstat(void)
 {
     int nunits;
     struct nstr_item ni;
index 3bb98cab312dcd880a4af70162c2828fd7dd69c0..d0603d6e8391a1eee54c7b113a4fa193f488c50a 100644 (file)
@@ -46,7 +46,7 @@
 static void expose_land(struct shpstr *s1, struct lndstr *l1);
 
 int
-ltend(void)
+c_ltend(void)
 {
     struct nstr_item targets;
     struct nstr_item tenders;
index 7eff8d7435ddcd289da0e0392f8de97a2a9728d4..7d812792a0f9d3040250004bb0b3c46cd9cb9712 100644 (file)
@@ -39,7 +39,7 @@
 #include "map.h"
 
 int
-map(void)
+c_map(void)
 {
     int unit_type = EF_BAD;
     int bmap = 0;
index af2491079c577a0ccdd62b67cd39d66275444d12..6bd6c1f34cf4e14e9f1bdc777d55cb4aeae8e63b 100644 (file)
@@ -39,7 +39,7 @@
 #include "unit.h"
 
 int
-march(void)
+c_march(void)
 {
     struct nstr_item ni_land;
     struct emp_qelem land_list;
index b9a01f36f8e2aa4128cf34cc5f9114aea1e7c295..284f310a98c4d07c8f0ce9a4a37c41bb8bedff40 100644 (file)
@@ -41,7 +41,7 @@
 #include "optlist.h"
 
 int
-mark(void)
+c_market(void)
 {
     char buf[1024];
     char *p;
index 5fd32011c05c32cbb1d88273974f335be667e073..cb1eb9c5899410d358768ebe911f4df8b42fff65 100644 (file)
@@ -66,7 +66,7 @@ static void free_flist(struct emp_qelem *);
 static struct flist *search_flist(struct emp_qelem *, struct empobj *);
 
 int
-multifire(void)
+c_fire(void)
 {
     static int ef_with_guns[] = { EF_SECTOR, EF_SHIP, EF_LAND, EF_BAD };
     char *ptr;
index 15c699478cb5161a0a8a888b84693dcb1e508e7a..20966fbeb70b613f91d54015523f69bd0a3eb5fc 100644 (file)
@@ -41,7 +41,7 @@
  * format: mine <SHIPS> <NUMBER MINES>
  */
 int
-mine(void)
+c_mine(void)
 {
     struct shpstr ship;
     struct sctstr sect;
@@ -88,7 +88,7 @@ mine(void)
  * format: landmine <UNITS> <NUMBER MINES>
  */
 int
-landmine(void)
+c_lmine(void)
 {
     struct lndstr land;
     struct sctstr sect;
index 23b620588acee13ee9450420c1198f891707509b..b36e692e2ac13aa4cee869acab4dcc4026f90b71 100644 (file)
@@ -45,7 +45,7 @@ static int show_mission(struct nstr_item *);
  *  mission <type> <planes/ships/units> <mission type> <op sector> [<radius>]
  */
 int
-mission(void)
+c_mission(void)
 {
     static int ef_with_missions[] = { EF_SHIP, EF_LAND, EF_PLANE, EF_BAD };
     char *p;
index 5d487964e6a615ff0b166287f9cd2d11c3064ec2..b3d8c6eabf1bfe343c358c4400c3a52b315911ed 100644 (file)
@@ -37,7 +37,7 @@
 #include "optlist.h"
 
 int
-morale(void)
+c_morale(void)
 {
     struct nstr_item np;
     struct lndstr land;
index 69746e7b584acc944580ad0f67d5aff67453db3f..91b55edf895df91441a7f83e768461ee628accad 100644 (file)
@@ -44,7 +44,7 @@
 static int cmd_move_map(coord, coord, char *, char *);
 
 int
-move(void)
+c_move(void)
 {
     int amount;
     struct sctstr sect;
index a451dcc216f07e26e42a44e668ca8e8c1b905960..cb42e3bc55fd56aea2014fa0132ba01a4626a155 100644 (file)
@@ -39,7 +39,7 @@
  * name <SHIP> <NAME>
  */
 int
-name(void)
+c_name(void)
 {
     struct shpstr ship;
     char *p;
index 8243c28760b58e891733389d5263ddfea690dfb2..f6994c0673241f9c87ce527169db4bc0f71b842e 100644 (file)
@@ -36,7 +36,7 @@
 #include "optlist.h"
 
 int
-nati(void)
+c_nation(void)
 {
     struct natstr *natp;
     struct sctstr sect;
index 6d8e7ff89ea40c0150d70a0e0287e2a761007e4c..869ddbf94b5e7835a7ba2a148c443f50cd740dca 100644 (file)
@@ -38,7 +38,7 @@
 #include "unit.h"
 
 int
-navi(void)
+c_navigate(void)
 {
     struct nstr_item ni_ship;
     struct emp_qelem ship_list;
index 5a20115d39833458eb8dc44fdfe66f67dda4a0bb..cbb0e1ac0312f6c1525e1035ff77a9936f4f770c 100644 (file)
@@ -37,7 +37,7 @@
 #include "nuke.h"
 
 int
-ndump(void)
+c_ndump(void)
 {
     struct nstr_item nstr;
     struct nukstr nuk;
index 917b7f3206b632dd33c4118eacef32184007df5e..985792892d9f94f111f774e23bd801b28679107c 100644 (file)
@@ -43,7 +43,7 @@
 static void init_sanct(struct natstr *, coord, coord);
 
 int
-new(void)
+c_newcap(void)
 {
     static struct range defrealm = { -8, -5, 10, 5, 0, 0 };
     struct sctstr sect;
index bc19399289fffefc4ef2bba049f8e802242e564a..398cc04b004bc9383b1073612a2ade7f27de5b79 100644 (file)
@@ -39,7 +39,7 @@
 #include "update.h"
 
 int
-newe(void)
+c_neweff(void)
 {
     struct natstr *natp;
     struct sctstr sect;
index d89efbf93f08c24444d4db02a1b66c7355b1fe35..cc35a401eccd83b75bc0ee4d7ab113c11c767792 100644 (file)
@@ -46,7 +46,7 @@ struct sectwon {
 };
 
 int
-news(void)
+c_newspaper(void)
 {
     struct natstr *natp;
     time_t now;
@@ -83,7 +83,7 @@ news(void)
        then = now - delta;
     }
     natp->nat_newstim = now;
-    head();
+    c_headlines();
     pr("\nThe details of Empire news since %s", ctime(&then));
 
     heading = 0;
index 5b558300a71021c7a1cccea8f2afd1e691fc067f..d8b3e335449c2651810db6a511a91be10e4985fd 100644 (file)
@@ -38,7 +38,7 @@
 #include "plane.h"
 
 int
-nuke(void)
+c_nuke(void)
 {
     int nnukes, noff;
     struct nstr_item nstr;
index 111505d649fc5c543493ed47191dc2fcc09980c4..845eeae88d15f88ec5a26efa3d56440eab8c70bb 100644 (file)
@@ -41,7 +41,7 @@
 static int do_loan(void);
 
 int
-offe(void)
+c_offer(void)
 {
     char *cp;
 
index c8e2b4ff246967f2e790c46a34c646ca19bb30eb..0df6267434c91c7799368fb9ff31c74e65d65f55 100644 (file)
@@ -37,7 +37,7 @@
 #include "commands.h"
 
 int
-orig(void)
+c_origin(void)
 {
     char *p;
     coord x, y;
index fb88a14feea50bf9760ea311819b7a01df0f8cea..2e676bd636db4fc0c48f432b9ee5c020b94951fb 100644 (file)
@@ -44,7 +44,7 @@
 static int paradrop(struct emp_qelem *list, coord x, coord y);
 
 int
-para(void)
+c_paradrop(void)
 {
     coord tx, ty;
     coord ax, ay;
index 7dacce1a034409a64c5070120546ffcd32a7db72..bbcc26e9d2409f6dbc8f691e79e8ad4b13a38597 100644 (file)
@@ -40,7 +40,7 @@
 #include "path.h"
 
 int
-path(void)
+c_path(void)
 {
 
     struct nstr_sect ns;
index 48d39411cf10797c4e6b459d79a2e73705b47868..f7249d6395df2521a53c0a0387e5b804809ca25a 100644 (file)
@@ -37,7 +37,7 @@
 #include "ship.h"
 
 int
-payo(void)
+c_payoff(void)
 {
     struct sctstr sect;
     int nships;
index c0f362463e1c7ee0e1a8efb9ce4858c6675e202b..f5e0b235478a3c8a0227ac97d4299c6e6d920ac3 100644 (file)
@@ -36,7 +36,7 @@
 #include "plane.h"
 
 int
-pboa(void)
+c_pboard(void)
 {
     struct sctstr sect;
     struct nstr_item np;
index 982d8b04d4aa4c1140454899279d0770fdb43830..1f285a65ef2f75a2868a4b3a65186f309fe858c6 100644 (file)
@@ -38,7 +38,7 @@
 #include "plane.h"
 
 int
-pdump(void)
+c_pdump(void)
 {
     int nplanes;
     struct nstr_item np;
index 305ada901243a815f760046f18570c3389597ecb..a35ba1eab117853c8295623fc57c90b59138f261 100644 (file)
@@ -37,7 +37,7 @@
 #include "commands.h"
 
 int
-peek(void)
+c_peek(void)
 {
     struct sctstr sect;
     int nsect;
index f162d075a79e494b842abc55e6493d02eed52d36..470f858e92d319ce7b1f5e33c294ece35932a50e 100644 (file)
@@ -39,7 +39,7 @@
 #include "plane.h"
 
 int
-plan(void)
+c_plane(void)
 {
     int nplanes, noff;
     struct nstr_item np;
index d3d1e7282d845a7e4114ea6d7b522979c1ba38d6..49c468833fc9a8c9580f8d32142d391a32cd8479 100644 (file)
@@ -41,7 +41,7 @@ static void play_header(void);
 static int play_list(struct player *joe);
 
 int
-play(void)
+c_players(void)
 {
     struct player *joe;
     int saw = 0;
index f72c9951ff091768a7e411ce0f34b35bb04ce6e2..16e4dbbf2b1bf24e3998b960cb06eded4ad91a9f 100644 (file)
@@ -59,7 +59,7 @@ static float power_tech_factor(float);
 static float item_power(short[]);
 
 int
-powe(void)
+c_power(void)
 {
     struct natstr *natp;
     int i;
index e392977e01d1f5d60b21fabf592b8fd7406c7170..1fec59808c4594559ccd4e3685a2302803e9cd4d 100644 (file)
@@ -77,7 +77,7 @@ count_pop(void)
 }
 
 int
-prod(void)
+c_production(void)
 {
     struct natstr *natp;
     struct sctstr sect, scratch_sect;
index 6b96613188cf0be074471fb736d827c1dcd521cf..8dd82702fee3c0cd565f3dbab75d8fe5bfd102c7 100644 (file)
@@ -36,7 +36,7 @@
 #include "plane.h"
 
 int
-pstat(void)
+c_pstat(void)
 {
     int nplanes;
     struct nstr_item np;
index d851f7ff8c0744829fca800276374a1212203804..9d08255e696d5d16ac0e5a9e1508f2a761a7faf9 100644 (file)
 #include "unit.h"
 
 int
-rada(void)
+c_radar(void)
 {
     return radar(EF_SHIP);
 }
 
 int
-lrad(void)
+c_lradar(void)
 {
     return radar(EF_LAND);
 }
index d09b749870a453a3b9b58663f73644633bca4273..54c635b4f5783bb82d50f6597f7f438b84acbb1f 100644 (file)
@@ -36,7 +36,7 @@
 #include "plane.h"
 
 int
-range(void)
+c_range(void)
 {
     struct nstr_item np;
     struct plnstr plane;
index 33fd606edf1e345a2ef9a5ffe24d5f00ceb86da7..fea82ce5966dcfce91843ea79d6763d872a7afff 100644 (file)
@@ -49,7 +49,7 @@
 static int print_sink(char *, size_t, void *);
 
 int
-rea(void)
+c_read(void)
 {
     static char *telnames[] = {
        /* must follow TEL_ defines in tel.h */
index c1411a68ab1da05fb1fbf30d666a45150196749a..ff5f3165a4f1faa230c4dc417c6284b148f8a1a7 100644 (file)
@@ -47,7 +47,7 @@ list_realm(int curr, struct natstr *natp)
 }
 
 int
-real(void)
+c_realm(void)
 {
     struct realmstr realm;
     struct natstr *natp;
index c32586fd3cd427ff65ebac65cfee712f9dc328fd..21be9af38b2989656bfc269f9eedc5fad71d950b 100644 (file)
@@ -39,7 +39,7 @@
 #include "plane.h"
 
 int
-reco(void)
+c_recon(void)
 {
     int mission_flags = player->argp[0][0] == 's' ? PM_R | PM_S : PM_R;
     coord tx, ty;
index a1010d155e38cd3c8972e06be07c9d6108922b30..2cc08160ece1ef27aa3ec468997c5f2df3337f29 100644 (file)
@@ -35,7 +35,7 @@
 #include "commands.h"
 
 int
-reje(void)
+c_reject(void)
 {
     static char *what[] = { "teles", "annos", "loans" };
     char *p;
index a58e6044a80ec41eca46905d049114fc21a4f0cc..ced60bfc2e42c49fdd758b55ab50f3cf14fbc017 100644 (file)
@@ -41,7 +41,7 @@
  * viewpoint of another country
  */
 int
-rela(void)
+c_relations(void)
 {
     struct natstr *np;
     natid cn;
index b5f033c10fa3709845ccb589f4aee880e274872f..5216cee767634d35b875cfdb015e2e66736c7137 100644 (file)
@@ -37,7 +37,7 @@
 #include "server.h"
 
 int
-relo(void)
+c_reload(void)
 {
     /*
      * Like SIGHUP, plus friendly chatter.  If you change anything
index 868c73a50bfa0776f59359d136648b958d6cf3c0..2a1d4f8bcc84c991188c2d1048b0896dcfe2a832 100644 (file)
@@ -39,7 +39,7 @@
 #include "optlist.h"
 
 int
-repa(void)
+c_repay(void)
 {
     struct lonstr loan;
     struct natstr *natp;
index 3973353315e5607882cd505355f9d78030310556..04cf1ed126d27db2bfc05f3449c4195f060a3541 100644 (file)
@@ -43,7 +43,7 @@ static void printdiff(struct natstr *, struct natstr *, int what);
 static int tryprdiff(double, double, double, int, int);
 
 int
-repo(void)
+c_report(void)
 {
     struct natstr *natp;
     struct natstr nat;
index af1824ba7cbb47402e14645ef23416889a29ceb0..4477506d761f59f3923c4e0c4dcfc8114ccf8bfb 100644 (file)
@@ -40,7 +40,7 @@
 #include "optlist.h"
 
 int
-rese(void)
+c_reset(void)
 {
     struct comstr comm;
     struct sctstr sect;
index b63eb56e7285b8093c554ba0de41b67ce25db690..ef0ffd7791c491d7fd1f193b4d1c5060d4759881 100644 (file)
@@ -37,7 +37,7 @@
 static void reso_hdr(void);
 
 int
-reso(void)
+c_resource(void)
 {
     struct sctstr sect;
     int nsect;
index 9a0c58f3c79c55df127b0d9fdd8c76963a0498ee..e0d46f0467a1a4e9abcc848472b7ffcadc7a6c90 100644 (file)
@@ -54,13 +54,13 @@ static int retreat(int);
 static int retreat_show(int, struct nstr_item *);
 
 int
-retr(void)
+c_retreat(void)
 {
     return retreat(EF_SHIP);
 }
 
 int
-lretr(void)
+c_lretreat(void)
 {
     return retreat(EF_LAND);
 }
index 4f5684b5fe6eaad1af4fb132863ca4b0ffb9dee6..c6333bfb4c4224b2d7f4b44baf73cf2c4f3b56e4 100644 (file)
@@ -39,7 +39,7 @@
 #include "path.h"
 
 int
-rout(void)
+c_route(void)
 {
     struct ichrstr *ip;
     struct nstr_sect ns;
index cd868af5a7cfaedcd1971226077bec3d0c7e48bb..ce101c710c60ac8af066a26e1db01a455fb1252d 100644 (file)
@@ -38,7 +38,7 @@
 #include "land.h"
 
 int
-sabo(void)
+c_sabotage(void)
 {
     struct nstr_item ni;
     struct lndstr land, tmp;
index 84b8c2958a7a66eb9445b693249641953a3bd524..f4bd9dfc64d0a663a341e6e0dddfe62d6fb6942a 100644 (file)
@@ -40,7 +40,7 @@
 #include "plane.h"
 
 int
-sate(void)
+c_satellite(void)
 {
     static int sct_shp_or_lnd[] = { EF_SECTOR, EF_SHIP, EF_LAND, EF_BAD };
     double tech;
index cb0e717f438e56d541edfc81348eac783956f1b7..f512e01d27cb565b9c959448ef21a0adc2ba324c 100644 (file)
@@ -40,7 +40,7 @@
 #include "unit.h"
 
 int
-scra(void)
+c_scrap(void)
 {
     struct nstr_item ni;
     union empobj_storage item;
index f89118e5ee35ed3499b21346b9a838c5335bad20..e44f3013d2a52a834576c0522392dcecd46e5968 100644 (file)
@@ -41,7 +41,7 @@
 static int scuttle_tradeship(struct shpstr *);
 
 int
-scut(void)
+c_scuttle(void)
 {
     struct nstr_item ni;
     union empobj_storage item;
index f9482557fd9d29ff198ee40324f76b77f42060ae..ea0492c37255f533853bb31c27e486f9fd56acdf 100644 (file)
@@ -37,7 +37,7 @@
 #include "ship.h"
 
 int
-sdump(void)
+c_sdump(void)
 {
     int nships;
     struct nstr_item ni;
index 9df12b3763490502b1bdb498dd87006fb3102d10..ccdbfd80d9f1633f5dc22c83b55fd923fb3356fa 100644 (file)
@@ -37,7 +37,7 @@
 #include "optlist.h"
 
 int
-sct(void)
+c_sect(void)
 {
     struct nstr_sect ns;
     struct sctstr sect;
index f2203f9d2df9496eafc47eb38efc75b2536e5d8a..e53ce8462d5f83372b4a277c9df1471c200b3aad 100644 (file)
@@ -47,7 +47,7 @@
  *   each sector.
  */
 int
-sell(void)
+c_sell(void)
 {
     struct sctstr sect;
     struct ichrstr *ip;
index f370f06a084b42a08793032c17ff8bc73b758ee0..098808e22742a3a27cf17ecc955d31bbc380f1df 100644 (file)
@@ -47,7 +47,7 @@
  * format: set <type> <SHIP/NUKE> <PRICE>
  */
 int
-set(void)
+c_set(void)
 {
     static int ef_saleable[] = { EF_SHIP, EF_PLANE, EF_LAND, EF_NUKE, EF_BAD };
     char *p;
index c0166563d4326f1333c6b1e208fb3f4d9a2939f0..d8789ae33e4c6b8f399624cb1e1dffa20cf76656 100644 (file)
@@ -41,7 +41,7 @@
  * format: setres resource <amt>  <sect>
  */
 int
-setres(void)
+c_setresource(void)
 {
     struct sctstr sect;
     char *what;
index 017e6fb1f90bd160da5706d1798170410afb1dd4..12d89f7237f7ad57879b56c145dab96b1556cd11 100644 (file)
@@ -40,7 +40,7 @@
  * format: setres thing <sect> <#>
  */
 int
-setsector(void)
+c_setsector(void)
 {
     struct sctstr sect;
     char *what;
index 06de37b0c26e10e7d340b87764ff595f38717bf0..ab4a0b91f0fadcf04cda1d946d44963d7d6ec35a 100644 (file)
@@ -36,7 +36,7 @@
 #include "map.h"
 
 int
-shar(void)
+c_sharebmap(void)
 {
     int to;
     struct nstr_sect ns;
index 19d5ad4afb23f4b7efc5bae9d4ad102c062ebcf7..c27b2f0425c949b91cd976c39d7eed473f8cee3a 100644 (file)
@@ -39,7 +39,7 @@
 #include "optlist.h"
 
 int
-shark(void)
+c_shark(void)
 {
     int arg;
     time_t now;
index fa9de86b9bfddc161b9f330eb8841788f0e756bd..1397398af74b2fa9bdd5e28f0e6b7bd8a1e574fd 100644 (file)
@@ -36,7 +36,7 @@
 #include "ship.h"
 
 int
-shi(void)
+c_ship(void)
 {
     int nships, noff, npln, nch, nxl;
     struct nstr_item ni;
index 7d6e6bf265f8c65dd599f9075e9570bb02b0291e..c7c6cf4b8d508e0f9c0eebadaa8971bac81c4cb0 100644 (file)
@@ -39,7 +39,7 @@
 #include "news.h"
 
 int
-shoo(void)
+c_shoot(void)
 {
     struct sctstr sect;
     struct nstr_sect nstr;
index 1e1dc82cab0364005ecacbf6d057475457863098..5addc64b0a41f661466b08ff61793335d1baebed 100644 (file)
@@ -38,7 +38,7 @@
 #include "optlist.h"
 
 int
-show(void)
+c_show(void)
 {
     char *p;
     void (*cfunc)(int);
index d1fa6bd69da680ee52ca2f2de2594fe92f6f47ab..0b50ad29ef9396c6626a87df9e0e097a37621888 100644 (file)
@@ -39,7 +39,7 @@
 #include "server.h"
 
 int
-shut(void)
+c_shutdown(void)
 {
     int shutdown_minutes;
     int shutdown_was_pending;
@@ -56,7 +56,7 @@ shut(void)
        if (!p)
            return RET_SYN;
        if (*p != 'n')
-           disa();
+           c_disable();
     }
 
     shutdown_was_pending = shutdown_initiate(shutdown_minutes);
index 764bab6a56fa93626de40affe05df32a667913c1..6d7df0d438b23b5a716425485d749b42efbfbb30 100644 (file)
@@ -40,7 +40,7 @@
 static void prmobcost(struct sctstr *, int);
 
 int
-sinfra(void)
+c_sinfrastructure(void)
 {
     struct sctstr sect;
     int nsect;
index f2f43f851e527761247c8182e5168c50904a938b..7ae111259c5931c5ba5539e51daf6b116325c6d6 100644 (file)
@@ -51,7 +51,7 @@ static int showsat(struct sky **skypp, int x, int y);
  * format: skywatch [<SECTS>]
  */
 int
-skyw(void)
+c_skywatch(void)
 {
     struct sctstr sect;
     struct nstr_sect nstr;
index 650a24ab4add4e083769272e0d77fcab6b7b9b5f..41abdf1ea8f394b2bbd98796b24ec77f533bf511 100644 (file)
@@ -46,7 +46,7 @@
 static int blankrow(char *);
 
 int
-sona(void)
+c_sonar(void)
 {
     struct nstr_item ni, nit;
     struct sctstr sect;
index 2adb8ce99eaf8946505973eff94596aef0294412..d9dafe7f05f2cc510be689015d01669974367470 100644 (file)
@@ -54,7 +54,7 @@ static void prunits(int, int);
 static char *player_relstr(natid);
 
 int
-spy(void)
+c_spy(void)
 {
     natid own;
     enum relations relat;
index a3b82b79045bc3a712166e6a2cdcb6c15989808e..8913842927b903f504bedefafa631af019fa1714 100644 (file)
@@ -36,7 +36,7 @@
 #include "ship.h"
 
 int
-sstat(void)
+c_sstat(void)
 {
     int nships;
     struct nstr_item ni;
index 3765179b4ebe0b249071d14b0e3437fe128e5fbb..6460b898546b6b0ee176191a6f3552eb814b0f2c 100644 (file)
@@ -37,7 +37,7 @@
 #include "nuke.h"
 
 int
-stoc(void)
+c_stockpile(void)
 {
     struct nukstr nuke;
     int count;
index f04fbe5e2e7c2ef8b3c7f243e8ed62c89b905837..0d983bfcbf751db0805de358dfcf9fdf6c8cbc92 100644 (file)
@@ -46,13 +46,13 @@ static int start_stop_unit(int, char *, int);
 static void start_stop_unit_hdr(int);
 
 int
-start(void)
+c_start(void)
 {
     return start_stop(0);
 }
 
 int
-stop(void)
+c_stop(void)
 {
     return start_stop(1);
 }
index 741055ba633fcbb4f9e86103e1b2c874df24e18c..ccd625730e52cf4b9928d27028adc5c77c64644d 100644 (file)
@@ -42,7 +42,7 @@ static double units_in_sector(struct combat *def);
 static void stre_hdr(void);
 
 int
-stre(void)
+c_strength(void)
 {
     struct sctstr sect;
     int nsect = 0;
index f39eedb53f1864871129e6fc7228dccee0de2975..6b842638ce41d24e3f4fcb6dd21108af1ec90e5c 100644 (file)
@@ -48,7 +48,7 @@ static void ship_hdr(void);
 static void unit_hdr(void);
 
 int
-starve(void)
+c_starvation(void)
 {
     int do_sects = 0;
     int do_ships = 0;
index 512e172f5e1880b56de438d58ec617c318ef8e68..96fabb60ee8298a87aff5944a60454f1f521d630 100644 (file)
@@ -36,7 +36,7 @@
 #include "land.h"
 
 int
-supp(void)
+c_supply(void)
 {
     int nunits;
     struct nstr_item ni;
index 54fec505f8d0af1a4d571a65a44ae422e22831e1..c8f9f7906060859b41208cbf70e183e2a9f8ab65 100644 (file)
@@ -45,7 +45,7 @@ static char code_char(struct valstr, struct sctstr *sp);
  *
  */
 int
-surv(void)
+c_survey(void)
 {
     int nsect;
     struct nstr_sect nstr;
index 778767025bebe5d98b7b85e02f60cce714aef39a..eb618f5a7c182f2799e3f101a1555b2f620cdb4a 100644 (file)
@@ -41,7 +41,7 @@ static void print_res(struct sctstr *);
  * Syntax: swap <SECT> <SECT>
  */
 int
-swaps(void)
+c_swapsector(void)
 {
     struct sctstr secta, sectb, tmp;
     char buf[1024];
index 3f655a2c237f79ad6c2b450ad6a74b6b79d71cad..080e75f50033aefcdf77a2b01824bf8482009baa 100644 (file)
@@ -38,7 +38,7 @@
 #include "tel.h"
 
 int
-tele(void)
+c_telegram(void)
 {
     natid to;
     struct natstr *natp;
index 308c45d872d01e1f23a3c020c8d130e8e0ca2466..5bce717724129dbddd6a99bc12bc5c1f372948f6 100644 (file)
@@ -48,7 +48,7 @@ static void expose_ship(struct shpstr *s1, struct shpstr *s2);
 static int tend_land(struct shpstr *tenderp, int, char *units);
 
 int
-tend(void)
+c_tend(void)
 {
     struct nstr_item targets;
     struct nstr_item tenders;
index 8f17a90f6ef204f7dbbf8f38932faa2519a92a55..7b37b5e3af6d01ad56181752e9ebd1ff8810151f 100644 (file)
@@ -35,7 +35,7 @@
 #include "commands.h"
 
 int
-terr(void)
+c_territory(void)
 {
     struct sctstr sect;
     char *p;
index e3435b66b5d82b3bddccf57199a621754c0f1549..3830db30abae3e79eb87aa209693e225b515b6be 100644 (file)
@@ -36,7 +36,7 @@
 #include "testing.h"
 
 int
-testing_cmd(void)
+c___cmd(void)
 {
     char *p;
     char buf[1024];
index f126f6cfef1c63affc9dd7f65c62573baaf94b48..d52fb2b4952fc338f15783da2dc4b5026f1c1288 100644 (file)
@@ -40,7 +40,7 @@
  * threshold <COMM> <SECTS> <THRESH>
  */
 int
-thre(void)
+c_threshold(void)
 {
     struct sctstr sect;
     struct nstr_sect nstr;
index e2daad3bf138e62425e8b74f8305ed8b0be0b1db..851b1d6ca6fb8959bec97c712d91a25843134057 100644 (file)
@@ -36,7 +36,7 @@
 #include "commands.h"
 
 int
-togg(void)
+c_toggle(void)
 {
     int flag = 0;
     int pos;
index fc5d3d4a08df1d5bc5db31446564584646ff9a71..7f43201f277023c8d62b2c15540e342268279736 100644 (file)
@@ -47,7 +47,7 @@ static void fire_dchrg(struct shpstr *, struct shpstr *, int);
 static int fire_torp(struct shpstr *, struct shpstr *, int);
 
 int
-torp(void)
+c_torpedo(void)
 {
     natid vshipown;
     int range;
index b1ce47dcc9e59153bc1b592df45ddde545907b2d..e29388af354465d5d1b1e25e4c4f176bc662b92f 100644 (file)
@@ -54,7 +54,7 @@
  * format: trade
  */
 int
-trad(void)
+c_trade(void)
 {
     struct sctstr sect;
     struct natstr *natp;
index 310509715762e791625f1e626fc479768c7b4f66..d99538b914d10b0f044da499644b11c28053a5fe 100644 (file)
@@ -45,7 +45,7 @@ static int tran_plane(void);
 static int pln_weight(struct plnstr *);
 
 int
-tran(void)
+c_transport(void)
 {
     char *what;
     char buf[1024];
index c2aa6c44f719d6a3e97bf0f422cd3eacf3adea79..c5fb8cb12bd07e6990ddc6f6a0a72df0e5337d5a 100644 (file)
@@ -42,7 +42,7 @@
 #include "optlist.h"
 
 int
-turn(void)
+c_turn(void)
 {
     FILE *fptr;
     struct telstr tgm;
index bba589adf454268794b83b4e6f2cc78a8550471a..d9a0668a8714648a1f06a0ea87056006815022e7 100644 (file)
@@ -42,7 +42,7 @@
  * is likely to be.
  */
 int
-upda(void)
+c_update(void)
 {
     time_t now, next, stop;
 
index a4d886e1bdbd88e407a6a35070c0097dbc773d7f..a2061492655f9693919d5dfba74a3c79a5c4a4ae 100644 (file)
@@ -49,7 +49,7 @@ static int pupgr(void);
 static int supgr(void);
 
 int
-upgr(void)
+c_upgrade(void)
 {
     char *p;
     char buf[1024];
index 576d3c9959b05601c1a909d5bff27ebda41d049e..4c2e4305d6b2769c622a550a990a56f206170da3 100644 (file)
@@ -50,7 +50,7 @@ static void show_opts(int val);
 static char *prwrap(char *, char *, int *);
 
 int
-vers(void)
+c_version(void)
 {
     time_t now;
 
index feb06cd7c603aefc0ff1450bb8bf2cdf23e717e4..3254fbe924508a7b6626e471c0b41710bcdc7955 100644 (file)
@@ -37,7 +37,7 @@
 #include "plane.h"
 
 int
-wing(void)
+c_wingadd(void)
 {
 
     struct plnstr plane;
index 692e7d84de90820b9d5729977fd7aebbdb1b1717..8a5745a64a753b222fbdbda889a0ea840a424db0 100644 (file)
@@ -35,7 +35,7 @@
 #include "commands.h"
 
 int
-wipe(void)
+c_wipe(void)
 {
     struct sctstr sect;
     struct nstr_sect nstr;
index 77ff250a942c0c57ab7c979a2aa3d5a01dc077f6..cd4cd7bbc3b751e0952f5826b468096ba3129066 100644 (file)
@@ -39,7 +39,7 @@
 #include "update.h"
 
 int
-work(void)
+c_work(void)
 {
     int nunits;
     struct nstr_item ni;
index 3f44fa2c205c3ef4d98051723edeb39f4abcadf5..37054155c01d3bd7aa701de91bb8fa4a37ba2d9b 100644 (file)
@@ -167,7 +167,7 @@ xditem(struct xdstr *xd, int type, char *arg)
 
 /* Extended dump command */
 int
-xdump(void)
+c_xdump(void)
 {
     char *p;
     char buf[1024];
index 4ce49e677d8c296e598c057e0d1be0854759667c..40cd0694609a233d661f9231ce48e8c65b8f057e 100644 (file)
@@ -49,7 +49,7 @@
 #include "server.h"
 
 int
-zdon(void)
+c_zdone(void)
 {
     int whichcnum;
     struct natstr *natp;
index d2ceeec7684b30c5d431b0d66b7288a300e71e37..6f3cfeedc8a2a0bd912b46892f6fbe4ac1349731 100644 (file)
@@ -107,7 +107,7 @@ log_last_commands(void)
 }
 
 int
-explain(void)
+c_list(void)
 {
     struct cmndstr *com;
 
index 2a47b0679a4887d4eb867f31fba891af705525af..42b5ccdaaff0bddf685bd59b8a31e928ec526d62 100644 (file)
 
 struct cmndstr player_coms[] = {
 /*  command form                       cost    addr    permit */
-    {"accept  [as-COUNTRY]", 0, acce, C_MOD, NORM},
-    {"add <NAT> <NAME> <REP> <STATUS>", 0, add, C_MOD, GOD},
-    {"announce", 0, tele, C_MOD, 0},
-    {"anti <SECTS>", 3, anti, C_MOD, NORM + MONEY + CAP},
-    {"apropos <topic>", 0, apro, 0, 0},
-    {"arm <PLANE> <NUKE> <airburst?>", 3, arm, C_MOD, NORM + CAP},
-    {"army <ARMY> <UNITS>", 0, army, C_MOD, NORM},
+    {"accept  [as-COUNTRY]",
+     0, c_accept, C_MOD, NORM},
+    {"add <NAT> <NAME> <REP> <STATUS>",
+     0, c_add, C_MOD, GOD},
+    {"announce",
+     0, c_telegram, C_MOD, 0},
+    {"anti <SECTS>",
+     3, c_anti, C_MOD, NORM + MONEY + CAP},
+    {"apropos <topic>",
+     0, c_apropos, 0, 0},
+    {"arm <PLANE> <NUKE> <airburst?>",
+     3, c_arm, C_MOD, NORM + CAP},
+    {"army <ARMY> <UNITS>",
+     0, c_army, C_MOD, NORM},
     {"assault <to-SECT> <from-SHIP> [<forts?> <ships?> <arty?> <planes?>]",
-     3, assa, C_MOD, NORM + MONEY + CAP},
+     3, c_assault, C_MOD, NORM + MONEY + CAP},
     {"attack <SECT> [<forts?> <ships?> <arty?> <planes?>]",
-     3, atta, C_MOD, NORM + MONEY + CAP},
-    {"bdes <SECTS> <type>", 0, bdes, C_MOD, NORM},
-    {"bestpath <SECTS> <SECTS>", 0, best, 0, NORM},
-    {"bmap <SECTS|SHIP> [s|l|n|p|r|t|*|h]", 0, map, C_MOD, NORM},
+     3, c_attack, C_MOD, NORM + MONEY + CAP},
+    {"bdes <SECTS> <type>",
+     0, c_bdes, C_MOD, NORM},
+    {"bestpath <SECTS> <SECTS>",
+     0, c_bestpath, 0, NORM},
+    {"bmap <SECTS|SHIP> [s|l|n|p|r|t|*|h]",
+     0, c_map, C_MOD, NORM},
     {"board <to-SHIP> [<from-SHIP>|<from-sector>]",
-     3, boar, C_MOD, NORM + MONEY + CAP},
+     3, c_board, C_MOD, NORM + MONEY + CAP},
     {"bomb <bomber-PLANES> <fighter-PLANES> <pin|strat> <ap-SECT> <PATH|DESTINATION>",
-     2, bomb, C_MOD, NORM + MONEY + CAP},
-    {"break", 0, brea, C_MOD, SANCT},
-    {"budget", 1, budg, 0, NORM},
+     2, c_bomb, C_MOD, NORM + MONEY + CAP},
+    {"break",
+     0, c_break, C_MOD, SANCT},
+    {"budget",
+     1, c_budget, 0, NORM},
     {"build <s|l|b|p|n|t> <SECTS> <type|dir> [<number> <tech> <sure?>]",
-     1, buil, C_MOD, NORM + MONEY + CAP},
+     1, c_build, C_MOD, NORM + MONEY + CAP},
     {"buy <COMM> <LOT#> <BID/UNIT> <DEST>",
-     1, buy, C_MOD, NORM + MONEY + CAP},
-    {"bye", 0, quit, 0, 0},
-    {"capital <SECT>", 0, capi, C_MOD, NORM},
-    {"cargo <SHIPS>", 0, carg, 0, NORM},
-    {"census <SECTS>", 0, cens, 0, NONVIS},
-    {"change <country|representative> <NAME>", 0, chan, C_MOD, NONVIS},
-    {"coastwatch <SECTS>", 1, coas, C_MOD, NORM + CAP},
-    {"collect <LOAN> <SECT>", 2, coll, C_MOD, NORM + MONEY + CAP},
-    {"commodity <SECTS>", 0, comm, 0, NONVIS},
+     1, c_buy, C_MOD, NORM + MONEY + CAP},
+    {"bye",
+     0, c_quit, 0, 0},
+    {"capital <SECT>",
+     0, c_capital, C_MOD, NORM},
+    {"cargo <SHIPS>",
+     0, c_cargo, 0, NORM},
+    {"census <SECTS>",
+     0, c_census, 0, NONVIS},
+    {"change <country|representative> <NAME>",
+     0, c_change, C_MOD, NONVIS},
+    {"coastwatch <SECTS>",
+     1, c_coastwatch, C_MOD, NORM + CAP},
+    {"collect <LOAN> <SECT>",
+     2, c_collect, C_MOD, NORM + MONEY + CAP},
+    {"commodity <SECTS>",
+     0, c_commodity, 0, NONVIS},
     {"consider <loan> <LOAN> <acc|decl|post>",
-     1, cons, C_MOD, NORM + CAP},
-    {"convert <SECTS> <NUM>", 2, conv, C_MOD, NORM + MONEY + CAP},
-    {"country <NATS>", 0, coun, 0, 0},
-    {"cutoff <SECTS>", 0, cuto, 0, NORM},
+     1, c_consider, C_MOD, NORM + CAP},
+    {"convert <SECTS> <NUM>",
+     2, c_convert, C_MOD, NORM + MONEY + CAP},
+    {"country <NATS>",
+     0, c_country, 0, 0},
+    {"cutoff <SECTS>",
+     0, c_cutoff, 0, NORM},
     {"declare <all|friend|neut|hos|war> <NATS>",
-     2, decl, C_MOD, NORM + CAP},
-    {"deliver <COMM> <SECTS> [q|<THRESH>] [<DIR>]", 1, deli, C_MOD, NORM},
-    {"demobilize <SECTS> <NUM> <active-reserve?>", 1, demo, C_MOD,
+     2, c_declare, C_MOD, NORM + CAP},
+    {"deliver <COMM> <SECTS> [q|<THRESH>] [<DIR>]",
+     1, c_deliver, C_MOD, NORM},
+    {"demobilize <SECTS> <NUM> <active-reserve?>",
+     1, c_demobilize, C_MOD,
      NORM + MONEY + CAP},
-    {"designate <SECTS> <type>", 1, desi, C_MOD, NORM},
-    {"disable", 0, disa, C_MOD, GOD},
-    {"disarm <PLANE>", 2, disarm, C_MOD, NORM + CAP},
-    {"distribute <SECTS> <DISTSECT|.|h>", 1, dist, C_MOD, NORM},
+    {"designate <SECTS> <type>",
+     1, c_designate, C_MOD, NORM},
+    {"disable",
+     0, c_disable, C_MOD, GOD},
+    {"disarm <PLANE>",
+     2, c_disarm, C_MOD, NORM + CAP},
+    {"distribute <SECTS> <DISTSECT|.|h>",
+     1, c_distribute, C_MOD, NORM},
     {"drop <cargo-PLANES> <fighter-PLANES> <ap-SECT> <PATH|DESTINATION> <COMM>",
-     1, drop, C_MOD, NORM + MONEY + CAP},
-    {"dump <SECTS> [<fields>]", 0, dump, 0, NORM},
-    {"echo [<string>]", 0, echo, 0, 0},
+     1, c_drop, C_MOD, NORM + MONEY + CAP},
+    {"dump <SECTS> [<fields>]",
+     0, c_dump, 0, NORM},
+    {"echo [<string>]",
+     0, c_echo, 0, 0},
     {"edit <l|s|p|u|n|c> <SECTS|SHIPS|PLANES|LANDS|NUKES|NATS> [<KEY> <VALUE>]...",
-     0, edit, C_MOD, GOD},
-    {"enable", 0, enab, C_MOD, GOD},
-    {"enlist <SECTS> <NUM>", 2, enli, C_MOD, NORM + MONEY + CAP},
-    {"execute <INPUT FILE>", 0, execute, 0, EXEC},
+     0, c_edit, C_MOD, GOD},
+    {"enable",
+     0, c_enable, C_MOD, GOD},
+    {"enlist <SECTS> <NUM>",
+     2, c_enlist, C_MOD, NORM + MONEY + CAP},
+    {"execute <INPUT FILE>",
+     0, c_execute, 0, EXEC},
     {"explore <c|m> <SECT> <NUM> <PATH|DESTINATION>",
-     1, explore, C_MOD, NORM + MONEY + CAP},
-    {"financial", 0, fina, 0, 0},
+     1, c_explore, C_MOD, NORM + MONEY + CAP},
+    {"financial",
+     0, c_financial, 0, 0},
     {"fire <TYPE> <from-SECTS | SHIPS | UNITS> [TO-SECT | SHIP]",
-     1, multifire, C_MOD, NORM + MONEY + CAP},
-    {"flash <COUNTRY> [<message>]", 0, flash, 0, 0},
-    {"fleetadd <FLEET> <SHIPS>", 0, flee, C_MOD, NORM},
+     1, c_fire, C_MOD, NORM + MONEY + CAP},
+    {"flash <COUNTRY> [<message>]",
+     0, c_flash, 0, 0},
+    {"fleetadd <FLEET> <SHIPS>",
+     0, c_fleetadd, C_MOD, NORM},
     {"fly <cargo-PLANES> <fighter-PLANES> <ap-SECT> <PATH|DESTINATION> <COM>",
-     2, fly, C_MOD, NORM + MONEY + CAP},
-    {"force", 0, force, C_MOD, GOD},
-    {"fortify <UNITS> <MOB>", 1, fort, C_MOD, NORM + CAP},
-    {"give <COMM> <SECTS> <NUM>", 0, give, C_MOD, GOD},
-    {"grind <SECTS> <NUM>", 1, grin, C_MOD, NORM + MONEY + CAP},
-    {"harden <PLANES> <NUM>", 2, hard, C_MOD, NORM + MONEY + CAP},
-    {"headlines [days]", 0, head, 0, 0},
-    {"help <topic>", 0, info, 0, 0},
+     2, c_fly, C_MOD, NORM + MONEY + CAP},
+    {"force",
+     0, c_force, C_MOD, GOD},
+    {"fortify <UNITS> <MOB>",
+     1, c_fortify, C_MOD, NORM + CAP},
+    {"give <COMM> <SECTS> <NUM>",
+     0, c_give, C_MOD, GOD},
+    {"grind <SECTS> <NUM>",
+     1, c_grind, C_MOD, NORM + MONEY + CAP},
+    {"harden <PLANES> <NUM>",
+     2, c_harden, C_MOD, NORM + MONEY + CAP},
+    {"headlines [days]",
+     0, c_headlines, 0, 0},
+    {"help <topic>",
+     0, c_info, 0, 0},
     {"improve <road|rail|defense> <SECTS> <NUM>",
-     1, improve, C_MOD, NORM + MONEY + CAP},
-    {"info <topic>", 0, info, 0, 0},
-    {"land <UNITS>", 0, land, 0, NORM},
-    {"launch <PLANES> <SECT|SHIP>", 3, laun, C_MOD, NORM + MONEY + CAP},
-    {"lbmap <SECTS|LAND UNIT> [s|l|n|p|r|t|*|h]", 0, map, C_MOD, NORM},
+     1, c_improve, C_MOD, NORM + MONEY + CAP},
+    {"info <topic>",
+     0, c_info, 0, 0},
+    {"land <UNITS>",
+     0, c_land, 0, NORM},
+    {"launch <PLANES> <SECT|SHIP>",
+     3, c_launch, C_MOD, NORM + MONEY + CAP},
+    {"lbmap <SECTS|LAND UNIT> [s|l|n|p|r|t|*|h]",
+     0, c_map, C_MOD, NORM},
     {"lboard <to-LAND> [<from-sector>]",
-     3, lboa, C_MOD, NORM + MONEY + CAP},
-    {"lcargo <UNITS>", 0, lcarg, 0, NORM},
-    {"ldump <UNITS> [<fields>]", 0, ldump, 0, NORM},
-    {"ledger <LOANS>", 0, ledg, 0, NORM},
-    {"level <SECTS>", 0, leve, 0, NORM},
-    {"list", 0, explain, 0, 0},
+     3, c_lboard, C_MOD, NORM + MONEY + CAP},
+    {"lcargo <UNITS>",
+     0, c_lcargo, 0, NORM},
+    {"ldump <UNITS> [<fields>]",
+     0, c_ldump, 0, NORM},
+    {"ledger <LOANS>",
+     0, c_ledger, 0, NORM},
+    {"level <SECTS>",
+     0, c_level, 0, NORM},
+    {"list",
+     0, c_list, 0, 0},
     {"lload <COMM|\"land\"|\"plane\"> <UNITS> <NUM|UNITS|PLANES>",
-     1, lload, C_MOD, NORM + CAP},
-    {"llookout <UNITS>", 1, llook, 0, NORM + CAP},
-    {"lmap <SECTS|LAND UNIT> [s|l|n|p|*|h]", 0, map, C_MOD, NORM},
-    {"lmine <UNITS>", 2, landmine, C_MOD, NORM + MONEY + CAP},
+     1, c_lload, C_MOD, NORM + CAP},
+    {"llookout <UNITS>",
+     1, c_llookout, 0, NORM + CAP},
+    {"lmap <SECTS|LAND UNIT> [s|l|n|p|*|h]",
+     0, c_map, C_MOD, NORM},
+    {"lmine <UNITS>",
+     2, c_lmine, C_MOD, NORM + MONEY + CAP},
     {"load <COMM|\"land\"|\"plane\"> <SHIPS> <NUM|UNITS|PLANES>",
-     1, load, C_MOD, NORM + CAP},
-    {"lookout <SHIPS>", 1, look, 0, NORM + CAP},
-    {"lost", 0, lost, 0, NORM},
-    {"lradar <UNITS | SECTS>", 1, lrad, C_MOD, NORM + CAP},
+     1, c_load, C_MOD, NORM + CAP},
+    {"lookout <SHIPS>",
+     1, c_lookout, 0, NORM + CAP},
+    {"lost",
+     0, c_lost, 0, NORM},
+    {"lradar <UNITS | SECTS>",
+     1, c_lradar, C_MOD, NORM + CAP},
     {"lretreat <UNITS|ARMY> [q | <PATH> <i|h|b|c>]",
-     1, lretr, C_MOD, NORM + CAP},
-    {"lstat <UNITS>", 0, lsta, 0, NORM},
+     1, c_lretreat, C_MOD, NORM + CAP},
+    {"lstat <UNITS>",
+     0, c_lstat, 0, NORM},
     {"ltend <COMM> <tender-SHIPS> <NUM> <UNITS>",
-     1, ltend, C_MOD, NORM + CAP},
+     1, c_ltend, C_MOD, NORM + CAP},
     {"lunload <COMM|\"land\"|\"plane\"> <UNITS> <NUM|UNITS|PLANES>",
-     1, lload, C_MOD, NORM + CAP},
-    {"map <SECTS|SHIP> [s|l|n|p|*|h]", 0, map, C_MOD, NORM},
-    {"march <UNITS> <PATH|DESTINATION>", 1, march, C_MOD, NORM + CAP},
-    {"market <COMM|\"all\">", 0, mark, C_MOD, NORM},
-    {"mine <SHIPS>", 2, mine, C_MOD, NORM + MONEY + CAP},
+     1, c_lload, C_MOD, NORM + CAP},
+    {"map <SECTS|SHIP> [s|l|n|p|*|h]",
+     0, c_map, C_MOD, NORM},
+    {"march <UNITS> <PATH|DESTINATION>",
+     1, c_march, C_MOD, NORM + CAP},
+    {"market <COMM|\"all\">",
+     0, c_market, C_MOD, NORM},
+    {"mine <SHIPS>",
+     2, c_mine, C_MOD, NORM + MONEY + CAP},
     {"mission <TYPE> <PLANES|SHIPS|UNITS> <mission type> <op sect> [<radius>]",
-     2, mission, C_MOD, NORM + CAP},
-    {"morale <UNITS> <retreat%>", 1, morale, C_MOD, NORM + CAP},
-    {"motd", 0, show_motd, 0, 0},
+     2, c_mission, C_MOD, NORM + CAP},
+    {"morale <UNITS> <retreat%>",
+     1, c_morale, C_MOD, NORM + CAP},
+    {"motd",
+     0, c_motd, 0, 0},
     {"move <COMM> <SECT> <NUM> <PATH|DESTINATION>",
-     1, move, C_MOD, NORM + CAP},
-    {"name <SHIPS> <NAME>", 0, name, C_MOD, NORM},
-    {"nation [as-COUNTRY]", 0, nati, 0, 0},
-    {"navigate <SHIPS> <PATH|DESTINATION>", 1, navi, C_MOD, NORM + CAP},
-    {"nbmap <SECTS|NUKE> [s|l|n|p|r|t|*|h]", 0, map, C_MOD, NORM},
-    {"ndump <NUKES>", 0, ndump, 0, NORM},
-    {"newcap <NAT> <SECTOR>", 0, new, C_MOD, GOD},
-    {"neweff <SECTS>", 0, newe, 0, NORM},
-    {"newspaper [days]", 0, news, 0, 0},
-    {"nmap <SECTS|NUKE> [s|l|n|p|*|h]", 0, map, C_MOD, NORM},
-    {"nuke <NUKES>", 0, nuke, 0, NORM},
+     1, c_move, C_MOD, NORM + CAP},
+    {"name <SHIPS> <NAME>",
+     0, c_name, C_MOD, NORM},
+    {"nation [as-COUNTRY]",
+     0, c_nation, 0, 0},
+    {"navigate <SHIPS> <PATH|DESTINATION>",
+     1, c_navigate, C_MOD, NORM + CAP},
+    {"nbmap <SECTS|NUKE> [s|l|n|p|r|t|*|h]",
+     0, c_map, C_MOD, NORM},
+    {"ndump <NUKES>",
+     0, c_ndump, 0, NORM},
+    {"newcap <NAT> <SECTOR>",
+     0, c_newcap, C_MOD, GOD},
+    {"neweff <SECTS>",
+     0, c_neweff, 0, NORM},
+    {"newspaper [days]",
+     0, c_newspaper, 0, 0},
+    {"nmap <SECTS|NUKE> [s|l|n|p|*|h]",
+     0, c_map, C_MOD, NORM},
+    {"nuke <NUKES>",
+     0, c_nuke, 0, NORM},
     {"offer <loan> <NAT> [<NUM> <DAYS> <IRATE>]",
-     1, offe, C_MOD, NORM + MONEY + CAP},
-    {"origin <SECT|COUNTRY|~>", 1, orig, C_MOD, NORM},
+     1, c_offer, C_MOD, NORM + MONEY + CAP},
+    {"origin <SECT|COUNTRY|~>",
+     1, c_origin, C_MOD, NORM},
     {"paradrop <cargo-PLANES> <fighter-PLANES> <ap-SECT> <PATH|DESTINATION>",
-     3, para, C_MOD, NORM + MONEY + CAP},
-    {"path <SECT>", 0, path, C_MOD, NORM},
-    {"payoff <SHIPS>", 0, payo, 0, NORM},
-    {"pbmap <SECTS|PLANE> [s|l|n|p|r|t|*|h]", 0, map, C_MOD, NORM},
-    {"pboard <PLANES>", 3, pboa, C_MOD, NORM + MONEY + CAP},
-    {"pdump <PLANES> [<fields>]", 0, pdump, 0, NORM},
-    {"peek <SECTS>", 0, peek, 0, GOD},
-    {"plane <SECTS>", 0, plan, 0, NORM},
-    {"players", 0, play, 0, 0},
-    {"pmap <SECTS|PLANE> [s|l|n|p|*|h]", 0, map, C_MOD, NORM},
+     3, c_paradrop, C_MOD, NORM + MONEY + CAP},
+    {"path <SECT>",
+     0, c_path, C_MOD, NORM},
+    {"payoff <SHIPS>",
+     0, c_payoff, 0, NORM},
+    {"pbmap <SECTS|PLANE> [s|l|n|p|r|t|*|h]",
+     0, c_map, C_MOD, NORM},
+    {"pboard <PLANES>",
+     3, c_pboard, C_MOD, NORM + MONEY + CAP},
+    {"pdump <PLANES> [<fields>]",
+     0, c_pdump, 0, NORM},
+    {"peek <SECTS>",
+     0, c_peek, 0, GOD},
+    {"plane <SECTS>",
+     0, c_plane, 0, NORM},
+    {"players",
+     0, c_players, 0, 0},
+    {"pmap <SECTS|PLANE> [s|l|n|p|*|h]",
+     0, c_map, C_MOD, NORM},
     {"power [\"new\"|\"update\"] [<NUMBER OF COUNTRIES> | \"country\" <NATS>]",
-     0, powe, C_MOD, 0},
-    {"pray", 0, tele, C_MOD, NORM},
-    {"production <SECTS>", 0, prod, 0, NORM},
-    {"pstat <PLANES>", 0, pstat, 0, NORM},
-    {"quit", 0, quit, 0, 0},
-    {"radar <SHIPS | SECTS>", 1, rada, C_MOD, NORM + CAP},
-    {"range <PLANES> <range>", 1, range, C_MOD, NORM + CAP},
-    {"read [yes|no|<CNUM/CNAME>]", 0, rea, C_MOD, NONVIS},
-    {"realm <number> [<SECTS>]", 0, real, C_MOD, NORM},
+     0, c_power, C_MOD, 0},
+    {"pray",
+     0, c_telegram, C_MOD, NORM},
+    {"production <SECTS>",
+     0, c_production, 0, NORM},
+    {"pstat <PLANES>",
+     0, c_pstat, 0, NORM},
+    {"quit",
+     0, c_quit, 0, 0},
+    {"radar <SHIPS | SECTS>",
+     1, c_radar, C_MOD, NORM + CAP},
+    {"range <PLANES> <range>",
+     1, c_range, C_MOD, NORM + CAP},
+    {"read [yes|no|<CNUM/CNAME>]",
+     0, c_read, C_MOD, NONVIS},
+    {"realm <number> [<SECTS>]",
+     0, c_realm, C_MOD, NORM},
     {"recon <spy-PLANES> <fighter-PLANES> <ap-SECT> <PATH|DESTINATION>",
-     3, reco, C_MOD, NORM + MONEY + CAP},
+     3, c_recon, C_MOD, NORM + MONEY + CAP},
     {"reject <reject|accept> <announcements|mail|loans> <NAT>",
-     2, reje, C_MOD, NORM},
-    {"relations  [as-COUNTRY]", 0, rela, 0, 0},
-    {"reload", 0, relo, C_MOD, GOD},
-    {"repay <LOAN> <NUM>", 1, repa, C_MOD, NORM + MONEY + CAP},
-    {"report <NATS>", 0, repo, 0, 0},
-    {"reset <lot #> <0|price>", 1, rese, C_MOD, NORM + CAP},
-    {"resource <SECTS>", 0, reso, 0, NONVIS},
+     2, c_reject, C_MOD, NORM},
+    {"relations  [as-COUNTRY]",
+     0, c_relations, 0, 0},
+    {"reload",
+     0, c_reload, C_MOD, GOD},
+    {"repay <LOAN> <NUM>",
+     1, c_repay, C_MOD, NORM + MONEY + CAP},
+    {"report <NATS>",
+     0, c_report, 0, 0},
+    {"reset <lot #> <0|price>",
+     1, c_reset, C_MOD, NORM + CAP},
+    {"resource <SECTS>",
+     0, c_resource, 0, NONVIS},
     {"retreat <SHIPS|FLEET> [q | <PATH> <i|t|s|h|b|d|u|c>]",
-     1, retr, C_MOD, NORM + CAP},
-    {"route <COMM> <SECTS>", 1, rout, C_MOD, NORM},
-    {"sabotage <UNITS>", 1, sabo, C_MOD, NORM + MONEY + CAP},
+     1, c_retreat, C_MOD, NORM + CAP},
+    {"route <COMM> <SECTS>",
+     1, c_route, C_MOD, NORM},
+    {"sabotage <UNITS>",
+     1, c_sabotage, C_MOD, NORM + MONEY + CAP},
     {"satellite <PLANE> [<se|sh|l> [?cond&cond&...]]",
-     1, sate, C_MOD, NORM + CAP},
-    {"sbmap <SECTS|SHIP> [s|l|n|p|r|t|*|h]", 0, map, C_MOD, NORM},
+     1, c_satellite, C_MOD, NORM + CAP},
+    {"sbmap <SECTS|SHIP> [s|l|n|p|r|t|*|h]",
+     0, c_map, C_MOD, NORM},
     {"scrap <s|p|l> <SHIPS|PLANES|UNITS>",
-     2, scra, C_MOD, NORM + MONEY + CAP},
-    {"scuttle <s|p|l> <SHIPS|PLANES|UNITS>", 5, scut, C_MOD, NORM + CAP},
-    {"sdump <SHIPS> [<fields>]", 0, sdump, 0, NORM},
-    {"sect <SECTS>", 0, sct, C_MOD, NORM},
-    {"sell <COMM> <SECTS> <NUM> <NUM>", 1, sell, C_MOD, NORM + CAP},
+     2, c_scrap, C_MOD, NORM + MONEY + CAP},
+    {"scuttle <s|p|l> <SHIPS|PLANES|UNITS>",
+     5, c_scuttle, C_MOD, NORM + CAP},
+    {"sdump <SHIPS> [<fields>]",
+     0, c_sdump, 0, NORM},
+    {"sect <SECTS>",
+     0, c_sect, C_MOD, NORM},
+    {"sell <COMM> <SECTS> <NUM> <NUM>",
+     1, c_sell, C_MOD, NORM + CAP},
     {"set <TYPE> <SHIPS|PLANES|UNITS|NUKES> <PRICE>",
-     1, set, C_MOD, NORM + CAP},
-    {"setresource <type> <SECTS> <NUM>", 0, setres, C_MOD, GOD},
-    {"setsector <type> <SECTS> <NUM>", 0, setsector, C_MOD, GOD},
-    {"sharebmap <CNUM/CNAME> <SECTS> [<des>]", 0, shar, C_MOD, NORM},
-    {"shark <LOAN>", 25, shark, C_MOD, NORM + MONEY + CAP},
-    {"ship <SHIPS>", 0, shi, 0, NORM},
-    {"shoot <c|u> <SECTS> <NUMBER>", 3, shoo, C_MOD, NORM + MONEY + CAP},
+     1, c_set, C_MOD, NORM + CAP},
+    {"setresource <type> <SECTS> <NUM>",
+     0, c_setresource, C_MOD, GOD},
+    {"setsector <type> <SECTS> <NUM>",
+     0, c_setsector, C_MOD, GOD},
+    {"sharebmap <CNUM/CNAME> <SECTS> [<des>]",
+     0, c_sharebmap, C_MOD, NORM},
+    {"shark <LOAN>",
+     25, c_shark, C_MOD, NORM + MONEY + CAP},
+    {"ship <SHIPS>",
+     0, c_ship, 0, NORM},
+    {"shoot <c|u> <SECTS> <NUMBER>",
+     3, c_shoot, C_MOD, NORM + MONEY + CAP},
     {"show <TYPE> <\"build\"|\"stats\"|\"cap\"> [<tech>]\n"
      "\tshow <bridge|item|news|product|tower>\n"
      "\tshow updates [<NUM>]>",
-     0, show, 0, 0},
-    {"shutdown <minutes> <disable update?>", 0, shut, 0, GOD},
-    {"sinfrastructure <SECTS>", 0, sinfra, 0, NONVIS},
-    {"skywatch <SECTS>", 1, skyw, C_MOD, NORM + CAP},
-    {"smap <SECTS|SHIP> [s|l|n|p|*|h]", 0, map, C_MOD, NORM},
-    {"sonar <SHIPS> <brief?>", 1, sona, C_MOD, NORM + CAP},
-    {"spy <SECTS>", 1, spy, C_MOD, NORM + CAP},
-    {"sstat <SHIPS>", 0, sstat, 0, NORM},
-    {"start <TYPE> <SECTS|PLANES|SHIPS|UNITS|NUKES>", 1, start, C_MOD, NORM},
-    {"starvation [<SECTS>|l <UNITS>|s <SHIPS>]", 0, starve, 0, NORM},
-    {"stockpile <STOCKPILE> <NUKES>", 0, stoc, C_MOD, NORM},
-    {"stop <TYPE> <SECTS|PLANES|SHIPS|UNITS|NUKES>", 1, stop, C_MOD, NORM},
-    {"strength <SECTS>", 1, stre, C_MOD, NORM},
-    {"supply <LAND UNITS>", 1, supp, C_MOD, NORM + CAP},
-    {"survey <SELECTOR> <SECTS>", 0, surv, C_MOD, NORM},
-    {"swapsector <SECT> <SECT>", 0, swaps, C_MOD, GOD},
+     0, c_show, 0, 0},
+    {"shutdown <minutes> <disable update?>",
+     0, c_shutdown, 0, GOD},
+    {"sinfrastructure <SECTS>",
+     0, c_sinfrastructure, 0, NONVIS},
+    {"skywatch <SECTS>",
+     1, c_skywatch, C_MOD, NORM + CAP},
+    {"smap <SECTS|SHIP> [s|l|n|p|*|h]",
+     0, c_map, C_MOD, NORM},
+    {"sonar <SHIPS> <brief?>",
+     1, c_sonar, C_MOD, NORM + CAP},
+    {"spy <SECTS>",
+     1, c_spy, C_MOD, NORM + CAP},
+    {"sstat <SHIPS>",
+     0, c_sstat, 0, NORM},
+    {"start <TYPE> <SECTS|PLANES|SHIPS|UNITS|NUKES>",
+     1, c_start, C_MOD, NORM},
+    {"starvation [<SECTS>|l <UNITS>|s <SHIPS>]",
+     0, c_starvation, 0, NORM},
+    {"stockpile <STOCKPILE> <NUKES>",
+     0, c_stockpile, C_MOD, NORM},
+    {"stop <TYPE> <SECTS|PLANES|SHIPS|UNITS|NUKES>",
+     1, c_stop, C_MOD, NORM},
+    {"strength <SECTS>",
+     1, c_strength, C_MOD, NORM},
+    {"supply <LAND UNITS>",
+     1, c_supply, C_MOD, NORM + CAP},
+    {"survey <SELECTOR> <SECTS>",
+     0, c_survey, C_MOD, NORM},
+    {"swapsector <SECT> <SECT>",
+     0, c_swapsector, C_MOD, GOD},
     {"sweep <sweep-PLANES> <fighter-PLANES> <ap-SECT> <PATH|DESTINATION>",
-     3, reco, C_MOD, NORM + MONEY + CAP},
-    {"telegram <NATS>...", 0, tele, C_MOD, NORM},
+     3, c_recon, C_MOD, NORM + MONEY + CAP},
+    {"telegram <NATS>...",
+     0, c_telegram, C_MOD, NORM},
     {"tend <COMM|\"land\"> <tender-SHIPS> <NUM|UNIT> <dest-SHIPS>",
-     1, tend, C_MOD, NORM + CAP},
-    {"territory <SECTS> <NUMBER> [<FIELD>]", 0, terr, C_MOD, NORM},
+     1, c_tend, C_MOD, NORM + CAP},
+    {"territory <SECTS> <NUMBER> [<FIELD>]",
+     0, c_territory, C_MOD, NORM},
     {"test <COMM> <SECT> <NUM> <PATH|DESTINATION>",
-     1, move, C_MOD, NORM},
-    {"threshold <COMM> <SECTS> <THRESH>", 1, thre, C_MOD, NORM},
+     1, c_move, C_MOD, NORM},
+    {"threshold <COMM> <SECTS> <THRESH>",
+     1, c_threshold, C_MOD, NORM},
     {"toggle [inform|flash|beep|coastwatch|sonar|techlists] [on|off]",
-     0, togg, C_MOD, 0},
+     0, c_toggle, C_MOD, 0},
     {"torpedo <submarine-SHIPS> <target-SHIP>",
-     3, torp, C_MOD, NORM + MONEY + CAP},
-    {"trade", 1, trad, C_MOD, NORM + MONEY + CAP},
+     3, c_torpedo, C_MOD, NORM + MONEY + CAP},
+    {"trade",
+     1, c_trade, C_MOD, NORM + MONEY + CAP},
     {"transport <\"nuke\"|\"plane\"> <NUKES|PLANES> <PATH|DESTINATION>",
-     1, tran, C_MOD, NORM + CAP},
-    {"turn <\"on\"|\"off\"|\"mess\">", 0, turn, C_MOD, GOD},
+     1, c_transport, C_MOD, NORM + CAP},
+    {"turn <\"on\"|\"off\"|\"mess\">",
+     0, c_turn, C_MOD, GOD},
     {"unload <COMM|\"land\"|\"plane\"> <SHIPS> <NUM|UNIT|PLANE>",
-     1, load, C_MOD, NORM + CAP},
-    {"update", 0, upda, 0, 0},
+     1, c_load, C_MOD, NORM + CAP},
+    {"update",
+     0, c_update, 0, 0},
     {"upgrade <s|p|l> <SHIPS|PLANES|UNITS>",
-     1, upgr, C_MOD, NORM + MONEY + CAP},
-    {"version", 0, vers, 0, 0},
-    {"wall [<message>]", 0, wall, 0, NORM},
-    {"wingadd <WING> <PLANES>", 0, wing, C_MOD, NORM},
-    {"wipe <SECTS>", 1, wipe, C_MOD, NORM},
-    {"wire [yes|no|<days>]", 0, rea, C_MOD, 0},
-    {"work <LAND UNITS> <AMOUNT>", 1, work, C_MOD, NORM + MONEY + CAP},
-    {"xdump [\"meta\"] <TYPE> [<RECORDS>]", 0, xdump, 0, 0},
-    {"zdone <y|n|c>", 0, zdon, C_MOD, NORM},
-    {"__cmd \"added\" <NUM> <NUM> <NUM>", 0, testing_cmd, 0, TESTING},
+     1, c_upgrade, C_MOD, NORM + MONEY + CAP},
+    {"version",
+     0, c_version, 0, 0},
+    {"wall [<message>]",
+     0, c_wall, 0, NORM},
+    {"wingadd <WING> <PLANES>",
+     0, c_wingadd, C_MOD, NORM},
+    {"wipe <SECTS>",
+     1, c_wipe, C_MOD, NORM},
+    {"wire [yes|no|<days>]",
+     0, c_read, C_MOD, 0},
+    {"work <LAND UNITS> <AMOUNT>",
+     1, c_work, C_MOD, NORM + MONEY + CAP},
+    {"xdump [\"meta\"] <TYPE> [<RECORDS>]",
+     0, c_xdump, 0, 0},
+    {"zdone <y|n|c>",
+     0, c_zdone, C_MOD, NORM},
+    {"__cmd \"added\" <NUM> <NUM> <NUM>",
+     0, c___cmd, 0, TESTING},
     {NULL, 0, NULL, 0, 0}
 };
index 4846953eb4644c318db1314ef20bbc9597da8c4c..78a5e3e8a8457ae45fdd0bac922c720a8659573f 100644 (file)
@@ -58,7 +58,7 @@ player_main(struct player *p)
     player = p;
     time(&player->curup);
     update_timeused_login(player->curup);
-    show_motd();
+    c_motd();
     if (running_test_suite)
        pr("\n"
           "***          Server configured for testing          ***\n"
@@ -229,7 +229,7 @@ make_stale_if_command_arg(char *arg)
  * We'll wait until 1.2 I guess.
  */
 int
-execute(void)
+c_execute(void)
 {
     char buf[1024];            /* UTF-8 */
     int failed;
@@ -275,14 +275,14 @@ execute(void)
 }
 
 int
-show_motd(void)
+c_motd(void)
 {
     show_first_tel(motdfil);
     return RET_OK;
 }
 
 int
-quit(void)
+c_quit(void)
 {
     io_set_eof(player->iop);
     return RET_OK;
index ef7c9cea2ce5f5a02118265c3e49c56dfb3240d1..21222eef295b9c6bd3823ea03d5efcedab3fc39a 100644 (file)
@@ -254,7 +254,7 @@ unit_move_non_dir(struct emp_qelem *list, char *cp, int *map_shown)
        if (leader->ef_type != EF_SHIP)
            return NULL;
        cp = unit_move_parse(cp, leader_str);
-       sona();
+       c_sonar();
        player->btused++;       /* FIXME likewise */
        *map_shown = 1;
        break;
@@ -268,9 +268,9 @@ unit_move_non_dir(struct emp_qelem *list, char *cp, int *map_shown)
            player->argp[1] = leader_str;
        }
        if (leader->ef_type == EF_SHIP)
-           mine();
+           c_mine();
        else
-           landmine();
+           c_lmine();
        player->btused++;       /* FIXME likewise */
        *map_shown = 1;
        break;