NOSTATICFN for src/*

This commit is contained in:
nhkeni
2024-03-14 17:41:51 -04:00
parent d523041b60
commit 9c0ed8ae63
111 changed files with 3871 additions and 3879 deletions

View File

@@ -16,28 +16,28 @@
int dotcnt, dotrow; /* also used in restore */
#endif
static void savelevchn(NHFILE *);
static void savelevl(NHFILE *,boolean);
static void savedamage(NHFILE *);
static void save_bubbles(NHFILE *, xint8);
static void save_stairs(NHFILE *);
static void save_bc(NHFILE *);
static void saveobj(NHFILE *, struct obj *);
static void saveobjchn(NHFILE *, struct obj **) NO_NNARGS;
static void savemon(NHFILE *, struct monst *);
static void savemonchn(NHFILE *, struct monst *) NO_NNARGS;
static void savetrapchn(NHFILE *, struct trap *) NO_NNARGS;
static void save_gamelog(NHFILE *);
static void savegamestate(NHFILE *);
static void savelev_core(NHFILE *, xint8);
static void save_msghistory(NHFILE *);
staticfn void savelevchn(NHFILE *);
staticfn void savelevl(NHFILE *,boolean);
staticfn void savedamage(NHFILE *);
staticfn void save_bubbles(NHFILE *, xint8);
staticfn void save_stairs(NHFILE *);
staticfn void save_bc(NHFILE *);
staticfn void saveobj(NHFILE *, struct obj *);
staticfn void saveobjchn(NHFILE *, struct obj **) NO_NNARGS;
staticfn void savemon(NHFILE *, struct monst *);
staticfn void savemonchn(NHFILE *, struct monst *) NO_NNARGS;
staticfn void savetrapchn(NHFILE *, struct trap *) NO_NNARGS;
staticfn void save_gamelog(NHFILE *);
staticfn void savegamestate(NHFILE *);
staticfn void savelev_core(NHFILE *, xint8);
staticfn void save_msghistory(NHFILE *);
#ifdef ZEROCOMP
static void zerocomp_bufon(int);
static void zerocomp_bufoff(int);
static void zerocomp_bflush(int);
static void zerocomp_bwrite(int, genericptr_t, unsigned int);
static void zerocomp_bputc(int);
staticfn void zerocomp_bufon(int);
staticfn void zerocomp_bufoff(int);
staticfn void zerocomp_bflush(int);
staticfn void zerocomp_bwrite(int, genericptr_t, unsigned int);
staticfn void zerocomp_bputc(int);
#endif
#if defined(HANGUPHANDLING)
@@ -238,7 +238,7 @@ dosave0(void)
return res;
}
static void
staticfn void
save_gamelog(NHFILE *nhfp)
{
struct gamelog_line *tmp = gg.gamelog, *tmp2;
@@ -271,7 +271,7 @@ save_gamelog(NHFILE *nhfp)
gg.gamelog = NULL;
}
static void
staticfn void
savegamestate(NHFILE *nhfp)
{
unsigned long uid;
@@ -462,7 +462,7 @@ savelev(NHFILE *nhfp, xint8 lev)
gu.uz_save.dnum = gu.uz_save.dlevel = 0; /* unset */
}
static void
staticfn void
savelev_core(NHFILE *nhfp, xint8 lev)
{
#ifdef TOS
@@ -574,7 +574,7 @@ savelev_core(NHFILE *nhfp, xint8 lev)
return;
}
static void
staticfn void
savelevl(NHFILE *nhfp, boolean rlecomp)
{
#ifdef RLECOMP
@@ -635,7 +635,7 @@ savelevl(NHFILE *nhfp, boolean rlecomp)
}
/* save Plane of Water's air bubbles and Plane of Air's clouds */
static void
staticfn void
save_bubbles(NHFILE *nhfp, xint8 lev)
{
xint8 bbubbly;
@@ -682,7 +682,7 @@ savecemetery(NHFILE *nhfp, struct cemetery **cemeteryaddr)
*cemeteryaddr = 0;
}
static void
staticfn void
savedamage(NHFILE *nhfp)
{
struct damage *damageptr, *tmp_dam;
@@ -709,7 +709,7 @@ savedamage(NHFILE *nhfp)
gl.level.damagelist = 0;
}
static void
staticfn void
save_stairs(NHFILE *nhfp)
{
stairway *stway = gs.stairs;
@@ -744,7 +744,7 @@ save_stairs(NHFILE *nhfp)
/* if ball and/or chain are loose, make an object chain for it/them and
save that separately from other objects */
static void
staticfn void
save_bc(NHFILE *nhfp)
{
struct obj *bc_objs = 0;
@@ -774,7 +774,7 @@ save_bc(NHFILE *nhfp)
/* save one object;
caveat: this is only for perform_bwrite(); caller handles release_data() */
static void
staticfn void
saveobj(NHFILE *nhfp, struct obj *otmp)
{
int buflen, zerobuf = 0;
@@ -818,7 +818,7 @@ saveobj(NHFILE *nhfp, struct obj *otmp)
/* save an object chain; sets head of list to Null when done;
handles release_data() for each object in the list */
static void
staticfn void
saveobjchn(NHFILE *nhfp, struct obj **obj_p)
{
struct obj *otmp = *obj_p;
@@ -881,7 +881,7 @@ saveobjchn(NHFILE *nhfp, struct obj **obj_p)
}
}
static void
staticfn void
savemon(NHFILE *nhfp, struct monst *mtmp)
{
int buflen;
@@ -944,7 +944,7 @@ savemon(NHFILE *nhfp, struct monst *mtmp)
}
}
static void
staticfn void
savemonchn(NHFILE *nhfp, struct monst *mtmp)
{
struct monst *mtmp2;
@@ -981,7 +981,7 @@ savemonchn(NHFILE *nhfp, struct monst *mtmp)
}
/* save traps; gf.ftrap is the only trap chain so the 2nd arg is superfluous */
static void
staticfn void
savetrapchn(NHFILE *nhfp, struct trap *trap)
{
static struct trap zerotrap;
@@ -1039,7 +1039,7 @@ savefruitchn(NHFILE *nhfp)
gf.ffruit = 0;
}
static void
staticfn void
savelevchn(NHFILE *nhfp)
{
s_level *tmplev, *tmplev2;
@@ -1079,7 +1079,7 @@ store_plname_in_file(NHFILE *nhfp)
return;
}
static void
staticfn void
save_msghistory(NHFILE *nhfp)
{
char *msg;