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
c4182260
Commit
c4182260
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: Changes to output for better debugability.
Write the offset and the absolute address for referenced types. Write the current offset out when writing a pointer type.
parent
1478ac85
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
typegen.c
tools/widl/typegen.c
+8
-4
No files found.
tools/widl/typegen.c
View file @
c4182260
...
...
@@ -842,9 +842,10 @@ static size_t write_struct_tfs(FILE *file, const type_t *type,
/* total size */
print_file
(
file
,
2
,
"NdrShort(0x%x), /* %u */
\n
"
,
total_size
,
total_size
);
*
typestring_offset
+=
4
;
print_file
(
file
,
2
,
"NdrShort(0x%x), /*
%d
*/
\n
"
,
print_file
(
file
,
2
,
"NdrShort(0x%x), /*
offset = %d (%u)
*/
\n
"
,
array_offset
-
*
typestring_offset
,
array_offset
-
*
typestring_offset
);
array_offset
-
*
typestring_offset
,
array_offset
);
*
typestring_offset
+=
2
;
print_file
(
file
,
2
,
"FC_END,
\n
"
);
*
typestring_offset
+=
1
;
...
...
@@ -876,9 +877,10 @@ static size_t write_struct_tfs(FILE *file, const type_t *type,
/* total size */
print_file
(
file
,
2
,
"NdrShort(0x%x), /* %u */
\n
"
,
total_size
,
total_size
);
*
typestring_offset
+=
4
;
print_file
(
file
,
2
,
"NdrShort(0x%x), /* %d */
\n
"
,
print_file
(
file
,
2
,
"NdrShort(0x%x), /* offset = %d (%u) */
\n
"
,
array_offset
-
*
typestring_offset
,
array_offset
-
*
typestring_offset
,
array_offset
-
*
typestring_offset
);
array_offset
);
*
typestring_offset
+=
2
;
print_file
(
file
,
2
,
"FC_END,
\n
"
);
*
typestring_offset
+=
1
;
...
...
@@ -992,6 +994,8 @@ static size_t write_typeformatstring_var(FILE *file, int indent,
pointer_type
=
get_attrv
(
var
->
attrs
,
ATTR_POINTERTYPE
);
if
(
!
pointer_type
)
pointer_type
=
RPC_FC_RP
;
if
(
file
)
fprintf
(
file
,
"/* %2u */
\n
"
,
*
typeformat_offset
);
print_file
(
file
,
indent
,
"0x%x, 0x00, /* %s */
\n
"
,
pointer_type
,
pointer_type
==
RPC_FC_FP
?
"FC_FP"
:
(
pointer_type
==
RPC_FC_UP
?
"FC_UP"
:
"FC_RP"
));
...
...
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