Author: mkestner
Date: 2006-08-10 11:06:05 -0400 (Thu, 10 Aug 2006)
New Revision: 63593
Modified:
trunk/gtk-sharp/ChangeLog
trunk/gtk-sharp/parser/gapi2xml.pl
Log:
2006-08-10 Mike Kestner <[EMAIL PROTECTED]>
* parser/gapi2xml.pl : class parsing regex needs to handle protected
comments too.
Modified: trunk/gtk-sharp/ChangeLog
===================================================================
--- trunk/gtk-sharp/ChangeLog 2006-08-10 14:51:50 UTC (rev 63592)
+++ trunk/gtk-sharp/ChangeLog 2006-08-10 15:06:05 UTC (rev 63593)
@@ -1,3 +1,8 @@
+2006-08-10 Mike Kestner <[EMAIL PROTECTED]>
+
+ * parser/gapi2xml.pl : class parsing regex needs to handle protected
+ comments too.
+
2006-08-07 Mike Kestner <[EMAIL PROTECTED]>
* gtk/Gtk.metadata : remainder of new API massaging for existing
Modified: trunk/gtk-sharp/parser/gapi2xml.pl
===================================================================
--- trunk/gtk-sharp/parser/gapi2xml.pl 2006-08-10 14:51:50 UTC (rev 63592)
+++ trunk/gtk-sharp/parser/gapi2xml.pl 2006-08-10 15:06:05 UTC (rev 63593)
@@ -970,13 +970,13 @@
return $class;
}
- if ($class =~ /;\s*(\/\*< public
>\*\/)?(G_CONST_RETURN\s+)?(\w+\s*\**)\s*\(\s*\*\s*$method\)\s*\((.*?)\);/) {
- $ret = $3; $parms = $4;
+ if ($class =~ /;\s*(\/\*< (public|protected)
>\s*\*\/)?(G_CONST_RETURN\s+)?(\w+\s*\**)\s*\(\s*\*\s*$method\)\s*\((.*?)\);/) {
+ $ret = $4; $parms = $5;
addReturnElem($sig_elem, $ret);
if ($parms && ($parms ne "void")) {
addParamsElem($sig_elem, split(/,/, $parms));
}
- $class =~ s/;\s*(\/\*< public
>\*\/)?(G_CONST_RETURN\s+)?\w+\s*\**\s*\(\s*\*\s*$method\)\s*\(.*?\);/;/;
+ $class =~ s/;\s*(\/\*< (public|protected)
>\s*\*\/)?(G_CONST_RETURN\s+)?\w+\s*\**\s*\(\s*\*\s*$method\)\s*\(.*?\);/;/;
} else {
die "$method $class";
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches