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
a93f531c
Commit
a93f531c
authored
Feb 24, 2009
by
Rob Shearman
Committed by
Alexandre Julliard
Feb 25, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Ignore pointer attributes applied to interface pointers.
Print a warning if a pointer attribute is specified since the generated code won't do what the developer expects.
parent
cee15b24
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
parser.y
tools/widl/parser.y
+6
-1
proxy.c
tools/widl/proxy.c
+0
-1
No files found.
tools/widl/parser.y
View file @
a93f531c
...
...
@@ -1446,7 +1446,12 @@ static void set_type(var_t *v, decl_spec_t *decl_spec, const declarator_t *decl,
}
if (ptr && is_ptr(ptr) && (ptr_attr || top))
{
if (!ptr_attr)
if (ptr_attr && ptr_attr != RPC_FC_UP &&
type_get_type(type_pointer_get_ref(ptr)) == TYPE_INTERFACE)
warning_loc_info(&v->loc_info,
"%s: pointer attribute applied to interface "
"pointer type has no effect\n", v->name);
if (top)
ptr_attr = RPC_FC_RP;
if (ptr_attr != (*pt)->type)
{
...
...
tools/widl/proxy.c
View file @
a93f531c
...
...
@@ -158,7 +158,6 @@ int cant_be_null(const var_t *v)
case
TGT_ARRAY
:
/* FIXME: work out pointer type */
return
0
;
case
TGT_IFACE_POINTER
:
/* FIXME */
case
TGT_POINTER
:
return
(
get_pointer_fc
(
v
->
type
)
==
RPC_FC_RP
);
case
TGT_CTXT_HANDLE_POINTER
:
...
...
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