]> git.pond.sub.org Git - empserver/commitdiff
Do not include var.h where no longer needed. Clean up register keywords in these...
authorMarc Olzheim <marcolz@stack.nl>
Tue, 12 Oct 2004 20:08:51 +0000 (20:08 +0000)
committerMarc Olzheim <marcolz@stack.nl>
Tue, 12 Oct 2004 20:08:51 +0000 (20:08 +0000)
187 files changed:
include/land.h
include/prototypes.h
include/sect.h
include/ship.h
include/xy.h
src/lib/commands/acce.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/budg.c
src/lib/commands/buy.c
src/lib/commands/capi.c
src/lib/commands/carg.c
src/lib/commands/cede.c
src/lib/commands/cens.c
src/lib/commands/coas.c
src/lib/commands/coll.c
src/lib/commands/comm.c
src/lib/commands/conv.c
src/lib/commands/coun.c
src/lib/commands/cuto.c
src/lib/commands/deli.c
src/lib/commands/demo.c
src/lib/commands/desi.c
src/lib/commands/dist.c
src/lib/commands/drop.c
src/lib/commands/dump.c
src/lib/commands/enli.c
src/lib/commands/flee.c
src/lib/commands/fly.c
src/lib/commands/foll.c
src/lib/commands/fort.c
src/lib/commands/give.c
src/lib/commands/grin.c
src/lib/commands/hard.c
src/lib/commands/hidd.c
src/lib/commands/improve.c
src/lib/commands/land.c
src/lib/commands/laun.c
src/lib/commands/lboard.c
src/lib/commands/ldump.c
src/lib/commands/leve.c
src/lib/commands/look.c
src/lib/commands/lstat.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/mobq.c
src/lib/commands/mobu.c
src/lib/commands/mora.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/nuke.c
src/lib/commands/orde.c
src/lib/commands/para.c
src/lib/commands/path.c
src/lib/commands/payo.c
src/lib/commands/pdump.c
src/lib/commands/plan.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/reco.c
src/lib/commands/rela.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/sail.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/shark.c
src/lib/commands/shi.c
src/lib/commands/shoo.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/star.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/terr.c
src/lib/commands/thre.c
src/lib/commands/torp.c
src/lib/commands/trad.c
src/lib/commands/tran.c
src/lib/commands/upgr.c
src/lib/commands/wing.c
src/lib/commands/wipe.c
src/lib/commands/work.c
src/lib/common/bestpath.c
src/lib/common/check.c
src/lib/common/damage.c
src/lib/common/hap_fact.c
src/lib/common/land.c
src/lib/common/maps.c
src/lib/common/move.c
src/lib/common/res_pop.c
src/lib/common/sectdamage.c
src/lib/common/xy.c
src/lib/global/dir.c
src/lib/global/file.c
src/lib/global/init.c
src/lib/global/nsc.c
src/lib/global/product.c
src/lib/player/init_nats.c
src/lib/player/player.c
src/lib/subs/aircombat.c
src/lib/subs/askyn.c
src/lib/subs/aswplnsubs.c
src/lib/subs/bsanct.c
src/lib/subs/caploss.c
src/lib/subs/control.c
src/lib/subs/detonate.c
src/lib/subs/fortdef.c
src/lib/subs/land.c
src/lib/subs/list.c
src/lib/subs/lndsub.c
src/lib/subs/lostsub.c
src/lib/subs/mission.c
src/lib/subs/move.c
src/lib/subs/mslsub.c
src/lib/subs/nuke.c
src/lib/subs/nxtitem.c
src/lib/subs/nxtsct.c
src/lib/subs/plane.c
src/lib/subs/plnsub.c
src/lib/subs/retreat.c
src/lib/subs/satmap.c
src/lib/subs/ship.c
src/lib/subs/show.c
src/lib/subs/shpsub.c
src/lib/subs/snxtitem.c
src/lib/subs/snxtsct.c
src/lib/subs/supply.c
src/lib/subs/takeover.c
src/lib/subs/trdsub.c
src/lib/update/finish.c
src/lib/update/human.c
src/lib/update/land.c
src/lib/update/main.c
src/lib/update/material.c
src/lib/update/mobility.c
src/lib/update/move_sat.c
src/lib/update/nat.c
src/lib/update/nav_ship.c
src/lib/update/nxtitemp.c
src/lib/update/nxtsctp.c
src/lib/update/plane.c
src/lib/update/populace.c
src/lib/update/prepare.c
src/lib/update/produce.c
src/lib/update/revolt.c
src/lib/update/sail.c
src/lib/update/sect.c
src/lib/update/ship.c
src/server/main.c
src/util/fairland.c
src/util/files.c

index 42e4c0908485a583f8d919a4860a7838d0b3b159..a63a6cb226db074437735bfd2c8d29807d815432 100644 (file)
@@ -41,7 +41,6 @@
 #include "queue.h"
 #include "nsc.h"
 #include "retreat.h"
-#include "var.h"
 
 #define LAND_MINEFF    10
 #define LAND_MINFIREEFF 40     /* arty must be this effic to fire */
index 04aeecbcbc83b2956deff14792dcfd3b2fc5893a..4162a766f88398d15519d8e48f30fbef61e83f1d 100644 (file)
@@ -69,7 +69,7 @@ extern int display_mark(i_type, int);
 extern int want_to_abandon(struct sctstr *, i_type, int, struct lndstr *);
 extern int would_abandon(struct sctstr *, i_type, int, struct lndstr *);
 extern int nav_map(int, int, int);
