From ec21839c93c67b5450a0df8891372c762e3d8194 Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Sat, 7 Mar 2015 16:55:41 +0100 Subject: Move wizard1.cc declarations to separate header file --- src/externs.h | 3 --- src/wizard1.cc | 6 ++---- src/wizard1.hpp | 3 +++ src/wizard2.cc | 1 + 4 files changed, 6 insertions(+), 7 deletions(-) create mode 100644 src/wizard1.hpp 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" -- cgit v1.2.3