Commit dd68561c authored by Alexandre Julliard's avatar Alexandre Julliard

widl: Fix method number for call_as functions.

parent 53bb4117
...@@ -34,6 +34,7 @@ extern int needs_space_after(type_t *t); ...@@ -34,6 +34,7 @@ extern int needs_space_after(type_t *t);
extern int is_object(const type_t *iface); extern int is_object(const type_t *iface);
extern int is_local(const attr_list_t *list); extern int is_local(const attr_list_t *list);
extern int count_methods(const type_t *iface); 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_stub(const type_t *iface);
extern int need_proxy(const type_t *iface); extern int need_proxy(const type_t *iface);
extern int need_inline_stubs(const type_t *iface); extern int need_inline_stubs(const type_t *iface);
......
...@@ -464,7 +464,7 @@ int count_methods(const type_t *iface) ...@@ -464,7 +464,7 @@ int count_methods(const type_t *iface)
return count; 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; const statement_t * source;
STATEMENTS_FOR_EACH_FUNC( source, type_iface_get_stmts(iface)) { 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, ...@@ -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)) STATEMENTS_FOR_EACH_FUNC(stmt, type_iface_get_stmts(iface))
{ {
var_t *func = stmt->u.var; 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++ ); write_procformatstring_func( file, indent, iface, func, offset, count++ );
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment