Lines Matching refs:tag_b
261 static gint compare_symbol(const TMTag *tag_a, const TMTag *tag_b) in compare_symbol() argument
265 if (tag_a == NULL || tag_b == NULL) in compare_symbol()
269 return -(tag_a->name != tag_b->name); in compare_symbol()
271 if (tag_b->name == NULL) in compare_symbol()
272 return tag_a->name != tag_b->name; in compare_symbol()
274 ret = strcmp(tag_a->name, tag_b->name); in compare_symbol()
277 return tag_a->line - tag_b->line; in compare_symbol()
287 const TMTag *tag_b = TM_TAG(b); in compare_symbol_lines() local
293 ret = tag_a->line - tag_b->line; in compare_symbol_lines()
297 return -(tag_a->scope != tag_b->scope); in compare_symbol_lines()
298 if (tag_b->scope == NULL) in compare_symbol_lines()
299 return tag_a->scope != tag_b->scope; in compare_symbol_lines()
301 return strcmp(tag_a->scope, tag_b->scope); in compare_symbol_lines()
1533 TMTag *tag_a, *tag_b; in tree_sort_func() local
1537 gtk_tree_model_get(model, b, SYMBOLS_COLUMN_TAG, &tag_b, -1); in tree_sort_func()
1542 tag_b && !tag_has_missing_parent(tag_b, GTK_TREE_STORE(model), b)) in tree_sort_func()
1544 cmp = sort_by_name ? compare_symbol(tag_a, tag_b) : in tree_sort_func()
1545 compare_symbol_lines(tag_a, tag_b); in tree_sort_func()
1571 if (tag_a && tag_b) in tree_sort_func()
1573 (utils_str_equal(tag_a->name, tag_b->name) && in tree_sort_func()
1574 utils_str_equal(tag_a->scope, tag_b->scope))) in tree_sort_func()
1575 cmp = compare_symbol_lines(tag_a, tag_b); in tree_sort_func()
1582 tm_tag_unref(tag_b); in tree_sort_func()