Kaydet (Commit) 56d9dc45 authored tarafından Colomban Wendling's avatar Colomban Wendling

Fix some debugging functions in C tag parser


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5565 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst d4143553
...@@ -691,7 +691,7 @@ static const char *tokenString (const tokenType type) ...@@ -691,7 +691,7 @@ static const char *tokenString (const tokenType type)
{ {
static const char *const names [] = { static const char *const names [] = {
"none", "args", "}", "{", "comma", "double colon", "keyword", "name", "none", "args", "}", "{", "comma", "double colon", "keyword", "name",
"package", "paren-name", "semicolon", "specifier", "*", "[]", "count" "package", "paren-name", "semicolon", "specifier", "*", "[]"
}; };
Assert (sizeof (names) / sizeof (names [0]) == TOKEN_COUNT); Assert (sizeof (names) / sizeof (names [0]) == TOKEN_COUNT);
Assert ((int) type < TOKEN_COUNT); Assert ((int) type < TOKEN_COUNT);
...@@ -711,8 +711,9 @@ static const char *scopeString (const tagScope scope) ...@@ -711,8 +711,9 @@ static const char *scopeString (const tagScope scope)
static const char *declString (const declType declaration) static const char *declString (const declType declaration)
{ {
static const char *const names [] = { static const char *const names [] = {
"?", "base", "class", "enum", "function", "ignore", "interface", "?", "base", "class", "enum", "event", "signal", "function",
"namespace", "no mangle", "package", "struct", "union", "function template", "ignore", "interface", "module", "namespace",
"no mangle", "package", "struct", "union",
}; };
Assert (sizeof (names) / sizeof (names [0]) == DECL_COUNT); Assert (sizeof (names) / sizeof (names [0]) == DECL_COUNT);
Assert ((int) declaration < DECL_COUNT); Assert ((int) declaration < DECL_COUNT);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment