diff options
author | Bardur Arantsson <bardur@scientician.net> | 2015-02-23 09:11:59 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2015-02-23 09:11:59 +0100 |
commit | 5ef53fee463b7f93b8b890ed8e6ff0db778bd596 (patch) | |
tree | 9edeb65b885f9c2108239725009c214b2d227c0f /src/xtra2.cc | |
parent | 63fae54381d0898503c5dc7f4dcfabc125c04807 (diff) |
Move xtra2.cc functions to separate header
Remove some functions and make others static while we're at it.
Diffstat (limited to 'src/xtra2.cc')
-rw-r--r-- | src/xtra2.cc | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/xtra2.cc b/src/xtra2.cc index 41888186..63e2f45f 100644 --- a/src/xtra2.cc +++ b/src/xtra2.cc @@ -1,8 +1,3 @@ -/* File: xtra2.c */ -/* File: xtra2.c */ - -/* Purpose: effects of various "objects", targetting and panel handling */ - /* * Copyright (c) 1989 James E. Wilson, Robert A. Koeneke * @@ -11,6 +6,8 @@ * included in all such copies. */ +#include "xtra2.hpp" + #include "angband.h" #include "corrupt.hpp" #include "gods.hpp" @@ -5356,7 +5353,7 @@ void set_grace(s32b v) handle_stuff(); } -bool_ test_object_wish(char *name, object_type *o_ptr, object_type *forge, const char *what) +static bool_ test_object_wish(char *name, object_type *o_ptr, object_type *forge, const char *what) { int i, j, jb, save_aware; char buf[200]; @@ -5474,7 +5471,7 @@ bool_ test_object_wish(char *name, object_type *o_ptr, object_type *forge, const return FALSE; } -void clean_wish_name(char *buf, char *name) +static void clean_wish_name(char *buf, char *name) { char *p; int i, j; |