summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/externs.h3
-rw-r--r--src/status.cc27
-rw-r--r--src/status.hpp3
-rw-r--r--src/wizard2.cc1
4 files changed, 18 insertions, 16 deletions
diff --git a/src/externs.h b/src/externs.h
index 6a8728f2..3ff7d4f4 100644
--- a/src/externs.h
+++ b/src/externs.h
@@ -1573,9 +1573,6 @@ extern bool_ easy_floor;
/* script.c */
extern void init_lua_init(void);
-/* status.c */
-extern void status_main();
-
/* modules.cc */
extern cptr force_module;
diff --git a/src/status.cc b/src/status.cc
index 460a77ed..c5bbf5be 100644
--- a/src/status.cc
+++ b/src/status.cc
@@ -31,18 +31,19 @@ static void status_bival(s32b, byte, byte);
static void status_numeric(s32b, byte, byte);
static void status_curses(void);
static void status_companion(void);
-void status_sight(void);
-void status_attr(void);
-void status_combat(void);
-void status_move(void);
-void status_item(void);
-void az_line(int, u32b[INVEN_TOTAL - INVEN_WIELD + 2][7]);
+static void status_sight(void);
+static void status_attr(void);
+static void status_combat(void);
+static void status_move(void);
+static void status_item(void);
+static void az_line(int, u32b[INVEN_TOTAL - INVEN_WIELD + 2][7]);
+
#define STATNM_LENGTH 11
#define SL_LENGTH 11
#define INVEN_PLAYER (INVEN_TOTAL - INVEN_WIELD + 1)
-void status_attr(void)
+static void status_attr(void)
{
u32b flag_arr[INVEN_TOTAL - INVEN_WIELD + 2][7];
int yo = 0;
@@ -111,7 +112,7 @@ void status_move(void)
}
}
-void status_sight(void)
+static void status_sight(void)
/* Tell player about ESP, infravision, auto-id, see invis, and similar */
{
u32b flag_arr[INVEN_TOTAL - INVEN_WIELD + 2][7];
@@ -162,7 +163,7 @@ void status_sight(void)
}
}
-void status_item(void)
+static void status_item(void)
{
u32b flag_arr[INVEN_TOTAL - INVEN_WIELD + 2][7];
int yo = 3;
@@ -212,7 +213,7 @@ void status_item(void)
}
}
-void status_combat(void)
+static void status_combat(void)
{
u32b flag_arr[INVEN_TOTAL - INVEN_WIELD + 2][7];
int yo = 3;
@@ -271,7 +272,7 @@ void status_combat(void)
}
}
-void status_curses(void)
+static void status_curses(void)
{
u32b flag_arr[INVEN_TOTAL - INVEN_WIELD + 2][7];
int yo = 3;
@@ -321,7 +322,7 @@ void status_curses(void)
}
}
-void status_res(void)
+static void status_res(void)
{
u32b flag_arr[INVEN_TOTAL - INVEN_WIELD + 2][7];
int yo = 3;
@@ -433,7 +434,7 @@ void status_main()
handle_stuff();
}
-void az_line(int xo, u32b flag_arr[INVEN_TOTAL - INVEN_WIELD + 2][7])
+static void az_line(int xo, u32b flag_arr[INVEN_TOTAL - INVEN_WIELD + 2][7])
{
int index = xo; /* Leave room for description */
int i;
diff --git a/src/status.hpp b/src/status.hpp
new file mode 100644
index 00000000..74624446
--- /dev/null
+++ b/src/status.hpp
@@ -0,0 +1,3 @@
+#pragma once
+
+void status_main();
diff --git a/src/wizard2.cc b/src/wizard2.cc
index cf0edb9b..338a9c86 100644
--- a/src/wizard2.cc
+++ b/src/wizard2.cc
@@ -13,6 +13,7 @@
#include "angband.h"
#include "corrupt.hpp"
#include "hooks.h"
+#include "status.hpp"
/*
* Adds a lvl to a monster