diff options
| author | Ramsay Jones <ramsay@ramsay1.demon.co.uk> | 2014-09-27 13:52:35 +0100 |
|---|---|---|
| committer | Christopher Li <sparse@chrisli.org> | 2014-10-10 22:43:37 +0800 |
| commit | b6c1d2fe571a8c0b023d17f0557774c8af93fe85 (patch) | |
| tree | 7c0b3bf65227b0108f471ddbefc96788abfc9dc6 /parse.c | |
| parent | c1763a249aba0a40bd326c845c2a146132a02448 (diff) | |
| download | sparse-dev-b6c1d2fe571a8c0b023d17f0557774c8af93fe85.tar.gz | |
Add the __restrict__ keyword
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Christopher Li <sparse@chrisli.org>
Diffstat (limited to 'parse.c')
| -rw-r--r-- | parse.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -435,6 +435,7 @@ static struct init_keyword { /* Ignored for now.. */ { "restrict", NS_TYPEDEF, .op = &restrict_op}, { "__restrict", NS_TYPEDEF, .op = &restrict_op}, + { "__restrict__", NS_TYPEDEF, .op = &restrict_op}, /* Storage class */ { "auto", NS_TYPEDEF, .op = &auto_op }, @@ -1553,7 +1554,7 @@ static struct token *abstract_array_declarator(struct token *token, struct symbo token = abstract_array_static_declarator(token, &has_static); - if (match_idents(token, &restrict_ident, &__restrict_ident, NULL)) + if (match_idents(token, &restrict_ident, &__restrict_ident, &__restrict___ident, NULL)) token = abstract_array_static_declarator(token->next, &has_static); token = parse_expression(token, &expr); sym->array_size = expr; |
