- Report broken forwards.

- API files update.
This commit is contained in:
Patrik Stridvall 2002-07-23 01:59:09 +00:00 committed by Alexandre Julliard
parent 8482613aa3
commit 5379c7901c
5 changed files with 29 additions and 7 deletions

View File

@ -287,7 +287,7 @@ INT16
UINT16 UINT16
WORD WORD
%%kernel.dll %%krnl386.exe
%long %long

View File

@ -77,6 +77,8 @@ PSID_NAME_USE
PUCHAR PUCHAR
PVOID PVOID
PVOID * PVOID *
PVALENTA
PVALENTW
SECURITY_ATTRIBUTES * SECURITY_ATTRIBUTES *
SECURITY_DESCRIPTOR * SECURITY_DESCRIPTOR *
@ -1212,6 +1214,7 @@ _JUMP_BUFFER *
__non_rtti_object * __non_rtti_object *
_onexit_t _onexit_t
_onexit_t ** _onexit_t **
_se_translator_function
bad_cast * bad_cast *
bad_typeid * bad_typeid *
char * char *
@ -1496,6 +1499,7 @@ HOLEMENU
HRESULT HRESULT
HWND HWND
INT INT
LONG
UINT UINT
ULONG ULONG
int int
@ -1563,10 +1567,12 @@ LPVOID
LPVOID * LPVOID *
MULTI_QI * MULTI_QI *
OLECHAR * OLECHAR *
PSECURITY_DESCRIPTOR
REFCLSID REFCLSID
REFGUID REFGUID
REFIID REFIID
SNB SNB
SOLE_AUTHENTICATION_SERVICE *
STGMEDIUM * STGMEDIUM *
ULONG * ULONG *
WORD * WORD *
@ -2096,6 +2102,7 @@ IShellFolder **
IStream * IStream *
ITEMIDLIST * ITEMIDLIST *
LPBROWSEINFOA LPBROWSEINFOA
LPBROWSEINFOW
LPBYTE LPBYTE
LPCITEMIDLIST LPCITEMIDLIST
LPCITEMIDLIST * LPCITEMIDLIST *
@ -2211,6 +2218,7 @@ ITEMIDLIST *
IUnknown * IUnknown *
IUnknown ** IUnknown **
LPBROWSEINFOW LPBROWSEINFOW
LPBYTE
LPCITEMIDLIST LPCITEMIDLIST
LPCLSID LPCLSID
LPCSHLWAPI_CLIST LPCSHLWAPI_CLIST
@ -2234,6 +2242,7 @@ LPUNKNOWN *
LPVOID LPVOID
LPVOID * LPVOID *
LPWORD LPWORD
LPWSTR *
PACL PACL
PHUSKEY PHUSKEY
PLONG PLONG

View File

@ -47,6 +47,9 @@ sub get_spec_file_type {
my $module; my $module;
my $type; my $type;
$module = $file;
$module =~ s%^.*?([^/]+)\.spec$%$1%;
open(IN, "< $file") || die "$file: $!\n"; open(IN, "< $file") || die "$file: $!\n";
local $/ = "\n"; local $/ = "\n";
my $header = 1; my $header = 1;
@ -58,7 +61,6 @@ sub get_spec_file_type {
/^$/ && next; /^$/ && next;
if($header) { if($header) {
if(/^name\s*(\S*)/) { $module = $1; }
if(/^\d+|@/) { $header = 0; $lookahead = 1; } if(/^\d+|@/) { $header = 0; $lookahead = 1; }
next; next;
} }
@ -70,11 +72,6 @@ sub get_spec_file_type {
} }
close(IN); close(IN);
if(!defined($module)) {
$module = $file;
$module =~ s%^.*?([^/]+)\.spec|%$1%;
}
if(!defined($type)) { if(!defined($type)) {
$type = "win32"; $type = "win32";
} }

View File

@ -138,6 +138,17 @@ if($options->global) {
} }
} }
if(1) {
foreach my $winapi (@winapis) {
foreach my $broken_forward ($winapi->all_broken_forwards) {
(my $module, my $external_name, my $forward_module, my $forward_external_name) = @$broken_forward;
if($complete_module{$forward_module}) {
$output->write("$module.spec: forward is broken: $external_name => $forward_module.$forward_external_name\n");
}
}
}
}
my $progress_current = 0; my $progress_current = 0;
my $progress_max = scalar(@c_files); my $progress_max = scalar(@c_files);

View File

@ -78,12 +78,16 @@ sub check_documentation {
my $found_ordinal = 0; my $found_ordinal = 0;
$module =~ s/\.(acm|dll|drv|exe|ocx)$//; # FIXME: Kludge $module =~ s/\.(acm|dll|drv|exe|ocx)$//; # 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+)\.(\@|\d+)([\)\]])/) {
my $external_name2 = $3; my $external_name2 = $3;
my $module2 = $6; my $module2 = $6;
my $ordinal2 = $7; my $ordinal2 = $7;
if(length($1) != 1 || length($2) < 1 || if(length($1) != 1 || length($2) < 1 ||
length($4) < 1 || $5 ne "(" || $8 ne ")") length($4) < 1 || $5 ne "(" || $8 ne ")")
{ {
@ -132,6 +136,7 @@ sub check_documentation {
my $_module2 = $module2; my $_module2 = $module2;
$_module2 =~ s/\.(acm|dll|drv|exe|ocx)$//; # FIXME: Kludge $_module2 =~ s/\.(acm|dll|drv|exe|ocx)$//; # FIXME: Kludge
$_module2 = "kernel" if $_module2 eq "krnl386"; # FIXME: Kludge
if($external_name eq $external_name2 && if($external_name eq $external_name2 &&
lc($module) eq $_module2 && lc($module) eq $_module2 &&