On Wed, 12 Apr 2017 09:41:51 -0500
Paul Clarke <pc@xxxxxxxxxx> wrote:
static struct symbol *symbols__find_by_name(struct rb_root *symbols,
- const char *name)
+ const char *name,
+ unsigned int includes)
Here, you might miss replacing this 'unsigned int' with enum.
(actually, enum is equal to int, not unsigned int)
+enum symbols_tag_includes {
+ SYMBOLS_TAG__INCLUDE_NONE,
+ SYMBOLS_TAG__INCLUDE_DEFAULT_ONLY
+};
BTW, would we need such 's' for plural and third person singular for type name?
And also, you should use enum type name for prefix so that other developers
easily find the definition of enumeration, e.g.
enum symbol_tag_include {
SYMBOL_TAG_INCLUDE__NONE = 0,
SYMBOL_TAG_INCLUDE__DEFAULT_ONLY
};