diff --git a/ChangeLog b/ChangeLog index 0a5792899..6fbdb275d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-08-23 Joe Shaw + + * parser/gapi2xml.pl: Handle "type const *" return types + as well. I think this is all of them! + 2005-08-23 Joe Shaw * parser/gapi2xml.pl: Fix a cut-and-paste error in handling diff --git a/parser/gapi2xml.pl b/parser/gapi2xml.pl index 1b09f0ba9..556a274a6 100755 --- a/parser/gapi2xml.pl +++ b/parser/gapi2xml.pl @@ -844,6 +844,7 @@ sub addReturnElem { my ($parent, $ret) = @_; + $ret =~ s/(\w+)\s+const\s*\*/const \1\*/g; $ret =~ s/const|G_CONST_RETURN/const-/g; $ret =~ s/\s+//g; $ret =~ s/(const-)?(\w+)\*(const-)\*/const-\2\*\*/g;