eolian: function dump now uses the actual syntax

This commit is contained in:
Daniel Kolesa 2014-07-09 13:49:21 +01:00
parent 60bf9fcaef
commit 8f14930d68
1 changed files with 4 additions and 2 deletions

View File

@ -1420,12 +1420,14 @@ database_type_print(Eolian_Type type)
else if (tp->type == EOLIAN_TYPE_FUNCTION) else if (tp->type == EOLIAN_TYPE_FUNCTION)
{ {
Eina_Bool first = EINA_TRUE; Eina_Bool first = EINA_TRUE;
puts("fn"); puts("func");
if (tp->ret_type) if (tp->ret_type)
{ {
puts(" -> "); putchar(' ');
database_type_print(tp->ret_type); database_type_print(tp->ret_type);
} }
else
puts(" void");
puts(" ("); puts(" (");
EINA_LIST_FOREACH(tp->arguments, l, stp) EINA_LIST_FOREACH(tp->arguments, l, stp)
{ {