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
b7618f91
Commit
b7618f91
authored
Sep 16, 2007
by
Rob Shearman
Committed by
Alexandre Julliard
Sep 17, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Fix detection of complex arrays.
parent
de7220e8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
header.c
tools/widl/header.c
+1
-0
parser.y
tools/widl/parser.y
+5
-0
No files found.
tools/widl/header.c
View file @
b7618f91
...
...
@@ -250,6 +250,7 @@ void write_type_left(FILE *h, type_t *t)
case
RPC_FC_OP
:
case
RPC_FC_CARRAY
:
case
RPC_FC_CVARRAY
:
case
RPC_FC_BOGUS_ARRAY
:
write_type_left
(
h
,
t
->
ref
);
fprintf
(
h
,
"%s*"
,
needs_space_after
(
t
->
ref
)
?
" "
:
""
);
break
;
...
...
tools/widl/parser.y
View file @
b7618f91
...
...
@@ -1363,6 +1363,10 @@ static void set_type(var_t *v, type_t *type, int ptr_level, array_dims_t *arr)
(*ptype)->type = RPC_FC_BOGUS_ARRAY;
}
}
/* if the structure is complex, then so must be the encompassing array */
if (is_array(v->type) && (v->type->ref->type == RPC_FC_BOGUS_STRUCT))
v->type->type = RPC_FC_BOGUS_ARRAY;
}
static ifref_list_t *append_ifref(ifref_list_t *list, ifref_t *iface)
...
...
@@ -1812,6 +1816,7 @@ static int get_struct_type(var_list_t *fields)
case RPC_FC_PAD:
case RPC_FC_EMBEDDED_COMPLEX:
case RPC_FC_BOGUS_STRUCT:
case RPC_FC_BOGUS_ARRAY:
return RPC_FC_BOGUS_STRUCT;
}
}
...
...
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