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
82ab9443
Commit
82ab9443
authored
Mar 15, 2010
by
Rob Shearman
Committed by
Alexandre Julliard
Mar 16, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Clean up array case in write_remoting_arg.
Use a switch statement instead of multiple if statements and explicitly write out the fixed array cases.
parent
0e6ad1fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
11 deletions
+17
-11
typegen.c
tools/widl/typegen.c
+17
-11
No files found.
tools/widl/typegen.c
View file @
82ab9443
...
...
@@ -3500,7 +3500,7 @@ static void write_remoting_arg(FILE *file, int indent, const var_t *func, const
case
TGT_ARRAY
:
{
unsigned
char
tc
=
get_array_fc
(
type
);
const
char
*
array_type
=
"FixedArray"
;
const
char
*
array_type
=
NULL
;
/* We already have the size_is expression since it's at the
top level, but do checks for multidimensional conformant
...
...
@@ -3509,19 +3509,25 @@ static void write_remoting_arg(FILE *file, int indent, const var_t *func, const
the return value. */
get_size_is_expr
(
type
,
var
->
name
);
if
(
tc
==
RPC_FC_SMVARRAY
||
tc
==
RPC_FC_LGVARRAY
)
switch
(
tc
)
{
case
RPC_FC_SMFARRAY
:
case
RPC_FC_LGFARRAY
:
array_type
=
"FixedArray"
;
break
;
case
RPC_FC_SMVARRAY
:
case
RPC_FC_LGVARRAY
:
array_type
=
"VaryingArray"
;
}
else
if
(
tc
==
RPC_FC_CARRAY
)
{
break
;
case
RPC_FC_CARRAY
:
array_type
=
"ConformantArray"
;
}
else
if
(
tc
==
RPC_FC_CVARRAY
||
tc
==
RPC_FC_BOGUS_ARRAY
)
{
array_type
=
(
tc
==
RPC_FC_BOGUS_ARRAY
?
"ComplexArray"
:
"ConformantVaryingArray"
);
break
;
case
RPC_FC_CVARRAY
:
array_type
=
"ConformantVaryingArray"
;
break
;
case
RPC_FC_BOGUS_ARRAY
:
array_type
=
"ComplexArray"
;
break
;
}
if
(
pointer_type
!=
RPC_FC_RP
)
array_type
=
"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