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
8f689ee0
Commit
8f689ee0
authored
Jun 05, 2007
by
Dan Hipschman
Committed by
Alexandre Julliard
Jun 06, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Implement conformant structure handling.
parent
978b4d4f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
0 deletions
+26
-0
server.c
dlls/rpcrt4/tests/server.c
+17
-0
server.idl
dlls/rpcrt4/tests/server.idl
+9
-0
typegen.c
tools/widl/typegen.c
+0
-0
No files found.
dlls/rpcrt4/tests/server.c
View file @
8f689ee0
...
@@ -23,6 +23,7 @@
...
@@ -23,6 +23,7 @@
#include "server.h"
#include "server.h"
#include "server_defines.h"
#include "server_defines.h"
#include <stddef.h>
#include <stdio.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdlib.h>
...
@@ -203,6 +204,12 @@ s_dot_two_vectors(vector_t vs[2])
...
@@ -203,6 +204,12 @@ s_dot_two_vectors(vector_t vs[2])
return
vs
[
0
].
x
*
vs
[
1
].
x
+
vs
[
0
].
y
*
vs
[
1
].
y
+
vs
[
0
].
z
*
vs
[
1
].
z
;
return
vs
[
0
].
x
*
vs
[
1
].
x
+
vs
[
0
].
y
*
vs
[
1
].
y
+
vs
[
0
].
z
*
vs
[
1
].
z
;
}
}
int
s_sum_cs
(
cs_t
*
cs
)
{
return
s_sum_conf_array
(
cs
->
ca
,
cs
->
n
);
}
void
void
s_stop
(
void
)
s_stop
(
void
)
{
{
...
@@ -386,6 +393,7 @@ array_tests(void)
...
@@ -386,6 +393,7 @@ 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
}};
cs_t
*
cs
;
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
"
);
...
@@ -400,6 +408,15 @@ array_tests(void)
...
@@ -400,6 +408,15 @@ array_tests(void)
ok
(
sum_var_array
(
&
c
[
2
],
0
)
==
0
,
"RPC sum_conf_array
\n
"
);
ok
(
sum_var_array
(
&
c
[
2
],
0
)
==
0
,
"RPC sum_conf_array
\n
"
);
ok
(
dot_two_vectors
(
vs
)
==
-
4
,
"RPC dot_two_vectors
\n
"
);
ok
(
dot_two_vectors
(
vs
)
==
-
4
,
"RPC dot_two_vectors
\n
"
);
cs
=
HeapAlloc
(
GetProcessHeap
(),
0
,
offsetof
(
cs_t
,
ca
)
+
5
*
sizeof
cs
->
ca
[
0
]);
cs
->
n
=
5
;
cs
->
ca
[
0
]
=
3
;
cs
->
ca
[
1
]
=
5
;
cs
->
ca
[
2
]
=
-
2
;
cs
->
ca
[
3
]
=
-
1
;
cs
->
ca
[
4
]
=
-
4
;
ok
(
sum_cs
(
cs
)
==
1
,
"RPC sum_cs
\n
"
);
HeapFree
(
GetProcessHeap
(),
0
,
cs
);
}
}
static
void
static
void
...
...
dlls/rpcrt4/tests/server.idl
View file @
8f689ee0
...
@@ -112,5 +112,14 @@ interface IServer
...
@@ -112,5 +112,14 @@ interface IServer
int sum_conf_array([size_is(n)] int x[], int n);
int sum_conf_array([size_is(n)] int x[], int n);
int sum_var_array([length_is(n)] int x[20], int n);
int sum_var_array([length_is(n)] int x[20], int n);
int dot_two_vectors(vector_t vs[2]);
int dot_two_vectors(vector_t vs[2]);
typedef struct
{
int n;
[size_is(n)] int ca[];
} cs_t;
int sum_cs(cs_t *cs);
void stop(void);
void stop(void);
}
}
tools/widl/typegen.c
View file @
8f689ee0
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