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
c08e00a9
Commit
c08e00a9
authored
Jan 31, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
Jan 31, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Implement constant conformance.
parent
35d1347c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
typegen.c
tools/widl/typegen.c
+16
-1
No files found.
tools/widl/typegen.c
View file @
c08e00a9
...
...
@@ -296,6 +296,21 @@ static size_t write_conf_or_var_desc(FILE *file, const func_t *func, const type_
if
(
!
file
)
return
4
;
/* optimisation for sizing pass */
if
(
expr
->
is_const
)
{
if
(
expr
->
cval
>
UCHAR_MAX
*
(
USHRT_MAX
+
1
)
+
USHRT_MAX
)
error
(
"write_conf_or_var_desc: constant value %ld is greater than "
"the maximum constant size of %d
\n
"
,
expr
->
cval
,
UCHAR_MAX
*
(
USHRT_MAX
+
1
)
+
USHRT_MAX
);
print_file
(
file
,
2
,
"0x%x, /* Corr desc: constant, val = %ld */
\n
"
,
RPC_FC_CONSTANT_CONFORMANCE
,
expr
->
cval
);
print_file
(
file
,
2
,
"0x%x,
\n
"
,
expr
->
cval
&
~
USHRT_MAX
);
print_file
(
file
,
2
,
"NdrShort(0x%x),
\n
"
,
expr
->
cval
&
USHRT_MAX
);
return
4
;
}
switch
(
subexpr
->
type
)
{
case
EXPR_PPTR
:
...
...
@@ -466,7 +481,7 @@ static size_t write_conf_or_var_desc(FILE *file, const func_t *func, const type_
}
else
{
error
(
"write_conf_or_var_desc:
expression type %d
\n
"
,
subexpr
->
type
);
error
(
"write_conf_or_var_desc:
top-level callback conformance unimplemented
\n
"
);
correlation_type
=
RPC_FC_TOP_LEVEL_CONFORMANCE
;
}
...
...
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