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
bb3275ce
Commit
bb3275ce
authored
Sep 24, 2007
by
Dan Hipschman
Committed by
Alexandre Julliard
Sep 25, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Clean up write_conf_or_var_desc with string_of_type.
parent
2b5376cb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
14 deletions
+1
-14
typegen.c
tools/widl/typegen.c
+1
-14
No files found.
tools/widl/typegen.c
View file @
bb3275ce
...
@@ -575,7 +575,6 @@ static size_t write_conf_or_var_desc(FILE *file, const type_t *structure,
...
@@ -575,7 +575,6 @@ static size_t write_conf_or_var_desc(FILE *file, const type_t *structure,
const
type_t
*
correlation_variable
=
NULL
;
const
type_t
*
correlation_variable
=
NULL
;
unsigned
char
correlation_variable_type
;
unsigned
char
correlation_variable_type
;
unsigned
char
param_type
=
0
;
unsigned
char
param_type
=
0
;
const
char
*
param_type_string
=
NULL
;
size_t
offset
=
0
;
size_t
offset
=
0
;
const
var_t
*
var
;
const
var_t
*
var
;
...
@@ -602,46 +601,34 @@ static size_t write_conf_or_var_desc(FILE *file, const type_t *structure,
...
@@ -602,46 +601,34 @@ static size_t write_conf_or_var_desc(FILE *file, const type_t *structure,
case
RPC_FC_CHAR
:
case
RPC_FC_CHAR
:
case
RPC_FC_SMALL
:
case
RPC_FC_SMALL
:
param_type
=
RPC_FC_SMALL
;
param_type
=
RPC_FC_SMALL
;
param_type_string
=
"FC_SMALL"
;
break
;
break
;
case
RPC_FC_BYTE
:
case
RPC_FC_BYTE
:
case
RPC_FC_USMALL
:
case
RPC_FC_USMALL
:
param_type
=
RPC_FC_USMALL
;
param_type
=
RPC_FC_USMALL
;
param_type_string
=
"FC_USMALL"
;
break
;
break
;
case
RPC_FC_WCHAR
:
case
RPC_FC_WCHAR
:
case
RPC_FC_SHORT
:
case
RPC_FC_SHORT
:
case
RPC_FC_ENUM16
:
case
RPC_FC_ENUM16
:
param_type
=
RPC_FC_SHORT
;
param_type
=
RPC_FC_SHORT
;
param_type_string
=
"FC_SHORT"
;
break
;
break
;
case
RPC_FC_USHORT
:
case
RPC_FC_USHORT
:
param_type
=
RPC_FC_USHORT
;
param_type
=
RPC_FC_USHORT
;
param_type_string
=
"FC_USHORT"
;
break
;
break
;
case
RPC_FC_LONG
:
case
RPC_FC_LONG
:
case
RPC_FC_ENUM32
:
case
RPC_FC_ENUM32
:
param_type
=
RPC_FC_LONG
;
param_type
=
RPC_FC_LONG
;
param_type_string
=
"FC_LONG"
;
break
;
break
;
case
RPC_FC_ULONG
:
case
RPC_FC_ULONG
:
param_type
=
RPC_FC_ULONG
;
param_type
=
RPC_FC_ULONG
;
param_type_string
=
"FC_ULONG"
;
break
;
break
;
case
RPC_FC_RP
:
case
RPC_FC_RP
:
case
RPC_FC_UP
:
case
RPC_FC_UP
:
case
RPC_FC_OP
:
case
RPC_FC_OP
:
case
RPC_FC_FP
:
case
RPC_FC_FP
:
if
(
sizeof
(
void
*
)
==
4
)
/* FIXME */
if
(
sizeof
(
void
*
)
==
4
)
/* FIXME */
{
param_type
=
RPC_FC_LONG
;
param_type
=
RPC_FC_LONG
;
param_type_string
=
"FC_LONG"
;
}
else
else
{
param_type
=
RPC_FC_HYPER
;
param_type
=
RPC_FC_HYPER
;
param_type_string
=
"FC_HYPER"
;
}
break
;
break
;
default:
default:
error
(
"write_conf_or_var_desc: conformance variable type not supported 0x%x
\n
"
,
error
(
"write_conf_or_var_desc: conformance variable type not supported 0x%x
\n
"
,
...
@@ -649,7 +636,7 @@ static size_t write_conf_or_var_desc(FILE *file, const type_t *structure,
...
@@ -649,7 +636,7 @@ static size_t write_conf_or_var_desc(FILE *file, const type_t *structure,
}
}
print_file
(
file
,
2
,
"0x%x, /* Corr desc: %s */
\n
"
,
print_file
(
file
,
2
,
"0x%x, /* Corr desc: %s */
\n
"
,
RPC_FC_NORMAL_CONFORMANCE
|
param_type
,
param_type_string
);
RPC_FC_NORMAL_CONFORMANCE
|
param_type
,
string_of_type
(
param_type
)
);
print_file
(
file
,
2
,
"0x%x, /* %s */
\n
"
,
operator_type
,
operator_string
);
print_file
(
file
,
2
,
"0x%x, /* %s */
\n
"
,
operator_type
,
operator_string
);
print_file
(
file
,
2
,
"NdrFcShort(0x%x), /* offset = %d */
\n
"
,
print_file
(
file
,
2
,
"NdrFcShort(0x%x), /* offset = %d */
\n
"
,
offset
,
offset
);
offset
,
offset
);
...
...
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