[Gtk-sharp-list] gapi2-parser problem...
grim at reaperworld.com
Tue Sep 20 15:43:42 EDT 2005
-----BEGIN PGP SIGNED MESSAGE-----
Dan Winship wrote:
> Gary Kramlich wrote:
>> It seems I have quite a bit of code that gapi2-parser chokes on and
>> hit's an infinite loop.
> What version of gtk-sharp do you have? There have been various fixes
> throughout the 2.x series.
>> I was wondering if anyone knows of any way to
>> figure out the problematic code, so that gapi2-parser can actually
>> finish creating my raw api xml file.
> Three possibilities:
> 1. Add debugging print statements to gapi2xml.pl
> 2. Run gapi_pp.pl on the source files by hand first, and then run
> gapi2xml.pl by hand on the output, under the perl debugger
> (perl -d) and see where it's looping.
> 3. Add syntactically-incorrect lines to the source files (eg,
> START_OF_FOO_H, END_OF_FOO_H, START_OF_FOO_C, etc, each on a line
> by itself), which gapi2xml will print as it encounters them,
> because that's what it does with things it can't parse. Then
> when you figure out what file is causing the loop, add more lines
> to further narrow down the bad code. Beware that adding invalid
> lines might change the parser's behavior though, causing it to
> miss the bug.
> If the bug does still exist in the latest sources, please file a bug
> with a test case at bugzilla.ximian.com.
> -- Dan
It ended up being something with about 90% of my code that was in the C
files. So I changed the <dir> element in my sources.xml to
<file>*.h</file> and it was fine.
Gary Kramlich <grim at reaperworld.com>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the Gtk-sharp-list