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
656de48e
Commit
656de48e
authored
Jan 08, 2009
by
Michael Karcher
Committed by
Alexandre Julliard
Jan 08, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Write struct fields as signed fields.
parent
5f788692
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 @
656de48e
...
...
@@ -1271,6 +1271,21 @@ static void write_user_tfs(FILE *file, type_t *type, unsigned int *tfsoff)
*
tfsoff
+=
2
;
}
static
unsigned
char
inline
make_signed
(
unsigned
char
fc
)
{
switch
(
fc
)
{
case
RPC_FC_USMALL
:
return
RPC_FC_SMALL
;
case
RPC_FC_USHORT
:
return
RPC_FC_SHORT
;
case
RPC_FC_ULONG
:
return
RPC_FC_LONG
;
default:
return
fc
;
}
}
static
void
write_member_type
(
FILE
*
file
,
const
type_t
*
cont
,
const
attr_list_t
*
attrs
,
const
type_t
*
type
,
unsigned
int
*
corroff
,
unsigned
int
*
tfsoff
)
...
...
@@ -1306,7 +1321,7 @@ static void write_member_type(FILE *file, const type_t *cont,
print_file
(
file
,
2
,
"0x%x,
\t
/* %s */
\n
"
,
fc
,
string_of_type
(
fc
));
*
tfsoff
+=
1
;
}
else
if
(
!
write_base_type
(
file
,
type
->
type
,
tfsoff
))
else
if
(
!
write_base_type
(
file
,
make_signed
(
type
->
type
)
,
tfsoff
))
error
(
"Unsupported member type 0x%x
\n
"
,
type
->
type
);
}
...
...
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