Merge tm_workspace_find() and tm_workspace_find_scoped()
commitee3eeeb758ff6519db5d82d4ed01a7e0ea45e9bd
authorJiří Techet <techet@gmail.com>
Sat, 23 May 2015 12:25:16 +0000 (23 14:25 +0200)
committerJiří Techet <techet@gmail.com>
Tue, 14 Jul 2015 07:44:33 +0000 (14 09:44 +0200)
tree406fbf09de57e56cbe0d3c8e22a4301495a490fb
parent5c6b423f70a73906bf3a8216c7206ca4a98cdd7e
Merge tm_workspace_find() and tm_workspace_find_scoped()

They are basically identical except:

1. _scoped() compares scope in addition
2. _scoped() is missing the C/CPP tag compatibility part
3. _scoped() allows returning just single result (unused)
4. _scoped() allows not searching in global tags (unused)

Since we now always put lang also under tag->lang, the match_langs()
function is not necessary.

Extend the add_filtered_tags() (and rename it to fill_find_tags_array()) to
perform the tm_tags_find(), compare the scope and add scope
as parameter of tm_workspace_find() and eliminate tm_workspace_find_scoped()
completely.
src/editor.c
tagmanager/src/tm_workspace.c
tagmanager/src/tm_workspace.h