[geany/geany] 9b188a: Use g_error() instead of g_warning() in parser type verification
Jiří Techet
git-noreply at xxxxx
Fri Jun 10 21:57:32 UTC 2016
Branch: refs/heads/master
Author: Jiří Techet <techet at gmail.com>
Committer: Jiří Techet <techet at gmail.com>
Date: Fri, 06 May 2016 15:06:57 UTC
Commit: 9b188a20ef77410891231ff36fa950286be1cb8d
https://github.com/geany/geany/commit/9b188a20ef77410891231ff36fa950286be1cb8d
Log Message:
-----------
Use g_error() instead of g_warning() in parser type verification
Modified Paths:
--------------
tagmanager/src/tm_parser.c
Modified: tagmanager/src/tm_parser.c
21 lines changed, 6 insertions(+), 15 deletions(-)
===================================================================
@@ -592,10 +592,7 @@ void tm_parser_verify_type_mappings(void)
TMParserType lang;
if (TM_PARSER_COUNT > tm_ctags_get_lang_count())
- {
- g_warning("More parsers defined in Geany than in ctags");
- return;
- }
+ g_error("More parsers defined in Geany than in ctags");
for (lang = 0; lang < TM_PARSER_COUNT; lang++)
{
@@ -605,23 +602,17 @@ void tm_parser_verify_type_mappings(void)
guint i;
if (! map->entries || map->size < 1)
- {
- g_warning("No tag types in TM for %s, is the language listed in parser_map?",
+ g_error("No tag types in TM for %s, is the language listed in parser_map?",
tm_ctags_get_lang_name(lang));
- continue;
- }
/* TODO: check also regex parser mappings. At the moment there's no way
* to access regex parser definitions in ctags */
if (tm_ctags_is_using_regex_parser(lang))
continue;
if (map->size != strlen(kinds))
- {
- g_warning("Different number of tag types in TM (%d) and ctags (%d) for %s",
+ g_error("Different number of tag types in TM (%d) and ctags (%d) for %s",
map->size, (int)strlen(kinds), tm_ctags_get_lang_name(lang));
- continue;
- }
memset(presence_map, 0, sizeof(presence_map));
for (i = 0; i < map->size; i++)
@@ -642,10 +633,10 @@ void tm_parser_verify_type_mappings(void)
break;
}
if (!ctags_found)
- g_warning("Tag type '%c' found in TM but not in ctags for %s",
+ g_error("Tag type '%c' found in TM but not in ctags for %s",
map->entries[i].kind, tm_ctags_get_lang_name(lang));
if (!tm_found)
- g_warning("Tag type '%c' found in ctags but not in TM for %s",
+ g_error("Tag type '%c' found in ctags but not in TM for %s",
kinds[i], tm_ctags_get_lang_name(lang));
presence_map[(unsigned char) map->entries[i].kind]++;
@@ -654,7 +645,7 @@ void tm_parser_verify_type_mappings(void)
for (i = 0; i < sizeof(presence_map); i++)
{
if (presence_map[i] > 1)
- g_warning("Duplicate tag type '%c' found for %s",
+ g_error("Duplicate tag type '%c' found for %s",
(gchar)i, tm_ctags_get_lang_name(lang));
}
}
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list