1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

more enum fixes

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@862 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-11-23 22:59:14 +00:00 committed by cras
parent 1fd6f8faf6
commit 5f2f6886c8

View File

@ -131,7 +131,7 @@ static void config_parse_warn_missing(CONFIG_REC *rec, CONFIG_NODE *node,
static void config_parse_loop(CONFIG_REC *rec, CONFIG_NODE *node, GTokenType expect); static void config_parse_loop(CONFIG_REC *rec, CONFIG_NODE *node, GTokenType expect);
static int config_parse_symbol(CONFIG_REC *rec, CONFIG_NODE *node) static GTokenType config_parse_symbol(CONFIG_REC *rec, CONFIG_NODE *node)
{ {
CONFIG_NODE *newnode; CONFIG_NODE *newnode;
GTokenType last_char; GTokenType last_char;
@ -143,7 +143,7 @@ static int config_parse_symbol(CONFIG_REC *rec, CONFIG_NODE *node)
config_parse_get_token(rec->scanner, node); config_parse_get_token(rec->scanner, node);
last_char = node->type == NODE_TYPE_LIST ? ',' : ';'; last_char = (GTokenType) (node->type == NODE_TYPE_LIST ? ',' : ';');
/* key */ /* key */
key = NULL; key = NULL;
@ -154,7 +154,7 @@ static int config_parse_symbol(CONFIG_REC *rec, CONFIG_NODE *node)
config_parse_get_token(rec->scanner, node); config_parse_get_token(rec->scanner, node);
if (rec->scanner->token != '=') { if (rec->scanner->token != '=') {
g_free(key); g_free(key);
return '='; return (GTokenType) '=';
} }
config_parse_get_token(rec->scanner, node); config_parse_get_token(rec->scanner, node);
@ -188,7 +188,7 @@ static int config_parse_symbol(CONFIG_REC *rec, CONFIG_NODE *node)
config_parse_get_token(rec->scanner, node); config_parse_get_token(rec->scanner, node);
if (rec->scanner->token != '}') if (rec->scanner->token != '}')
return '}'; return (GTokenType) '}';
config_parse_warn_missing(rec, node, last_char, FALSE); config_parse_warn_missing(rec, node, last_char, FALSE);
break; break;
@ -203,7 +203,7 @@ static int config_parse_symbol(CONFIG_REC *rec, CONFIG_NODE *node)
config_parse_get_token(rec->scanner, node); config_parse_get_token(rec->scanner, node);
if (rec->scanner->token != ')') if (rec->scanner->token != ')')
return ')'; return (GTokenType) ')';
config_parse_warn_missing(rec, node, last_char, FALSE); config_parse_warn_missing(rec, node, last_char, FALSE);
break; break;