Purge the register keyword.

This commit is contained in:
Markus Armbruster 2006-05-21 13:18:57 +00:00
parent 4c4fdca42b
commit 0d842c47f7
15 changed files with 45 additions and 57 deletions

View file

@ -52,14 +52,13 @@ static void head_describe(struct histstr *, int, char *, char *);
static int head_printscoop(struct histstr (*hist)[MAXNOC], natid ano,
natid vno);
static int head_findscoop(struct histstr (*hist)[MAXNOC],
register natid maxcnum, natid *ano, natid *vno);
natid maxcnum, natid *ano, natid *vno);
int
head(void)
{
register int i;
register struct histstr *hp;
register natid maxcnum;
struct histstr *hp;
natid maxcnum;
time_t now;
int severity;
int scoop;
@ -71,7 +70,7 @@ head(void)
natid actor;
natid victim;
struct nstr_item nstr;
int n;
int i, n;
(void)time(&now);
natp = getnatp(player->cnum);
@ -126,7 +125,7 @@ head(void)
static int
head_printscoop(struct histstr (*hist)[MAXNOC], natid ano, natid vno)
{
register struct histstr *hp;
struct histstr *hp;
int severity;
hp = &hist[ano][vno];
@ -220,16 +219,12 @@ head_describe(struct histstr *hp, int what, char *aname, char *vname)
* Pretty strange.
*/
static int
head_findscoop(struct histstr (*hist)[MAXNOC], register natid maxcnum,
head_findscoop(struct histstr (*hist)[MAXNOC], natid maxcnum,
natid *ano, natid *vno)
{
register struct histstr *hp;
register int i;
register int j;
register int k;
int scoop;
natid actor;
natid victim;
struct histstr *hp;
int i, j, k, scoop;
natid actor, victim;
scoop = 9;
actor = 0;

View file

@ -43,7 +43,7 @@
#include "commands.h"
#include "optlist.h"
static void preport(register struct nwsstr *np);
static void preport(struct nwsstr *np);
int
news(void)
@ -174,10 +174,10 @@ news(void)
}
static void
preport(register struct nwsstr *np)
preport(struct nwsstr *np)
{
char *cp;
register int i;
int i;
char buf[255];
char num[128];
char *ptr;

View file

@ -80,15 +80,13 @@ static int
do_treaty(void)
{
char *cp;
register int ourcond;
register int theircond;
register int j;
int ourcond, theircond;
struct symbol *tfp;
struct trtstr trty;
struct nstr_item nstr;
natid recipient;
time_t now;
int n;
int j, n;
struct natstr *natp;
char prompt[128];
char buf[1024];
@ -163,7 +161,7 @@ do_treaty(void)
static int
do_loan(void)
{
register int amt, irate, dur, maxloan;
int amt, irate, dur, maxloan;
struct nstr_item nstr;
struct natstr *natp;
struct lonstr loan;