Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
d18837b7
Commit
d18837b7
authored
Jun 07, 2000
by
Patrik Stridvall
Committed by
Alexandre Julliard
Jun 07, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Minor API files update.
- Turned on calling convention checking for Win32 functions by default.
parent
cf50ffbf
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
72 additions
and
67 deletions
+72
-67
modules.dat
tools/winapi_check/modules.dat
+57
-58
comdlg32.api
tools/winapi_check/win32/comdlg32.api
+2
-0
odbc32.api
tools/winapi_check/win32/odbc32.api
+1
-4
winapi_check
tools/winapi_check/winapi_check
+2
-2
winapi_local.pm
tools/winapi_check/winapi_local.pm
+7
-2
winapi_options.pm
tools/winapi_check/winapi_options.pm
+3
-1
No files found.
tools/winapi_check/modules.dat
View file @
d18837b7
...
...
@@ -41,11 +41,6 @@ dlls/ddraw/dclipper
dlls/dinput
% dlls/display/display.spec
dlls/display
objects
% dlls/dplayx/dplay.spec
dlls/dplayx
...
...
@@ -93,6 +88,58 @@ dlls/imagehlp
dlls/imm32
% dlls/kernel/comm.spec
% dlls/kernel/kernel.spec
files
if1632
loader/ne
loader
memory
misc
msdos
relay32
scheduler
win32
% dlls/kernel/kernel32.spec
files
loader/ne
loader
memory
misc
objects
ole
relay32
scheduler
win32
% dlls/kernel/system.spec
misc
% dlls/kernel/toolhelp.spec
loader/ne
loader
memory
misc
windows
% dlls/kernel/wow32.spec
relay32
% dlls/kernel/wprocs.spec
if1632
loader/ne
msdos
relay32
windows
% dlls/lzexpand/lz32.spec
dlls/lzexpand
...
...
@@ -274,6 +321,11 @@ windows
dlls/user
misc
% dlls/user/display.spec
dlls/user
objects
% dlls/user/user.spec
controls
...
...
@@ -414,55 +466,3 @@ win32
% dlls/x11drv/x11drv.spec
dlls/x11drv
% if1632/comm.spec
% if1632/kernel.spec
files
if1632
loader/ne
loader
memory
misc
msdos
relay32
scheduler
win32
% if1632/system.spec
misc
% if1632/toolhelp.spec
loader/ne
loader
memory
misc
windows
% if1632/wprocs.spec
if1632
loader/ne
msdos
relay32
windows
% relay32/kernel32.spec
files
loader/ne
loader
memory
misc
objects
ole
relay32
scheduler
win32
% relay32/wow32.spec
relay32
\ No newline at end of file
tools/winapi_check/win32/comdlg32.api
View file @
d18837b7
...
...
@@ -2,6 +2,7 @@
BOOL
DWORD
HRESULT
HWND
UINT
...
...
@@ -23,6 +24,7 @@ LPPAGESETUPDLGA
LPPAGESETUPDLGW
LPPRINTDLGA
LPPRINTDLGW
LPVOID
%str
...
...
tools/winapi_check/win32/odbc32.api
View file @
d18837b7
...
...
@@ -7,14 +7,11 @@ SQLHENV
SQLHSTMT
SQLHWND
SQLINTEGER
SQLRETURN
SQLSMALLINT
SQLUINTEGER
SQLUSMALLINT
%long --extension
SQLRETURNTYPE
%ptr
SQLCHAR *
...
...
tools/winapi_check/winapi_check
View file @
d18837b7
...
...
@@ -387,11 +387,11 @@ foreach my $file ($options->c_files) {
if
(
$options
->
local
&&
$options
->
argument
)
{
if
(
$options
->
win16
&&
$options
->
report_module
(
$module16
))
{
winapi_local::
check_function
$options
,
$output16
,
$return_type
,
$calling_convention
,
$external_name16
,
$internal_name
,
[
@argument_types
],
$win16api
;
$return_type
,
$calling_convention
,
$external_name16
,
$internal_name
,
[
@argument_types
],
$
nativeapi
,
$
win16api
;
}
if
(
$options
->
win32
&&
$options
->
report_module
(
$module32
))
{
winapi_local::
check_function
$options
,
$output32
,
$return_type
,
$calling_convention
,
$external_name32
,
$internal_name
,
[
@argument_types
],
$win32api
;
$return_type
,
$calling_convention
,
$external_name32
,
$internal_name
,
[
@argument_types
],
$
nativeapi
,
$
win32api
;
}
}
...
...
tools/winapi_check/winapi_local.pm
View file @
d18837b7
...
...
@@ -11,6 +11,7 @@ sub check_function {
my
$internal_name
=
shift
;
my
$refargument_types
=
shift
;
my
@argument_types
=
@$refargument_types
;
my
$nativeapi
=
shift
;
my
$winapi
=
shift
;
my
$module
=
$winapi
->
function_module
(
$internal_name
);
...
...
@@ -76,7 +77,7 @@ sub check_function {
}
elsif
(
$calling_convention
=~
/^__stdcall|VFWAPI|WINAPI|CALLBACK$/
)
{
$implemented_calling_convention
=
"stdcall"
;
}
else
{
$implemented_calling_convention
=
"
<default>
"
;
$implemented_calling_convention
=
"
cdecl
"
;
}
}
...
...
@@ -96,7 +97,11 @@ sub check_function {
!
(
$declared_calling_convention
=~
/^pascal/
&&
$forbidden_return_type
)
&&
!
(
$implemented_calling_convention
=~
/^cdecl|varargs$/
&&
$declared_calling_convention
=~
/^cdecl|varargs$/
))
{
if
(
$options
->
calling_convention
)
{
if
(
$options
->
calling_convention
&&
(
(
$options
->
calling_convention_win16
&&
$winapi
->
name
eq
"win16"
)
||
(
$options
->
calling_convention_win32
&&
$winapi
->
name
eq
"win32"
))
&&
!
$nativeapi
->
is_function
(
$internal_name
))
{
&
$output
(
"calling convention mismatch: $implemented_calling_convention != $declared_calling_convention"
);
}
}
...
...
tools/winapi_check/winapi_options.pm
View file @
d18837b7
...
...
@@ -58,7 +58,9 @@ my %options = (
parser
=>
\&
parser_comma_list
,
description
=>
"argument kind checking"
},
"calling-convention"
=>
{
default
=>
0
,
parent
=>
"local"
,
description
=>
"calling convention checking"
},
"calling-convention"
=>
{
default
=>
1
,
parent
=>
"local"
,
description
=>
"calling convention checking"
},
"calling-convention-win16"
=>
{
default
=>
0
,
parent
=>
"calling-convention"
,
description
=>
"calling convention checking (Win16)"
},
"calling-convention-win32"
=>
{
default
=>
1
,
parent
=>
"calling-convention"
,
description
=>
"calling convention checking (Win32)"
},
"misplaced"
=>
{
default
=>
1
,
parent
=>
"local"
,
description
=>
"check for misplaced functions"
},
"statements"
=>
{
default
=>
0
,
parent
=>
"local"
,
description
=>
"check for statements inconsistances"
},
"cross-call"
=>
{
default
=>
0
,
parent
=>
"statements"
,
description
=>
"check for cross calling functions"
},
...
...
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