mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-07 08:21:59 +00:00
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:
parent
1452da676d
commit
7fb8c8247e
1 changed files with 6 additions and 1 deletions
|
@ -178,7 +178,12 @@ parse_params (type_t *type, param_t *parms)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//print_type (&new); puts("");
|
//print_type (&new); puts("");
|
||||||
return find_type (&new);
|
//return find_type (&new);
|
||||||
|
{
|
||||||
|
type_t *n = new_type ();
|
||||||
|
*n = new;
|
||||||
|
return n;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
param_t *
|
param_t *
|
||||||
|
|
Loading…
Reference in a new issue