[PATCH] winapi: Tweak a couple of typedef error messages.

Francois Gouget fgouget at free.fr
Tue Apr 14 09:55:27 CDT 2020


This makes them more unique, making it easier to find which part of the
code issues these error messages.

Signed-off-by: Francois Gouget <fgouget at free.fr>
---
 tools/winapi/winapi_parser.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/winapi/winapi_parser.pm b/tools/winapi/winapi_parser.pm
index f9310b9c7ec..ee4c307dfee 100644
--- a/tools/winapi/winapi_parser.pm
+++ b/tools/winapi/winapi_parser.pm
@@ -642,10 +642,10 @@ sub parse_c_file($$) {
 	    &$type_end([$name]);
 	} elsif(/typedef[^\{;]*;/s) {
 	    $_ = $'; $again = 1;
-	    $output->write("$file: $.: can't parse: '$&'\n");
+	    $output->write("$file: $.: could not parse typedef: '$&'\n");
 	} elsif(/typedef[^\{]*\{[^\}]*\}[^;];/s) {
 	    $_ = $'; $again = 1;
-	    $output->write("$file: $.: can't parse: '$&'\n");
+	    $output->write("$file: $.: could not parse multi-line typedef: '$&'\n");
 	} elsif(/\'[^\']*\'/s) {
 	    $_ = $'; $again = 1;
 	} elsif(/\"(?:[^\\\"]*|\\.)*\"/s) {
-- 
2.20.1




More information about the wine-devel mailing list