Do not include var.h where no longer needed. Clean up register keywords in these file at the same time. No functional changes.

This commit is contained in:
Marc Olzheim 2004-10-12 20:08:51 +00:00
parent 442803c30a
commit e9a040adb9
187 changed files with 246 additions and 435 deletions

View file

@ -32,7 +32,6 @@
*/
#include "misc.h"
#include "var.h"
#include "xy.h"
/* must agree with DIR_ defines */

View file

@ -33,7 +33,6 @@
#include <stddef.h>
#include "misc.h"
#include "var.h"
#include "xy.h"
#include "loan.h"
#include "nsc.h"

View 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++) {

View file

@ -34,7 +34,6 @@
#include <stddef.h>
#include "misc.h"
#include "var.h"
#include "xy.h"
#include "loan.h"
#include "nsc.h"

View file

@ -36,7 +36,6 @@
#include "product.h"
#include "sect.h"
#include "nat.h"
#include "var.h"
struct pchrstr pchr[] = {