summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2015-03-07 16:55:41 +0100
committerBardur Arantsson <bardur@scientician.net>2015-03-07 16:55:41 +0100
commitec21839c93c67b5450a0df8891372c762e3d8194 (patch)
tree36cb330cec69fe71b223f712fa614561e09ba51f
parent35949210fde3b7800c6c0e087a7d780467879c95 (diff)
Move wizard1.cc declarations to separate header file
-rw-r--r--src/externs.h3
-rw-r--r--src/wizard1.cc6
-rw-r--r--src/wizard1.hpp3
-rw-r--r--src/wizard2.cc1
4 files changed, 6 insertions, 7 deletions
diff --git a/src/externs.h b/src/externs.h
index 1b2ff5b6..2c289430 100644
--- a/src/externs.h
+++ b/src/externs.h
@@ -479,9 +479,6 @@ extern void curse_equipment_dg(int chance, int heavy_chance);
/* main.c */
extern bool_ private_check_user_directory(cptr dirpath);
-/* wizard1.c */
-extern void do_cmd_spoilers();
-
/*
* Hack -- conditional (or "bizarre") externs
*/
diff --git a/src/wizard1.cc b/src/wizard1.cc
index ab715c8f..1014fab0 100644
--- a/src/wizard1.cc
+++ b/src/wizard1.cc
@@ -1,6 +1,4 @@
-/* File: wizard1.c */
-
-/* Purpose: Spoiler generation -BEN- */
+#include "wizard1.hpp"
#include "angband.h"
#include "cmd7.hpp"
@@ -2324,7 +2322,7 @@ static void spoil_mon_info(cptr fname)
}
-const char *long_intro =
+static const char *long_intro =
"Essences are the tools of the trade for Alchemists, "
"and unfortunately are useless for any other class. "
"Alchemists use essences to create magical items for them to use.\n\n"
diff --git a/src/wizard1.hpp b/src/wizard1.hpp
new file mode 100644
index 00000000..0429aa70
--- /dev/null
+++ b/src/wizard1.hpp
@@ -0,0 +1,3 @@
+#pragma once
+
+void do_cmd_spoilers();
diff --git a/src/wizard2.cc b/src/wizard2.cc
index a1e1e462..27e964cc 100644
--- a/src/wizard2.cc
+++ b/src/wizard2.cc
@@ -24,6 +24,7 @@
#include "traps.hpp"
#include "util.hpp"
#include "util.h"
+#include "wizard1.hpp"
#include "xtra1.hpp"
#include "xtra2.hpp"