Rob Shearman : widl: Make the attrs parameter passed to start_typelib const .

Alexandre Julliard julliard at winehq.org
Mon Apr 14 07:14:28 CDT 2008


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

Author: Rob Shearman <rob at codeweavers.com>
Date:   Mon Apr 14 10:59:35 2008 +0100

widl: Make the attrs parameter passed to start_typelib const.

---

 tools/widl/typelib.c   |    2 +-
 tools/widl/typelib.h   |    2 +-
 tools/widl/widltypes.h |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/tools/widl/typelib.c b/tools/widl/typelib.c
index 100ae89..ac2815c 100644
--- a/tools/widl/typelib.c
+++ b/tools/widl/typelib.c
@@ -241,7 +241,7 @@ unsigned short get_type_vt(type_t *t)
   return 0;
 }
 
-void start_typelib(char *name, attr_list_t *attrs)
+void start_typelib(char *name, const attr_list_t *attrs)
 {
     in_typelib++;
     if (!do_typelib) return;
diff --git a/tools/widl/typelib.h b/tools/widl/typelib.h
index b17387d..9dce14a 100644
--- a/tools/widl/typelib.h
+++ b/tools/widl/typelib.h
@@ -22,7 +22,7 @@
 #define __WIDL_TYPELIB_H
 
 extern int in_typelib;
-extern void start_typelib(char *name, attr_list_t *attrs);
+extern void start_typelib(char *name, const attr_list_t *attrs);
 extern void end_typelib(void);
 extern void add_typelib_entry(type_t *t);
 extern void add_importlib(const char *name);
diff --git a/tools/widl/widltypes.h b/tools/widl/widltypes.h
index 259049e..3488337 100644
--- a/tools/widl/widltypes.h
+++ b/tools/widl/widltypes.h
@@ -307,7 +307,7 @@ struct _importlib_t {
 struct _typelib_t {
     char *name;
     char *filename;
-    attr_list_t *attrs;
+    const attr_list_t *attrs;
     struct list entries;
     struct list importlibs;
 };




More information about the wine-cvs mailing list