<P>I have tested this using the dump translation unit option from gcc3,
<P>it also does not dump the parameters if they are a function pointer,
<P>in fact the function_type has no parameters at all. This is a omission from the tree dumper, and the introspector uses it, so there would be no handling of that either :(
<P>int g( <BR> int status, <BR> int callback_data <BR> );
<P>int f( <BR> void (*callback_addr)(int status, int callback_data), <BR> ); <BR>
<P>Command :
<P>/lib/gcc-lib/i686-pc-cygwin/3.1.1/cc1 -fdump-translation-unit test.c
<P>Produces for F:
<P>@1 function_decl name: @2 type: @3 srcp: test.c:8 <BR> chan: @4 undefined extern </P>
<P>@2 identifier_node strg: f lngt: 1 <BR>@3 function_type size: @5 algn: 64 retn: @6 </P>
<P>and for G:
<P>@4 function_decl name: @7 type: @8 srcp: test.c:4 <BR> chan: @9 undefined extern <BR>@5 integer_cst type: @10 low : 64 <BR>@6 integer_type name: @11 size: @12 algn: 32 <BR> prec: 32 min : @13 max : @14 <BR>@7 identifier_node strg: g lngt: 1 <BR>@8 function_type size: @5 algn: 64 retn: @6 <BR> prms: @15 <BR>@15 tree_list valu: @6 chan: @23 </P>
<P>@23 tree_list valu: @6 chan: @31 </P>
<P>@31 tree_list valu: @39 </P>
<P>@39 void_type name: @47 algn: 8 </P>
<P> <B><I>Brad King <BRAD.KING@KITWARE.COM></I></B>wrote:
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Kevin,<BR><BR>> Why is this the body of some Method elements and not others and what<BR>> exactly is omitted?<BR><BR>The elements nested inside function and method elements are the arguments<BR>to the method. If the method is declared with an ellipsis (the ...<BR>argument), the ellipsis element represents it.<BR><BR>For example:<BR><BR>void Function(...);<BR><BR>produces<BR><BR><FUNCTION id=_2 name="Function" <br>returns="_3" context="_1"<BR>location="f0:1" extern="1"><BR><ELLIPSIS /><BR></BLOCKQUOTE><BR><BR>James Michael DuPont<br>http://introspector.sourceforge.net/<p><br><hr size=1><b>Do You Yahoo!?</b><br>
<a href="http://rd.yahoo.com/careers/mailsig/new/*http://www.hotjobs.com">HotJobs, a Yahoo! service</a> - Search Thousands of New Jobs