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
b9181615
Commit
b9181615
authored
Jan 07, 2017
by
Francois Gouget
Committed by
Alexandre Julliard
Jan 09, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winapi: Add some more __stdcall synonyms.
Signed-off-by:
Francois Gouget
<
fgouget@free.fr
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5a61202f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
c_parser.pm
tools/winapi/c_parser.pm
+2
-2
winapi_function.pm
tools/winapi/winapi_function.pm
+2
-2
winapi_local.pm
tools/winapi/winapi_local.pm
+2
-2
winapi_parser.pm
tools/winapi/winapi_parser.pm
+1
-1
No files found.
tools/winapi/c_parser.pm
View file @
b9181615
...
...
@@ -37,7 +37,7 @@ use c_type;
my
$CALL_CONVENTION
=
"__cdecl|__stdcall|"
.
"__RPC_API|__RPC_STUB|__RPC_USER|"
.
"CALLBACK|CDECL|NTAPI|PASCAL|RPC_ENTRY|RPC_VAR_ENTRY|"
.
"
VFWAPI|VFWAPIV
|WINAPI|WINAPIV|APIENTRY|"
;
"
SEC_ENTRY|VFWAPI|VFWAPIV|WINGDIPAPI|WMIAPI
|WINAPI|WINAPIV|APIENTRY|"
;
sub
parse_c_function
($$$$$);
...
...
@@ -1735,7 +1735,7 @@ sub parse_c_variable($$$$$$$)
$type
=
$self
->
_format_c_type
(
$type
);
last
finished
;
}
elsif
(
s/^((?:enum\s+|interface\s+|struct\s+|union\s+)?\w+\b(?:\s*\*)*\s*\(\s*(?:$CALL_CONVENTION)?(?:\s*\*)*)\s*(\w+)\s*(\)\s*\(.*?\))$//s
)
{
}
elsif
(
s/^((?:enum\s+|interface\s+|struct\s+|union\s+)?\w+\b(?:\s*\*)*\s*\(\s*(?:$CALL_CONVENTION)?(?:\s
+DECLSPEC_[A-Z]+)?(?:\s
*\*)*)\s*(\w+)\s*(\)\s*\(.*?\))$//s
)
{
$type
=
$self
->
_format_c_type
(
"$sign$1$3"
);
$name
=
$2
;
...
...
tools/winapi/winapi_function.pm
View file @
b9181615
...
...
@@ -309,7 +309,7 @@ sub calling_convention16($) {
}
elsif
(
/^(?:VFWAPIV|WINAPIV)$/
)
{
if
(
!
defined
(
$suffix
))
{
return
undef
;
}
return
"pascal$suffix"
;
# FIXME: Is this correct?
}
elsif
(
/^(?:__stdcall|__RPC_STUB|__RPC_USER|NET_API_FUNCTION|RPC_ENTRY|
VFW
API|WINAPI|CALLBACK)$/
)
{
}
elsif
(
/^(?:__stdcall|__RPC_STUB|__RPC_USER|NET_API_FUNCTION|RPC_ENTRY|
SEC_ENTRY|VFWAPI|WINGDIPAPI|WMI
API|WINAPI|CALLBACK)$/
)
{
if
(
!
defined
(
$suffix
))
{
return
undef
;
}
return
"pascal$suffix"
;
}
elsif
(
$_
eq
"__asm"
)
{
...
...
@@ -327,7 +327,7 @@ sub calling_convention32($) {
return
"cdecl"
;
}
elsif
(
/^(?:VFWAPIV|WINAPIV)$/
)
{
return
"varargs"
;
}
elsif
(
/^(?:__stdcall|__RPC_STUB|__RPC_USER|NET_API_FUNCTION|RPC_ENTRY|
VFW
API|WINAPI|CALLBACK)$/
)
{
}
elsif
(
/^(?:__stdcall|__RPC_STUB|__RPC_USER|NET_API_FUNCTION|RPC_ENTRY|
SEC_ENTRY|VFWAPI|WINGDIPAPI|WMI
API|WINAPI|CALLBACK)$/
)
{
return
"stdcall"
;
}
elsif
(
$_
eq
"__asm"
)
{
return
"asm"
;
...
...
tools/winapi/winapi_local.pm
View file @
b9181615
...
...
@@ -85,7 +85,7 @@ sub _check_function($$$$$$) {
$implemented_calling_convention
=
"cdecl"
;
}
elsif
(
$calling_convention
=~
/^(?:VFWAPIV|WINAPIV)$/
)
{
$implemented_calling_convention
=
"varargs"
;
}
elsif
(
$calling_convention
=~
/^(?:__stdcall|__RPC_STUB|__RPC_USER|NET_API_FUNCTION|RPC_ENTRY|
VFW
API|WINAPI|CALLBACK)$/
)
{
}
elsif
(
$calling_convention
=~
/^(?:__stdcall|__RPC_STUB|__RPC_USER|NET_API_FUNCTION|RPC_ENTRY|
SEC_ENTRY|VFWAPI|WINGDIPAPI|WMI
API|WINAPI|CALLBACK)$/
)
{
if
(
defined
(
$implemented_return_kind
)
&&
$implemented_return_kind
=~
/^(?:s_word|word|void)$/
)
{
$implemented_calling_convention
=
"pascal16"
;
}
else
{
...
...
@@ -101,7 +101,7 @@ sub _check_function($$$$$$) {
$implemented_calling_convention
=
"cdecl"
;
}
elsif
(
$calling_convention
=~
/^(?:VFWAPIV|WINAPIV)$/
)
{
$implemented_calling_convention
=
"varargs"
;
}
elsif
(
$calling_convention
=~
/^(?:__stdcall|__RPC_STUB|__RPC_USER|APIENTRY|NET_API_FUNCTION|RPC_ENTRY|
VFW
API|WINAPI|CALLBACK)$/
)
{
}
elsif
(
$calling_convention
=~
/^(?:__stdcall|__RPC_STUB|__RPC_USER|APIENTRY|NET_API_FUNCTION|RPC_ENTRY|
SEC_ENTRY|VFWAPI|WINGDIPAPI|WMI
API|WINAPI|CALLBACK)$/
)
{
if
(
defined
(
$implemented_return_kind
)
&&
$implemented_return_kind
eq
"longlong"
)
{
$implemented_calling_convention
=
"stdcall"
;
# FIXME: Check entry flags
}
else
{
...
...
tools/winapi/winapi_parser.pm
View file @
b9181615
...
...
@@ -28,7 +28,7 @@ my $CALL_CONVENTION="__cdecl|__stdcall|" .
"__RPC_API|__RPC_STUB|__RPC_USER|RPC_ENTRY|"
.
"RPC_VAR_ENTRY|STDMETHODCALLTYPE|NET_API_FUNCTION|"
.
"CALLBACK|CDECL|NTAPI|PASCAL|APIENTRY|"
.
"
VFWAPI|VFWAPIV
|WINAPI|WINAPIV|"
;
"
SEC_ENTRY|VFWAPI|VFWAPIV|WINGDIPAPI|WMIAPI
|WINAPI|WINAPIV|"
;
sub
parse_c_file
($$)
{
my
$file
=
shift
;
...
...
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