widl: Fix method number for call_as functions.
This commit is contained in:
parent
53bb4117ac
commit
dd68561c4a
3 changed files with 7 additions and 2 deletions
|
@ -34,6 +34,7 @@ extern int needs_space_after(type_t *t);
|
|||
extern int is_object(const type_t *iface);
|
||||
extern int is_local(const attr_list_t *list);
|
||||
extern int count_methods(const type_t *iface);
|
||||
extern const statement_t * get_callas_source(const type_t *iface, const var_t *def);
|
||||
extern int need_stub(const type_t *iface);
|
||||
extern int need_proxy(const type_t *iface);
|
||||
extern int need_inline_stubs(const type_t *iface);
|
||||
|
|
|
@ -464,7 +464,7 @@ int count_methods(const type_t *iface)
|
|||
return count;
|
||||
}
|
||||
|
||||
static const statement_t * get_callas_source(const type_t * iface, const var_t * def)
|
||||
const statement_t *get_callas_source(const type_t *iface, const var_t *def)
|
||||
{
|
||||
const statement_t * source;
|
||||
STATEMENTS_FOR_EACH_FUNC( source, type_iface_get_stmts(iface)) {
|
||||
|
|
|
@ -1598,7 +1598,11 @@ static void write_iface_procformatstring(type_t *iface, FILE *file, int indent,
|
|||
STATEMENTS_FOR_EACH_FUNC(stmt, type_iface_get_stmts(iface))
|
||||
{
|
||||
var_t *func = stmt->u.var;
|
||||
if (is_local(func->attrs)) continue;
|
||||
if (is_local(func->attrs))
|
||||
{
|
||||
if (!get_callas_source(iface, func)) count++;
|
||||
continue;
|
||||
}
|
||||
write_procformatstring_func( file, indent, iface, func, offset, count++ );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue