Alexandre Julliard : widl: Skip local functions when building format strings.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Jan 25 06:12:08 CST 2007


Module: wine
Branch: master
Commit: 8e3c5c9ab927536fd1f479825ddde29cb66eaa73
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=8e3c5c9ab927536fd1f479825ddde29cb66eaa73

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Wed Jan 24 20:06:51 2007 +0100

widl: Skip local functions when building format strings.

---

 tools/widl/typegen.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c
index ac3ab94..936812d 100644
--- a/tools/widl/typegen.c
+++ b/tools/widl/typegen.c
@@ -283,6 +283,7 @@ void write_procformatstring(FILE *file,
             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 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 i
         {
             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 )




More information about the wine-cvs mailing list