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
e809f0bd
Commit
e809f0bd
authored
Mar 19, 2014
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Mar 19, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Move is_ptr() and is_array() to header.h and make them inline.
parent
84e8d189
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
13 deletions
+10
-13
header.h
tools/widl/header.h
+10
-0
typelib.c
tools/widl/typelib.c
+0
-10
widltypes.h
tools/widl/widltypes.h
+0
-3
No files found.
tools/widl/header.h
View file @
e809f0bd
...
...
@@ -58,6 +58,16 @@ extern const var_t *get_func_handle_var( const type_t *iface, const var_t *func,
extern
int
has_out_arg_or_return
(
const
var_t
*
func
);
extern
int
is_const_decl
(
const
var_t
*
var
);
static
inline
int
is_ptr
(
const
type_t
*
t
)
{
return
type_get_type
(
t
)
==
TYPE_POINTER
;
}
static
inline
int
is_array
(
const
type_t
*
t
)
{
return
type_get_type
(
t
)
==
TYPE_ARRAY
;
}
static
inline
int
last_ptr
(
const
type_t
*
type
)
{
return
is_ptr
(
type
)
&&
!
is_declptr
(
type_pointer_get_ref
(
type
));
...
...
tools/widl/typelib.c
View file @
e809f0bd
...
...
@@ -49,16 +49,6 @@
static
typelib_t
*
typelib
;
int
is_ptr
(
const
type_t
*
t
)
{
return
type_get_type
(
t
)
==
TYPE_POINTER
;
}
int
is_array
(
const
type_t
*
t
)
{
return
type_get_type
(
t
)
==
TYPE_ARRAY
;
}
/* List of oleauto types that should be recognized by name.
* (most of) these seem to be intrinsic types in mktyplib.
* This table MUST be alphabetically sorted on the kw field.
...
...
tools/widl/widltypes.h
View file @
e809f0bd
...
...
@@ -544,9 +544,6 @@ type_t *alloc_type(void);
void
set_all_tfswrite
(
int
val
);
void
clear_all_offsets
(
void
);
int
is_ptr
(
const
type_t
*
t
);
int
is_array
(
const
type_t
*
t
);
#define tsENUM 1
#define tsSTRUCT 2
#define tsUNION 3
...
...
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