}
| quoted_strings[token] {
$val = psi_impl_def_val_init($token->type, $token->text);
- $val->token = psi_token_copy($token);
+ $val->token = $token;
}
;
if (psi_decl_extvar_is_blacklisted(var->name)) {
psi_decl_var_free(&var);
} else {
- list = psi_plist_add(list, psi_decl_extvar_init(
- psi_decl_arg_init(psi_decl_type_copy($decl_arg->type), var)));
- }
+ struct psi_decl_extvar *evar = psi_decl_extvar_init(
+ psi_decl_arg_init(psi_decl_type_copy($decl_arg->type), var));
+ list = psi_plist_add(list, &evar);
+ }
}
free($vars);
}
;
ignored_decl:
- STATIC decl_body ignored_decl_body {
- $ignored_decl = $decl_body;
-}
-| STATIC CPP_INLINE decl_body ignored_decl_body {
- $ignored_decl = $decl_body;
-}
-| CPP_INLINE decl_body ignored_decl_body {
- $ignored_decl = $decl_body;
-}
-| NAME CPP_INLINE decl_body ignored_decl_body {
+ ignored_decl_qualifiers decl_body ignored_decl_body {
$ignored_decl = $decl_body;
}
;
+ignored_decl_qualifiers:
+ STATIC
+| STATIC CPP_INLINE
+| CPP_EXTENSION CPP_INLINE
+| CPP_EXTENSION STATIC CPP_INLINE
+| CPP_INLINE
+| NAME CPP_INLINE
+;
+
ignored_decl_body:
LBRACE ignored_decl_body_stmts RBRACE
;
type->real.func = rval_decl;
func->var->token = psi_token_copy($NAME);
func->token = psi_token_copy($NAME);
+ type->token = type_token;
$decl = psi_decl_init(func, $args);
}