Unified · Split
| @@ -8718,10 +8718,6 @@ static int decl(int l) · 8717 unmodified lines | ||
| 8718 | 8718 | return 1; |
| 8719 | 8719 | next(); |
| 8720 | 8720 | continue; |
| 8721 | − } else if (l != VT_JMP && l != VT_CMP) { | |
| 8722 | − /* no semicolon - let caller handle it */ | |
| 8723 | − } else { | |
| 8724 | − expect(";"); | |
| 8725 | 8721 | } |
| 8726 | 8722 | |
| 8727 | 8723 | while (1) { /* iterate thru each declaration */ |
| @@ -8908,7 +8904,10 @@ static int decl(int l) · 180 unmodified lines | ||
| 8908 | 8904 | if (tok != ',') { |
| 8909 | 8905 | if (l == VT_JMP) |
| 8910 | 8906 | return has_init ? v : 1; |
| 8911 | − if (tok == ';') next(); | |
| 8907 | + if (l == VT_CMP) | |
| 8908 | + skip(';'); | |
| 8909 | + else if (tok == ';') | |
| 8910 | + next(); | |
| 8912 | 8911 | break; |
| 8913 | 8912 | } |
| 8914 | 8913 | next(); |