volatile is legal (and used now!) in a typedef struct {}.

This commit is contained in:
Vincent Béron 2005-11-04 11:39:58 +00:00 committed by Alexandre Julliard
parent 297ef3af20
commit 78039be7dd
1 changed files with 2 additions and 1 deletions

View File

@ -359,8 +359,9 @@ sub parse_c_file($$) {
$statements = undef; $statements = undef;
} elsif($in_type) { } elsif($in_type) {
if(/^\s*((?:(?:FAR\s*)?\*\s*(?:RESTRICTED_POINTER\s+)?)? if(/^\s*((?:(?:FAR\s*)?\*\s*(?:RESTRICTED_POINTER\s+)?)?
(?:volatile\s+)?
(?:\w+|WS\(\w+\))\s* (?:\w+|WS\(\w+\))\s*
(?:\s*,\s*(?:(?:FAR\s*)?\*+\s*(?:RESTRICTED_POINTER\s+)?)?(?:\w+|WS\(\w+\)))*\s*);/sx) { (?:\s*,\s*(?:(?:FAR\s*)?\*+\s*(?:RESTRICTED_POINTER\s+)?)?(?:volatile\s+)?(?:\w+|WS\(\w+\)))*\s*);/sx) {
my @parts = split(/\s*,\s*/, $1); my @parts = split(/\s*,\s*/, $1);
&$type_end([@parts]); &$type_end([@parts]);
} elsif(/;/s) { } elsif(/;/s) {