summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2015-02-23 09:11:59 +0100
committerBardur Arantsson <bardur@scientician.net>2015-02-23 09:11:59 +0100
commitfbef93c2d3a01a80f6fb702faf1f43360caf9f5b (patch)
tree4bfd966d69b1e675469465e40350f42b676a09eb /src
parentc99c89cdde0b37fab35f6abe2ccf9169c6133cef (diff)
Move notes.cc functions to separate header
Diffstat (limited to 'src')
-rw-r--r--src/birth.cc1
-rw-r--r--src/cmd4.cc1
-rw-r--r--src/dungeon.cc1
-rw-r--r--src/externs.h7
-rw-r--r--src/files.cc1
-rw-r--r--src/notes.cc5
-rw-r--r--src/notes.hpp6
-rw-r--r--src/spells2.cc1
-rw-r--r--src/xtra2.cc1
9 files changed, 13 insertions, 11 deletions
diff --git a/src/birth.cc b/src/birth.cc
index a9649eb5..efe0b311 100644
--- a/src/birth.cc
+++ b/src/birth.cc
@@ -17,6 +17,7 @@
#include "modules.hpp"
#include "hooks.h"
#include "mimic.hpp"
+#include "notes.hpp"
#include "q_rand.h"
#include "skills.hpp"
#include "spells3.hpp"
diff --git a/src/cmd4.cc b/src/cmd4.cc
index f51c17b2..ac4c6e11 100644
--- a/src/cmd4.cc
+++ b/src/cmd4.cc
@@ -10,6 +10,7 @@
#include "corrupt.hpp"
#include "hooks.h"
#include "messages.h"
+#include "notes.hpp"
#include "skills.hpp"
#include "squeltch.hpp"
diff --git a/src/dungeon.cc b/src/dungeon.cc
index 81ac68be..4266958f 100644
--- a/src/dungeon.cc
+++ b/src/dungeon.cc
@@ -15,6 +15,7 @@
#include "gods.hpp"
#include "hooks.h"
#include "modules.hpp"
+#include "notes.hpp"
#include "quest.h"
#include "quark.h"
#include "skills.hpp"
diff --git a/src/externs.h b/src/externs.h
index a3b8f93b..0e060129 100644
--- a/src/externs.h
+++ b/src/externs.h
@@ -1530,13 +1530,6 @@ extern void do_cmd_wiz_named_friendly(int r_idx, bool_ slp);
extern void do_cmd_debug();
extern tval_desc2 tvals[];
-/* notes.c */
-extern void show_notes_file(void);
-extern void output_note(char *final_note);
-extern void add_note(char *note, char code);
-extern void add_note_type(int note_number);
-
-
/*
* Hack -- conditional (or "bizarre") externs
*/
diff --git a/src/files.cc b/src/files.cc
index 9deac4e6..be002830 100644
--- a/src/files.cc
+++ b/src/files.cc
@@ -11,6 +11,7 @@
#include "hiscore.h"
#include "hooks.h"
#include "mimic.hpp"
+#include "notes.hpp"
#include "skills.hpp"
#include <memory>
diff --git a/src/notes.cc b/src/notes.cc
index 7eb825dc..c223808d 100644
--- a/src/notes.cc
+++ b/src/notes.cc
@@ -1,7 +1,3 @@
-/* File: notes.c */
-
-/* Purpose: Note taking to a file */
-
/*
* Copyright (c) 1989, 1999 James E. Wilson, Robert A. Koeneke,
* Robert Ruehlmann
@@ -11,6 +7,7 @@
* included in all such copies.
*/
+#include "notes.hpp"
#include "angband.h"
/*
diff --git a/src/notes.hpp b/src/notes.hpp
new file mode 100644
index 00000000..e8c22bb7
--- /dev/null
+++ b/src/notes.hpp
@@ -0,0 +1,6 @@
+#pragma once
+
+extern void show_notes_file(void);
+extern void output_note(char *final_note);
+extern void add_note(char *note, char code);
+extern void add_note_type(int note_number);
diff --git a/src/spells2.cc b/src/spells2.cc
index 20a095ac..241e3c1a 100644
--- a/src/spells2.cc
+++ b/src/spells2.cc
@@ -8,6 +8,7 @@
#include "angband.h"
#include "hooks.h"
+#include "notes.hpp"
#include "skills.hpp"
#include "spells3.hpp"
diff --git a/src/xtra2.cc b/src/xtra2.cc
index 2bdbc507..ea6e7c81 100644
--- a/src/xtra2.cc
+++ b/src/xtra2.cc
@@ -16,6 +16,7 @@
#include "gods.hpp"
#include "hooks.h"
#include "mimic.hpp"
+#include "notes.hpp"
#include "quark.h"
#include "skills.hpp"