summaryrefslogtreecommitdiff
path: root/src/item.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/item.cc')
-rw-r--r--src/item.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/item.cc b/src/item.cc
index 37e19a82..acef2e44 100644
--- a/src/item.cc
+++ b/src/item.cc
@@ -304,8 +304,12 @@ value_t get_comment(item_t& item)
}
}
-expr_t::ptr_op_t item_t::lookup(const string& name)
+expr_t::ptr_op_t item_t::lookup(const symbol_t::kind_t kind,
+ const string& name)
{
+ if (kind != symbol_t::FUNCTION)
+ return NULL;
+
switch (name[0]) {
case 'a':
if (name == "actual")