remove register from variable declarations

This commit is contained in:
nhmall
2024-02-19 16:30:07 -05:00
parent 6f569f0a27
commit 688ac6ffbe
113 changed files with 836 additions and 835 deletions

View File

@@ -201,8 +201,8 @@ oracle_sound(struct monst *mtmp)
void
dosounds(void)
{
register struct mkroom *sroom;
register int hallu, vx, vy;
struct mkroom *sroom;
int hallu, vx, vy;
struct monst *mtmp;
if (Deaf || !flags.acoustics || u.uswallow || Underwater)
@@ -346,7 +346,7 @@ static const char *const h_sounds[] = {
};
const char *
growl_sound(register struct monst* mtmp)
growl_sound(struct monst* mtmp)
{
const char *ret;
@@ -397,9 +397,9 @@ growl_sound(register struct monst* mtmp)
/* the sounds of a seriously abused pet, including player attacking it */
void
growl(register struct monst* mtmp)
growl(struct monst* mtmp)
{
register const char *growl_verb = 0;
const char *growl_verb = 0;
if (helpless(mtmp) || mtmp->data->msound == MS_SILENT)
return;
@@ -422,9 +422,9 @@ growl(register struct monst* mtmp)
/* the sounds of mistreated pets */
void
yelp(register struct monst* mtmp)
yelp(struct monst* mtmp)
{
register const char *yelp_verb = 0;
const char *yelp_verb = 0;
enum sound_effect_entries se = se_yelp;
if (helpless(mtmp) || !mtmp->data->msound)
@@ -474,9 +474,9 @@ yelp(register struct monst* mtmp)
/* the sounds of distressed pets */
void
whimper(register struct monst* mtmp)
whimper(struct monst* mtmp)
{
register const char *whimper_verb = 0;
const char *whimper_verb = 0;
enum sound_effect_entries se = se_canine_whine;
if (helpless(mtmp) || !mtmp->data->msound)
return;
@@ -514,7 +514,7 @@ whimper(register struct monst* mtmp)
/* pet makes "I'm hungry" noises */
void
beg(register struct monst* mtmp)
beg(struct monst* mtmp)
{
if (helpless(mtmp)
|| !(carnivorous(mtmp->data) || herbivorous(mtmp->data)))
@@ -675,10 +675,10 @@ mon_is_gecko(struct monst *mon)
DISABLE_WARNING_FORMAT_NONLITERAL
static int /* check calls to this */
domonnoise(register struct monst* mtmp)
domonnoise(struct monst* mtmp)
{
char verbuf[BUFSZ];
register const char *pline_msg = 0, /* Monnam(mtmp) will be prepended */
const char *pline_msg = 0, /* Monnam(mtmp) will be prepended */
*verbl_msg = 0, /* verbalize() */
*verbl_msg_mcan = 0; /* verbalize() if cancelled */
struct permonst *ptr = mtmp->data;