Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
06497dd4
Commit
06497dd4
authored
Aug 11, 2006
by
Dan Hipschman
Committed by
Alexandre Julliard
Aug 12, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Use ref_type to simplify some code.
parent
da44bfc0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
parser.y
tools/widl/parser.y
+1
-4
typegen.c
tools/widl/typegen.c
+1
-1
widltypes.h
tools/widl/widltypes.h
+3
-0
No files found.
tools/widl/parser.y
View file @
06497dd4
...
...
@@ -1235,10 +1235,7 @@ static unsigned char get_pointer_type( type_t *type )
int t;
if (is_attr( type->attrs, ATTR_STRING ))
{
type_t *t = type;
while( t->type == 0 && t->ref )
t = t->ref;
switch( t->type )
switch( ref_type( type ) )
{
case RPC_FC_CHAR:
return RPC_FC_C_CSTRING;
...
...
tools/widl/typegen.c
View file @
06497dd4
...
...
@@ -165,7 +165,7 @@ static inline int is_base_type(unsigned char type)
}
}
static
unsigned
char
ref_type
(
const
type_t
*
type
)
unsigned
char
ref_type
(
const
type_t
*
type
)
{
while
(
type_has_ref
(
type
))
type
=
type
->
ref
;
...
...
tools/widl/widltypes.h
View file @
06497dd4
...
...
@@ -297,4 +297,7 @@ struct _typelib_t {
importlib_t
*
importlibs
;
};
/* Get the actual type field for a type (chase down typedef references). */
unsigned
char
ref_type
(
const
type_t
*
type
);
#endif
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