mirror of
git://repo.or.cz/tinycc.git
synced 2026-06-17 23:54:16 +08:00
Set TYPE_PARAM parsing mode in old-style param lists
This commit is contained in:
parent
f5f544f436
commit
b4569233cb
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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user