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
00ce4112
Commit
00ce4112
authored
May 24, 2007
by
Dan Hipschman
Committed by
Alexandre Julliard
May 25, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Handle pointers in unions.
Unify write_pointers with write_embedded_types, and handle pointers in unions. Includes tests.
parent
b4e8073f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
74 additions
and
71 deletions
+74
-71
server.c
dlls/rpcrt4/tests/server.c
+8
-0
server.idl
dlls/rpcrt4/tests/server.idl
+1
-0
server_defines.h
dlls/rpcrt4/tests/server_defines.h
+1
-0
typegen.c
tools/widl/typegen.c
+64
-71
No files found.
dlls/rpcrt4/tests/server.c
View file @
00ce4112
...
...
@@ -24,6 +24,7 @@
#include "server_defines.h"
#include <stdio.h>
#include <stdlib.h>
#define PORT "4114"
#define PIPE "\\pipe\\wine_rpcrt4_test"
...
...
@@ -147,6 +148,7 @@ s_square_sun(sun_t *sun)
case
SUN_I
:
return
sun
->
u
.
i
*
sun
->
u
.
i
;
case
SUN_F1
:
case
SUN_F2
:
return
sun
->
u
.
f
*
sun
->
u
.
f
;
case
SUN_PI
:
return
(
*
sun
->
u
.
pi
)
*
(
*
sun
->
u
.
pi
);
default:
return
0
.
0
;
}
...
...
@@ -270,6 +272,7 @@ static void
union_tests
(
void
)
{
sun_t
sun
;
int
i
;
sun
.
s
=
SUN_I
;
sun
.
u
.
i
=
9
;
...
...
@@ -282,6 +285,11 @@ union_tests(void)
sun
.
s
=
SUN_F2
;
sun
.
u
.
f
=
-
2
.
0
;
ok
(
square_sun
(
&
sun
)
==
4
.
0
,
"RPC square_sun
\n
"
);
sun
.
s
=
SUN_PI
;
sun
.
u
.
pi
=
&
i
;
i
=
11
;
ok
(
square_sun
(
&
sun
)
==
121
.
0
,
"RPC square_sun
\n
"
);
}
static
void
...
...
dlls/rpcrt4/tests/server.idl
View file @
00ce4112
...
...
@@ -61,6 +61,7 @@ interface IServer
{
[
case
(
SUN_I
)
]
int
i
;
[
case
(
SUN_F1
,
SUN_F2
)
]
float
f
;
[
case
(
SUN_PI
)
]
int
*
pi
;
}
u
;
int
s
;
...
...
dlls/rpcrt4/tests/server_defines.h
View file @
00ce4112
...
...
@@ -22,3 +22,4 @@
#define SUN_I 10
#define SUN_F1 -2
#define SUN_F2 7
#define SUN_PI 399
tools/widl/typegen.c
View file @
00ce4112
This diff is collapsed.
Click to expand it.
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