diff options
| author | grischka <grischka> | 2009-04-03 20:52:01 +0200 |
|---|---|---|
| committer | grischka <grischka> | 2009-04-18 15:07:27 +0200 |
| commit | 5818945ef69b4182c178704aa2c02446e739532e (patch) | |
| tree | 543f0b2dfe6c983f60d6be2ff3e85a4a87907191 | |
| parent | 0e015988cc5d8392b8ec2fb22e54700b225f84e3 (diff) | |
| download | tinycc-5818945ef69b4182c178704aa2c02446e739532e.tar.gz tinycc-5818945ef69b4182c178704aa2c02446e739532e.tar.bz2 | |
accept "restrict" in array-decl (STDC 199901)
| -rw-r--r-- | tcc.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -7323,6 +7323,8 @@ static void post_type(CType *type, AttributeDef *ad) } else if (tok == '[') { /* array definition */ next(); + if (tok == TOK_RESTRICT1) + next(); n = -1; if (tok != ']') { n = expr_const(); |
