eolian: also allow void in @out params

This commit is contained in:
Daniel Kolesa 2014-06-30 23:21:36 +01:00
parent 8d0649ef0b
commit e5e6d8f1f2
1 changed files with 4 additions and 1 deletions

View File

@ -328,7 +328,10 @@ parse_param(Eo_Lexer *ls, Eina_Bool allow_inout)
else
par->way = PARAM_IN;
}
par->type = parse_type(ls);
if (par->way == PARAM_OUT)
par->type = parse_type_void(ls);
else
par->type = parse_type(ls);
ls->tmp.type_def = NULL;
check(ls, TOK_VALUE);
par->name = eina_stringshare_add(ls->t.value);