diff --git a/ChangeLog b/ChangeLog index 7e58c1677..151954209 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2003-12-04 Mike Kestner + + * parser/gapi2xml.pl : fix for const param handling [#50295] + 2003-12-03 Mike Kestner * generator/CallbackGen.cs : use new sig and isig classes. diff --git a/parser/gapi2xml.pl b/parser/gapi2xml.pl index 40d9763bd..7d35dcfd2 100755 --- a/parser/gapi2xml.pl +++ b/parser/gapi2xml.pl @@ -4,7 +4,7 @@ # # Author: Mike Kestner # -# 2001-2003 Mike Kestner +# 2001-2003 Mike Kestner, 2003 Novell, Inc. ############################################################## $debug=0; @@ -655,7 +655,7 @@ sub addParamsElem foreach $parm (@params) { $parm_num++; $parm =~ s/\s+(\*+)/\1 /g; - $parm =~ s/(\*+)\s*const/\1/g; + $parm =~ s/(\*+)\s*const\s+/\1 /g; $parm =~ s/const\s+/const-/g; if ($parm =~ /(.*)\(\s*\**\s*(\w+)\)\s+\((.*)\)/) { my $ret = $1; my $cbn = $2; my $params = $3;