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
31475455
Commit
31475455
authored
Jun 08, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Don't allow floating point parameters for interpreted functions.
parent
36ee028f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
6 deletions
+18
-6
typegen.c
tools/widl/typegen.c
+18
-6
No files found.
tools/widl/typegen.c
View file @
31475455
...
...
@@ -1230,14 +1230,26 @@ int is_interpreted_func( const type_t *iface, const var_t *func )
break
;
}
}
/* unions passed by value are not supported in Oi mode */
if
(
get_stub_mode
()
!=
MODE_Oif
&&
args
)
{
LIST_FOR_EACH_ENTRY
(
var
,
args
,
const
var_t
,
entry
)
{
if
(
type_get_type
(
var
->
type
)
==
TYPE_UNION
||
type_get_type
(
var
->
type
)
==
TYPE_ENCAPSULATED_UNION
)
return
0
;
}
switch
(
type_get_type
(
var
->
type
))
{
case
TYPE_BASIC
:
switch
(
type_basic_get_type
(
var
->
type
))
{
/* floating point arguments are not supported in Oi mode */
case
TYPE_BASIC_FLOAT
:
return
0
;
case
TYPE_BASIC_DOUBLE
:
return
0
;
default:
break
;
}
break
;
/* unions passed by value are not supported in Oi mode */
case
TYPE_UNION
:
return
0
;
case
TYPE_ENCAPSULATED_UNION
:
return
0
;
default:
break
;
}
}
if
((
str
=
get_attrp
(
func
->
attrs
,
ATTR_OPTIMIZE
)))
return
!
strcmp
(
str
,
"i"
);
if
((
str
=
get_attrp
(
iface
->
attrs
,
ATTR_OPTIMIZE
)))
return
!
strcmp
(
str
,
"i"
);
...
...
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