summaryrefslogtreecommitdiff
path: root/src/cmd4.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2015-02-23 09:12:00 +0100
committerBardur Arantsson <bardur@scientician.net>2015-02-23 09:12:00 +0100
commit6baf465782e98e1146cad8f5c5e60c7b5792e94f (patch)
treee2943f9a90b78d5422b31df678739e5a9b3c1e2e /src/cmd4.cc
parent3a6e755dd2efe4e7d72515d4c0041cc3042d0c5f (diff)
Move cmd4.cc function declarations to separate header file
Remove a little dead code while we're at it.
Diffstat (limited to 'src/cmd4.cc')
-rw-r--r--src/cmd4.cc25
1 files changed, 2 insertions, 23 deletions
diff --git a/src/cmd4.cc b/src/cmd4.cc
index 7afc3a3c..30d2557b 100644
--- a/src/cmd4.cc
+++ b/src/cmd4.cc
@@ -5,6 +5,7 @@
* not for profit purposes provided that this copyright and statement are
* included in all such copies.
*/
+#include "cmd4.hpp"
#include "angband.h"
#include "corrupt.hpp"
@@ -735,28 +736,6 @@ static void do_cmd_options_autosave(cptr info)
}
}
-/* Switch an option by only knowing its name */
-bool_ change_option(cptr name, bool_ value)
-{
- int i;
-
- /* Scan the options */
- for (i = 0; option_info[i].o_desc; i++)
- {
- if (!strcmp(option_info[i].o_text, name))
- {
- bool_ old = (*option_info[i].o_var);
-
- (*option_info[i].o_var) = value;
-
- return old;
- }
- }
-
- cmsg_format(TERM_VIOLET, "Warning, change_option couldn't find option '%s'.", name);
- return FALSE;
-}
-
/*
* Interact with some options
*/
@@ -3474,7 +3453,7 @@ static void do_cmd_knowledge_uniques(void)
}
-void plural_aux(char *name)
+static void plural_aux(char *name)
{
int name_len = strlen(name);