Commit 5fec8676 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

winapi_check: Fix support for .ocx API documentation.

The module name must include non-default extensions, for instance 'wshom.ocx'. Truncating the module name prevents later lookups from finding the API's spec file declaration. Signed-off-by: 's avatarFrancois Gouget <fgouget@free.fr> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 08cdea91
...@@ -77,11 +77,10 @@ sub check_documentation($) { ...@@ -77,11 +77,10 @@ sub check_documentation($) {
my $found_name = 0; my $found_name = 0;
my $found_ordinal = 0; my $found_ordinal = 0;
$module =~ s/\.(acm|dll|drv|exe|ocx)$//; # FIXME: Kludge
$module = "kernel" if $module eq "krnl386"; # FIXME: Kludge $module = "kernel" if $module eq "krnl386"; # FIXME: Kludge
foreach (split(/\n/, $documentation)) { foreach (split(/\n/, $documentation)) {
if(/^(\s*)\*(\s*)(\@|\S+)(\s*)([\(\[])(\w+)\.(\@|\d+)([\)\]])/) { if(/^(\s*)\*(\s*)(\@|\S+)(\s*)([\(\[])(\w+(?:\.\w+)?)\.(\@|\d+)([\)\]])/) {
my $external_name2 = $3; my $external_name2 = $3;
my $module2 = $6; my $module2 = $6;
my $ordinal2 = $7; my $ordinal2 = $7;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment