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
_______________________________________________
Gtk-sharp-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Reply via email to