I would like to submit a patch to resolve this bug: http://bugzilla.ximian.com/show_bug.cgi?id=79444
The bug is situated in the gapi_pp.pl script. The parser looks for a '#define' when it encounters a '#ifndef'. However in some cases, it needs to search for '#endif' in stead of '#define'. This patch solves that issue.
Regards,
Bart Deleye
Index: parser/gapi_pp.pl
===================================================================
--- parser/gapi_pp.pl (revision 66910)
+++ parser/gapi_pp.pl (working copy)
@@ -82,7 +82,7 @@
} elsif ($line =~ /^extern/) {
while ($line !~ /;/) {$line = <INFILE>;}
} elsif ($line =~ /^#ifndef\s+\w+_H_*\b/) {
- while ($line !~ /#define/) {$line = <INFILE>;}
+ while ($line !~ /#define|#endif/) {$line = <INFILE>;}
} elsif ($line =~ /$private_regex/) {
$nested = 0;
while ($line = <INFILE>) {
_______________________________________________ Gtk-sharp-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
