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
52ca3eba
Commit
52ca3eba
authored
May 15, 2007
by
Dan Hipschman
Committed by
Alexandre Julliard
May 16, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Write some structures to the type format string on the fly.
parent
217fc9c0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
106 additions
and
84 deletions
+106
-84
server.c
dlls/rpcrt4/tests/server.c
+9
-0
server.idl
dlls/rpcrt4/tests/server.idl
+14
-0
typegen.c
tools/widl/typegen.c
+83
-84
No files found.
dlls/rpcrt4/tests/server.c
View file @
52ca3eba
...
...
@@ -132,6 +132,12 @@ s_dot_pvectors(pvectors_t *p)
return
p
->
pu
->
x
*
(
*
p
->
pv
)
->
x
+
p
->
pu
->
y
*
(
*
p
->
pv
)
->
y
+
p
->
pu
->
z
*
(
*
p
->
pv
)
->
z
;
}
int
s_sum_sp
(
sp_t
*
sp
)
{
return
sp
->
x
+
sp
->
s
->
x
;
}
void
s_stop
(
void
)
{
...
...
@@ -175,6 +181,8 @@ basic_tests(void)
static
vector_t
a
=
{
1
,
3
,
7
};
static
vector_t
vec1
=
{
4
,
-
2
,
1
},
vec2
=
{
-
5
,
2
,
3
},
*
pvec2
=
&
vec2
;
static
pvectors_t
pvecs
=
{
&
vec1
,
&
pvec2
};
static
sp_inner_t
spi
=
{
42
};
static
sp_t
sp
=
{
-
13
,
&
spi
};
pints_t
pints
;
ptypes_t
ptypes
;
int
i1
,
i2
,
i3
,
*
pi2
,
*
pi3
,
**
ppi3
;
...
...
@@ -241,6 +249,7 @@ basic_tests(void)
ok
(
dot_pvectors
(
&
pvecs
)
==
-
21
,
"RPC dot_pvectors
\n
"
);
ok
(
sum_fixed_array
(
f
)
==
-
2
,
"RPC sum_fixed_array
\n
"
);
ok
(
sum_sp
(
&
sp
)
==
29
,
"RPC sum_sp
\n
"
);
}
static
void
...
...
dlls/rpcrt4/tests/server.idl
View file @
52ca3eba
...
...
@@ -67,5 +67,19 @@ interface IServer
int
pints_sum
(
pints_t
*
pints
)
;
double
ptypes_sum
(
ptypes_t
*
ptypes
)
;
int
dot_pvectors
(
pvectors_t
*
pvectors
)
;
/*
don
't use this anywhere except in sp_t */
typedef struct
{
int x;
} sp_inner_t;
typedef struct
{
int x;
sp_inner_t *s;
} sp_t;
int sum_sp(sp_t *sp);
void stop(void);
}
tools/widl/typegen.c
View file @
52ca3eba
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