From 0cbff45649eabf5d828d803e459bd5509f243083 Mon Sep 17 00:00:00 2001 From: Mike Kestner Date: Fri, 30 Jul 2004 20:36:39 +0000 Subject: [PATCH] 2004-07-30 Mike Kestner * parser/gapi2xml.pl : char const * fixes for clahey's gsf binding. svn path=/trunk/gtk-sharp/; revision=31687 --- ChangeLog | 4 ++++ parser/gapi2xml.pl | 2 ++ 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 5ce3fa86a..83a431c6c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2004-07-30 Mike Kestner + + * parser/gapi2xml.pl : char const * fixes for clahey's gsf binding. + 2004-07-24 Mike Kestner * gdk/Gdk.metadata : hide Window.Destroy. diff --git a/parser/gapi2xml.pl b/parser/gapi2xml.pl index a28b7135c..3c98193c7 100755 --- a/parser/gapi2xml.pl +++ b/parser/gapi2xml.pl @@ -456,6 +456,7 @@ sub addFieldElems foreach $field (@fields) { next if ($field !~ /\S/); $field =~ s/\s+(\*+)/\1 /g; + $field =~ s/(\w+)\s+const /const \1 /g; $field =~ s/const /const\-/g; $field =~ s/struct /struct\-/g; $field =~ s/.*\*\///g; @@ -689,6 +690,7 @@ sub addParamsElem foreach $parm (@params) { $parm_num++; $parm =~ s/\s+(\*+)/\1 /g; + $parm =~ s/(\w+)\s+const /const \1 /g; $parm =~ s/(\*+)\s*const\s+/\1 /g; $parm =~ s/const\s+/const-/g; if ($parm =~ /(.*)\(\s*\**\s*(\w+)\)\s+\((.*)\)/) {