From 78039be7ddeb65d214dea0012b9b73d0aa795ad0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vincent=20B=C3=A9ron?= Date: Fri, 4 Nov 2005 11:39:58 +0000 Subject: [PATCH] volatile is legal (and used now!) in a typedef struct {}. --- tools/winapi/winapi_parser.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/winapi/winapi_parser.pm b/tools/winapi/winapi_parser.pm index ee2443ce7dd..368853c9fe0 100644 --- a/tools/winapi/winapi_parser.pm +++ b/tools/winapi/winapi_parser.pm @@ -359,8 +359,9 @@ sub parse_c_file($$) { $statements = undef; } elsif($in_type) { if(/^\s*((?:(?:FAR\s*)?\*\s*(?:RESTRICTED_POINTER\s+)?)? + (?:volatile\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); &$type_end([@parts]); } elsif(/;/s) {