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
88c81287
Commit
88c81287
authored
Jun 11, 2007
by
Dan Hipschman
Committed by
Alexandre Julliard
Jun 12, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Simplify correlation descriptor code.
parent
b95197ac
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
2 deletions
+33
-2
server.c
dlls/rpcrt4/tests/server.c
+24
-0
server.idl
dlls/rpcrt4/tests/server.idl
+9
-0
parser.y
tools/widl/parser.y
+0
-1
typegen.c
tools/widl/typegen.c
+0
-0
widltypes.h
tools/widl/widltypes.h
+0
-1
No files found.
dlls/rpcrt4/tests/server.c
View file @
88c81287
...
@@ -210,6 +210,21 @@ s_sum_cs(cs_t *cs)
...
@@ -210,6 +210,21 @@ s_sum_cs(cs_t *cs)
return
s_sum_conf_array
(
cs
->
ca
,
cs
->
n
);
return
s_sum_conf_array
(
cs
->
ca
,
cs
->
n
);
}
}
int
s_sum_cps
(
cps_t
*
cps
)
{
int
sum
=
0
;
int
i
;
for
(
i
=
0
;
i
<
*
cps
->
pn
;
++
i
)
sum
+=
cps
->
ca1
[
i
];
for
(
i
=
0
;
i
<
2
*
cps
->
n
;
++
i
)
sum
+=
cps
->
ca2
[
i
];
return
sum
;
}
void
void
s_stop
(
void
)
s_stop
(
void
)
{
{
...
@@ -393,7 +408,9 @@ array_tests(void)
...
@@ -393,7 +408,9 @@ array_tests(void)
};
};
static
int
c
[]
=
{
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
};
static
int
c
[]
=
{
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
};
static
vector_t
vs
[
2
]
=
{{
1
,
-
2
,
3
},
{
4
,
-
5
,
-
6
}};
static
vector_t
vs
[
2
]
=
{{
1
,
-
2
,
3
},
{
4
,
-
5
,
-
6
}};
cps_t
cps
;
cs_t
*
cs
;
cs_t
*
cs
;
int
n
;
ok
(
sum_fixed_int_3d
(
m
)
==
4116
,
"RPC sum_fixed_int_3d
\n
"
);
ok
(
sum_fixed_int_3d
(
m
)
==
4116
,
"RPC sum_fixed_int_3d
\n
"
);
...
@@ -417,6 +434,13 @@ array_tests(void)
...
@@ -417,6 +434,13 @@ array_tests(void)
cs
->
ca
[
4
]
=
-
4
;
cs
->
ca
[
4
]
=
-
4
;
ok
(
sum_cs
(
cs
)
==
1
,
"RPC sum_cs
\n
"
);
ok
(
sum_cs
(
cs
)
==
1
,
"RPC sum_cs
\n
"
);
HeapFree
(
GetProcessHeap
(),
0
,
cs
);
HeapFree
(
GetProcessHeap
(),
0
,
cs
);
n
=
5
;
cps
.
pn
=
&
n
;
cps
.
ca1
=
&
c
[
2
];
cps
.
n
=
3
;
cps
.
ca2
=
&
c
[
3
];
ok
(
sum_cps
(
&
cps
)
==
53
,
"RPC sum_cps
\n
"
);
}
}
static
void
static
void
...
...
dlls/rpcrt4/tests/server.idl
View file @
88c81287
...
@@ -119,7 +119,16 @@ interface IServer
...
@@ -119,7 +119,16 @@ interface IServer
[size_is(n)] int ca[];
[size_is(n)] int ca[];
} cs_t;
} cs_t;
typedef struct
{
int *pn;
[size_is(*pn)] int *ca1;
[size_is(n * 2)] int *ca2;
int n;
} cps_t;
int sum_cs(cs_t *cs);
int sum_cs(cs_t *cs);
int sum_cps(cps_t *cps);
void stop(void);
void stop(void);
}
}
tools/widl/parser.y
View file @
88c81287
...
@@ -1387,7 +1387,6 @@ static var_t *make_var(char *name)
...
@@ -1387,7 +1387,6 @@ static var_t *make_var(char *name)
v->args = NULL;
v->args = NULL;
v->attrs = NULL;
v->attrs = NULL;
v->eval = NULL;
v->eval = NULL;
v->corrdesc = 0;
return v;
return v;
}
}
...
...
tools/widl/typegen.c
View file @
88c81287
This diff is collapsed.
Click to expand it.
tools/widl/widltypes.h
View file @
88c81287
...
@@ -227,7 +227,6 @@ struct _var_t {
...
@@ -227,7 +227,6 @@ struct _var_t {
var_list_t
*
args
;
/* for function pointers */
var_list_t
*
args
;
/* for function pointers */
attr_list_t
*
attrs
;
attr_list_t
*
attrs
;
expr_t
*
eval
;
expr_t
*
eval
;
size_t
corrdesc
;
/* offset to correlation descriptor (e.g., for unions) */
/* parser-internal */
/* parser-internal */
struct
list
entry
;
struct
list
entry
;
...
...
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