In tagmanager/src/tm_parser.c:
> +{ > + TMParserMap *map = &parser_map[lang]; > + guint i; > + > + for (i = 0; i < map->size; i++) > + { > + TMParserMapEntry *entry = &map->entries[i]; > + > + if (entry->type == type) > + return entry->kind; > + } > + return '-'; > +} > + > + > +void tm_parser_verify_type_mappings(void)
Nah, I propagated the errors just because it allows to have all the warnings at once, but it's probably not worth it, and using g_error()
or g_assert()
would be just fine and simpler indeed.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub