Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
f20beca7
Commit
f20beca7
authored
Jun 28, 2001
by
Patrik Stridvall
Committed by
Alexandre Julliard
Jun 28, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Several bug fixes and additions.
parent
86bfa4cb
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
186 additions
and
29 deletions
+186
-29
winapi_fixup
tools/winapi/winapi_fixup
+133
-17
modules.dat
tools/winapi_check/modules.dat
+2
-1
user32.api
tools/winapi_check/win32/user32.api
+1
-0
x11drv.api
tools/winapi_check/win32/x11drv.api
+1
-0
winapi.pm
tools/winapi_check/winapi.pm
+12
-4
winapi_check
tools/winapi_check/winapi_check
+16
-0
winapi_documentation.pm
tools/winapi_check/winapi_documentation.pm
+10
-0
winapi_local.pm
tools/winapi_check/winapi_local.pm
+11
-7
No files found.
tools/winapi/winapi_fixup
View file @
f20beca7
...
@@ -38,9 +38,9 @@ my %options_long = (
...
@@ -38,9 +38,9 @@ my %options_long = (
"local"
=>
{
default
=>
1
,
description
=>
"local fixup"
},
"local"
=>
{
default
=>
1
,
description
=>
"local fixup"
},
"documentation"
=>
{
default
=>
1
,
parent
=>
"local"
,
description
=>
"documentation fixup"
},
"documentation"
=>
{
default
=>
1
,
parent
=>
"local"
,
description
=>
"documentation fixup"
},
"documentation-ordinal"
=>
{
default
=>
1
,
parent
=>
"documentation"
,
description
=>
"documentation ordinal fixup"
},
"documentation-ordinal"
=>
{
default
=>
0
,
parent
=>
"documentation"
,
description
=>
"documentation ordinal fixup"
},
"documentation-missing"
=>
{
default
=>
0
,
parent
=>
"documentation"
,
description
=>
"documentation missing fixup"
},
"documentation-missing"
=>
{
default
=>
0
,
parent
=>
"documentation"
,
description
=>
"documentation missing fixup"
},
"documentation-name"
=>
{
default
=>
0
,
parent
=>
"documentation"
,
description
=>
"documentation name fixup"
},
"documentation-name"
=>
{
default
=>
1
,
parent
=>
"documentation"
,
description
=>
"documentation name fixup"
},
"stub"
=>
{
default
=>
0
,
parent
=>
"local"
,
description
=>
"stub fixup"
},
"stub"
=>
{
default
=>
0
,
parent
=>
"local"
,
description
=>
"stub fixup"
},
"global"
=>
{
default
=>
1
,
description
=>
"global fixup"
},
"global"
=>
{
default
=>
1
,
description
=>
"global fixup"
},
...
@@ -104,6 +104,12 @@ sub get_all_module_external_ordinal {
...
@@ -104,6 +104,12 @@ sub get_all_module_external_ordinal {
my
@entries
=
();
my
@entries
=
();
foreach
my
$winapi
(
@winapis
)
{
foreach
my
$winapi
(
@winapis
)
{
my
@name
=
();
{
my
$name
=
$winapi
->
function_external_name
(
$external_name
);
if
(
defined
(
$name
))
{
@name
=
split
(
/ & /
,
$name
);
}
}
my
@module
=
();
{
my
@module
=
();
{
my
$module
=
$winapi
->
function_external_module
(
$external_name
);
my
$module
=
$winapi
->
function_external_module
(
$external_name
);
if
(
defined
(
$module
))
{
if
(
defined
(
$module
))
{
...
@@ -117,16 +123,35 @@ sub get_all_module_external_ordinal {
...
@@ -117,16 +123,35 @@ sub get_all_module_external_ordinal {
}
}
}
}
my
$name
;
my
$module
;
my
$module
;
my
$ordinal
;
my
$ordinal
;
while
(
defined
(
$module
=
shift
@module
)
&&
defined
(
$ordinal
=
shift
@ordinal
))
{
while
(
# defined($name = shift @name) &&
push
@entries
,
[
$module
,
$ordinal
];
defined
(
$module
=
shift
@module
)
&&
defined
(
$ordinal
=
shift
@ordinal
))
{
push
@entries
,
[
$name
,
$module
,
$ordinal
];
}
}
}
}
return
@entries
;
return
@entries
;
}
}
sub
normalize_set
{
local
$_
=
shift
;
if
(
!
defined
(
$_
))
{
return
undef
;
}
my
%
hash
=
();
foreach
my
$key
(
split
(
/\s*&\s*/
))
{
$hash
{
$key
}
++
;
}
return
join
(
" & "
,
sort
(
keys
(
%
hash
)));
}
my
@c_files
=
options
->
c_files
;
my
@c_files
=
options
->
c_files
;
@c_files
=
files_skip
(
@c_files
);
@c_files
=
files_skip
(
@c_files
);
@c_files
=
files_filter
(
"winelib"
,
@c_files
);
@c_files
=
files_filter
(
"winelib"
,
@c_files
);
...
@@ -173,11 +198,11 @@ foreach my $file (@c_files) {
...
@@ -173,11 +198,11 @@ foreach my $file (@c_files) {
my
$prefix
=
""
;
my
$prefix
=
""
;
$prefix
.=
"$file: "
;
$prefix
.=
"$file: "
;
if
(
defined
(
$module16
)
&&
!
defined
(
$module32
))
{
if
(
defined
(
$module16
)
&&
!
defined
(
$module32
))
{
$prefix
.=
"$module16
: "
;
$prefix
.=
normalize_set
(
$module16
)
.
"
: "
;
}
elsif
(
!
defined
(
$module16
)
&&
defined
(
$module32
))
{
}
elsif
(
!
defined
(
$module16
)
&&
defined
(
$module32
))
{
$prefix
.=
"$module32
: "
;
$prefix
.=
normalize_set
(
$module32
)
.
"
: "
;
}
elsif
(
defined
(
$module16
)
&&
defined
(
$module32
))
{
}
elsif
(
defined
(
$module16
)
&&
defined
(
$module32
))
{
$prefix
.=
"$module16 & $module32
: "
;
$prefix
.=
normalize_set
(
$module16
)
.
" & "
.
normalize_set
(
$module32
)
.
"
: "
;
}
else
{
}
else
{
$prefix
.=
"<>: "
;
$prefix
.=
"<>: "
;
}
}
...
@@ -189,10 +214,18 @@ foreach my $file (@c_files) {
...
@@ -189,10 +214,18 @@ foreach my $file (@c_files) {
my
$calling_convention16
=
translate_calling_convention16
(
$calling_convention
);
my
$calling_convention16
=
translate_calling_convention16
(
$calling_convention
);
my
$calling_convention32
=
translate_calling_convention32
(
$calling_convention
);
my
$calling_convention32
=
translate_calling_convention32
(
$calling_convention
);
my
@external_names
=
();
foreach
my
$winapi
(
@winapis
)
{
my
$external_names
=
$winapi
->
function_external_name
(
$internal_name
);
if
(
defined
(
$external_names
))
{
push
@external_names
,
split
(
/\s*&\s*/
,
$external_names
);
}
}
if
(
options
->
documentation_ordinal
&&
$documentation
)
{
if
(
options
->
documentation_ordinal
&&
$documentation
)
{
local
$_
;
local
$_
;
foreach
(
split
(
/\n/
,
$documentation
))
{
foreach
(
split
(
/\n/
,
$documentation
))
{
if
(
/^(\s*\*\s*(\w+)\s*)(\s*(?:[\(\[]\s*\w+(?:\s*\.\s*\S
+
\s*)?[\)\]])+)(.*?)$/m
)
{
if
(
/^(\s*\*\s*(\w+)\s*)(\s*(?:[\(\[]\s*\w+(?:\s*\.\s*\S
*
\s*)?[\)\]])+)(.*?)$/m
)
{
my
$part1
=
$1
;
my
$part1
=
$1
;
my
$external_name
=
$2
;
my
$external_name
=
$2
;
my
$part3
=
$3
;
my
$part3
=
$3
;
...
@@ -201,7 +234,7 @@ foreach my $file (@c_files) {
...
@@ -201,7 +234,7 @@ foreach my $file (@c_files) {
$part4
=~
s/\s*$//
;
$part4
=~
s/\s*$//
;
my
@entries
=
();
my
@entries
=
();
while
(
$part3
=~
s/^\s*([\(\[]\s*(\w+)(?:\s*\.\s*(\S
+
)\s*)?[\)\]])//
)
{
while
(
$part3
=~
s/^\s*([\(\[]\s*(\w+)(?:\s*\.\s*(\S
*
)\s*)?[\)\]])//
)
{
push
@entries
,
[
$1
,
lc
(
$2
),
$3
];
push
@entries
,
[
$1
,
lc
(
$2
),
$3
];
}
}
...
@@ -210,7 +243,7 @@ foreach my $file (@c_files) {
...
@@ -210,7 +243,7 @@ foreach my $file (@c_files) {
foreach
my
$entry
(
@entries
)
{
foreach
my
$entry
(
@entries
)
{
(
my
$part
,
my
$module
,
my
$ordinal
)
=
@$entry
;
(
my
$part
,
my
$module
,
my
$ordinal
)
=
@$entry
;
foreach
my
$entry2
(
get_all_module_external_ordinal
(
$external_name
))
{
foreach
my
$entry2
(
get_all_module_external_ordinal
(
$external_name
))
{
(
my
$module2
,
my
$ordinal2
)
=
@$entry2
;
(
my
$
external_name2
,
my
$
module2
,
my
$ordinal2
)
=
@$entry2
;
if
(
defined
(
$module2
)
&&
$module
eq
$module2
&&
if
(
defined
(
$module2
)
&&
$module
eq
$module2
&&
(
!
defined
(
$ordinal
)
||
(
defined
(
$ordinal2
)
&&
$ordinal
ne
$ordinal2
)))
(
!
defined
(
$ordinal
)
||
(
defined
(
$ordinal2
)
&&
$ordinal
ne
$ordinal2
)))
...
@@ -239,8 +272,9 @@ foreach my $file (@c_files) {
...
@@ -239,8 +272,9 @@ foreach my $file (@c_files) {
my
$external_name
=
$2
;
my
$external_name
=
$2
;
if
(
$internal_name
eq
$external_name
)
{
if
(
$internal_name
eq
$external_name
)
{
foreach
my
$entry
(
get_all_module_external_ordinal
(
$external_name
))
{
foreach
my
$entry
(
get_all_module_external_ordinal
(
$external_name
))
{
(
my
$module
,
my
$ordinal
)
=
@$entry
;
(
my
$
external_name2
,
my
$
module
,
my
$ordinal
)
=
@$entry
;
# FIXME: Not correct
$substitute_line
{
$_
}{
search
}
=
"^\Q$_\E\$"
;
$substitute_line
{
$_
}{
search
}
=
"^\Q$_\E\$"
;
$substitute_line
{
$_
}{
replace
}
=
"$part1$external_name (\U$module\E.$ordinal)"
;
$substitute_line
{
$_
}{
replace
}
=
"$part1$external_name (\U$module\E.$ordinal)"
;
}
}
...
@@ -251,25 +285,107 @@ foreach my $file (@c_files) {
...
@@ -251,25 +285,107 @@ foreach my $file (@c_files) {
if
(
options
->
documentation_name
&&
$documentation
)
{
if
(
options
->
documentation_name
&&
$documentation
)
{
local
$_
;
local
$_
;
my
@entries
=
();
foreach
(
split
(
/\n/
,
$documentation
))
{
foreach
(
split
(
/\n/
,
$documentation
))
{
if
(
/^(\s*\*\s*(\w+)\s*)(\s*(?:[\(\[]\s*\w+(?:\s*\.\s*\S+\s*)?[\)\]])+)(.*?)$/m
)
{
if
(
/^(\s*\*\s*(\w+)\s*)(\s*(?:[\(\[]\s*\w+(?:\s*\.\s*\S+\s*)?[\)\]])+)(.*?)$/m
)
{
my
$part1
=
$1
;
my
$part1
=
$1
;
my
$external_name
=
$2
;
my
$external_name
2
=
$2
;
my
$part3
=
$3
;
my
$part3
=
$3
;
my
$part4
=
$4
;
my
$part4
=
$4
;
$part4
=~
s/\s*$//
;
$part4
=~
s/\s*$//
;
push
@entries
,
[
$part1
,
$external_name2
,
$part3
,
$part4
];
}
}
my
@missing_external_names
=
();
foreach
my
$external_name
(
@external_names
)
{
my
$found
=
0
;
foreach
my
$entry
(
@entries
)
{
my
$part1
=
$entry
->
[
0
];
my
$external_name2
=
$entry
->
[
1
];
my
$part3
=
$entry
->
[
2
];
my
$part4
=
$entry
->
[
3
];
if
(
$external_name
eq
$external_name2
)
{
$found
=
1
;
}
}
if
(
!
$found
)
{
push
@missing_external_names
,
$external_name
;
}
}
foreach
my
$external_name
(
@missing_external_names
)
{
my
$internal_name2
=
$internal_name
;
my
$external_name2
=
$external_name
;
if
(
$internal_name
=~
/^(.*?)$external_name(.*?)$/
)
{
my
$prefix
=
$1
;
my
$suffix
=
$2
;
my
$part1
;
my
$part3
;
my
$external_name2
;
my
$external_name2
;
foreach
my
$winapi
(
@winapis
)
{
my
$part4
;
$external_name2
=
(
$winapi
->
function_external_name
(
$internal_name
)
||
$external_name2
);
foreach
my
$entry
(
@entries
)
{
$part1
=
$entry
->
[
0
];
$external_name2
=
$entry
->
[
1
];
$part3
=
$entry
->
[
2
];
$part4
=
$entry
->
[
3
];
if
(
$internal_name
=~
/^(.*?)$external_name(.*?)$/
)
{
last
;
}
}
}
if
(
defined
(
$external_name2
)
&&
$external_name
ne
$external_name2
)
{
foreach
(
split
(
/\n/
,
$documentation
))
{
output
->
write
(
"$external_name != $external_name2\n"
);
if
(
/\Q$external_name\E/
)
{
if
(
$suffix
=~
/^16$/
)
{
$substitute_line
{
$_
}{
search
}
=
"\Q$internal_name\E"
;
$substitute_line
{
$_
}{
replace
}
=
"$external_name"
;
last
;
}
elsif
(
$suffix
=~
/^[AW]$/
)
{
$substitute_line
{
$_
}{
search
}
=
"^\Q$_\E\$"
;
# FIXME: Not correct
my
$replace
=
""
;
$part3
=~
/^\s*[\(\[]\s*(\w+)(?:\s*\.\s*(\S*)\s*)?[\)\]]/
;
my
$module
=
lc
(
$1
);
my
$ordinal
=
$2
;
foreach
my
$entry2
(
get_all_module_external_ordinal
(
$external_name
))
{
(
my
$external_name2
,
my
$module2
,
my
$ordinal2
)
=
@$entry2
;
my
$part12
=
$part1
;
$part12
=~
s/[AW](\s*)$/ $1/
;
my
$part32
=
$part3
;
if
(
$module
ne
$module2
||
$ordinal
ne
$ordinal2
)
{
$part32
=~
s/\U$module\E\s*.\s*\Q$ordinal\E/\U$module2\E.$ordinal2/
;
$replace
=
"$part12$part32$part4"
;
}
}
if
(
$replace
)
{
$replace
.=
"\n$part1$part3$part4"
;
$substitute_line
{
$_
}{
replace
}
=
$replace
;
last
;
}
}
}
}
}
}
else
{
output
->
write
(
"$external_name missing\n"
);
}
}
}
}
}
}
if
(
options
->
documentation_missing
&&
!
$documentation
)
{
if
(
options
->
documentation_missing
&&
!
$documentation
)
{
...
...
tools/winapi_check/modules.dat
View file @
f20beca7
...
@@ -322,7 +322,7 @@ dlls/urlmon
...
@@ -322,7 +322,7 @@ dlls/urlmon
% dlls/user/ddeml.spec
% dlls/user/ddeml.spec
dlls/user
dlls/user
/dde
% dlls/user/display.spec
% dlls/user/display.spec
...
@@ -350,6 +350,7 @@ windows
...
@@ -350,6 +350,7 @@ windows
controls
controls
dlls/user
dlls/user
dlls/user/dde
loader
loader
windows
windows
...
...
tools/winapi_check/win32/user32.api
View file @
f20beca7
...
@@ -92,6 +92,7 @@ LPDISPLAY_DEVICEW
...
@@ -92,6 +92,7 @@ LPDISPLAY_DEVICEW
LPDRAWTEXTPARAMS
LPDRAWTEXTPARAMS
LPDWORD
LPDWORD
LPINT
LPINT
LPINPUT
LPMENUINFO
LPMENUINFO
LPMENUITEMINFOA
LPMENUITEMINFOA
LPMENUITEMINFOW
LPMENUITEMINFOW
...
...
tools/winapi_check/win32/x11drv.api
View file @
f20beca7
...
@@ -30,6 +30,7 @@ LPBYTE
...
@@ -30,6 +30,7 @@ LPBYTE
LPDIDEVICEOBJECTDATA
LPDIDEVICEOBJECTDATA
LPDWORD
LPDWORD
LPMOUSE_EVENT_PROC
LPMOUSE_EVENT_PROC
LPPOINT
LPRECT
LPRECT
LPVOID
LPVOID
RECT *
RECT *
...
...
tools/winapi_check/winapi.pm
View file @
f20beca7
...
@@ -286,8 +286,16 @@ sub parse_spec_file {
...
@@ -286,8 +286,16 @@ sub parse_spec_file {
$ordinal
=
$1
;
$ordinal
=
$1
;
# FIXME: Internal name existing more than once not handled properly
# FIXME: Internal name existing more than once not handled properly
$$function_internal_name
{
$external_name
}
=
$internal_name
;
if
(
!
$$function_internal_name
{
$external_name
})
{
$$function_external_name
{
$internal_name
}
=
$external_name
;
$$function_internal_name
{
$external_name
}
=
$internal_name
;
}
else
{
$$function_internal_name
{
$external_name
}
.=
" & $internal_name"
;
}
if
(
!
$$function_external_name
{
$internal_name
})
{
$$function_external_name
{
$internal_name
}
=
$external_name
;
}
else
{
$$function_external_name
{
$internal_name
}
.=
" & $external_name"
;
}
$$function_internal_arguments
{
$internal_name
}
=
$arguments
;
$$function_internal_arguments
{
$internal_name
}
=
$arguments
;
$$function_external_arguments
{
$external_name
}
=
$arguments
;
$$function_external_arguments
{
$external_name
}
=
$arguments
;
if
(
!
$$function_internal_ordinal
{
$internal_name
})
{
if
(
!
$$function_internal_ordinal
{
$internal_name
})
{
...
@@ -304,12 +312,12 @@ sub parse_spec_file {
...
@@ -304,12 +312,12 @@ sub parse_spec_file {
$$function_external_calling_convention
{
$external_name
}
=
$calling_convention
;
$$function_external_calling_convention
{
$external_name
}
=
$calling_convention
;
if
(
!
$$function_internal_module
{
$internal_name
})
{
if
(
!
$$function_internal_module
{
$internal_name
})
{
$$function_internal_module
{
$internal_name
}
=
"$module"
;
$$function_internal_module
{
$internal_name
}
=
"$module"
;
}
else
{
# if($$function_internal_module{$internal_name} !~ /$module/) {
}
else
{
$$function_internal_module
{
$internal_name
}
.=
" & $module"
;
$$function_internal_module
{
$internal_name
}
.=
" & $module"
;
}
}
if
(
!
$$function_external_module
{
$external_name
})
{
if
(
!
$$function_external_module
{
$external_name
})
{
$$function_external_module
{
$external_name
}
=
"$module"
;
$$function_external_module
{
$external_name
}
=
"$module"
;
}
else
{
# if($$function_external_module{$external_name} !~ /$module/) {
}
else
{
$$function_external_module
{
$external_name
}
.=
" & $module"
;
$$function_external_module
{
$external_name
}
.=
" & $module"
;
}
}
...
...
tools/winapi_check/winapi_check
View file @
f20beca7
...
@@ -265,7 +265,13 @@ if($options->headers) {
...
@@ -265,7 +265,13 @@ if($options->headers) {
my
$module
=
$winapi
->
function_internal_module
(
$internal_name
);
my
$module
=
$winapi
->
function_internal_module
(
$internal_name
);
if
(
!
defined
(
$module
))
{
next
}
if
(
!
defined
(
$module
))
{
next
}
# FIXME: Not correct
my
$external_name
=
$winapi
->
function_external_name
(
$internal_name
);
my
$external_name
=
$winapi
->
function_external_name
(
$internal_name
);
if
(
defined
(
$external_name
))
{
$external_name
=
(
split
(
/\s*&\s*/
,
$external_name
))[
0
];
}
# FIXME: Kludge because of the THUNK variants
# FIXME: Kludge because of the THUNK variants
if
(
!
defined
(
$external_name
))
{
if
(
!
defined
(
$external_name
))
{
next
;
next
;
...
@@ -411,6 +417,16 @@ foreach my $file (@c_files) {
...
@@ -411,6 +417,16 @@ foreach my $file (@c_files) {
$prefix
.=
"$internal_name("
.
join
(
","
,
@argument_types
)
.
"): "
;
$prefix
.=
"$internal_name("
.
join
(
","
,
@argument_types
)
.
"): "
;
$output
->
prefix
(
$prefix
);
$output
->
prefix
(
$prefix
);
# FIXME: Not correct
if
(
defined
(
$external_name16
))
{
$external_name16
=
(
split
(
/\s*&\s*/
,
$external_name16
))[
0
];
}
# FIXME: Not correct
if
(
defined
(
$external_name32
))
{
$external_name32
=
(
split
(
/\s*&\s*/
,
$external_name32
))[
0
];
}
if
(
$options
->
local
&&
$options
->
misplaced
&&
if
(
$options
->
local
&&
$options
->
misplaced
&&
$linkage
ne
"extern"
&&
$statements
)
$linkage
ne
"extern"
&&
$statements
)
{
{
...
...
tools/winapi_check/winapi_documentation.pm
View file @
f20beca7
...
@@ -21,6 +21,16 @@ sub check_documentation {
...
@@ -21,6 +21,16 @@ sub check_documentation {
my
$documentation
=
$function
->
documentation
;
my
$documentation
=
$function
->
documentation
;
my
@argument_documentations
=
@
{
$function
->
argument_documentations
};
my
@argument_documentations
=
@
{
$function
->
argument_documentations
};
# FIXME: Not correct
if
(
defined
(
$external_name16
))
{
$external_name16
=
(
split
(
/\s*&\s*/
,
$external_name16
))[
0
];
}
# FIXME: Not correct
if
(
defined
(
$external_name32
))
{
$external_name32
=
(
split
(
/\s*&\s*/
,
$external_name32
))[
0
];
}
my
$external_name
;
my
$external_name
;
my
$name1
;
my
$name1
;
my
$name2
;
my
$name2
;
...
...
tools/winapi_check/winapi_local.pm
View file @
f20beca7
...
@@ -257,16 +257,20 @@ sub check_statements {
...
@@ -257,16 +257,20 @@ sub check_statements {
$format
=~
s/^\'(.*?)\'$/$1/
;
$format
=~
s/^\'(.*?)\'$/$1/
;
$format
=~
s/^\\\"(.*?)\\\"$/$1/
;
$format
=~
s/^\\\"(.*?)\\\"$/$1/
;
if
(
$argument
!~
/$name/
)
{
if
(
$options
->
debug_messages
)
{
$output
->
write
(
"$called_name: argument $n is wrong ($name != '$argument')\n"
);
if
(
$argument
!~
/$name/
)
{
}
elsif
(
!
$winapi
->
is_allowed_type_format
(
$module
,
$type
,
$format
))
{
$output
->
write
(
"$called_name: argument $n is wrong ($name != '$argument')\n"
);
$output
->
write
(
"$called_name: argument $n ($type $name) has illegal format ($format)\n"
);
}
elsif
(
!
$winapi
->
is_allowed_type_format
(
$module
,
$type
,
$format
))
{
$output
->
write
(
"$called_name: argument $n ($type $name) has illegal format ($format)\n"
);
}
}
}
}
}
my
$count
=
$#
{
$function
->
argument_types
}
+
1
;
if
(
$options
->
debug_messages
)
{
if
(
$n
!=
$count
)
{
my
$count
=
$#
{
$function
->
argument_types
}
+
1
;
$output
->
write
(
"$called_name: argument count mismatch ($n != $count)\n"
);
if
(
$n
!=
$count
)
{
$output
->
write
(
"$called_name: argument count mismatch ($n != $count)\n"
);
}
}
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment