Don't do a find_type on the parsed function.

This is needed for C style declarations, but breaks QuakeC style. The fix
is to do the find_type once the return type has been filled in.
This commit is contained in:
Bill Currie 2011-02-02 15:08:59 +09:00
parent 1452da676d
commit 7fb8c8247e

View file

@ -178,7 +178,12 @@ parse_params (type_t *type, param_t *parms)
}
}
//print_type (&new); puts("");
return find_type (&new);
//return find_type (&new);
{
type_t *n = new_type ();
*n = new;
return n;
}
}
param_t *