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

@@ -8,19 +8,19 @@
#define HEIGHT (ROWNO - 1)
#define WIDTH (COLNO - 2)
static void init_map(schar);
static void init_fill(schar, schar);
static schar get_map(int, int, schar);
static void pass_one(schar, schar);
static void pass_two(schar, schar);
static void pass_three(schar, schar);
static void join_map_cleanup(void);
static void join_map(schar, schar);
static void finish_map(schar, schar, boolean, boolean, boolean);
static void remove_room(unsigned);
staticfn void init_map(schar);
staticfn void init_fill(schar, schar);
staticfn schar get_map(int, int, schar);
staticfn void pass_one(schar, schar);
staticfn void pass_two(schar, schar);
staticfn void pass_three(schar, schar);
staticfn void join_map_cleanup(void);
staticfn void join_map(schar, schar);
staticfn void finish_map(schar, schar, boolean, boolean, boolean);
staticfn void remove_room(unsigned);
void mkmap(lev_init *);
static void
staticfn void
init_map(schar bg_typ)
{
int i, j;
@@ -33,7 +33,7 @@ init_map(schar bg_typ)
}
}
static void
staticfn void
init_fill(schar bg_typ, schar fg_typ)
{
int i, j;
@@ -51,7 +51,7 @@ init_fill(schar bg_typ, schar fg_typ)
}
}
static schar
staticfn schar
get_map(int col, int row, schar bg_typ)
{
if (col <= 0 || row < 0 || col > WIDTH || row >= HEIGHT)
@@ -59,12 +59,12 @@ get_map(int col, int row, schar bg_typ)
return levl[col][row].typ;
}
static const int dirs[16] = {
staticfn const int dirs[16] = {
-1, -1 /**/, -1, 0 /**/, -1, 1 /**/, 0, -1 /**/,
0, 1 /**/, 1, -1 /**/, 1, 0 /**/, 1, 1
};
static void
staticfn void
pass_one(schar bg_typ, schar fg_typ)
{
int i, j;
@@ -97,7 +97,7 @@ pass_one(schar bg_typ, schar fg_typ)
#define new_loc(i, j) *(gn.new_locations + ((j) * (WIDTH + 1)) + (i))
static void
staticfn void
pass_two(schar bg_typ, schar fg_typ)
{
int i, j;
@@ -120,7 +120,7 @@ pass_two(schar bg_typ, schar fg_typ)
levl[i][j].typ = new_loc(i, j);
}
static void
staticfn void
pass_three(schar bg_typ, schar fg_typ)
{
int i, j;
@@ -243,7 +243,7 @@ flood_fill_rm(
}
/* join_map uses temporary rooms; clean up after it */
static void
staticfn void
join_map_cleanup(void)
{
coordxy x, y;
@@ -255,7 +255,7 @@ join_map_cleanup(void)
gr.rooms[gn.nroom].hx = gs.subrooms[gn.nsubroom].hx = -1;
}
static void
staticfn void
join_map(schar bg_typ, schar fg_typ)
{
struct mkroom *croom, *croom2;
@@ -329,7 +329,7 @@ join_map(schar bg_typ, schar fg_typ)
join_map_cleanup();
}
static void
staticfn void
finish_map(
schar fg_typ,
schar bg_typ,
@@ -408,7 +408,7 @@ remove_rooms(int lx, int ly, int hx, int hy)
* level structure contents corresponding to roomno have already been reset.
* Currently handles only the removal of rooms that have no subrooms.
*/
static void
staticfn void
remove_room(unsigned int roomno)
{
struct mkroom *croom = &gr.rooms[roomno];