Dmitry Timoshkov : widl: Make the generated string pointers const as well.

Alexandre Julliard julliard at winehq.org
Tue Nov 11 08:35:38 CST 2008


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

Author: Dmitry Timoshkov <dmitry at codeweavers.com>
Date:   Tue Nov 11 13:06:43 2008 +0800

widl: Make the generated string pointers const as well.

---

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

diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c
index 5a6e592..775bef6 100644
--- a/tools/widl/typegen.c
+++ b/tools/widl/typegen.c
@@ -3348,7 +3348,7 @@ void write_endpoints( FILE *f, const char *prefix, const str_list_t *list )
     const char *p;
 
     /* this should be an array of RPC_PROTSEQ_ENDPOINT but we want const strings */
-    print_file( f, 0, "static const unsigned char * %s__RpcProtseqEndpoint[][2] =\n{\n", prefix );
+    print_file( f, 0, "static const unsigned char * const %s__RpcProtseqEndpoint[][2] =\n{\n", prefix );
     LIST_FOR_EACH_ENTRY( endpoint, list, const struct str_list_entry_t, entry )
     {
         print_file( f, 1, "{ (const unsigned char *)\"" );




More information about the wine-cvs mailing list