(var.h, plague.h): Since all that was left in var.h were some plague
defines, import these defines into plague.h, drop var.h and include plague.h where appropriate. Remove some 'register' keywords at the same time. No functional changes.
This commit is contained in:
parent
e9a040adb9
commit
39facfbf53
18 changed files with 43 additions and 45 deletions
|
@ -25,14 +25,12 @@
|
|||
*
|
||||
* ---
|
||||
*
|
||||
* var.h: various variable definitions
|
||||
* plague.h: plague defines.
|
||||
*
|
||||
* Known contributors to this file:
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef _VAR_H_
|
||||
#define _VAR_H_
|
||||
#ifndef _PLAGUE_H_
|
||||
#define _PLAGUE_H_
|
||||
|
||||
#define PLG_HEALTHY 0
|
||||
#define PLG_DYING 1
|
||||
|
@ -40,4 +38,4 @@
|
|||
#define PLG_INCUBATE 3
|
||||
#define PLG_EXPOSED 4
|
||||
|
||||
#endif /* _VAR_H_ */
|
||||
#endif /* _PLAGUE_H_ */
|
|
@ -36,7 +36,7 @@
|
|||
#include <string.h>
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "plague.h"
|
||||
#include "sect.h"
|
||||
#include "nat.h"
|
||||
#include "xy.h"
|
||||
|
@ -53,7 +53,7 @@ add(void)
|
|||
struct natstr *natp;
|
||||
struct sctstr sect;
|
||||
struct nstr_sect nstr;
|
||||
register int i;
|
||||
int i;
|
||||
s_char cntryname[21];
|
||||
s_char pname[21];
|
||||
natid coun;
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
#include <string.h>
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "plague.h"
|
||||
#include "sect.h"
|
||||
#include "nat.h"
|
||||
#include "ship.h"
|
||||
|
@ -50,18 +50,18 @@
|
|||
#include "optlist.h"
|
||||
#include "commands.h"
|
||||
|
||||
static int build_nuke(register struct sctstr *sp,
|
||||
register struct nchrstr *np, short *vec);
|
||||
static int build_ship(register struct sctstr *sp,
|
||||
register struct mchrstr *mp, short *vec,
|
||||
static int build_nuke(struct sctstr *sp,
|
||||
struct nchrstr *np, short *vec);
|
||||
static int build_ship(struct sctstr *sp,
|
||||
struct mchrstr *mp, short *vec,
|
||||
int tlev);
|
||||
static int build_land(register struct sctstr *sp,
|
||||
register struct lchrstr *lp, short *vec,
|
||||
static int build_land(struct sctstr *sp,
|
||||
struct lchrstr *lp, short *vec,
|
||||
int tlev);
|
||||
static int build_bridge(register struct sctstr *sp, short *vec);
|
||||
static int build_tower(register struct sctstr *sp, short *vec);
|
||||
static int build_plane(register struct sctstr *sp,
|
||||
register struct plchrstr *pp, short *vec,
|
||||
static int build_bridge(struct sctstr *sp, short *vec);
|
||||
static int build_tower(struct sctstr *sp, short *vec);
|
||||
static int build_plane(struct sctstr *sp,
|
||||
struct plchrstr *pp, short *vec,
|
||||
int tlev);
|
||||
|
||||
static int cash; /* static ok */
|
||||
|
@ -340,7 +340,7 @@ buil(void)
|
|||
}
|
||||
|
||||
static int
|
||||
build_ship(register struct sctstr *sp, register struct mchrstr *mp,
|
||||
build_ship(struct sctstr *sp, struct mchrstr *mp,
|
||||
short *vec, int tlev)
|
||||
{
|
||||
struct shpstr ship;
|
||||
|
@ -456,7 +456,7 @@ build_ship(register struct sctstr *sp, register struct mchrstr *mp,
|
|||
}
|
||||
|
||||
static int
|
||||
build_land(register struct sctstr *sp, register struct lchrstr *lp,
|
||||
build_land(struct sctstr *sp, struct lchrstr *lp,
|
||||
short *vec, int tlev)
|
||||
{
|
||||
struct lndstr land;
|
||||
|
@ -584,7 +584,7 @@ build_land(register struct sctstr *sp, register struct lchrstr *lp,
|
|||
}
|
||||
|
||||
static int
|
||||
build_bridge(register struct sctstr *sp, short *vec)
|
||||
build_bridge(struct sctstr *sp, short *vec)
|
||||
{
|
||||
struct sctstr sect;
|
||||
int val;
|
||||
|
@ -734,7 +734,7 @@ build_bridge(register struct sctstr *sp, short *vec)
|
|||
}
|
||||
|
||||
static int
|
||||
build_nuke(register struct sctstr *sp, register struct nchrstr *np,
|
||||
build_nuke(struct sctstr *sp, struct nchrstr *np,
|
||||
short *vec)
|
||||
{
|
||||
int avail;
|
||||
|
@ -790,7 +790,7 @@ build_nuke(register struct sctstr *sp, register struct nchrstr *np,
|
|||
}
|
||||
|
||||
static int
|
||||
build_plane(register struct sctstr *sp, register struct plchrstr *pp,
|
||||
build_plane(struct sctstr *sp, struct plchrstr *pp,
|
||||
short *vec, int tlev)
|
||||
{
|
||||
struct plnstr plane;
|
||||
|
@ -895,7 +895,7 @@ build_plane(register struct sctstr *sp, register struct plchrstr *pp,
|
|||
}
|
||||
|
||||
static int
|
||||
build_tower(register struct sctstr *sp, short *vec)
|
||||
build_tower(struct sctstr *sp, short *vec)
|
||||
{
|
||||
struct sctstr sect;
|
||||
int val;
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
#include <string.h>
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "plague.h"
|
||||
#include "xy.h"
|
||||
#include "sect.h"
|
||||
#include "nat.h"
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "plague.h"
|
||||
#include "sect.h"
|
||||
#include "xy.h"
|
||||
#include "nsc.h"
|
||||
|
@ -48,7 +48,7 @@ static int explore_map(s_char *what, coord curx, coord cury, s_char *arg);
|
|||
int
|
||||
explore(void)
|
||||
{
|
||||
register int amount;
|
||||
int amount;
|
||||
struct sctstr sect;
|
||||
struct sctstr endsect;
|
||||
struct sctstr start;
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "plague.h"
|
||||
#include "xy.h"
|
||||
#include "ship.h"
|
||||
#include "plane.h"
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
#include "player.h"
|
||||
#include "xy.h"
|
||||
#include "file.h"
|
||||
#include "var.h"
|
||||
#include "plague.h"
|
||||
#include "sect.h"
|
||||
#include "ship.h"
|
||||
#include "plane.h"
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "plague.h"
|
||||
#include "xy.h"
|
||||
#include "file.h"
|
||||
#include "ship.h"
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "plague.h"
|
||||
#include "sect.h"
|
||||
#include "item.h"
|
||||
#include "file.h"
|
||||
|
@ -51,7 +51,7 @@ static int cmd_move_map(s_char *what, coord curx, coord cury, s_char *arg);
|
|||
int
|
||||
move(void)
|
||||
{
|
||||
register int amount;
|
||||
int amount;
|
||||
struct sctstr sect;
|
||||
struct sctstr endsect;
|
||||
struct sctstr start;
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
#include <string.h>
|
||||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "var.h"
|
||||
#include "plague.h"
|
||||
#include "xy.h"
|
||||
#include "file.h"
|
||||
#include "ship.h"
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
*/
|
||||
|
||||
#include "misc.h"
|
||||
#include "var.h"
|
||||
#include "plague.h"
|
||||
#include "sect.h"
|
||||
#include "path.h"
|
||||
#include "file.h"
|
||||
|
@ -48,8 +48,8 @@
|
|||
void
|
||||
bridgefall(struct sctstr *sp, struct emp_qelem *list)
|
||||
{
|
||||
register int i;
|
||||
register int j;
|
||||
int i;
|
||||
int j;
|
||||
struct sctstr sect;
|
||||
struct sctstr bh_sect;
|
||||
int nx;
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
#include "misc.h"
|
||||
#include "player.h"
|
||||
#include "file.h"
|
||||
#include "var.h"
|
||||
#include "plague.h"
|
||||
#include "sect.h"
|
||||
#include "ship.h"
|
||||
#include "path.h"
|
||||
|
@ -2619,7 +2619,7 @@ take_move_in_mob(int combat_mode, struct llist *llp, struct combat *off,
|
|||
static void
|
||||
free_list(struct emp_qelem *list)
|
||||
{
|
||||
register struct emp_qelem *qp, *next;
|
||||
struct emp_qelem *qp, *next;
|
||||
|
||||
if (!list || QEMPTY(list))
|
||||
return;
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
*/
|
||||
|
||||
#include "misc.h"
|
||||
#include "var.h"
|
||||
#include "plague.h"
|
||||
#include "sect.h"
|
||||
#include "item.h"
|
||||
#include "path.h"
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
|
||||
#include <stdlib.h>
|
||||
#include "misc.h"
|
||||
#include "var.h"
|
||||
#include "plague.h"
|
||||
#include "nat.h"
|
||||
#include "sect.h"
|
||||
#include "item.h"
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
*/
|
||||
|
||||
#include "misc.h"
|
||||
#include "var.h"
|
||||
#include "plague.h"
|
||||
#include "sect.h"
|
||||
#include "nat.h"
|
||||
#include "land.h"
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
#include "misc.h"
|
||||
|
||||
#include <ctype.h>
|
||||
#include "var.h"
|
||||
#include "plague.h"
|
||||
#include "ship.h"
|
||||
#include "plane.h"
|
||||
#include "land.h"
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
|
||||
#include <math.h>
|
||||
#include "misc.h"
|
||||
#include "var.h"
|
||||
#include "plague.h"
|
||||
#include "sect.h"
|
||||
#include "nat.h"
|
||||
#include "item.h"
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
*/
|
||||
|
||||
#include "misc.h"
|
||||
#include "var.h"
|
||||
#include "plague.h"
|
||||
#include "sect.h"
|
||||
#include "nat.h"
|
||||
#include "ship.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue