diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-04-05 21:31:50 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-04-05 22:12:35 +0200 |
commit | 8ae89f4b34d951056d402f5825b9738b50ae6626 (patch) | |
tree | 7f7b014e4f2ee016a58ec93d24c12e166172419c /crawl-ref/source/l_item.cc | |
parent | 457f92c1a75fcf433c6c8598d9a56a6183712b79 (diff) | |
download | crawl-ref-8ae89f4b34d951056d402f5825b9738b50ae6626.tar.gz crawl-ref-8ae89f4b34d951056d402f5825b9738b50ae6626.zip |
Make another bunch of functions static or gone.
Diffstat (limited to 'crawl-ref/source/l_item.cc')
-rw-r--r-- | crawl-ref/source/l_item.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/l_item.cc b/crawl-ref/source/l_item.cc index d741612a4b..ac04faef85 100644 --- a/crawl-ref/source/l_item.cc +++ b/crawl-ref/source/l_item.cc @@ -64,7 +64,7 @@ void lua_push_floor_items(lua_State *ls, int link) } } -void lua_push_inv_items(lua_State *ls = NULL) +static void _lua_push_inv_items(lua_State *ls = NULL) { if (!ls) ls = clua.state(); @@ -697,7 +697,7 @@ static int l_item_do_inc_quantity (lua_State *ls) IDEFN(inc_quantity, do_inc_quantity) -iflags_t str_to_item_status_flags (std::string flag) +static iflags_t _str_to_item_status_flags (std::string flag) { iflags_t flags = 0; if (flag.find("curse") != std::string::npos) @@ -736,7 +736,7 @@ static int l_item_do_identified (lua_State *ls) else { const bool check_type = strip_tag(flags, "type"); - iflags_t item_flags = str_to_item_status_flags(flags); + iflags_t item_flags = _str_to_item_status_flags(flags); known_status = ((item_flags || check_type) && (!item_flags || item_ident(*item, item_flags)) && (!check_type || item_type_known(*item))); @@ -807,7 +807,7 @@ IDEF(is_cursed) // Library functions below static int l_item_inventory(lua_State *ls) { - lua_push_inv_items(ls); + _lua_push_inv_items(ls); return (1); } |