remove STATIC_DCL, STATIC_OVL, STATIC_VAR, STATIC_PTR from core

This commit is contained in:
nhmall
2019-07-14 17:24:58 -04:00
parent e3b5e7f95a
commit 0d34f43830
96 changed files with 2339 additions and 2370 deletions

View File

@@ -33,32 +33,32 @@ extern int NDECL(nhdatatypes_size);
int dotcnt, dotrow; /* also used in restore */
#endif
STATIC_DCL void FDECL(savelevchn, (NHFILE *));
STATIC_DCL void FDECL(savedamage, (NHFILE *));
/* STATIC_DCL void FDECL(saveobj, (NHFILE *,struct obj *)); */
/* STATIC_DCL void FDECL(savemon, (NHFILE *,struct monst *)); */
/* STATIC_DCL void FDECL(savelevl, (NHFILE *, BOOLEAN_P)); */
STATIC_DCL void FDECL(saveobj, (NHFILE *,struct obj *));
STATIC_DCL void FDECL(savemon, (NHFILE *,struct monst *));
STATIC_DCL void FDECL(savelevl, (NHFILE *,BOOLEAN_P));
STATIC_DCL void FDECL(saveobjchn, (NHFILE *,struct obj *));
STATIC_DCL void FDECL(savemonchn, (NHFILE *,struct monst *));
STATIC_DCL void FDECL(savetrapchn, (NHFILE *,struct trap *));
STATIC_DCL void FDECL(savegamestate, (NHFILE *));
STATIC_OVL void FDECL(save_msghistory, (NHFILE *));
static void FDECL(savelevchn, (NHFILE *));
static void FDECL(savedamage, (NHFILE *));
/* static void FDECL(saveobj, (NHFILE *,struct obj *)); */
/* static void FDECL(savemon, (NHFILE *,struct monst *)); */
/* static void FDECL(savelevl, (NHFILE *, BOOLEAN_P)); */
static void FDECL(saveobj, (NHFILE *,struct obj *));
static void FDECL(savemon, (NHFILE *,struct monst *));
static void FDECL(savelevl, (NHFILE *,BOOLEAN_P));
static void FDECL(saveobjchn, (NHFILE *,struct obj *));
static void FDECL(savemonchn, (NHFILE *,struct monst *));
static void FDECL(savetrapchn, (NHFILE *,struct trap *));
static void FDECL(savegamestate, (NHFILE *));
static void FDECL(save_msghistory, (NHFILE *));
#ifdef MFLOPPY
STATIC_DCL void FDECL(savelev0, (NHFILE *, XCHAR_P, int));
STATIC_DCL boolean NDECL(swapout_oldest);
STATIC_DCL void FDECL(copyfile, (char *, char *));
static void FDECL(savelev0, (NHFILE *, XCHAR_P, int));
static boolean NDECL(swapout_oldest);
static void FDECL(copyfile, (char *, char *));
#endif /* MFLOPPY */
#ifdef ZEROCOMP
STATIC_DCL void FDECL(zerocomp_bufon, (int));
STATIC_DCL void FDECL(zerocomp_bufoff, (int));
STATIC_DCL void FDECL(zerocomp_bflush, (int));
STATIC_DCL void FDECL(zerocomp_bwrite, (int, genericptr_t, unsigned int));
STATIC_DCL void FDECL(zerocomp_bputc, (int));
static void FDECL(zerocomp_bufon, (int));
static void FDECL(zerocomp_bufoff, (int));
static void FDECL(zerocomp_bflush, (int));
static void FDECL(zerocomp_bwrite, (int, genericptr_t, unsigned int));
static void FDECL(zerocomp_bputc, (int));
#endif
#if defined(UNIX) || defined(VMS) || defined(__EMX__) || defined(WIN32)
@@ -282,7 +282,7 @@ dosave0()
return 1;
}
STATIC_OVL void
static void
savegamestate(nhfp)
NHFILE *nhfp;
{
@@ -539,7 +539,7 @@ xchar lev;
return TRUE;
}
STATIC_OVL void
static void
savelev0(nhfp, lev)
#else
void
@@ -682,7 +682,7 @@ xchar lev;
}
}
STATIC_OVL void
static void
savelevl(nhfp, rlecomp)
NHFILE *nhfp;
boolean rlecomp;
@@ -790,7 +790,7 @@ struct cemetery **cemeteryaddr;
*cemeteryaddr = 0;
}
STATIC_OVL void
static void
savedamage(nhfp)
NHFILE *nhfp;
{
@@ -822,7 +822,7 @@ NHFILE *nhfp;
g.level.damagelist = 0;
}
STATIC_OVL void
static void
saveobj(nhfp, otmp)
NHFILE *nhfp;
struct obj *otmp;
@@ -898,7 +898,7 @@ struct obj *otmp;
}
}
STATIC_OVL void
static void
saveobjchn(nhfp, otmp)
NHFILE *nhfp;
register struct obj *otmp;
@@ -949,7 +949,7 @@ register struct obj *otmp;
}
}
STATIC_OVL void
static void
savemon(nhfp, mtmp)
NHFILE *nhfp;
struct monst *mtmp;
@@ -1043,7 +1043,7 @@ struct monst *mtmp;
}
}
STATIC_OVL void
static void
savemonchn(nhfp, mtmp)
NHFILE *nhfp;
register struct monst *mtmp;
@@ -1080,7 +1080,7 @@ register struct monst *mtmp;
}
/* save traps; g.ftrap is the only trap chain so the 2nd arg is superfluous */
STATIC_OVL void
static void
savetrapchn(nhfp, trap)
NHFILE *nhfp;
register struct trap *trap;
@@ -1145,7 +1145,7 @@ NHFILE *nhfp;
STATIC_OVL void
static void
savelevchn(nhfp)
NHFILE *nhfp;
{
@@ -1195,7 +1195,7 @@ NHFILE *nhfp;
return;
}
STATIC_OVL void
static void
save_msghistory(nhfp)
NHFILE *nhfp;
{
@@ -1404,7 +1404,7 @@ int lev;
return TRUE;
}
STATIC_OVL boolean
static boolean
swapout_oldest()
{
char to[PATHLEN], from[PATHLEN];
@@ -1435,7 +1435,7 @@ swapout_oldest()
return TRUE;
}
STATIC_OVL void
static void
copyfile(from, to)
char *from, *to;
{