From 8e3c5c9ab927536fd1f479825ddde29cb66eaa73 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 24 Jan 2007 20:06:51 +0100 Subject: [PATCH] widl: Skip local functions when building format strings. --- tools/widl/typegen.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c index ac3ab945ab1..936812db63e 100644 --- a/tools/widl/typegen.c +++ b/tools/widl/typegen.c @@ -283,6 +283,7 @@ void write_procformatstring(FILE *file, const ifref_list_t *ifaces, int for_obje const func_t *func; LIST_FOR_EACH_ENTRY( func, iface->iface->funcs, const func_t, entry ) { + if (is_local(func->def->attrs)) continue; /* emit argument data */ if (func->args) { @@ -1473,6 +1474,7 @@ void write_typeformatstring(FILE *file, const ifref_list_t *ifaces, int for_obje const func_t *func; LIST_FOR_EACH_ENTRY( func, iface->iface->funcs, const func_t, entry ) { + if (is_local(func->def->attrs)) continue; current_func = func; if (func->args) LIST_FOR_EACH_ENTRY( var, func->args, const var_t, entry ) @@ -2032,6 +2034,7 @@ size_t get_size_typeformatstring(const ifref_list_t *ifaces, int for_objects) { LIST_FOR_EACH_ENTRY( func, iface->iface->funcs, const func_t, entry ) { + if (is_local(func->def->attrs)) continue; /* argument list size */ if (func->args) LIST_FOR_EACH_ENTRY( var, func->args, const var_t, entry )