Author: mkestner
Date: 2007-12-11 21:53:11 -0500 (Tue, 11 Dec 2007)
New Revision: 91136
Modified:
trunk/gtk-sharp/ChangeLog
trunk/gtk-sharp/parser/gapi2xml.pl
Log:
2007-12-11 Mike Kestner <[EMAIL PROTECTED]>
* parser/gapi2xml.pl: fix tightloop in single-line prop declarations.
Modified: trunk/gtk-sharp/ChangeLog
===================================================================
--- trunk/gtk-sharp/ChangeLog 2007-12-12 00:46:59 UTC (rev 91135)
+++ trunk/gtk-sharp/ChangeLog 2007-12-12 02:53:11 UTC (rev 91136)
@@ -1,3 +1,7 @@
+2007-12-11 Mike Kestner <[EMAIL PROTECTED]>
+
+ * parser/gapi2xml.pl: fix tightloop in single-line prop declarations.
+
2007-12-06 Mike Kestner <[EMAIL PROTECTED]>
* * : update to 2.12 API.
Modified: trunk/gtk-sharp/parser/gapi2xml.pl
===================================================================
--- trunk/gtk-sharp/parser/gapi2xml.pl 2007-12-12 00:46:59 UTC (rev 91135)
+++ trunk/gtk-sharp/parser/gapi2xml.pl 2007-12-12 02:53:11 UTC (rev 91136)
@@ -22,7 +22,7 @@
# Boston, MA 02111-1307, USA.
##############################################################
-$debug=0;
+$debug=$ENV{'GAPI_DEBUG'};
use XML::LibXML;
@@ -1035,9 +1035,9 @@
# FIXME: This ignores the bool helper macro thingie.
} elsif ($line =~ /g_object_(class|interface)_install_prop/) {
my $prop = $line;
- do {
+ while ($prop !~ /\)\s*;/) {
$prop .= $init_lines[++$linenum];
- } until ($init_lines[$linenum] =~ /\)\s*;/);
+ }
addPropElem ($prop, $obj_el, 0);
$propcnt++;
} elsif ($line =~ /gtk_container_class_install_child_property/)
{
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches