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
e7495555
Commit
e7495555
authored
May 09, 2007
by
Dan Hipschman
Committed by
Alexandre Julliard
May 10, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Remove redundant get_var_vt function.
parent
933ca7b1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
18 deletions
+3
-18
typelib.c
tools/widl/typelib.c
+0
-14
typelib.h
tools/widl/typelib.h
+0
-1
write_msft.c
tools/widl/write_msft.c
+3
-3
No files found.
tools/widl/typelib.c
View file @
e7495555
...
@@ -212,20 +212,6 @@ unsigned short get_type_vt(type_t *t)
...
@@ -212,20 +212,6 @@ unsigned short get_type_vt(type_t *t)
return
0
;
return
0
;
}
}
unsigned
short
get_var_vt
(
var_t
*
v
)
{
unsigned
short
vt
;
const
char
*
tname
=
v
->
type
->
name
;
chat
(
"get_var_vt: var %p type->name %s
\n
"
,
v
,
tname
?
tname
:
"NULL"
);
if
(
tname
)
{
vt
=
builtin_vt
(
tname
);
if
(
vt
)
return
vt
;
}
return
get_type_vt
(
v
->
type
);
}
void
start_typelib
(
char
*
name
,
attr_list_t
*
attrs
)
void
start_typelib
(
char
*
name
,
attr_list_t
*
attrs
)
{
{
in_typelib
++
;
in_typelib
++
;
...
...
tools/widl/typelib.h
View file @
e7495555
...
@@ -82,7 +82,6 @@ enum VARENUM {
...
@@ -82,7 +82,6 @@ enum VARENUM {
VT_TYPEMASK
=
0xfff
VT_TYPEMASK
=
0xfff
};
};
extern
unsigned
short
get_type_vt
(
type_t
*
t
);
extern
unsigned
short
get_type_vt
(
type_t
*
t
);
extern
unsigned
short
get_var_vt
(
var_t
*
v
);
extern
int
create_msft_typelib
(
typelib_t
*
typelib
);
extern
int
create_msft_typelib
(
typelib_t
*
typelib
);
#endif
#endif
tools/widl/write_msft.c
View file @
e7495555
...
@@ -1155,7 +1155,7 @@ static int encode_var(
...
@@ -1155,7 +1155,7 @@ static int encode_var(
}
}
dump_type
(
var
->
type
);
dump_type
(
var
->
type
);
vt
=
get_
var_vt
(
var
);
vt
=
get_
type_vt
(
var
->
type
);
type
=
var
->
type
;
type
=
var
->
type
;
while
(
!
vt
)
{
while
(
!
vt
)
{
if
(
type
->
ref
==
NULL
)
{
if
(
type
->
ref
==
NULL
)
{
...
@@ -1445,7 +1445,7 @@ static HRESULT add_func_desc(msft_typeinfo_t* typeinfo, const func_t *func, int
...
@@ -1445,7 +1445,7 @@ static HRESULT add_func_desc(msft_typeinfo_t* typeinfo, const func_t *func, int
if
(
arg
->
type
->
type
==
RPC_FC_ENUM16
)
if
(
arg
->
type
->
type
==
RPC_FC_ENUM16
)
vt
=
VT_INT
;
vt
=
VT_INT
;
else
else
vt
=
get_
var_vt
(
arg
);
vt
=
get_
type_vt
(
arg
->
type
);
paramflags
|=
0x30
;
/* PARAMFLAG_FHASDEFAULT | PARAMFLAG_FOPT */
paramflags
|=
0x30
;
/* PARAMFLAG_FHASDEFAULT | PARAMFLAG_FOPT */
chat
(
"default value %ld
\n
"
,
expr
->
cval
);
chat
(
"default value %ld
\n
"
,
expr
->
cval
);
write_value
(
typeinfo
->
typelib
,
defaultdata
,
vt
,
&
expr
->
cval
);
write_value
(
typeinfo
->
typelib
,
defaultdata
,
vt
,
&
expr
->
cval
);
...
@@ -1458,7 +1458,7 @@ static HRESULT add_func_desc(msft_typeinfo_t* typeinfo, const func_t *func, int
...
@@ -1458,7 +1458,7 @@ static HRESULT add_func_desc(msft_typeinfo_t* typeinfo, const func_t *func, int
if
(
arg
->
type
->
type
==
RPC_FC_ENUM16
)
if
(
arg
->
type
->
type
==
RPC_FC_ENUM16
)
vt
=
VT_INT
;
vt
=
VT_INT
;
else
else
vt
=
get_
var_vt
(
arg
);
vt
=
get_
type_vt
(
arg
->
type
);
paramflags
|=
0x30
;
/* PARAMFLAG_FHASDEFAULT | PARAMFLAG_FOPT */
paramflags
|=
0x30
;
/* PARAMFLAG_FHASDEFAULT | PARAMFLAG_FOPT */
chat
(
"default value '%s'
\n
"
,
s
);
chat
(
"default value '%s'
\n
"
,
s
);
write_value
(
typeinfo
->
typelib
,
defaultdata
,
vt
,
s
);
write_value
(
typeinfo
->
typelib
,
defaultdata
,
vt
,
s
);
...
...
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