summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/l_item.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-06-23 02:28:46 +0200
committerAdam Borowski <kilobyte@angband.pl>2012-06-23 20:57:56 +0200
commitceaff5dee3286c9a53c3fa39f3e10e4c00a0f03b (patch)
tree0e6d91a26156375d029ab87d0d7f097ea5be23b8 /crawl-ref/source/l_item.cc
parentafb1d1f468006a809ebf73cdedbe5f6dc82ee1ab (diff)
downloadcrawl-ref-ceaff5dee3286c9a53c3fa39f3e10e4c00a0f03b.tar.gz
crawl-ref-ceaff5dee3286c9a53c3fa39f3e10e4c00a0f03b.zip
Make a bunch of functions static or gone.
Diffstat (limited to 'crawl-ref/source/l_item.cc')
-rw-r--r--crawl-ref/source/l_item.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/l_item.cc b/crawl-ref/source/l_item.cc
index aadb635caf..50df3e8f44 100644
--- a/crawl-ref/source/l_item.cc
+++ b/crawl-ref/source/l_item.cc
@@ -53,7 +53,7 @@ void clua_push_item(lua_State *ls, item_def *item)
// Push a (wrapped) temporary item_def. A copy of the item will be allocated,
// then deleted when the wrapper is GCed.
-void clua_push_item_temp(lua_State *ls, const item_def &item)
+static void _clua_push_item_temp(lua_State *ls, const item_def &item)
{
item_wrapper *iw = clua_new_userdata<item_wrapper>(ls, ITEM_METATABLE);
iw->item = new item_def(item);
@@ -1019,7 +1019,7 @@ static int l_item_get_items_at(lua_State *ls)
for (std::vector<item_def>::const_iterator i = items.begin();
i != items.end(); ++i)
{
- clua_push_item_temp(ls, *i);
+ _clua_push_item_temp(ls, *i);
lua_rawseti(ls, -2, ++index);
}