2005-05-03 Mike Kestner <mkestner@novell.com>

* parser/gapi2xml.pl : parse const * const * Foo () properly.
	[Fixes #74710]

svn path=/trunk/gtk-sharp/; revision=43925
This commit is contained in:
Mike Kestner 2005-05-03 13:59:25 +00:00
parent b7e4cc507e
commit f0f47bf078
3 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2005-05-03 Mike Kestner <mkestner@novell.com>
* parser/gapi2xml.pl : parse const * const * Foo () properly.
[Fixes #74710]
2005-05-02 Dan Winship <danw@novell.com> 2005-05-02 Dan Winship <danw@novell.com>
* generator/Parameters.cs (IsHidden): method to check if a * generator/Parameters.cs (IsHidden): method to check if a

View File

@ -2131,10 +2131,10 @@
<property name="Logo" cname="logo" type="GdkPixbuf" readable="true" writeable="true" /> <property name="Logo" cname="logo" type="GdkPixbuf" readable="true" writeable="true" />
<property name="LogoIconName" cname="logo_icon_name" type="gchar*" readable="true" writeable="true" /> <property name="LogoIconName" cname="logo_icon_name" type="gchar*" readable="true" writeable="true" />
<method name="GetArtists" cname="gtk_about_dialog_get_artists"> <method name="GetArtists" cname="gtk_about_dialog_get_artists">
<return-type type="const-gchar*const-*" /> <return-type type="const-gchar**" />
</method> </method>
<method name="GetAuthors" cname="gtk_about_dialog_get_authors"> <method name="GetAuthors" cname="gtk_about_dialog_get_authors">
<return-type type="const-gchar*const-*" /> <return-type type="const-gchar**" />
</method> </method>
<method name="GetComments" cname="gtk_about_dialog_get_comments"> <method name="GetComments" cname="gtk_about_dialog_get_comments">
<return-type type="const-gchar*" /> <return-type type="const-gchar*" />
@ -2143,7 +2143,7 @@
<return-type type="const-gchar*" /> <return-type type="const-gchar*" />
</method> </method>
<method name="GetDocumenters" cname="gtk_about_dialog_get_documenters"> <method name="GetDocumenters" cname="gtk_about_dialog_get_documenters">
<return-type type="const-gchar*const-*" /> <return-type type="const-gchar**" />
</method> </method>
<method name="GetLicense" cname="gtk_about_dialog_get_license"> <method name="GetLicense" cname="gtk_about_dialog_get_license">
<return-type type="const-gchar*" /> <return-type type="const-gchar*" />

View File

@ -805,6 +805,7 @@ sub addReturnElem
$ret =~ s/const|G_CONST_RETURN/const-/g; $ret =~ s/const|G_CONST_RETURN/const-/g;
$ret =~ s/\s+//g; $ret =~ s/\s+//g;
$ret =~ s/(const-)?(\w+)\*(const-)\*/const-\2\*\*/g;
my $ret_elem = $doc->createElement('return-type'); my $ret_elem = $doc->createElement('return-type');
$parent->appendChild($ret_elem); $parent->appendChild($ret_elem);
$ret_elem->setAttribute('type', $ret); $ret_elem->setAttribute('type', $ret);