diff options
author | Bardur Arantsson <bardur@scientician.net> | 2019-02-15 19:20:25 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2019-02-15 19:20:25 +0100 |
commit | 75dd21671c12fa5419333326404c0b7054afe8be (patch) | |
tree | 2da481e46c8a7f355430ca2e16cfeb639cc4c5b4 | |
parent | d4112fae1ea4496221892e2edd84ed99c3176463 (diff) |
Move capitalize() declaration to z-util.hpp
-rw-r--r-- | src/melee2.cc | 1 | ||||
-rw-r--r-- | src/monster2.cc | 1 | ||||
-rw-r--r-- | src/z-form.cc | 1 | ||||
-rw-r--r-- | src/z-util.cc | 2 | ||||
-rw-r--r-- | src/z-util.h | 3 | ||||
-rw-r--r-- | src/z-util.hpp | 9 |
6 files changed, 13 insertions, 4 deletions
diff --git a/src/melee2.cc b/src/melee2.cc index 4c2f7245..edae671a 100644 --- a/src/melee2.cc +++ b/src/melee2.cc @@ -48,6 +48,7 @@ #include "variable.hpp" #include "xtra2.hpp" #include "z-rand.hpp" +#include "z-util.hpp" #include <boost/algorithm/string/predicate.hpp> #include <cassert> diff --git a/src/monster2.cc b/src/monster2.cc index 37c8155d..4da41b29 100644 --- a/src/monster2.cc +++ b/src/monster2.cc @@ -45,6 +45,7 @@ #include "xtra1.hpp" #include "xtra2.hpp" #include "z-rand.hpp" +#include "z-util.hpp" #include <algorithm> #include <string> diff --git a/src/z-form.cc b/src/z-form.cc index 6c44586d..faaa2917 100644 --- a/src/z-form.cc +++ b/src/z-form.cc @@ -5,6 +5,7 @@ #include "z-form.h" #include "z-util.h" +#include "z-util.hpp" #include <stdlib.h> diff --git a/src/z-util.cc b/src/z-util.cc index 7b17b055..6ec1373f 100644 --- a/src/z-util.cc +++ b/src/z-util.cc @@ -1,4 +1,4 @@ -#include "z-util.h" +#include "z-util.hpp" #include <boost/algorithm/string/predicate.hpp> #include <cassert> diff --git a/src/z-util.h b/src/z-util.h index bd9737bf..28ed099c 100644 --- a/src/z-util.h +++ b/src/z-util.h @@ -10,9 +10,6 @@ extern "C" { extern void (*plog_aux)(const char *); extern void (*quit_aux)(const char *); -/* Capitalize the first letter of string. Ignores whitespace at the start of string. */ -void capitalize(char *s); - /* Print an error message */ void plog(const char *str); diff --git a/src/z-util.hpp b/src/z-util.hpp new file mode 100644 index 00000000..4a58afe8 --- /dev/null +++ b/src/z-util.hpp @@ -0,0 +1,9 @@ +#pragma once + +#include "z-util.h" + +/** + * Capitalize the first letter of string. Ignores whitespace + * at the start of string. + */ +void capitalize(char *s); |