Francois Gouget : winapi_check: Clarify a pair of error messages.
Module: wine Branch: master Commit: 53914087aa8970e15855e6e7928737c2be8b1a7d URL: http://source.winehq.org/git/wine.git/?a=commit;h=53914087aa8970e15855e6e792... Author: Francois Gouget <fgouget(a)free.fr> Date: Tue Feb 20 15:50:49 2007 +0100 winapi_check: Clarify a pair of error messages. Don't use a regular expression if not necessary. --- tools/winapi/winapi_documentation.pm | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/winapi/winapi_documentation.pm b/tools/winapi/winapi_documentation.pm index 0cbdac1..f41cd49 100644 --- a/tools/winapi/winapi_documentation.pm +++ b/tools/winapi/winapi_documentation.pm @@ -137,7 +137,7 @@ sub check_documentation($) { } elsif ($ordinal eq "init") { $ordinal = 0; } else { - $output->write("documentation: $external_name (\U$module\E.$ordinal) wrong1\n"); + $output->write("documentation: invalid ordinal for $external_name (\U$module\E.$ordinal)\n"); next; } @@ -164,8 +164,8 @@ sub check_documentation($) { } - if (!$found && $external_name ne "DllMain" && $ordinal !~ /^0$/) { - $output->write("documentation: $external_name (\U$module\E.$ordinal) wrong2\n"); + if (!$found && $external_name ne "DllMain" && $ordinal ne "0") { + $output->write("documentation: $external_name (\U$module\E.$ordinal) not declared in the spec file\n"); } } }
participants (1)
-
Alexandre Julliard