This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Does gcc-2.95 support such function?
- From: "mike xu" <clumsguy at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 13 Mar 2007 11:28:10 +0800
- Subject: Re: Does gcc-2.95 support such function?
- References: <7103aeea0703122022k2d050e55n5ed17f539af923be@mail.gmail.com>
Hello,
I want to use gcc to collect all the parameter's value used by one
function in all my source code during compile time. But I am not sure
of that gcc supports this or not?
Below is an example:
$grep ConfigGetParam * -r
src/addon_util.c:789: ConfigGetParam("T1", chParamValue,
CONFIG_MAXPARAMLENGTH);
src/bdgporttable.c:128: ConfigGetParam(Name, tempBuf, CONFIG_MAXPARAMLENGTH);
src/agent.c:2534: ConfigStatus = ConfigGetParam("SNMP",
oBuffer, MAX_MAXPARAMLENGTH);
...
The result I expected is a list of the values of ConfigGetParam
function's first parameter, if src/bdgporttable.c:128: Name="WHOAMI",
then the list is:
"T1"
"WHOAMI"
"SNMP"
...
Does gcc have such feature? If it supports, which parameter I shall
assign to gcc during compile time?
Thanks a lot,
Mike