-extern int count_pop(register int);
+extern int count_pop(int);
 extern int scuttle_tradeship(struct shpstr *, int);
 extern void scuttle_ship(struct shpstr *);
 extern void resnoise(struct sctstr *sptr, int public_amt, s_char *name,
@@ -95,12 +95,12 @@ extern void knockdown(struct sctstr *, struct emp_qelem *);
 /* damage.c */
 extern void landdamage(struct lndstr *, int);
 extern void ship_damage(struct shpstr *, int);
-extern int damage(register int, int);
+extern int damage(int, int);
 extern void shipdamage(struct shpstr *, int);
 extern void land_damage(struct lndstr *, int);
 extern void planedamage(struct plnstr *, int);
 extern int nukedamage(struct nchrstr *, int, int);
-extern int effdamage(register int, int);
+extern int effdamage(int, int);
 extern void item_damage(int, short *);
 extern int commdamage(int, int, i_type);
 /* check.c */
@@ -160,21 +160,21 @@ extern int max_pop(float, struct sctstr *);
 extern int sect_damage(struct sctstr *, int, struct emp_qelem *);
 extern int sectdamage(struct sctstr *, int, struct emp_qelem *);
 /* snxtit_subs.c */
-extern void snxtitem_area(register struct nstr_item *, int,
+extern void snxtitem_area(struct nstr_item *, int,
                          struct range *);
-extern void snxtitem_dist(register struct nstr_item *, int, int, int, int);
-extern void snxtitem_xy(register struct nstr_item *, int, coord, coord);
-extern void snxtitem_all(register struct nstr_item *, int);
-extern void snxtitem_group(register struct nstr_item *, int, s_char);
+extern void snxtitem_dist(struct nstr_item *, int, int, int, int);
+extern void snxtitem_xy(struct nstr_item *, int, coord, coord);
+extern void snxtitem_all(struct nstr_item *, int);
+extern void snxtitem_group(struct nstr_item *, int, s_char);
 extern void snxtitem_rewind(struct nstr_item *);
-extern int snxtitem_list(register struct nstr_item *, int, int *, int);
+extern int snxtitem_list(struct nstr_item *, int, int *, int);
 /* snxtsect_subs.c */
-extern void snxtsct_area(register struct nstr_sect *, struct range *);
-extern void xydist_range(coord, coord, register int, struct range *);
-extern void xysize_range(register struct range *);
+extern void snxtsct_area(struct nstr_sect *, struct range *);
+extern void xydist_range(coord, coord, int, struct range *);
+extern void xysize_range(struct range *);
 extern void snxtsct_all(struct nstr_sect *);
 extern void snxtsct_rewind(struct nstr_sect *);
-extern void snxtsct_dist(register struct nstr_sect *, coord, coord, int);
+extern void snxtsct_dist(struct nstr_sect *, coord, coord, int);
 /* stmtch.c */
 /* in match.h */
 /* type.c */
@@ -376,7 +376,7 @@ extern void nuk_delete(struct nukstr *, int, int);
 /* nxtitem.c */
 extern int nxtitem(struct nstr_item *, void *);
 /* nxtsct.c */
-extern int nxtsct(register struct nstr_sect *, struct sctstr *);
+extern int nxtsct(struct nstr_sect *, struct sctstr *);
 /* plane.c */
 extern s_char *prplane(struct plnstr *);
 extern int pln_postread(int, s_char *);
@@ -507,7 +507,7 @@ extern int shp_missile_defense(coord, coord, natid, int);
 extern void shp_missdef(struct shpstr *, natid);
 extern void shp_set_tech(struct shpstr *, int);
 /* snxtitem.c */
-extern int snxtitem(register struct nstr_item *, int, s_char *);
+extern int snxtitem(struct nstr_item *, int, s_char *);
 /* snxtsct.c */
 extern int snxtsct(register struct nstr_sect *, s_char *);
 /* supply.c */
@@ -518,10 +518,10 @@ extern int try_supply_commod(int, int, int, i_type, int);
 extern int has_supply(struct lndstr *);
 extern int use_supply(struct lndstr *);
 /* takeover.c */
-extern void takeover_land(register struct lndstr *, natid, int);
-extern void takeover(register struct sctstr *, natid);
-extern void takeover_ship(register struct shpstr *, natid, int);
-extern void takeover_plane(register struct plnstr *, natid);
+extern void takeover_land(struct lndstr *, natid, int);
+extern void takeover(struct sctstr *, natid);
+extern void takeover_ship(struct shpstr *, natid, int);
+extern void takeover_plane(struct plnstr *, natid);
 /* trdsub.c */
 /* trechk.c */
 extern int trechk(register natid, register natid, int);
@@ -560,18 +560,18 @@ extern int feed_land(struct lndstr *, int, int *, int);
 /* material.c */
 /* in budg.h */
 /* mobility.c */
-extern void mob_sect(register int);
-extern void mob_ship(register int);
-extern void mob_land(register int);
-extern void mob_plane(register int);
+extern void mob_sect(int);
+extern void mob_ship(int);
+extern void mob_land(int);
+extern void mob_plane(int);
 extern void update_all_mob(void);
 extern void update_timestamps(time_t offset);
-extern void sct_do_upd_mob(register struct sctstr *sp);
-extern void shp_do_upd_mob(register struct shpstr *sp);
-extern void lnd_do_upd_mob(register struct lndstr *lp);
-extern void pln_do_upd_mob(register struct plnstr *pp);
+extern void sct_do_upd_mob(struct sctstr *sp);
+extern void shp_do_upd_mob(struct shpstr *sp);
+extern void lnd_do_upd_mob(struct lndstr *lp);
+extern void pln_do_upd_mob(struct plnstr *pp);
 /* move_sat.c */
-extern void move_sat(register struct plnstr *);
+extern void move_sat(struct plnstr *);
 /* nat.c */
 extern double logx(double, double);
 extern void prod_nat(int);
index 795f5c2a8319d83f338648b4f072fb64362b00ca..437bea90d25f6a2fbfc9c722c7cf534e0407a748 100644 (file)
@@ -38,7 +38,6 @@
 #define _SECT_H_
 
 #include "item.h"
-#include "var.h"
 
 /* The order of the following elements is there to match up with genitem */
 
index 9239b5c83fab856d51db46816d7a923f89b7f48b..a66848daacbc709b1f3e102f7ef1714fc3fc9d08 100644 (file)
@@ -40,7 +40,6 @@
 #include "queue.h"
 #include "misc.h"
 #include "retreat.h"
-#include "var.h"
 
 #define        SHIP_MINEFF     20
 
index d2a51fb9410551fe32b1bfc5e9607015f27c507d..76f5b179ff3fc7316cbc87011d945c4ad04c2b5e 100644 (file)
@@ -65,8 +65,8 @@ extern coord strtox(char *str, char **end);
 extern coord strtoy(char *str, char **end);
 extern coord xabs(struct natstr *np, coord relx);
 extern coord yabs(struct natstr *np, coord rely);
-extern coord xnorm(register coord x);
-extern coord ynorm(register coord y);
+extern coord xnorm(coord x);
+extern coord ynorm(coord y);
 extern int xyinrange(coord x, coord y, struct range *rp);
 
 #endif /* _XY_H_ */
index cdb1759a342e0efe434d4d6a88f94dfee402ea23..24f094553693e5a48ca964f4d8b7a5c4b443a63e 100644 (file)
@@ -33,7 +33,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "nat.h"
 #include "sect.h"
 #include "file.h"
index 37844c6318868fb8b1b050992f7d8008f163ad22..7f57bd79927d187c58e0f548e1d2a8ad39bfa2a4 100644 (file)
@@ -37,7 +37,6 @@
 #include <ctype.h>
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "xy.h"
 #include "sect.h"
 #include "nat.h"
index a0878fb763eba52f4d03dd1a2c2b443f1431d36f..f22bda0ed226abf160f8b77d1097bbc67b2d9cab 100644 (file)
@@ -36,7 +36,6 @@
 #include <string.h>
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "sect.h"
 #include "nuke.h"
 #include "plane.h"
index 993a48eeaf3a93de7592c9f43967ce07cd119ea9..bc087ba1e30fed3862c7c92c109106fc1cb2e8a6 100644 (file)
@@ -34,7 +34,6 @@
 #include <ctype.h>
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "land.h"
 #include "xy.h"
 #include "nsc.h"
@@ -46,7 +45,7 @@ int
 army(void)
 {
     struct lndstr land;
-    register int count;
+    int count;
     s_char *cp;
     s_char c;
     struct nstr_item nstr;
index bb74be168e2cc2c91b4200ee032f614e7e0422c2..5ab6d758730e0f59e32c7695ff22527c85b3b891 100644 (file)
@@ -36,7 +36,6 @@
 #include "misc.h"
 #include "player.h"
 #include "file.h"
-#include "var.h"
 #include "sect.h"
 #include "path.h"
 #include "news.h"
index ad4e8028c0aa7874654c312773458f4efd308fb6..56857a18466dfe53d22988a181700f713aceaea2 100644 (file)
@@ -37,7 +37,6 @@
 #include "misc.h"
 #include "player.h"
 #include "file.h"
-#include "var.h"
 #include "sect.h"
 #include "path.h"
 #include "news.h"
index ba423005d1a79d05781e2f584f834d35799058ff..1c669c125aaf1bdb9e44838a98927794590c9761 100644 (file)
@@ -33,7 +33,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "sect.h"
 #include "item.h"
 #include "xy.h"
index 9f375f30a0b13d2a7d891e2c79da40461cb1869d..e2c77b1a80d382de54ef571ee4e9eb545ed7c7a2 100644 (file)
@@ -33,7 +33,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "sect.h"
 #include "item.h"
 #include "xy.h"
index 95f9f22a7b4d8f242c4996e9db37fcbd46bf03e9..9d5aa93ffece59f0e45b27c8435e90b15789ca34 100644 (file)
@@ -35,7 +35,6 @@
 #include "misc.h"
 #include "player.h"
 #include "file.h"
-#include "var.h"
 #include "sect.h"
 #include "path.h"
 #include "news.h"
index f8d44741836cba09ad4d268dcd65e2b7b2ff044f..b6c6ab4d99b8dc49f3f4dbaddf227c28fc845849 100644 (file)
@@ -37,7 +37,6 @@
 #include <string.h>
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "sect.h"
 #include "ship.h"
 #include "land.h"
@@ -361,7 +360,7 @@ pin_bomb(struct emp_qelem *list, struct sctstr *target)
 static void
 eff_bomb(struct emp_qelem *list, struct sctstr *target)
 {
-    register struct plist *plp;
+    struct plist *plp;
     struct emp_qelem *qp;
     struct sctstr sect;
     int oldeff, dam = 0;
@@ -411,7 +410,7 @@ eff_bomb(struct emp_qelem *list, struct sctstr *target)
 static void
 comm_bomb(struct emp_qelem *list, struct sctstr *target)
 {
-    register struct plist *plp;
+    struct plist *plp;
     float b;
     int i;
     int amt, before;
@@ -873,7 +872,7 @@ land_bomb(struct emp_qelem *list, struct sctstr *target)
 static void
 strat_bomb(struct emp_qelem *list, struct sctstr *target)
 {
-    register struct plist *plp;
+    struct plist *plp;
     int dam = 0;
     struct emp_qelem *qp;
     struct sctstr sect;
index aa8df368e5b6572add5096cbbc92afe50785d242..9c446217d55a6274e1a353ec21425d81e9fb81e3 100644 (file)
@@ -36,7 +36,6 @@
 #include <string.h>
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "xy.h"
 #include "nsc.h"
 #include "sect.h"
@@ -222,7 +221,7 @@ calc_all(long p_sect[][2],
         int *units, int *lbuild, int *nlbuild, int *lmaint,
         int *planes, int *pbuild, int *npbuild, int *pmaint)
 {
-    register int y, z;
+    int y, z;
     struct natstr *np;
     int sm = 0, sb = 0, pm = 0, pb = 0, lm = 0, lb = 0;
     int *bp;
index 59972e5eb127cbd8ea56b5abe6a6435ea3460379..2db7c75570ca629011b8b144bd5a175491db8f1b 100644 (file)
@@ -36,7 +36,6 @@
 #include "misc.h"
 #include "xy.h"
 #include "file.h"
-#include "var.h"
 #include "sect.h"
 #include "nat.h"
 #include "news.h"
index c9820eef2a4cba950a43164be4cd9021bf42b480..ed93c48d37287186c583771356e24eedc8ad4363 100644 (file)
@@ -35,7 +35,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "sect.h"
 #include "nat.h"
 #include "xy.h"
index d822425a86a2cbf74e5e1115ac06972f06d1e508..6fe1df3012784a7952f54415c59fa3c1eac7886d 100644 (file)
@@ -33,7 +33,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "xy.h"
 #include "sect.h"
 #include "ship.h"
index 5bfe4710c3ceb6ebe1f65c700a14c6debb1b354d..15948c59e5308aa234d9b591ad20de603a271b74 100644 (file)
@@ -34,7 +34,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "xy.h"
 #include "sect.h"
 #include "nsc.h"
@@ -51,8 +50,8 @@
 static void cede_hdr(void);
 static int cede_sect(struct nstr_sect *, natid);
 static int cede_ship(struct nstr_item *, natid);
-static void grab_sect(register struct sctstr *, natid);
-static void grab_ship(register struct shpstr *, natid);
+static void grab_sect(struct sctstr *, natid);
+static void grab_ship(struct shpstr *, natid);
 
 int
 cede(void)
@@ -195,7 +194,7 @@ cede_hdr(void)
 
 
 static void
-grab_sect(register struct sctstr *sp, natid to)
+grab_sect(struct sctstr *sp, natid to)
 {
     struct plnstr *pp;
     struct lndstr *lp;
@@ -332,10 +331,10 @@ cede_ship(struct nstr_item *ni, natid to)
 }
 
 static void
-grab_ship(register struct shpstr *sp, natid to)
+grab_ship(struct shpstr *sp, natid to)
 {
-    register struct plnstr *pp;
-    register struct lndstr *lp;
+    struct plnstr *pp;
+    struct lndstr *lp;
     struct nstr_item ni;
     struct plnstr p;
     struct lndstr l;
index f9ca649efa98957b2ccb7d2794edcb9f77af0fc7..c5e4d2404f9477028c9066e0ad759323ecf3e5e5 100644 (file)
@@ -34,7 +34,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "xy.h"
 #include "sect.h"
 #include "nsc.h"
index 50615afc9529f19d611a572ed9b37b113188fc36..909ee09e8e306c0b9bd3ee145d0e059d8109e164 100644 (file)
@@ -34,7 +34,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "sect.h"
 #include "ship.h"
 #include "nat.h"
@@ -144,9 +143,9 @@ coas(void)
 static int
 showship(struct coast **cpp, int x, int y)
 {
-    register struct coast *cp;
-    register struct coast *todelete = 0;
-    register struct coast **prev;
+    struct coast *cp;
+    struct coast *todelete = 0;
+    struct coast **prev;
     int nship = 0;
 
     prev = 0;
index 9ad041d10312b3011a40f22248e029f5ed5c39a2..754b0f7ca735217c9e90f8c048ad499403e675eb 100644 (file)
@@ -35,7 +35,6 @@
 #include <math.h>
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "file.h"
 #include "sect.h"
 #include "item.h"
@@ -49,9 +48,9 @@
 int
 coll(void)
 {
-    register int arg;
-    register int i;
-    register int val;
+    int arg;
+    int i;
+    int val;
     time_t now;
     char *p;
     struct lonstr loan;
index 0dff4fc398c244a40553557655b25f84ccc1b913..f8105309e156be69f72c0fa66f78ad0f41f7023a 100644 (file)
@@ -33,7 +33,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "sect.h"
 #include "xy.h"
 #include "nsc.h"
index 3b949f804ff73c0cdd73514abb95a4d51a6c6dec..518ce815c2d729e7b71785ee5631d6ead180df62 100644 (file)
@@ -37,7 +37,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "sect.h"
 #include "nat.h"
 #include "xy.h"
index c86303129f5ba7fad1fb853d962f9c986157e3b2..46990989d4e2add694793dce3cc435bead581dff 100644 (file)
@@ -33,7 +33,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "sect.h"
 #include "nat.h"
 #include "xy.h"
index 52c8c1c6b09ed0d71b2407330e4b1b3a02097c4e..8eb1779b96a1c2053a4777e87df09bd4572f08fd 100644 (file)
@@ -33,7 +33,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "sect.h"
 #include "xy.h"
 #include "nsc.h"
index 07820cf651e47a85734cbdec58b05bc65eb4a88d..56ccbdb81ff8f34b91b78c4a7d07aea1b11f98aa 100644 (file)
@@ -34,7 +34,6 @@
 #include "misc.h"
 #include "player.h"
 #include "xy.h"
-#include "var.h"
 #include "sect.h"
 #include "item.h"
 #include "file.h"
@@ -47,9 +46,9 @@ int
 deli(void)
 {
     struct sctstr sect;
-    register int dir, del;
-    register struct ichrstr *ich;
-    register int thresh;
+    int dir, del;
+    struct ichrstr *ich;
+    int thresh;
     int sx, sy;
     struct nstr_sect nstr;
     s_char buf[1024];
index 00d2cdd38b4c352568ced38d7e75026af580dba8..39aae7789a4afccdd3dfdf2339691a072c49bb3d 100644 (file)
@@ -34,7 +34,6 @@
 #include "misc.h"
 #include "player.h"
 #include "xy.h"
-#include "var.h"
 #include "sect.h"
 #include "nat.h"
 #include "nsc.h"
index 981942874853cb4384e52957bde5b1c965b55c07..b53e4bee2b28a36452be92c321e18cabc65620b3 100644 (file)
@@ -33,7 +33,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "sect.h"
 #include "item.h"
 #include "xy.h"
@@ -70,7 +69,7 @@ static long
 do_desi(struct natstr *natp, s_char *sects, s_char *deschar, long int cash,
        int for_real)
 {
-    register int n;
+    int n;
     s_char *p;
     int breaksanct;
     int cap_x;
index 001670c0aa8f32558e43cdbdce2d63791c16ff34..5a99297b790b7fea38da1a74f8d9e56d3de2fe14 100644 (file)
@@ -35,7 +35,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "xy.h"
 #include "sect.h"
 #include "nsc.h"
index b0114bb31df9a1d63ab3bc1b3d6b2f35cd6ca2b1..f045666afbc94deee5835267bf7dac2cde4b88ae 100644 (file)
@@ -33,7 +33,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "sect.h"
 #include "ship.h"
 #include "item.h"
index 2f8c054efd5ffe479e07cfa98204125938a3e754..f32c34e19023b0bdc3b14f94220f890f9ae782a8 100644 (file)
@@ -34,7 +34,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "xy.h"
 #include "sect.h"
 #include "nsc.h"
index 8e2c0f9860b1c826f4adce9a529e095a58d68e21..484221574536e6c1db1e155f67beed9223670ae8 100644 (file)
@@ -33,7 +33,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "xy.h"
 #include "sect.h"
 #include "nsc.h"
index 718040b22ffe088edcb55a643705cb34ab1df278..2b739e4f1a336453afa16480d30f0a0f6372d37d 100644 (file)
@@ -34,7 +34,6 @@
 #include <ctype.h>
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "ship.h"
 #include "xy.h"
 #include "nsc.h"
@@ -46,7 +45,7 @@ int
 flee(void)
 {
     struct shpstr ship;
-    register int count;
+    int count;
     s_char *cp;
     s_char c;
     struct nstr_item nstr;
index c82dd2867c5584c93aa0a57ff901b3dfb6c4b694..34bcc61dd0a4bbbc073b2a7a13eb4c1b0f74ed19 100644 (file)
@@ -34,7 +34,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "sect.h"
 #include "ship.h"
 #include "item.h"
index f9867b3d85cefe22a739ad000f76861be73da952..ee15dd517f17d8b40c843ab0e14d6a6fd9b1c383 100644 (file)
@@ -34,7 +34,6 @@
 #include <ctype.h>
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "ship.h"
 #include "xy.h"
 #include "nsc.h"
index cbc959d2e09f914ef9411c3e04171d9bc25019fb..e94678f32c25c2b721355d63271a5ee8cdf4de97 100644 (file)
@@ -34,7 +34,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "xy.h"
 #include "sect.h"
 #include "land.h"
index 7b7533b1a1df1b74bef0a16e16d753b095c778a7..2b9d8948eecfa8433b03607a9dda1037194486b0 100644 (file)
@@ -34,7 +34,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "sect.h"
 #include "nat.h"
 #include "news.h"
index dcfca819f5087c8778bfe25181a92dd3294241a0..a69ba22c90e450f181098e3bf3f9a3d3fb899fe7 100644 (file)
@@ -33,7 +33,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "xy.h"
 #include "sect.h"
 #include "nat.h"
index 2ddad6e73e81463bd19ad5ad79f503c155055315..17a1fd98dc3a075e5605c8b2cfe623d2f68f5fbb 100644 (file)
@@ -33,7 +33,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "sect.h"
 #include "item.h"
 #include "plane.h"
index dd797ad7689e7fd8638be5cfbf1c034142e7ce6c..a1c19253f65af94e61a333186678f26f9e5c5da8 100644 (file)
@@ -35,7 +35,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "sect.h"
 #include "xy.h"
 #include "nsc.h"
index 1762a2e351aa0c9706c60728d3a6d3d733ddf06d..7b77f2cd27cee9a9fad225eac23b53f1d3ee60bf 100644 (file)
@@ -34,7 +34,6 @@
 #include <string.h>
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "xy.h"
 #include "sect.h"
 #include "nsc.h"
index 81e2b3ba2027db60144786e034e1531444dd496b..c7d2fa76c695f28587962e5948a6b85e4a437059 100644 (file)
@@ -33,7 +33,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "xy.h"
 #include "sect.h"
 #include "land.h"
index bfef6055c922eed85fe4e0a46f9e2de8db150008..3f3ce5c734338c8b3923baca61aa1de10f092844 100644 (file)
@@ -36,7 +36,6 @@
 #include "misc.h"
 #include "player.h"
 #include "xy.h"
-#include "var.h"
 #include "sect.h"
 #include "item.h"
 #include "plane.h"
index 5268f57fd81ed2d2714499c7683da7c1eaec15d7..89778f513e5b46acf6c8679ffbe22be384bd02df 100644 (file)
@@ -35,7 +35,6 @@
 #include "misc.h"
 #include "player.h"
 #include "file.h"
-#include "var.h"
 #include "sect.h"
 #include "path.h"
 #include "news.h"
index b8aeaeeb4fb6397ab7f7f1a5fae89671d06a1917..d5a35fc136439653779b23be43c6bac48d285ba2 100644 (file)
@@ -41,7 +41,6 @@
 #include "nsc.h"
 #include "file.h"
 #include "optlist.h"
-#include "var.h"
 #include "commands.h"
 
 int
index 70f8bb6d86588f05b86b99e27d3e5a67a0b5b1e3..676d6e9875aa969f80d21a38bf176cf496f9329e 100644 (file)
@@ -33,7 +33,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "sect.h"
 #include "xy.h"
 #include "nsc.h"
index 536c1d4aa6e81e478dc5098e54e20b56c5f8709e..d878335ff1a71da7863e3f1043b4525b1b7259f3 100644 (file)
@@ -33,7 +33,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "xy.h"
 #include "sect.h"
 #include "ship.h"
 #include "commands.h"
 #include "optlist.h"
 
-static void look_ship(register struct shpstr *lookship);
+static void look_ship(struct shpstr *lookship);
 
 int
 look(void)
 {
-    register int i;
+    int i;
     struct nstr_item ni;
     struct shpstr myship;
     struct sctstr sect;
@@ -113,11 +112,11 @@ look(void)
 }
 
 static void
-look_ship(register struct shpstr *lookship)
+look_ship(struct shpstr *lookship)
 {
-    register struct shpstr *sp;
-    register struct mchrstr *smcp;
-    register struct mchrstr *tmcp;
+    struct shpstr *sp;
+    struct mchrstr *smcp;
+    struct mchrstr *tmcp;
     struct sctstr sect;
     int range;
     int vrange;
@@ -172,12 +171,12 @@ look_ship(register struct shpstr *lookship)
     }
 }
 
-static void look_land(register struct lndstr *lookland);
+static void look_land(struct lndstr *lookland);
 
 int
 llook(void)
 {
-    register int i;
+    int i;
     struct nstr_item ni;
     struct lndstr myland;
     struct sctstr sect;
@@ -247,10 +246,10 @@ llook(void)
 }
 
 static void
-look_land(register struct lndstr *lookland)
+look_land(struct lndstr *lookland)
 {
-    register struct plnstr *pp;
-    register struct lndstr *lp;
+    struct plnstr *pp;
+    struct lndstr *lp;
     double drange;
     int range;
     int vrange;
index 62250f82677d5ef8f81f2657cd3183aed0478ac3..5341da95148378c3e926a9e2ce2014470bada3a8 100644 (file)
@@ -33,7 +33,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "xy.h"
 #include "sect.h"
 #include "land.h"
index 2dbc2c5ed7db375b7a768b3eff557478cb3a8b24..8349a81fa9657557e55062628a69123c6f072c32 100644 (file)
@@ -35,7 +35,6 @@
 #include <ctype.h>
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "land.h"
 #include "sect.h"
 #include "news.h"
index 78ea930242843a52db63f06f5c71024a4609f26b..9bcaf85c25a75b853c0b4f9037b7d2aeeb0aba36 100644 (file)
@@ -35,7 +35,6 @@
 
 #include "misc.h"
 #include "nat.h"
-#include "var.h"
 #include "item.h"
 #include "commodity.h"
 #include "player.h"
index bde1f791e6abc9c9cf1eda80f85467281a603f2a..f9e935a834de131f2c2cb02e61dc6a15902ed354 100644 (file)
@@ -34,7 +34,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "xy.h"
 #include "treaty.h"
 #include "nat.h"
index 24c95421f37e593f427f23470ba1218c71d04e1e..cd256e41d38d077146ac688be27b1a32a99c8b7d 100644 (file)
@@ -33,7 +33,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "ship.h"
 #include "land.h"
 #include "sect.h"
index bfe303aaeca794515d65d9433dec6d54a0a83b8d..3bfc5cfbf19de2db063a2a5e72929e242e81a2fc 100644 (file)
@@ -35,7 +35,6 @@
 #include "options.h"
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "xy.h"
 #include "sect.h"
 #include "retreat.h"
index b59be60abe4cdd857a7778c07a9b33bb6c743c43..e06655a6a571e1d0259eba722a76e583ed8b41da 100644 (file)
@@ -34,7 +34,6 @@
 #include <ctype.h>
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "ship.h"
 #include "xy.h"
 #include "nsc.h"
index 0254f583c3de62476b78be67c71ce10a8cd82121..c16d6c87499d08119a3ed8d123313ef79d10fe94 100644 (file)
@@ -33,7 +33,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "xy.h"
 #include "sect.h"
 #include "nsc.h"
index e7ce6292721ae23c414e338c62d85fef963c743a..dc7e0465a44a70dfbbb5bce3cba1c4d24f6e94fa 100644 (file)
@@ -33,7 +33,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "xy.h"
 #include "land.h"
 #include "nsc.h"
index 9e33ae03c0065b029a45dcafafb5907791c5fc94..526d187b135c765a8a3c9cfab572734e1470bd6d 100644 (file)
@@ -33,7 +33,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "sect.h"
 #include "ship.h"
 #include "xy.h"
index f8842b9dd3ea68147343f6290122ef0cc06632cb..732614212f4c7a5ca28aa493eb25bad1a4fd6812 100644 (file)
@@ -33,7 +33,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "nat.h"
 #include "sect.h"
 #include "file.h"
index 7bfde97e77dc62fbd1c468f964b63b895203e97d..87b976633880f5a7a49b6e5d07669f83155ed942 100644 (file)
@@ -34,7 +34,6 @@
 #include <ctype.h>
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "ship.h"
 #include "sect.h"
 #include "news.h"
@@ -219,7 +218,7 @@ navi(void)
 int
 nav_map(int x, int y, int show_designations)
 {
-    register s_char *ptr;
+    s_char *ptr;
     struct nstr_sect ns;
     struct natstr *np;
     struct sctstr sect;
index e662003b44e2ec6ca929c51a256958a1cfd94f20..9b84f799266ba55b9a1bb3e80524123180c2e505 100644 (file)
@@ -34,7 +34,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "sect.h"
 #include "nuke.h"
 #include "xy.h"
@@ -46,7 +45,7 @@
 int
 ndump(void)
 {
-    register int i;
+    int i;
     struct nstr_item nstr;
     struct nukstr nuk;
     time_t now;
index 78e9ed68fb5958167fa8f84d6052f38458a105ba..3d4b57cdb1de356b3767ca31eee44129b6128e63 100644 (file)
@@ -33,7 +33,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "nat.h"
 #include "sect.h"
 #include "path.h"
index a1d2ebe69ec52118d817586f1dac054cd61cab3b..9c57bf8a54d71722b99aacf3fe1e83f615ae16ef 100644 (file)
@@ -33,7 +33,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "xy.h"
 #include "nsc.h"
 #include "sect.h"
index e6bc7b70167843b2b60337df8ef5954d6af217e4..bb683d241f90a3473328829203bb194bdb189ec8 100644 (file)
@@ -33,7 +33,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "sect.h"
 #include "nuke.h"
 #include "xy.h"
 int
 nuke(void)
 {
-    register int first_line = 0;
-    register int first_nuke;
-    register int show_comm;
-    register int i;
+    int first_line = 0;
+    int first_nuke;
+    int show_comm;
+    int i;
     struct nstr_item nstr;
     struct nukstr nuk;
     struct sctstr sect;
index 0a1e94b68b3f59c69204f29b59bb38583f0a8bca..6f3af5b031c9d3f07148c838e30944665d86de4e 100644 (file)
@@ -36,7 +36,6 @@
 #include <ctype.h>
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "ship.h"
 #include "sect.h"
 #include "news.h"
index 03fd469b69eaec8f5393bfd26b990f16a204e3d9..f61839963e4ae28679d661e912666428bc9d7969 100644 (file)
@@ -34,7 +34,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "sect.h"
 #include "ship.h"
 #include "item.h"
index c0a5ac41f2c1c4fdeda93663bd28750ba0404a9b..f73eacf9eb00b9d6a14ecd9733d8943c04d154ee 100644 (file)
@@ -34,7 +34,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "xy.h"
 #include "nsc.h"
 #include "nat.h"
index 30d10241e91fa06197d25586c5c4fa3d2bb2010b..213aa9ccb6466100d0bd41c4c509db99fa0cdbae 100644 (file)
@@ -33,7 +33,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "xy.h"
 #include "sect.h"
 #include "ship.h"
index 183c3ebd939a6070491cc518b2a02de86d539801..54ecca8472c6516550e3f4a32c449b99660bc53e 100644 (file)
@@ -34,7 +34,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "xy.h"
 #include "plane.h"
 #include "nsc.h"
index 1de9e3d85a9916f6b12446a997ee01e6de80c4bc..b5a8ddc4a1da2cc616195064677e6353513fe947 100644 (file)
@@ -34,7 +34,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "xy.h"
 #include "plane.h"
 #include "nsc.h"
index fbbab71eecc8730f4a1b696b7f94ebbd7947a8aa..9ef4c07d82b5f3122c1d770727930039774ce8c4 100644 (file)
@@ -36,7 +36,6 @@
 #include <string.h>
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "sect.h"
 #include "nat.h"
 #include "ship.h"
@@ -59,7 +58,7 @@ struct powsort {
     natid cnum;
 };
 
-static void addtopow(register short *vec, register struct powstr *pow);
+static void addtopow(short *vec, struct powstr *pow);
 static void gen_power(void);
 static void out5(double value, int round_val, int round_flag);
 static int powcmp(struct powsort *p1, struct powsort *p2);
@@ -228,8 +227,8 @@ gen_power(void)
 {
     float *f_ptr;
     float *f_pt2;
-    register struct powstr *pow;
-    register int i;
+    struct powstr *pow;
+    int i;
     struct sctstr sect;
     struct plnstr plane;
     struct shpstr ship;
index d0641bf450d15c9bdd6ba925bc4b35faa231217b..b02a76579a4ee0ff2cc5522e9f7175d3cfbafc1b 100644 (file)
@@ -34,7 +34,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "xy.h"
 #include "nsc.h"
 #include "sect.h"
 #include "commands.h"
 
 int
-count_pop(register int n)
+count_pop(int n)
 {
-    register int i;
-    register int pop = 0;
+    int i;
+    int pop = 0;
     struct sctstr *sp;
 
     for (i = 0; NULL != (sp = getsectid(i)); i++) {
index fc36ed4f6188c09f1560a4b9f27a5e5e89358bd2..8f320f4da55b7566b9b1474743fb3f2b7a301229 100644 (file)
@@ -33,7 +33,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "xy.h"
 #include "plane.h"
 #include "nsc.h"
index 00b3372104b7705957d00332dda7dce01c7da898..3f630ddbbdf0816948308dfcc43fdf6844cb235a 100644 (file)
@@ -35,7 +35,6 @@
 #include "misc.h"
 #include "player.h"
 #include "xy.h"
-#include "var.h"
 #include "ship.h"
 #include "land.h"
 #include "sect.h"
index 8c206f0e665ab8849dbc01c9bc0eae056f4bea47..8349f313224caeeb108326099408c20d41552b73 100644 (file)
@@ -33,7 +33,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "xy.h"
 #include "plane.h"
 #include "land.h"
index 408be3741f037bc9cc86c8a6a1cc6d86f8813f57..9351d120dc032b258acd2889836d57dbe3d160e0 100644 (file)
@@ -33,7 +33,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "sect.h"
 #include "ship.h"
 #include "item.h"
index 2ec3bb5acac5d03b287a3b527fd9e5b127c7c1f5..68b05910daaaaf719e34b0de5a7b9ef9034ba7f2 100644 (file)
@@ -33,7 +33,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "nat.h"
 #include "sect.h"
 #include "file.h"
index 83fe1c9dc4e308150a1ae79943bd8d9af251a60c..fa50fa3aeaabda29b32af545e0e20bd105c5259c 100644 (file)
@@ -35,7 +35,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "sect.h"
 #include "nat.h"
 #include "file.h"
index 1eceec2ac6886db7943fff57b0b2f07e8f18f148..f3469cf9ebfd661291bc6cdc28b7ba13ea00aa1c 100644 (file)
@@ -36,7 +36,6 @@
 #include "misc.h"
 #include "xy.h"
 #include "file.h"
-#include "var.h"
 #include "sect.h"
 #include "item.h"
 #include "nsc.h"
index 02ce31a530d0a87701efd00921f42db793310aea..5af48456c3e08154dfffe831ba8e9049b49d34f0 100644 (file)
@@ -33,7 +33,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "xy.h"
 #include "sect.h"
 #include "nsc.h"
index b70660d5e8d52746046e559193afb48e547b10fe..6052038d607e87eb66fa03059dde53aa28d94cac 100644 (file)
@@ -35,7 +35,6 @@
 #include "options.h"
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "xy.h"
 #include "sect.h"
 #include "retreat.h"
index 755359f1b8a879a971b9ca2efdcb726be40aebd3..fc8d505e4fcbc3e408a9f6b0d7ee623bd968298b 100644 (file)
@@ -33,7 +33,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "xy.h"
 #include "nat.h"
 #include "nsc.h"
index f1f92ad8d862c9e992005f9fa1c39fe021a0372a..277eab298f6bb566b7ca804fbe4ccf6ac6b3c859 100644 (file)
@@ -32,7 +32,6 @@
  */
 
 #include "misc.h"
-#include "var.h"
 #include "land.h"
 #include "nsc.h"
 #include "file.h"
index 458d92d80dac2c5a67cceb4b57c56ad0d2e05eaf..37e0140ea22b1520e894b907a182c85a710946a5 100644 (file)
@@ -34,7 +34,6 @@
 #include <ctype.h>
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "ship.h"
 #include "path.h"
 #include "xy.h"
@@ -47,7 +46,7 @@
 static int
 show_sail(struct nstr_item *nstr)
 {
-    register int count = 0;
+    int count = 0;
     struct shpstr ship;
 
     while (nxtitem(nstr, (s_char *)&ship)) {
index 8b67e2580eb7c3599b17179d9c86596695fae684..a54b1193b32029f4b9e7eede86c1e5eb9ede81eb 100644 (file)
@@ -35,7 +35,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "xy.h"
 #include "plane.h"
 #include "sect.h"
index 2b591856f06c08615c884503d9a47b857b1e928b..34aec37f78710bc5b98bb6439e9277197843c6d9 100644 (file)
@@ -34,7 +34,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "xy.h"
 #include "sect.h"
 #include "ship.h"
index 11a811e68b3ef33f386d08d733e8bdef76c358c2..f8f202d475ab4cbdf402504067cd4b97d2c1c6d5 100644 (file)
@@ -35,7 +35,6 @@
 #include "player.h"
 #include "sect.h"
 #include "news.h"
-#include "var.h"
 #include "xy.h"
 #include "ship.h"
 #include "land.h"
index d9c35be811ecb4851c99574c47537fa955b25d1c..b91508392c0ea638978d77b2c81df1b85e9b60c9 100644 (file)
@@ -34,7 +34,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "xy.h"
 #include "sect.h"
 #include "ship.h"
index 124d05585893378e7b9fab8744a1a49dbc630881..21a962a0157ee7ae257f8d515cd2eabe3f5c69b8 100644 (file)
@@ -33,7 +33,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "xy.h"
 #include "sect.h"
 #include "nsc.h"
index fef8bcd9c25aa95530aaec0b5482ca0f6d91d568..e5dd1e17c95ee8a5b711ec594da75899c0d62c41 100644 (file)
@@ -37,7 +37,6 @@
 #include "misc.h"
 #include "xy.h"
 #include "file.h"
-#include "var.h"
 #include "sect.h"
 #include "item.h"
 #include "nsc.h"
index 1da178ab0db8cfe26d4bd61c980df039e505ad21..d2ad2df267628fa57e2528f687da26fb96c94170 100644 (file)
@@ -34,7 +34,6 @@
  */
 
 #include "misc.h"
-#include "var.h"
 #include "sect.h"
 #include "ship.h"
 #include "land.h"
index 6200c08a36bb7513ba9585ed43e1be0d39566349..42c9c874d4df48f7458328ac722f7bb2f9c25fc3 100644 (file)
@@ -37,7 +37,6 @@
 #include <ctype.h>
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "xy.h"
 #include "sect.h"
 #include "nat.h"
index 683adedc1df8f782281605d7bea7517c85ee6783..fe0b0ddfbe29ade569b919eceec24c63ba76dd31 100644 (file)
@@ -36,7 +36,6 @@
 #include <ctype.h>
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "xy.h"
 #include "sect.h"
 #include "nat.h"
index d6234b1acd5c32646fa5068b660d8f552b1b4a1f..cfd533ec4befc32dc7693e60c74223fb0137a597 100644 (file)
@@ -34,7 +34,6 @@
 
 #include <math.h>
 #include "misc.h"
-#include "var.h"
 #include "file.h"
 #include "sect.h"
 #include "item.h"
@@ -49,7 +48,7 @@
 int
 shark(void)
 {
-    register int arg;
+    int arg;
     time_t now;
     char *p;
     struct lonstr loan;
index 71c6b7df6d1c7d393cdd74a05bf50426b8a10951..53077eede5148b6c53bc85c26fd35a3212c45e49 100644 (file)
@@ -34,7 +34,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "xy.h"
 #include "sect.h"
 #include "ship.h"
index 076cd5c4c5e575ceb8355288de9a0034e9f3ab46..ff9721f542a5ad0bb82f8ed19e57756f2a8e4fcc 100644 (file)
@@ -34,7 +34,6 @@
 #include "misc.h"
 #include "player.h"
 #include "xy.h"
-#include "var.h"
 #include "sect.h"
 #include "news.h"
 #include "item.h"
index c6b73d8554afbc799c3379412287b8d36f5d07ec..46e7ad3c490c148370bf431c23e4fbc787f97018 100644 (file)
@@ -33,7 +33,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "xy.h"
 #include "sect.h"
 #include "nsc.h"
index 3ae454044018724e85b5b4d2c85b1999d5cf254f..b8a0efde3b8e6a7040b1ff7f8ba7ec351601348e 100644 (file)
@@ -33,7 +33,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "sect.h"
 #include "plane.h"
 #include "nat.h"
@@ -136,10 +135,10 @@ skyw(void)
 static int
 showsat(struct sky **skypp, int x, int y)
 {
-    register struct sky *skyp;
-    register struct sky *todelete = 0;
-    register struct sky **prev;
-    register struct plchrstr *pcp;
+    struct sky *skyp;
+    struct sky *todelete = 0;
+    struct sky **prev;
+    struct plchrstr *pcp;
     s_char *name;
     int nsat = 0;
 
index bf4e7c67da08e702b4bb45495b5adf926a69f9e0..a050dade360b1f72700e147900d69b9052a90bc4 100644 (file)
@@ -34,7 +34,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "xy.h"
 #include "sect.h"
 #include "nsc.h"
index a0f298318a98646715f456ab0d8f33df9faec1f2..21d7a9f92bd415df6e4a4c2219c2377d920e6348 100644 (file)
@@ -34,7 +34,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "sect.h"
 #include "item.h"
 #include "nat.h"
index f043ebe4d9cdaf14e2d6fd007860058e654a5526..3b6bbce046625f60e19a580c7d25b0227db96cd8 100644 (file)
@@ -33,7 +33,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "xy.h"
 #include "sect.h"
 #include "ship.h"
index 62496ae3ec4583541dcc6ec9079b53bb555a961b..554435de14035fe5cd76cf82d58d84485f795ad7 100644 (file)
@@ -34,7 +34,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "xy.h"
 #include "sect.h"
 #include "nsc.h"
index b0d64061415d093a2c44e32ee2d242652f3baf45..50ba0c2151881c41398c0ed485dc1c6b1ceaa34a 100644 (file)
@@ -34,7 +34,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "xy.h"
 #include "sect.h"
 #include "nsc.h"
index c9e9df14e70e4436f08535020bf2fcdc6145b8b7..ff4c735dfac3e412092a49eb2404fcb004da65eb 100644 (file)
@@ -35,7 +35,6 @@
 #include "misc.h"
 #include "player.h"
 #include "file.h"
-#include "var.h"
 #include "sect.h"
 #include "path.h"
 #include "news.h"
index 591639fe2bc47587f253b7bd1f19ee06b511c0a2..3397ef98d2f0a0bb1fd0092322d63ffafd7def72 100644 (file)
@@ -33,7 +33,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "xy.h"
 #include "sect.h"
 #include "nsc.h"
index b7aa72b75a42c651789bdf10406d738d91df8175..228df7e533632c9125833405dd59734151116326 100644 (file)
@@ -33,7 +33,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "xy.h"
 #include "sect.h"
 #include "land.h"
index 14806ca68f8516ab90932a6af335a8303bf4a432..7840d79c33591837bf55c0d30b360ca071b32e93 100644 (file)
@@ -34,7 +34,6 @@
 #include <ctype.h>
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "sect.h"
 #include "xy.h"
 #include "nsc.h"
index 296f831d0a31e6806faad767a75125b433e39e91..fc0d0d3ec694c93b68dd404cfd591163a275a6a1 100644 (file)
@@ -35,7 +35,6 @@
 #include <ctype.h>
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "xy.h"
 #include "sect.h"
 #include "nat.h"
index 285c003bb79381f13f40bc9b6e73e8727a540811..7fd70c997b2ce3560548f2b8a38a0092bd1ed1f8 100644 (file)
@@ -33,7 +33,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "sect.h"
 #include "xy.h"
 #include "nsc.h"
index a042d58e294a719b11cd82e99775cf70df778d37..735ce67ac099d4e39b73dafa9b647265351b87f5 100644 (file)
@@ -34,7 +34,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "sect.h"
 #include "xy.h"
 #include "item.h"
index d134b51323558643c5238a7e8f491b4c4a4c4fbf..cc07ffd90065d08b52e4e97d61f5fb057fcd1b89 100644 (file)
@@ -37,7 +37,6 @@
 #include <stdio.h>
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "ship.h"
 #include "file.h"
 #include "xy.h"
index 1bead78a866ca4f0d2c39a40ea7167e78528b3b3..ef46398d9e407d42e66f99bf5c4cdb68c730c1b6 100644 (file)
@@ -35,7 +35,6 @@
 
 #include <ctype.h>
 #include "misc.h"
-#include "var.h"
 #include "sect.h"
 #include "nat.h"
 #include "news.h"
index 7f8afb13a2690f7accbd660b670dcf120a556742..aac295c64a6946e9b8155c9b56cb3604d3229c03 100644 (file)
@@ -35,7 +35,6 @@
 #include <string.h>
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "sect.h"
 #include "nuke.h"
 #include "xy.h"
index 40c6bd587fdf92c3fcbf8fb549bb8b77c7920839..a95675f6e74f6cd213e7810a80127e975bcc0e99 100644 (file)
@@ -35,7 +35,6 @@
 #include "misc.h"
 #include "player.h"
 #include "xy.h"
-#include "var.h"
 #include "ship.h"
 #include "land.h"
 #include "plane.h"
index 654d577f7556950521ebf43308377c4e4acde41f..5270a839874ca92b15c6010ec5b4db562c9cad1d 100644 (file)
@@ -34,7 +34,6 @@
 #include <ctype.h>
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "plane.h"
 #include "xy.h"
 #include "nsc.h"
@@ -47,7 +46,7 @@ wing(void)
 {
 
     struct plnstr plane;
-    register int count;
+    int count;
     s_char *cp;
     s_char c;
     struct nstr_item nstr;
index 4f6dacd7544f977693addfbf24aa50ab2ac2002f..53cffe95293bc18006fdae562d6139b90c39e1ea 100644 (file)
@@ -33,7 +33,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "xy.h"
 #include "sect.h"
 #include "nsc.h"
index 89006fccb921d5e6c1546e0a4f67c758c5bce856..b402c7f9586421336ed7e858c471484089a87be5 100644 (file)
@@ -33,7 +33,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "xy.h"
 #include "sect.h"
 #include "land.h"
@@ -125,7 +124,7 @@ work(void)
 static int
 buildeff(struct sctstr *sp, int work, double *money)
 {
-    register int work_cost;
+    int work_cost;
     int n, hcms, lcms;
     int effdone = 0;
 
index 569dc873b009a3b08b47b8003fa1c9ff3ced8d57..3e0935a81b8c56952a291c5cbf3f6f4063ebcffb 100644 (file)
@@ -46,7 +46,6 @@
 #include "gamesdef.h"
 #include "misc.h"
 #include "xy.h"
-#include "var.h"
 #include "sect.h"
 #include "file.h"
 #include "nat.h"
index e39fa79622c7c5e9db7fd2a8615fe3d623ba207b..eb312cf3da2b191b054a342c36537616eec27861 100644 (file)
@@ -35,7 +35,6 @@
 #include "player.h"
 #include "xy.h"
 #include "file.h"
-#include "var.h"
 #include "sect.h"
 #include "ship.h"
 #include "plane.h"
index ce876d798669167c7371b2e80622eaad45b6bfaa..65a39a664fe2f77eda1b84f22f98448cc3ae1f57 100644 (file)
@@ -33,7 +33,6 @@
  */
 
 #include "misc.h"
-#include "var.h"
 #include "sect.h"
 #include "ship.h"
 #include "land.h"
@@ -171,10 +170,10 @@ nukedamage(struct nchrstr *ncp, int range, int airburst)
 }
 
 int
-damage(register int amt, int pct)
+damage(int amt, int pct)
 {
-    register int tmp;
-    register int lost;
+    int tmp;
+    int lost;
 
     if (amt <= 0)
        return 0;
@@ -187,7 +186,7 @@ damage(register int amt, int pct)
 
 /* asymptotic damage to commodities, efficiency, and sectors */
 int
-effdamage(register int amt, int dam)
+effdamage(int amt, int dam)
 {
     return damage(amt, PERCENT_DAMAGE(dam));
 }
index 054e384cc5b23fa2697bccd62f7dd91f6e8b1ffb..9cd60c6f267c0f7cf42e124d63b98a03bb5916a9 100644 (file)
@@ -35,7 +35,6 @@
 #include <ctype.h>
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "xy.h"
 #include "sect.h"
 #include "nat.h"
index 5918fb278605683d14131e271d17e6f10fba30fd..21613e5583ce6ee44207f51788227923ce409b7e 100644 (file)
  */
 
 #include "misc.h"
-#include "var.h"
 #include "sect.h"
 #include "nat.h"
-#include "var.h"
 #include "file.h"
 #include "path.h"
 #include "xy.h"
@@ -47,7 +45,7 @@
 int
 adj_units(coord x, coord y, natid own)
 {
-    register int i;
+    int i;
     struct sctstr sect;
 
     for (i = DIR_FIRST; i <= DIR_LAST; i++) {
@@ -61,7 +59,7 @@ adj_units(coord x, coord y, natid own)
 int
 has_units(coord x, coord y, natid cn, struct lndstr *lp)
 {
-    register int n;
+    int n;
     struct lndstr land;
 
     for (n = 0; ef_read(EF_LAND, n, (s_char *)&land); n++) {
index 977f1eab62db81f807649fd5eadf1e8256ce6bc6..78c26b2f52a1cc1fed68462a2b71efa72f75dd4b 100644 (file)
@@ -34,7 +34,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "sect.h"
 #include "xy.h"
 #include "nsc.h"
@@ -49,7 +48,7 @@
 #include "subs.h"
 #include "optlist.h"
 
-static int bmnxtsct(register struct nstr_sect *);
+static int bmnxtsct(struct nstr_sect *);
 static s_char map_char(u_char type, natid own, int owner_or_god);
 
 int
@@ -107,7 +106,7 @@ draw_map(int bmap, s_char origin, int map_flags, struct nstr_sect *nsp,
     border(&range, "     ", "");
     blankfill((s_char *)wmapbuf, &nsp->range, 1);
     if (bmap) {
-       register int c;
+       int c;
        switch (bmap) {
        case EF_BMAP:
            while (bmnxtsct(nsp) && !player->aborted) {
@@ -222,7 +221,7 @@ draw_map(int bmap, s_char origin, int map_flags, struct nstr_sect *nsp,
        }
     }
     if (map_flags & MAP_HIGH) {
-       register s_char *ptr;
+       s_char *ptr;
        struct sctstr sect;
 
        snxtsct_rewind(nsp);
@@ -260,7 +259,7 @@ draw_map(int bmap, s_char origin, int map_flags, struct nstr_sect *nsp,
  * get the next sector in the range
  */
 static int
-bmnxtsct(register struct nstr_sect *np)
+bmnxtsct(struct nstr_sect *np)
 {
     while (1) {
        np->dx++;
index a4cb2d55461120ca931b9e2ddb905ff7de906e07..4367bfbb665570d96e13c68f1db0e2f5606aa480 100644 (file)
@@ -34,7 +34,6 @@
 #include "gamesdef.h"
 #include "misc.h"
 #include "xy.h"
-#include "var.h"
 #include "sect.h"
 #include "file.h"
 #include "path.h"
index b756723916381db9206dfc804e967feeb7b3a04c..6b27f5e708d1f68ee3061b54cc293bd88ef8d0a3 100644 (file)
@@ -34,7 +34,6 @@
 
 #include <math.h>
 #include "misc.h"
-#include "var.h"
 #include "sect.h"
 #include "nat.h"
 #include "item.h"
index 3c2a9fbc11521e0d738be37cb171c2e3f7fd4af2..7694a14006fed7a782024c13a909e8e140bf290c 100644 (file)
@@ -33,7 +33,6 @@
  */
 
 #include "misc.h"
-#include "var.h"
 #include "sect.h"
 #include "ship.h"
 #include "land.h"
index fb190852bd4821c1ade353a13353efcc9a5526d4..36899f90d7cc91f762045846bf0900ca7065a4d0 100644 (file)
@@ -183,7 +183,7 @@ sctoff(coord x, coord y)
 }
 
 coord
-xnorm(register coord x)
+xnorm(coord x)
 {
     if (x < 0)
        x = WORLD_X - (-x % WORLD_X);
@@ -191,7 +191,7 @@ xnorm(register coord x)
 }
 
 coord
-ynorm(register coord y)
+ynorm(coord y)
 {
     if (y < 0)
        y = WORLD_Y - (-y % WORLD_Y);
index 205499d9c2ad214d80481626e6fcacefa81aa1a9..30378c669acd8d68d6f9008c292d24cfba271918 100644 (file)
@@ -32,7 +32,6 @@
  */
 
 #include "misc.h"
-#include "var.h"
 #include "xy.h"
 
 /* must agree with DIR_ defines */
index 1bc2e50363c522f035570c1b9134a8f7c8bdddfc..c345a2651cfea86c67bab3ab5398297dbf82617b 100644 (file)
@@ -33,7 +33,6 @@
 
 #include <stddef.h>
 #include "misc.h"
-#include "var.h"
 #include "xy.h"
 #include "loan.h"
 #include "nsc.h"
index 62b47ff10b5c3e970327d6d5e9f955f43dfa73e5..28b3f7fafa8e5953ca90126126bf3e639a066a4f 100644 (file)
@@ -33,7 +33,6 @@
  */
 
 #include "misc.h"
-#include "var.h"
 #include "ship.h"
 #include "plane.h"
 #include "product.h"
@@ -57,8 +56,8 @@ global_init(void)
 static void
 init_mchr(void)
 {
-    register struct mchrstr *mp;
-    register int n;
+    struct mchrstr *mp;
+    int n;
 
     for (mp = mchr, n = 0; n < shp_maxno; n++, mp++) {
        if (mp->m_nxlight)
@@ -75,7 +74,7 @@ init_mchr(void)
 static void
 init_plchr(void)
 {
-    register struct plchrstr *pp;
+    struct plchrstr *pp;
     int pcount;
 
     for (pp = plchr, pcount = 0; pcount < pln_maxno; pcount++, pp++) {
@@ -87,7 +86,7 @@ init_plchr(void)
 static void
 init_pchr(void)
 {
-    register struct pchrstr *p;
+    struct pchrstr *p;
     int pcount;
 
     for (p = pchr, pcount = 0; pcount < prd_maxno; pcount++, p++) {
index 1a9ac5dbc0513bd67acc0160ddab03b9230c66ab..0f580306e108efaea48e43746f6a9c080978e5be 100644 (file)
@@ -34,7 +34,6 @@
 
 #include <stddef.h>
 #include "misc.h"
-#include "var.h"
 #include "xy.h"
 #include "loan.h"
 #include "nsc.h"
index 5b48e63ac302f9a023ac3265d9afa44242228fd7..f99aebebaafc24427300bbef2a21831b8a3c5061 100644 (file)
@@ -36,7 +36,6 @@
 #include "product.h"
 #include "sect.h"
 #include "nat.h"
-#include "var.h"
 
 
 struct pchrstr pchr[] = {
index 8457c372f83936bd4fd98e444b7ecdaeb57b3396..2a9a51455919ea93007553b0e29eb5373f2bc42e 100644 (file)
@@ -35,7 +35,6 @@
 #include "prototypes.h"
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "sect.h"
 #include "nat.h"
 #include "file.h"
index 106b979098e57d5bd4e84cbcc92ad5bc44f41327..a4ba8ba46cae1c4807b211a4d5d0ed315be1c016 100644 (file)
@@ -38,7 +38,6 @@
 #include "misc.h"
 #include "player.h"
 #include "proto.h"
-#include "var.h"
 #include "com.h"
 #include "nat.h"
 #include "sect.h"
@@ -158,7 +157,7 @@ player_main(struct player *p)
 int
 command(void)
 {
-    register unsigned int x;
+    unsigned int x;
     s_char *redir;
     s_char scanspace[1024];
 
index 936d76088ef96bd0f34d339fdc187bdaa5341230..885ac08cfab9de0e73c93dc4f77d64b9abdd97df 100644 (file)
@@ -37,7 +37,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "news.h"
 #include "land.h"
 #include "sect.h"
@@ -61,7 +60,7 @@
 static void getilist(struct emp_qelem *list, natid own,
                     struct emp_qelem *a, struct emp_qelem *b,
                     struct emp_qelem *c, struct emp_qelem *d);
-static void ac_dog(register struct plist *ap, register struct plist *dp);
+static void ac_dog(struct plist *ap, struct plist *dp);
 
 #define FLAK_MAX        15
 
@@ -460,7 +459,7 @@ void
 ac_intercept(struct emp_qelem *bomb_list, struct emp_qelem *esc_list,
             struct emp_qelem *def_list, natid def_own, coord x, coord y)
 {
-    register struct plnstr *pp;
+    struct plnstr *pp;
     struct plist *plp;
     int icount;
     struct emp_qelem *next;
@@ -537,8 +536,8 @@ void
 ac_airtoair(struct emp_qelem *att_list, struct emp_qelem *int_list,
            natid def_own)
 {
-    register struct plist *attacker;
-    register struct plist *interceptor;
+    struct plist *attacker;
+    struct plist *interceptor;
     struct emp_qelem *att;
     struct emp_qelem *in;
     int nplanes;
@@ -619,7 +618,7 @@ all_missiles(struct emp_qelem *att_list)
 }
 
 static void
-ac_dog(register struct plist *ap, register struct plist *dp)
+ac_dog(struct plist *ap, struct plist *dp)
 {
     int att, def;
     double odds;
@@ -715,7 +714,7 @@ void
 ac_planedamage(struct plist *plp, natid from, int dam, natid other,
               int checkabort, int show, s_char *mesg)
 {
-    register struct plnstr *pp;
+    struct plnstr *pp;
     int disp;
     s_char dmess[255];
     int eff;
@@ -963,7 +962,7 @@ ac_landflak(struct emp_qelem *list, coord x, coord y)
 void
 ac_fireflak(struct emp_qelem *list, natid from, natid other, int guns)
 {
-    register struct plnstr *pp;
+    struct plnstr *pp;
     struct plist *plp;
     int n;
     float mult;
@@ -1037,7 +1036,7 @@ static void
 getilist(struct emp_qelem *list, natid own, struct emp_qelem *a,
         struct emp_qelem *b, struct emp_qelem *c, struct emp_qelem *d)
 {
-    register struct plchrstr *pcp;
+    struct plchrstr *pcp;
     struct plnstr plane;
     struct shpstr ship;
     struct lndstr land;
index 0f654947f7137e2d6b51ac4284f69076a25569ea..441dcbdbed895d1d09261632b0ef56064155541a 100644 (file)
@@ -40,7 +40,6 @@
 #include "nat.h"
 #include "tel.h"
 #include "file.h"
-#include "var.h"
 #include "prototypes.h"
 
 /*
index 992b5feaf556f60e2b9ed9c87fd00ff894a0581d..7acc9c55dee40fbd62e98a3a72399e5f04ac1d72 100644 (file)
@@ -33,7 +33,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "xy.h"
 #include "sect.h"
 #include "ship.h"
index d6ed51cf4586882b8eba149a928a92bd808ceccc..6e0aa4df5203cfc6f522cc6c3a2362edf0555208 100644 (file)
@@ -33,7 +33,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "xy.h"
 #include "sect.h"
 #include "nsc.h"
@@ -46,7 +45,7 @@
 void
 bsanct(void)
 {
-    register int count;
+    int count;
     struct sctstr s;
     struct nstr_sect nstr;
 
index 7dd7fc08fc90e8d6badb6c14ec7da67dfa30c64d..897a9cc77e806b110a5de81478873bb74169aa5e 100644 (file)
@@ -35,7 +35,6 @@
 #include "misc.h"
 #include "player.h"
 #include "nat.h"
-#include "var.h"
 #include "sect.h"
 #include "file.h"
 #include "xy.h"
index 45a909757ed047ec37b2d55dfe97f8834be0c89e..b81db848b4274b864fb1d0cc1ee722a82e698790 100644 (file)
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "sect.h"
 #include "nat.h"
-#include "var.h"
 #include "file.h"
 #include "path.h"
 #include "xy.h"
index f3f3a4ff42a97125703039eed67ef9b7d447e0a6..d572e2208e7b55e32ce03cd19b939895c78f746c 100644 (file)
@@ -43,7 +43,6 @@
 #include "news.h"
 #include "plane.h"
 #include "nsc.h"
-#include "var.h"
 #include "optlist.h"
 #include "prototypes.h"
 
index a50a2d906f79373f6c9b344fa2742464572df35f..c6532e90f9382367cc9532592961ed2eed4d95c0 100644 (file)
@@ -37,7 +37,6 @@
  */
 
 #include "misc.h"
-#include "var.h"
 #include "xy.h"
 #include "nat.h"
 #include "sect.h"
@@ -222,7 +221,7 @@ int
 sb(natid att, natid def, struct sctstr *sp, coord tx, coord ty, int noisy,
    int defending)
 {
-    register int damage;
+    int damage;
     natid own;
     int shell;
     double range;
index d8b9409f0f83b90999d03fd59e5c47f000922810..f59d872e6906078671c71e2d57ef26415d2368af 100644 (file)
@@ -33,7 +33,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "file.h"
 #include "land.h"
 #include "ship.h"
index be7288d2ac028a15c6a883c1868ac3703942e579..a50f64a0969fdad3c585319a39329abe48d84331 100644 (file)
@@ -33,7 +33,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "news.h"
 #include "ship.h"
 #include "land.h"
@@ -291,7 +290,7 @@ num_shipsatxy(coord x, coord y, int wantflags, int nowantflags)
 int
 islist(s_char *p)
 {
-    register int x;
+    int x;
 
     x = 0;
 
index ad120be637b285cc2cbe704bc87ffd60af654a11..cd9036ff9f474a7955a95d1f35845b1e385b7fca 100644 (file)
@@ -36,7 +36,6 @@
 #include "misc.h"
 #include "player.h"
 #include "file.h"
-#include "var.h"
 #include "sect.h"
 #include "path.h"
 #include "news.h"
@@ -633,8 +632,8 @@ lnd_mar(struct emp_qelem *list, double *minmobp, double *maxmobp,
 void
 lnd_put(struct emp_qelem *list, natid actor)
 {
-    register struct emp_qelem *qp;
-    register struct emp_qelem *newqp;
+    struct emp_qelem *qp;
+    struct emp_qelem *newqp;
     struct llist *llp;
 
     qp = list->q_back;
index 397f7c6323bd625c4b0c4c3a157c3622aff07e1c..d67a36ad56301451a9aaace4b4924150edec38b4 100644 (file)
@@ -33,7 +33,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "file.h"
 #include "land.h"
 #include "ship.h"
index dd52c01ecee2bf44d0be5bd1fca54cf11a5d6d05..4fe46af8e9bd79a7f4e8ae90b6abe2161487d1d9 100644 (file)
@@ -35,7 +35,6 @@
 #include "options.h"
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "xy.h"
 #include "sect.h"
 #include "retreat.h"
@@ -83,7 +82,7 @@ static int perform_mission(coord, coord, natid, struct emp_qelem *, int,
 int
 ground_interdict(coord x, coord y, natid victim, s_char *s)
 {
-    register int cn;
+    int cn;
     int dam = 0, newdam, rel;
     struct genlist mi[MAXNOC];
     int z;
@@ -170,7 +169,7 @@ int
 unit_interdict(coord x, coord y, natid victim, s_char *s, int hardtarget,
               int mission)
 {
-    register int cn;
+    int cn;
     int dam = 0, newdam;
     struct genlist mi[MAXNOC];
     int z;
@@ -263,7 +262,7 @@ def_support(coord x, coord y, natid victim, natid actee)
 static int
 dosupport(struct genlist *mi, coord x, coord y, natid victim, natid actee)
 {
-    register int cn;
+    int cn;
     int rel;
     int dam = 0;
 
@@ -1014,7 +1013,7 @@ mission_pln_sel(struct emp_qelem *list, int wantflags, int nowantflags,
     struct sctstr sect;
     struct plchrstr *pcp;
     struct plist *plp;
-    register int y, bad, bad1;
+    int y, bad, bad1;
     unsigned int x;
 
     for (qp = list->q_forw; qp != list; qp = next) {
@@ -1258,7 +1257,7 @@ int
 mission_pln_equip(struct plist *plp, struct ichrstr *ip, int flags,
                  s_char mission)
 {
-    register struct plchrstr *pcp;
+    struct plchrstr *pcp;
     struct plnstr *pp;
     int needed;
     struct lndstr land;
index 7150692a2d34cf496d74f4d8cf6daba47801a31c..5d834f070d1bba024823dcb96fdb815b8c41d8a9 100644 (file)
@@ -33,7 +33,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "sect.h"
 #include "item.h"
 #include "file.h"
index bcf20ebd6b3865b9ed90ef164ebff5c98ff7c417..8834b661349e9ce31740308f08e24b49e52de012 100644 (file)
@@ -35,7 +35,6 @@
 #include "misc.h"
 #include "queue.h"
 #include "player.h"
-#include "var.h"
 #include "sect.h"
 #include "ship.h"
 #include "optlist.h"
@@ -176,7 +175,7 @@ void
 msl_sel(struct emp_qelem *list, coord x, coord y, natid victim,
        int wantflags, int nowantflags, int mission)
 {
-    register struct plchrstr *pcp;
+    struct plchrstr *pcp;
     struct plnstr plane;
     struct plist *irv;
     struct nstr_item ni;
@@ -220,8 +219,8 @@ int
 msl_intercept(coord x, coord y, natid bombown, int hardtarget,
              int sublaunch, int wantflags, int nowantflags)
 {
-    register struct plnstr *pp;
-    register struct plchrstr *pcp;
+    struct plnstr *pp;
+    struct plchrstr *pcp;
     struct sctstr sect;
     struct emp_qelem *irvlist;
     struct emp_qelem foo;
index 10194273d9e08c513485c7d93f5ecd73123dd5f4..f42835f8866b9fdb8a4aa2ee90c0266c448bcd33 100644 (file)
@@ -34,7 +34,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "nuke.h"
 #include "sect.h"
 #include "xy.h"
index 0c30b7f49d856aa7235144a4598dac36aa1ce109..3b8a8aca3c527d70407e8c94fb3f70c36f0c34de 100644 (file)
@@ -33,7 +33,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "xy.h"
 #include "plane.h"
 #include "ship.h"
index 8dcab789f4be2497597b87562b48db183a8cd4bf..521914b8b76a6315e17fd1eff367cba2c4c7c26c 100644 (file)
@@ -32,7 +32,6 @@
  */
 
 #include "misc.h"
-#include "var.h"
 #include "xy.h"
 #include "sect.h"
 #include "nsc.h"
@@ -45,7 +44,7 @@
  * that matches the conditions.
  */
 int
-nxtsct(register struct nstr_sect *np, struct sctstr *sp)
+nxtsct(struct nstr_sect *np, struct sctstr *sp)
 {
     while (1) {
        np->dx++;
index 24f1a6f7854593028a86a42b3386364143487317..72acd1f92a45ec6e32719fbe7121921de3396ec6 100644 (file)
@@ -34,7 +34,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "plane.h"
 #include "ship.h"
 #include "land.h"
index 08e434301e6d09af28f9740972848a78c2ad1fac..e99208259df6426026ae163b01595b24565b43b9 100644 (file)
@@ -36,7 +36,6 @@
 #include <math.h>
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "sect.h"
 #include "ship.h"
 #include "land.h"
@@ -337,8 +336,8 @@ pln_sel(struct nstr_item *ni, struct emp_qelem *list, struct sctstr *ap,
     int range;
     struct plchrstr *pcp;
     struct plist *plp;
-    register int y;
-    register int bad, bad1;
+    int y;
+    int bad, bad1;
     unsigned int x;
 
     emp_initque(list);
@@ -561,7 +560,7 @@ pln_arm(struct emp_qelem *list, int dist, int mission, struct ichrstr *ip,
 static int
 pln_equip(struct plist *plp, struct ichrstr *ip, int flags, s_char mission)
 {
-    register struct plchrstr *pcp;
+    struct plchrstr *pcp;
     struct plnstr *pp;
     int needed;
     struct lndstr land;
@@ -695,8 +694,8 @@ pln_equip(struct plist *plp, struct ichrstr *ip, int flags, s_char mission)
 void
 pln_put(struct emp_qelem *list)
 {
-    register struct emp_qelem *qp;
-    register struct emp_qelem *newqp;
+    struct emp_qelem *qp;
+    struct emp_qelem *newqp;
     struct plist *plp;
     struct plnstr *pp;
     struct shpstr ship;
index e0827969c42f0592613145506d52f0092676a6a1..978b9da06ca560099fe94ec178b3763c5b0aee83 100644 (file)
@@ -36,7 +36,6 @@
 #include "misc.h"
 #include "player.h"
 #include "nat.h"
-#include "var.h"
 #include "retreat.h"
 #include "ship.h"
 #include "land.h"
@@ -133,8 +132,8 @@ retreat_ship1(struct shpstr *sp, s_char code, int orig)
                        /* Is this the originally scared ship, or a follower */
 {
     struct sctstr sect;
-    register int n;
-    register int m;
+    int n;
+    int m;
     int max;
     int dir;
     coord newx;
@@ -419,8 +418,8 @@ retreat_land1(struct lndstr *lp, s_char code, int orig)
                        /* Is this the originally scared unit, or a follower */
 {
     struct sctstr sect;
-    register int n;
-    register int m;
+    int n;
+    int m;
     int max;
     int dir;
     coord newx;
index ad472e92ebc2d8d5ea5fe0ecd8c33579060aaa44..b24f9e382196f52bef7a9c31d0fb84568cd60f51 100644 (file)
@@ -39,7 +39,6 @@
 #include "ship.h"
 #include "land.h"
 #include "plane.h"
-#include "var.h"
 #include "nsc.h"
 #include "nat.h"
 #include "file.h"
index 08125c63f748213218715ae6a38be7bbb418d4c5..8abd0ef2a7391de440931c8c896fcfda3b113651 100644 (file)
@@ -34,7 +34,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "xy.h"
 #include "file.h"
 #include "nat.h"
index 6172a418969fe76cbd3f16fbbbfe293e9fa63ec7..987e4a5e4cd78ac8b12d4bb266fb01ee5ef96b1a 100644 (file)
@@ -45,7 +45,6 @@
 #include "misc.h"
 #include "player.h"
 #include "nuke.h"
-#include "var.h"
 #include "ship.h"
 #include "land.h"
 #include "item.h"
@@ -265,9 +264,9 @@ show_nuke_stats(int tlev)
 void
 show_nuke_build(int tlev)
 {
-    register struct nchrstr *np;
-    register int n;
-    register int avail;
+    struct nchrstr *np;
+    int n;
+    int avail;
 
     if (opt_DRNUKE)
        pr("%13s lcm hcm  oil  rad avail tech res $\n", "");
@@ -299,8 +298,8 @@ show_nuke_build(int tlev)
 void
 show_nuke_capab(int tlev)
 {
-    register struct nchrstr *np;
-    register int i, j, n;
+    struct nchrstr *np;
+    int i, j, n;
     s_char *p;
 
     if (opt_DRNUKE)
@@ -343,8 +342,8 @@ show_nuke_capab(int tlev)
 void
 show_ship_build(int tlev)
 {
-    register struct mchrstr *mp;
-    register int n;
+    struct mchrstr *mp;
+    int n;
 
     pr("%25s lcm hcm avail tech $\n", "");
     make_new_list(tlev, EF_SHIP);
@@ -363,7 +362,7 @@ show_ship_build(int tlev)
 void
 show_ship_stats(int tlev)
 {
-    register struct mchrstr *mp;
+    struct mchrstr *mp;
     int scount;
     int techdiff;
 
@@ -457,7 +456,7 @@ show_ship_capab(int tlev)
 void
 show_plane_stats(int tlev)
 {
-    register struct plchrstr *pp;
+    struct plchrstr *pp;
     int pcount;
 
     pr("%25s acc load att def ran fuel stlth\n", "");
@@ -480,8 +479,8 @@ show_plane_stats(int tlev)
 void
 show_plane_capab(int tlev)
 {
-    register struct plchrstr *pp;
-    register int i;
+    struct plchrstr *pp;
+    int i;
     int pcount;
     int n;
     s_char *p;
@@ -508,8 +507,8 @@ show_plane_capab(int tlev)
 void
 show_plane_build(int tlev)
 {
-    register struct plchrstr *pp;
-    register int pcount;
+    struct plchrstr *pp;
+    int pcount;
 
     pr("%25s lcm hcm crew avail tech $\n", "");
     make_new_list(tlev, EF_PLANE);
@@ -525,8 +524,8 @@ show_plane_build(int tlev)
 void
 show_land_build(int tlev)
 {
-    register struct lchrstr *lp;
-    register int n;
+    struct lchrstr *lp;
+    int n;
 
     pr("%25s lcm hcm guns avail tech $\n", "");
     make_new_list(tlev, EF_LAND);
@@ -624,7 +623,7 @@ show_land_stats(int tlev)
 void
 show_sect_build(int foo)
 {
-    register int x, first = 1;
+    int x, first = 1;
 
     for (x = 0; x <= SCT_MAXDEF; x++) {
        if (dchr[x].d_mnem == 0)
@@ -653,7 +652,7 @@ show_sect_build(int foo)
 void
 show_sect_stats(int foo)
 {
-    register int x, first = 1;
+    int x, first = 1;
     struct sctstr sect;
     struct natstr *natp;
 
@@ -685,7 +684,7 @@ show_sect_stats(int foo)
 void
 show_sect_capab(int foo)
 {
-    register int x, first = 1, i, j;
+    int x, first = 1, i, j;
     char *tmpstr;
 
     for (x = 0; x <= SCT_MAXDEF; x++) {
index f72d33396f3f2a0e929bb87d17f6e58e4de69620..f52a0480e0987492ba2429325174125fc843ec99 100644 (file)
@@ -36,7 +36,6 @@
 #include "misc.h"
 #include "queue.h"
 #include "player.h"
-#include "var.h"
 #include "sect.h"
 #include "ship.h"
 #include "plane.h"
@@ -191,8 +190,8 @@ shp_nav(struct emp_qelem *list, double *minmobp, double *maxmobp,
 void
 shp_put(struct emp_qelem *list, natid actor)
 {
-    register struct emp_qelem *qp;
-    register struct emp_qelem *newqp;
+    struct emp_qelem *qp;
+    struct emp_qelem *newqp;
     struct mlist *mlp;
 
     qp = list->q_back;
index 04b0a113b0b93509860b9bbcbbc299a13006fa56..04611826258179161e5940ff89c11f19104b11c6 100644 (file)
@@ -33,7 +33,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "xy.h"
 #include "sect.h"
 #include "nsc.h"
@@ -48,7 +47,7 @@
  * for arguments to compile into the nstr.
  */
 int
-snxtitem(register struct nstr_item *np, int type, s_char *str)
+snxtitem(struct nstr_item *np, int type, s_char *str)
 {
     struct range range;
     int list[NS_LSIZE];
@@ -126,7 +125,7 @@ snxtitem(register struct nstr_item *np, int type, s_char *str)
 }
 
 void
-snxtitem_area(register struct nstr_item *np, int type, struct range *range)
+snxtitem_area(struct nstr_item *np, int type, struct range *range)
 {
     memset(np, 0, sizeof(*np));
     np->cur = -1;
@@ -141,7 +140,7 @@ snxtitem_area(register struct nstr_item *np, int type, struct range *range)
 }
 
 void
-snxtitem_dist(register struct nstr_item *np, int type, int cx, int cy,
+snxtitem_dist(struct nstr_item *np, int type, int cx, int cy,
              int dist)
 {
     struct range range;
@@ -167,7 +166,7 @@ snxtitem_dist(register struct nstr_item *np, int type, int cx, int cy,
 }
 
 void
-snxtitem_xy(register struct nstr_item *np, int type, coord x, coord y)
+snxtitem_xy(struct nstr_item *np, int type, coord x, coord y)
 {
     memset(np, 0, sizeof(*np));
     np->cur = -1;
@@ -183,7 +182,7 @@ snxtitem_xy(register struct nstr_item *np, int type, coord x, coord y)
 }
 
 void
-snxtitem_all(register struct nstr_item *np, int type)
+snxtitem_all(struct nstr_item *np, int type)
 {
     memset(np, 0, sizeof(*np));
     np->cur = -1;
@@ -197,7 +196,7 @@ snxtitem_all(register struct nstr_item *np, int type)
 }
 
 void
-snxtitem_group(register struct nstr_item *np, int type, s_char group)
+snxtitem_group(struct nstr_item *np, int type, s_char group)
 {
     if (group == '~')
        group = ' ';
@@ -222,7 +221,7 @@ snxtitem_rewind(struct nstr_item *np)
 }
 
 int
-snxtitem_list(register struct nstr_item *np, int type, int *list, int len)
+snxtitem_list(struct nstr_item *np, int type, int *list, int len)
 {
     int i;
 
index 13d134306738730dcc6bb0d05d9ef775c0675f01..e5dd1f03a988d0bdcff945787e05961db454ce22 100644 (file)
@@ -33,7 +33,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "xy.h"
 #include "sect.h"
 #include "nsc.h"
@@ -49,7 +48,7 @@
  * for arguments to compile into the nstr.
  */
 int
-snxtsct(register struct nstr_sect *np, s_char *str)
+snxtsct(struct nstr_sect *np, s_char *str)
 {
     struct range range;
     coord cx, cy;
@@ -106,7 +105,7 @@ snxtsct_all(struct nstr_sect *np)
 }
 
 void
-snxtsct_area(register struct nstr_sect *np, struct range *range)
+snxtsct_area(struct nstr_sect *np, struct range *range)
 {
     memset(np, 0, sizeof(*np));
     np->range = *range;
@@ -133,7 +132,7 @@ snxtsct_rewind(struct nstr_sect *np)
 }
 
 void
-snxtsct_dist(register struct nstr_sect *np, coord cx, coord cy, int dist)
+snxtsct_dist(struct nstr_sect *np, coord cx, coord cy, int dist)
 {
     memset(np, 0, sizeof(*np));
     xydist_range(cx, cy, dist, &np->range);
@@ -156,7 +155,7 @@ snxtsct_dist(register struct nstr_sect *np, coord cx, coord cy, int dist)
 }
 
 void
-xysize_range(register struct range *rp)
+xysize_range(struct range *rp)
 {
     if (rp->lx >= rp->hx)
        rp->width = WORLD_X + rp->hx - rp->lx;
@@ -180,7 +179,7 @@ xysize_range(register struct range *rp)
 
 /* This is called also called in snxtitem.c */
 void
-xydist_range(coord x, coord y, register int dist, struct range *rp)
+xydist_range(coord x, coord y, int dist, struct range *rp)
 {
     if (dist < WORLD_X / 4) {
        rp->lx = xnorm((coord)(x - 2 * dist));
index ec6b2077f81de2f51f09e9b1594bc30bd1e9955f..98d1d7f690e9ff14119d687985ea6ed153d1a809 100644 (file)
@@ -33,7 +33,6 @@
 
 #include "misc.h"
 #include "nat.h"
-#include "var.h"
 #include "retreat.h"
 #include "ship.h"
 #include "land.h"
index 43b8441eeabda86cda96c67c982298bc6ba35d2e..991848b33fcce01ec7904bc465d884c3f2d0f698 100644 (file)
@@ -33,7 +33,6 @@
  */
 
 #include "misc.h"
-#include "var.h"
 #include "sect.h"
 #include "xy.h"
 #include "nsc.h"
@@ -46,7 +45,7 @@
 #include "optlist.h"
 
 void
-takeover(register struct sctstr *sp, natid newown)
+takeover(struct sctstr *sp, natid newown)
 {
     struct plnstr *pp;
     struct lndstr *lp;
@@ -165,7 +164,7 @@ takeover(register struct sctstr *sp, natid newown)
 }
 
 void
-takeover_plane(register struct plnstr *pp, natid newown)
+takeover_plane(struct plnstr *pp, natid newown)
 {
     int n;
 
@@ -209,10 +208,10 @@ takeover_plane(register struct plnstr *pp, natid newown)
 }
 
 void
-takeover_ship(register struct shpstr *sp, natid newown, int hostile)
+takeover_ship(struct shpstr *sp, natid newown, int hostile)
 {
-    register struct plnstr *pp;
-    register struct lndstr *lp;
+    struct plnstr *pp;
+    struct lndstr *lp;
     struct nstr_item ni;
     struct plnstr p;
     struct lndstr llp;
@@ -266,10 +265,10 @@ takeover_ship(register struct shpstr *sp, natid newown, int hostile)
 }
 
 void
-takeover_land(register struct lndstr *landp, natid newown, int hostile)
+takeover_land(struct lndstr *landp, natid newown, int hostile)
 {
-    register struct plnstr *pp;
-    register struct lndstr *lp;
+    struct plnstr *pp;
+    struct lndstr *lp;
     struct nstr_item ni;
     struct plnstr p;
     struct lndstr llp;
index 0f27a73b41d4661fbd41016afbc2fb12a0ca934d..d856bbedc6862ce39de49b8f8601b6a2f5184ded 100644 (file)
@@ -35,7 +35,6 @@
 
 #include "misc.h"
 #include "player.h"
-#include "var.h"
 #include "sect.h"
 #include "nat.h"
 #include "item.h"
@@ -243,7 +242,7 @@ long
 get_couval(int cnum)
 {
     struct sctstr *sp;
-    register int j, k, val;
+    int j, k, val;
     long secttot = 0;
 
     for (j = 0; NULL != (sp = getsectid(j)); j++) {
index 66f2c64122a5156e1db34bcd6c4b15bac412e750..2419a805a00fd8be073b01d4f76fec6a58a41ae3 100644 (file)
@@ -35,7 +35,6 @@
 
 #include <math.h>
 #include "misc.h"
-#include "var.h"
 #include "sect.h"
 #include "nat.h"
 #include "item.h"
@@ -77,7 +76,7 @@ static s_char *ReversePath(s_char *path);
 void
 finish_sects(int etu)
 {
-    register struct sctstr *sp;
+    struct sctstr *sp;
     struct natstr *np;
     int n;
     struct distinfo *infptr;
index 43a35234ef7a50096f9c384d74e8589e34d90164..2e3ba0107e216e1494db12bd6ca9593e3dcdeba5 100644 (file)
@@ -34,7 +34,6 @@
 
 #include <math.h>
 #include "misc.h"
-#include "var.h"
 #include "sect.h"
 #include "nat.h"
 #include "item.h"
 #include "gen.h"
 #include "subs.h"
 
-static int grow_people(struct sctstr *, register int,
-                      register struct natstr *, int *, int,
+static int grow_people(struct sctstr *, int,
+                      struct natstr *, int *, int,
                       short *);
 static int growfood(struct sctstr *, short *, int, int);
 static void starvation(struct sctstr *);
-static void trunc_people(struct sctstr *, register struct natstr *,
+static void trunc_people(struct sctstr *, struct natstr *,
                         short *);
 
 /*
@@ -241,7 +240,7 @@ feed_people(short *vec, int etu, int *needed)
  * Truncate any extra people that may be around
  */
 static void
-trunc_people(struct sctstr *sp, register struct natstr *np,
+trunc_people(struct sctstr *sp, struct natstr *np,
             short *vec)
 {
     int maxpop = max_pop(np->nat_level[NAT_RLEV], sp);
@@ -259,8 +258,8 @@ trunc_people(struct sctstr *sp, register struct natstr *np,
  * production?  Maybe with just high education?
  */
 static int
-grow_people(struct sctstr *sp, register int etu,
-           register struct natstr *np, int *workp, int sctwork,
+grow_people(struct sctstr *sp, int etu,
+           struct natstr *np, int *workp, int sctwork,
            short *vec)
 {
     int newciv;
index 6c95bbcc88918dc8f3e8524bdc076897ecc06f74..1f52ddbaec6fa4ed97b63901bcbeeda81aa145cc 100644 (file)
@@ -39,7 +39,6 @@
 #include "nat.h"
 #include "land.h"
 #include "ship.h"
-#include "var.h"
 #include "news.h"
 #include "file.h"
 #include "product.h"
@@ -59,16 +58,16 @@ int mil_dbl_pay;
 #define MIN(x,y)       ((x) > (y) ? (y) : (x))
 #endif
 
-static int landrepair(register struct lndstr *, struct natstr *,
+static int landrepair(struct lndstr *, struct natstr *,
                      int *, int);
-static void upd_land(register struct lndstr *lp, register int etus,
+static void upd_land(struct lndstr *lp, int etus,
                     struct natstr *np, int *bp, int build);
 
 int
 prod_land(int etus, int natnum, int *bp, int build)
                /* build = 1, maintain = 0 */
 {
-    register struct lndstr *lp;
+    struct lndstr *lp;
     struct sctstr *sp;
     struct natstr *np;
     int n, k = 0;
@@ -111,7 +110,7 @@ prod_land(int etus, int natnum, int *bp, int build)
 }
 
 static void
-upd_land(register struct lndstr *lp, register int etus,
+upd_land(struct lndstr *lp, int etus,
         struct natstr *np, int *bp, int build)
               /* build = 1, maintain = 0 */
 {
@@ -233,10 +232,10 @@ upd_land(register struct lndstr *lp, register int etus,
 
 /*ARGSUSED*/
 static int
-landrepair(register struct lndstr *land, struct natstr *np,
+landrepair(struct lndstr *land, struct natstr *np,
           int *bp, int etus)
 {
-    register int delta;
+    int delta;
     struct sctstr *sp;
     struct lchrstr *lp;
     float leftp, buildp;
index bde65f7d23474bee3059b45645df3674fe2d179c..f70ff0fae8d0f8f3a8c18a8b15b89b82b304a687 100644 (file)
@@ -39,7 +39,6 @@
 #include "sect.h"
 #include "player.h"
 #include "empthread.h"
-#include "var.h"
 #include "budg.h"
 #include "product.h"
 #include "player.h"
index 7b5f2deaa78f4f64ef97ca8227f00dc904f25e36..01009964f170eed035cbe862834967ad592a96ce 100644 (file)
@@ -32,7 +32,6 @@
  */
 
 #include "misc.h"
-#include "var.h"
 #include "sect.h"
 #include "file.h"
 #include "optlist.h"
index 4c168846c3493661cce1ad6a380906edc305016f..d3e25c8f4030fd7cbb66aca96222ef56cb0285da 100644 (file)
@@ -33,7 +33,6 @@
  */
 
 #include "misc.h"
-#include "var.h"
 #include "sect.h"
 #include "ship.h"
 #include "land.h"
@@ -54,10 +53,10 @@ int updating_mob = 1;
 static int timestamp_fixing;
 static int do_upd_checking = 0;
 
-static void do_mob_land(register struct lndstr *, register int);
-static void do_mob_plane(register struct plnstr *, register int);
-static void do_mob_sect(register struct sctstr *sp, register int etus);
-static void do_mob_ship(register struct shpstr *, register int);
+static void do_mob_land(struct lndstr *, int);
+static void do_mob_plane(struct plnstr *, int);
+static void do_mob_sect(struct sctstr *sp, int etus);
+static void do_mob_ship(struct shpstr *, int);
 
 static int
 increase_mob(time_t * counter, float mult)
@@ -155,7 +154,7 @@ update_all_mob(void)
 }
 
 void
-sct_do_upd_mob(register struct sctstr *sp)
+sct_do_upd_mob(struct sctstr *sp)
 {
     int etus;
 
@@ -174,7 +173,7 @@ sct_do_upd_mob(register struct sctstr *sp)
 }
 
 void
-shp_do_upd_mob(register struct shpstr *sp)
+shp_do_upd_mob(struct shpstr *sp)
 {
     int etus;
 
@@ -190,7 +189,7 @@ shp_do_upd_mob(register struct shpstr *sp)
 }
 
 void
-lnd_do_upd_mob(register struct lndstr *lp)
+lnd_do_upd_mob(struct lndstr *lp)
 {
     int etus;
 
@@ -207,7 +206,7 @@ lnd_do_upd_mob(register struct lndstr *lp)
 }
 
 void
-pln_do_upd_mob(register struct plnstr *pp)
+pln_do_upd_mob(struct plnstr *pp)
 {
     int etus;
 
@@ -224,10 +223,10 @@ pln_do_upd_mob(register struct plnstr *pp)
 }
 
 void
-mob_sect(register int etus)
+mob_sect(int etus)
 {
-    register struct sctstr *sp;
-    register int n;
+    struct sctstr *sp;
+    int n;
     time_t now;
 
     time(&now);
@@ -241,9 +240,9 @@ mob_sect(register int etus)
 }
 
 static void
-do_mob_sect(register struct sctstr *sp, register int etus)
+do_mob_sect(struct sctstr *sp, int etus)
 {
-    register int value;
+    int value;
 
     if (sp->sct_own == 0)
        return;
@@ -262,10 +261,10 @@ do_mob_sect(register struct sctstr *sp, register int etus)
 }
 
 void
-mob_ship(register int etus)
+mob_ship(int etus)
 {
-    register struct shpstr *sp;
-    register int n;
+    struct shpstr *sp;
+    int n;
     time_t now;
 
     time(&now);
@@ -279,10 +278,10 @@ mob_ship(register int etus)
 }
 
 static void
-do_mob_ship(register struct shpstr *sp, register int etus)
+do_mob_ship(struct shpstr *sp, int etus)
 {
     int newfuel = 0;
-    register int value;
+    int value;
     int can_add, have_fuel_for, total_add;
     double d;
 
@@ -372,10 +371,10 @@ do_mob_ship(register struct shpstr *sp, register int etus)
 }
 
 void
-mob_land(register int etus)
+mob_land(int etus)
 {
-    register struct lndstr *lp;
-    register int n;
+    struct lndstr *lp;
+    int n;
     time_t now;
 
     time(&now);
@@ -389,10 +388,10 @@ mob_land(register int etus)
 }
 
 static void
-do_mob_land(register struct lndstr *lp, register int etus)
+do_mob_land(struct lndstr *lp, int etus)
 {
     int newfuel = 0;
-    register int value;
+    int value;
     int can_add, have_fuel_for, total_add;
     double d;
 
@@ -489,10 +488,10 @@ do_mob_land(register struct lndstr *lp, register int etus)
 }
 
 void
-mob_plane(register int etus)
+mob_plane(int etus)
 {
-    register struct plnstr *pp;
-    register int n;
+    struct plnstr *pp;
+    int n;
     time_t now;
 
     time(&now);
@@ -506,9 +505,9 @@ mob_plane(register int etus)
 }
 
 static void
-do_mob_plane(register struct plnstr *pp, register int etus)
+do_mob_plane(struct plnstr *pp, int etus)
 {
-    register int value;
+    int value;
 
     if (pp->pln_own == 0)
        return;
index 8ec67e40187d6dd36823ecab3c49c39226f3963b..5f8541e6ff09104d795e5e9f50507c4d3285df35 100644 (file)
@@ -33,7 +33,6 @@
 
 #include <math.h>
 #include "misc.h"
-#include "var.h"
 #include "plane.h"
 #include "sect.h"
 #include "xy.h"
@@ -50,7 +49,7 @@
 #endif
 
 void
-move_sat(register struct plnstr *pp)
+move_sat(struct plnstr *pp)
 {
     coord x1, y1, x2, y2;
     coord dx, dy;
index e79ee8fd8066b7093ff61311e4c66b059996f154..40024ffd5174a0ecbbf0f8808762d1368833cb81 100644 (file)
@@ -34,7 +34,6 @@
 
 #include <math.h>
 #include "misc.h"
-#include "var.h"
 #include "sect.h"
 #include "nat.h"
 #include "item.h"
@@ -57,7 +56,7 @@
  * level of 0 yields (1) 0.4, (6) 2.2, (12) 3.9, (18) 5.2.
  */
 
-static void share_incr(register double *, register double *);
+static void share_incr(double *, double *);
 
 /*
  * for values below the "easy level" values, production is
@@ -233,12 +232,12 @@ prod_nat(int etu)
  * find out everyones increment
  */
 static void
-share_incr(register double *res, register double *tech)
+share_incr(double *res, double *tech)
 {
-    register struct natstr *np;
-    register struct natstr *other;
-    register natid i;
-    register natid j;
+    struct natstr *np;
+    struct natstr *other;
+    natid i;
+    natid j;
     int rnc;
     int tnc;
 
index c786e798baca8756fbc16ad8b3da87c14cc37713..fb911af3698de7244f28e7bb4bf67020d338a8f1 100644 (file)
@@ -35,7 +35,6 @@
 #include "misc.h"
 
 #include <ctype.h>
-#include "var.h"
 #include "ship.h"
 #include "sect.h"
 #include "news.h"
@@ -55,7 +54,7 @@
 static void swap(struct shpstr *);
 
 static void
-scuttle_it(register struct shpstr *sp)
+scuttle_it(struct shpstr *sp)
 {
     struct sctstr *sectp;
 
@@ -86,7 +85,7 @@ scuttle_it(register struct shpstr *sp)
 }
 
 static void
-nav_check_atdest(register struct shpstr *sp)
+nav_check_atdest(struct shpstr *sp)
 {
     if ((sp->shp_x == sp->shp_destx[0]) && (sp->shp_y == sp->shp_desty[0])) {
        if ((sp->shp_destx[0] == sp->shp_destx[1]) &&
@@ -155,7 +154,7 @@ swap(struct shpstr *sp)
  */
 
 static int
-nav_loadship(register struct shpstr *sp, natid cnum)
+nav_loadship(struct shpstr *sp, natid cnum)
 {
     struct sctstr *sectp;
     int i, landown, shipown, didsomething[TMAX], rel;
@@ -233,7 +232,7 @@ nav_loadship(register struct shpstr *sp, natid cnum)
  * Modified to use shp_nav by Ken Stevens 1995
  */
 int
-nav_ship(register struct shpstr *sp)
+nav_ship(struct shpstr *sp)
 {
     struct sctstr *sectp;
     s_char *cp;
index 05db6bf4acb8defc3e3165d56b4a640e48b2cc61..2fdeaebeb0970879314dcb44d719ffd77ab454c2 100644 (file)
@@ -32,7 +32,6 @@
  */
 
 #include "misc.h"
-#include "var.h"
 #include "xy.h"
 #include "plane.h"
 #include "ship.h"
index c2f1bd9a1680186537e2c1807da44e853ebd5e6a..fa5a429fc0ef6377b2722df7045cdc51e3532540 100644 (file)
@@ -32,7 +32,6 @@
  */
 
 #include "misc.h"
-#include "var.h"
 #include "xy.h"
 #include "sect.h"
 #include "nsc.h"
@@ -46,7 +45,7 @@
  * that matches the conditions.
  */
 struct sctstr *
-nxtsctp(register struct nstr_sect *np)
+nxtsctp(struct nstr_sect *np)
 {
     while (1) {
        np->dx++;
index 2aba379814bb8824ab9b8d6d454036f4739f666c..e06190ff97dfc4091af99f610610652a65f8ef9e 100644 (file)
@@ -33,7 +33,6 @@
  */
 
 #include "misc.h"
-#include "var.h"
 #include "sect.h"
 #include "plane.h"
 #include "ship.h"
@@ -59,8 +58,8 @@ prod_plane(int etus, int natnum, int *bp, int buildem)
 
                 /* Build = 1, maintain =0 */
 {
-    register struct plnstr *pp;
-    register struct plchrstr *plp;
+    struct plnstr *pp;
+    struct plchrstr *plp;
     struct natstr *np;
     float leftp, buildp;
     int left, build;
index 968d365b1ca217639100bdd0ee59f4c4dd495245..338bcf2a2b211268e47370e95253b326b70a69a7 100644 (file)
  */
 
 #include "misc.h"
-#include "var.h"
 #include "sect.h"
 #include "nat.h"
 #include "news.h"
-#include "var.h"
 #include "file.h"
 #include "path.h"
 #include "xy.h"
@@ -49,7 +47,7 @@
 #include "lost.h"
 
 void
-populace(struct natstr *np, register struct sctstr *sp, int etu)
+populace(struct natstr *np, struct sctstr *sp, int etu)
 {
     float hap;
     float tech;
@@ -135,8 +133,8 @@ populace(struct natstr *np, register struct sctstr *sp, int etu)
 }
 
 int
-total_work(register int sctwork, register int etu, register int civil,
-          register int milit, register int uw)
+total_work(int sctwork, int etu, int civil,
+          int milit, int uw)
 {
     return ((int)((((civil * sctwork) / 100.0 +
                    (milit * 2 / 5.0) + uw)) * etu) / 100);
index a648f456c8218923fb5eff23c2a9663d18c35f2c..64b1819e9b2d0d4fb6c8bfb470bd857333baf047 100644 (file)
@@ -35,7 +35,6 @@
 
 #include <math.h>
 #include "misc.h"
-#include "var.h"
 #include "sect.h"
 #include "nat.h"
 #include "item.h"
@@ -55,7 +54,7 @@
 void
 prepare_sects(int etu, int *bp)
 {
-    register struct sctstr *sp;
+    struct sctstr *sp;
     struct natstr *np;
     int n, civ_tax, uw_tax, mil_pay;
 
index dc36cf1c62553b5a1773af5968603d9b629a8c33..3ef3d8b7d31e0b0d7322a0fb444ef5be0dd674ef 100644 (file)
@@ -32,7 +32,6 @@
  */
 
 #include "misc.h"
-#include "var.h"
 #include "sect.h"
 #include "product.h"
 #include "nat.h"
@@ -56,7 +55,7 @@ int
 produce(struct natstr *np, struct sctstr *sp, short *vec, int work,
        int desig, int neweff, int *cost, int *amount)
 {
-    register struct pchrstr *product;
+    struct pchrstr *product;
     double p_e;
     double prodeff;
     s_char *resource;
index 14540d9a3f7699159997642728d073744bcad720..5b496772990e703d85e339797d107859445b4dc2 100644 (file)
  */
 
 #include "misc.h"
-#include "var.h"
 #include "sect.h"
 #include "nat.h"
 #include "news.h"
-#include "var.h"
 #include "file.h"
 #include "path.h"
 #include "xy.h"
@@ -323,7 +321,7 @@ guerrilla(struct sctstr *sp)
        }
     }
     if (convert && sp->sct_loyal >= 50) {
-       register int n;
+       int n;
        /* new owner gets to keep the mobility there */
        oldmob = sp->sct_mobil;
        /* che won, and sector converts. */
index b05c989b42304c87a2f070de4ff86916b2ca7008..9a8e9dad9d526d9fdfe0b3ded85e510b1b30bd1d 100644 (file)
  */
 
 #include "misc.h"
-#include "var.h"
 #include "sect.h"
 #include "path.h"
 #include "ship.h"
-#include "var.h"
 #include "news.h"
 #include "file.h"
 #include "nat.h"
index ffd5f4b3d106049c4547a650ca7b62e80add5dd8..52e3d8112ef96bae9125abef545a82d4e6285624 100644 (file)
@@ -34,7 +34,6 @@
 
 #include <math.h>
 #include "misc.h"
-#include "var.h"
 #include "sect.h"
 #include "nat.h"
 #include "item.h"
  * Return amount of work used.
  */
 static int
-upd_buildeff(struct natstr *np, register struct sctstr *sp, int *workp,
+upd_buildeff(struct natstr *np, struct sctstr *sp, int *workp,
             short *vec, int etu, int *desig, int sctwork, int *cost)
 {
-    register int work_cost = 0;
+    int work_cost = 0;
     int buildeff_work = *workp / 2;
     int n, hcms, lcms, neweff;
     u_char old_type = *desig;
@@ -204,7 +203,7 @@ meltitems(int etus, int fallout, int own, short *vec, int type, int x, int y,
  */
 
 void
-do_fallout(register struct sctstr *sp, register int etus)
+do_fallout(struct sctstr *sp, int etus)
 {
     struct shpstr *spp;
     struct lndstr *lp;
@@ -246,7 +245,7 @@ spread_fallout(struct sctstr *sp, int etus)
 {
     struct sctstr *ap;
     int n;
-    register int inc;
+    int inc;
 
     if (etus > 24)
        etus = 24;
@@ -297,8 +296,8 @@ void
 produce_sect(int natnum, int etu, int *bp, long int (*p_sect)[2],
             int sector_type)
 {
-    register struct sctstr *sp;
-    register struct natstr *np;
+    struct sctstr *sp;
+    struct natstr *np;
     short buf[I_MAX + 1];
     short *vec;
     int work, cost, ecost, pcost, sctwork;
index a5e6e1ad318c258732b97d08717087219ba45e9e..8d98a2ce1a9a290380aaa6952d2f4d7cba73f207 100644 (file)
@@ -37,7 +37,6 @@
 #include "sect.h"
 #include "nat.h"
 #include "ship.h"
-#include "var.h"
 #include "news.h"
 #include "file.h"
 #include "product.h"
 #define MIN(x,y)        ((x) > (y) ? (y) : (x))
 #endif
 
-static int shiprepair(register struct shpstr *, struct natstr *,
+static int shiprepair(struct shpstr *, struct natstr *,
                      int *, int);
-static void upd_ship(register struct shpstr *, register int,
+static void upd_ship(struct shpstr *, int,
                     struct natstr *, int *, int);
 
 int
 prod_ship(int etus, int natnum, int *bp, int build)
                /* build = 1, maintain = 0 */
 {
-    register struct shpstr *sp;
+    struct shpstr *sp;
     struct natstr *np;
     int n, k = 0;
     int start_money;
@@ -110,7 +109,7 @@ prod_ship(int etus, int natnum, int *bp, int build)
 }
 
 static void
-upd_ship(register struct shpstr *sp, register int etus,
+upd_ship(struct shpstr *sp, int etus,
         struct natstr *np, int *bp, int build)
               /* build = 1, maintain = 0 */
 {
@@ -267,10 +266,10 @@ upd_ship(register struct shpstr *sp, register int etus,
  * 8 * 8 * $40 = $2560!
  */
 static int
-shiprepair(register struct shpstr *ship, struct natstr *np,
+shiprepair(struct shpstr *ship, struct natstr *np,
           int *bp, int etus)
 {
-    register int delta;
+    int delta;
     struct sctstr *sp;
     struct mchrstr *mp;
     float leftp, buildp;
index 4fd04da5ab08e9a0a55b907649555ae8e0bfe0b4..6ea932b3f45b6264c78cd4cd7fca6e75fcbb3341 100644 (file)
@@ -60,7 +60,6 @@
 #include "land.h"
 #include "ship.h"
 #include "sect.h"
-#include "var.h"
 #include "product.h"
 #include "optlist.h"
 #include "global.h"
index 0b803b51b6063d059df63d48742d4a89d33e027f..720f6854432a7ff6f2930d33193a8aadd32f7fb2 100644 (file)
@@ -72,7 +72,6 @@ static int quiet = 0;
 #include <stdio.h>
 #include <stdlib.h>
 #include <fcntl.h>
-#include "var.h"
 #include "misc.h"
 #include "power.h"
 #include "nat.h"
@@ -1068,7 +1067,7 @@ add_resources(struct sctstr *sct)
 static void
 write_sects(void)
 {
-    register struct sctstr *sct;
+    struct sctstr *sct;
     int c, x, y, total;
 
     /*  sct = &sects[0][0]; */
index 7ab83b26299e032e1f08095805fa85cf212535bc..397647a18e1a47450b78041d55c0e90d63a7bff8 100644 (file)
@@ -50,7 +50,6 @@
 
 #include "options.h"
 #include "misc.h"
-#include "var.h"
 #include "sect.h"
 #include "nat.h"
 #include "ship.h"