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
417a61fa
Commit
417a61fa
authored
Feb 07, 2006
by
Eric Kohl
Committed by
Alexandre Julliard
Feb 07, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Fix proc format string for explicit binding handles.
parent
8d7fa4c0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
9 deletions
+18
-9
typegen.c
tools/widl/typegen.c
+18
-9
No files found.
tools/widl/typegen.c
View file @
417a61fa
...
...
@@ -156,6 +156,7 @@ static inline int is_base_type(unsigned char type)
case
RPC_FC_ENUM16
:
case
RPC_FC_ENUM32
:
case
RPC_FC_ERROR_STATUS_T
:
case
RPC_FC_BIND_PRIMITIVE
:
return
TRUE
;
default:
...
...
@@ -208,6 +209,12 @@ static size_t write_procformatstring_var(FILE *file, int indent,
CASE_BASETYPE
(
FC_DOUBLE
);
CASE_BASETYPE
(
FC_ERROR_STATUS_T
);
#undef CASE_BASETYPE
case
RPC_FC_BIND_PRIMITIVE
:
print_file
(
file
,
indent
,
"0x%02x, /* FC_IGNORE */
\n
"
,
RPC_FC_IGNORE
);
size
=
2
;
/* includes param type prefix */
break
;
default:
error
(
"Unknown/unsupported type: %s (0x%02x)
\n
"
,
var
->
name
,
type
->
type
);
size
=
0
;
...
...
@@ -1003,7 +1010,7 @@ static size_t write_struct_tfs(FILE *file, const type_t *type,
array
=
find_array_or_string_in_struct
(
type
);
current_structure
=
type
;
array_offset
=
write_array_tfs
(
file
,
array
->
attrs
,
array
->
type
,
array_offset
=
write_array_tfs
(
file
,
array
->
attrs
,
array
->
type
,
array
->
array
,
array
->
name
,
typestring_offset
);
current_structure
=
NULL
;
...
...
@@ -1461,6 +1468,11 @@ void marshall_arguments(FILE *file, int indent, func_t *func,
alignment
=
(
4
-
last_size
);
break
;
case
RPC_FC_IGNORE
:
case
RPC_FC_BIND_PRIMITIVE
:
/* no marshalling needed */
continue
;
default:
error
(
"marshall_arguments: Unsupported type: %s (0x%02x, ptr_level: 0)
\n
"
,
var
->
name
,
var
->
type
->
type
);
size
=
0
;
...
...
@@ -1499,10 +1511,6 @@ void marshall_arguments(FILE *file, int indent, func_t *func,
case
RPC_FC_BOGUS_STRUCT
:
ndrtype
=
"ComplexStruct"
;
break
;
case
RPC_FC_IGNORE
:
case
RPC_FC_BIND_PRIMITIVE
:
/* no marshalling needed */
continue
;
default:
error
(
"marshall_arguments: Unsupported type: %s (0x%02x, ptr_level: %d)
\n
"
,
var
->
name
,
var
->
type
->
type
,
var
->
ptr_level
);
...
...
@@ -1636,6 +1644,11 @@ void unmarshall_arguments(FILE *file, int indent, func_t *func,
alignment
=
(
4
-
last_size
);
break
;
case
RPC_FC_IGNORE
:
case
RPC_FC_BIND_PRIMITIVE
:
/* no unmarshalling needed */
continue
;
default:
error
(
"unmarshall_arguments: Unsupported type: %s (0x%02x, ptr_level: 0)
\n
"
,
var
->
name
,
var
->
type
->
type
);
size
=
0
;
...
...
@@ -1674,10 +1687,6 @@ void unmarshall_arguments(FILE *file, int indent, func_t *func,
case
RPC_FC_BOGUS_STRUCT
:
ndrtype
=
"ComplexStruct"
;
break
;
case
RPC_FC_IGNORE
:
case
RPC_FC_BIND_PRIMITIVE
:
/* no unmarshalling needed */
continue
;
default:
error
(
"unmarshall_arguments: Unsupported type: %s (0x%02x, ptr_level: %d)
\n
"
,
var
->
name
,
var
->
type
->
type
,
var
->
ptr_level
);
...
...
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