Commit 227536ab authored by Sergio Costas's avatar Sergio Costas

Added support for CONST and RESTRICT in pointers

An still unsupported syntax was 'varname * const *' and
'varname * restrict'. This patch adds support for them.
parent 3d3712c0
......@@ -724,7 +724,7 @@ parameter_declaration
$$->name = mystrdup($2->name);
free_tree($2); }
| declaration_specifiers abstract_declarator { $$ = $1; show_debug(__LINE__, $$, "parameter_declaration");
if ($2->type == '*') {
if (($2->type == '*') || ($2->type == CONST) || ($2->type == RESTRICT)) {
mix_ast_leaves($$,$2);
free_tree($2);
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment