Unified · Split
| @@ -8992,7 +8992,7 @@ static void decl(int l) · 8991 unmodified lines | ||
| 8992 | 8992 | #if 0 |
| 8993 | 8993 | { |
| 8994 | 8994 | char buf[500]; |
| 8995 | − type_to_str(buf, sizeof(buf), t, get_tok_str(v, NULL)); | |
| 8995 | + type_to_str(buf, sizeof(buf), &type, get_tok_str(v, NULL)); | |
| 8996 | 8996 | printf("type = '%s'\n", buf); |
| 8997 | 8997 | } |
| 8998 | 8998 | #endif |
| @@ -9007,7 +9007,7 @@ static void decl(int l) · 8 unmodified lines | ||
| 9007 | 9007 | if (tok == '{') { |
| 9008 | 9008 | if (l == VT_LOCAL) |
| 9009 | 9009 | error("cannot use local functions"); |
| 9010 | − if (!(type.t & VT_FUNC)) | |
| 9010 | + if ((type.t & VT_BTYPE) != VT_FUNC) | |
| 9011 | 9011 | expect("function definition"); |
| 9012 | 9012 | |
| 9013 | 9013 | /* reject abstract declarators in function definition */ |