eat(T__declspec);
expect('(', end_error);
+ if (token.kind != ')') {
+ add_anchor_token(')');
- if (next_if(')'))
- return NULL;
-
- add_anchor_token(')');
-
- attribute_t **anchor = &first;
- do {
- while (*anchor != NULL)
- anchor = &(*anchor)->next;
+ attribute_t **anchor = &first;
+ do {
+ while (*anchor != NULL)
+ anchor = &(*anchor)->next;
- attribute_t *attribute
- = parse_microsoft_extended_decl_modifier_single();
- if (attribute == NULL)
- break;
+ attribute_t *attribute
+ = parse_microsoft_extended_decl_modifier_single();
+ if (attribute == NULL)
+ break;
- *anchor = attribute;
- anchor = &attribute->next;
- } while (next_if(','));
+ *anchor = attribute;
+ anchor = &attribute->next;
+ } while (next_if(','));
- rem_anchor_token(')');
+ rem_anchor_token(')');
+ }
expect(')', end_error);
end_error:
return first;