Re: Does gcc-2.95 support such function?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux