[GCC-XML]Function args
Christian Boos
cboos at bct-technology.com
Wed Sep 11 03:17:50 EDT 2002
Hello,
Late answer but ...
> -----Original Message-----
> From: gccxml-admin at www.gccxml.org [mailto:gccxml-admin at www.gccxml.org]On
> Behalf Of kevin j. miles
> Sent: Tuesday, September 10, 2002 10:25 PM
> To: gccxml at www.gccxml.org
> Subject: [GCC-XML]Function args
>
>
> c++ code:
>
> void Read_Time_Int (long unsigned int *upper_rtc, long unsigned int
> *lower_rtc);
>
>
In the same situation, what I do is simply to add an extra step of
preprocessing, replacing all function declarations by
(dummy) function definitions:
In your example:
void Read_Time_Int (long unsigned int *upper_rtc, long unsigned int
*lower_rtc) {}
gccxml:
<?xml version="1.0"?>
<GCC_XML>
<Namespace id="_1" name="::" members="_2 "/>
<Function id="_2" name="Read_Time_Int" returns="_3" context="_1"
location="f0:2">
<Argument name="upper_rtc" type="_4"/>
<Argument name="lower_rtc" type="_4"/>
</Function>
<FundamentalType id="_3" name="void"/>
<PointerType id="_4" type="_5"/>
<FundamentalType id="_5" name="long unsigned int"/>
<File id="f0" name="gccxml.cpp"/>
</GCC_XML>
Hope this helps,
-- Christian
More information about the gccxml
mailing list