mirror of
https://github.com/TinyCC/tinycc.git
synced 2026-03-27 05:29:52 +00:00
Set TYPE_PARAM parsing mode in old-style param lists
This commit is contained in:
6
tccgen.c
6
tccgen.c
@@ -8742,7 +8742,11 @@ static int decl(int l)
|
||||
while (1) { /* iterate thru each declaration */
|
||||
type = btype;
|
||||
ad = adbase;
|
||||
type_decl(&type, &ad, &v, TYPE_DIRECT);
|
||||
if (l == VT_CMP) {
|
||||
type_decl(&type, &ad, &v, TYPE_DIRECT | TYPE_PARAM);
|
||||
} else {
|
||||
type_decl(&type, &ad, &v, TYPE_DIRECT);
|
||||
}
|
||||
/*ptype("decl", &type, v);*/
|
||||
|
||||
if ((type.t & VT_BTYPE) == VT_FUNC) {
|
||||
|
||||
Reference in New Issue
Block a user