History

Set TYPE_PARAM parsing mode in old-style param lists

Aleksi Hannula committed 11 months ago

Commit b4569231 parent f5f544f1 file · +5 −1Browse files

Unified · Split

tccgen.c+5−1
@@ -8742,7 +8742,11 @@ static int decl(int l) · 8741 unmodified lines
87428742 while (1) { /* iterate thru each declaration */
87438743 type = btype;
87448744 ad = adbase;
8745− type_decl(&type, &ad, &v, TYPE_DIRECT);
8745+ if (l == VT_CMP) {
8746+ type_decl(&type, &ad, &v, TYPE_DIRECT | TYPE_PARAM);
8747+ } else {
8748+ type_decl(&type, &ad, &v, TYPE_DIRECT);
8749+ }
87468750 /*ptype("decl", &type, v);*/
87478751
87488752 if ((type.t & VT_BTYPE) == VT_FUNC) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t