[config parser] copy fixes from angel config parser

personal/stbuehler/wip
Stefan Bühler 9 years ago
parent 63f4b78353
commit 5f4019359e

@ -1258,7 +1258,7 @@ static gboolean p_value_list(gint *key_value_nesting, liValue **result, gboolean
if (!key_value_list && TK_ASSOCICATE == token) {
key_value_list = TRUE;
if (li_value_list_len(list) > 0) {
return parse_error(ctx, error, "unexpected '=>'");
parse_error(ctx, error, "unexpected '=>'");
goto error;
}
}
@ -1372,6 +1372,7 @@ static gboolean p_value(gint *key_value_nesting, liValue **value, liConfigToken
li_value_free(v);
v = li_value_new_number(i);
}
break;
default:
parse_error(ctx, error, "cast(int) from %s not supported yet", li_value_type_string(v));
li_value_free(v);

Loading…
Cancel
Save