Click here to get back home

Looking for a utility that lists all the functions under a preprocessing directive in a C++ file .

 HomeNewsGroups | Search | About
 comp.lang.perl.misc    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Looking for a utility that lists all the functions under a preprocessing directive in a C++ file . Avi 04-18-2008
Posted by Avi on April 18, 2008, 4:24 pm
Please log in for more thread options
I'm looking for a utility that will scan a C++ file and list all the
functions under a preprocessing directive.

In the example code below:
Upon request to list all the files under the preprocessing directive
AAA
the utiltiy should report
foo1
foo2

Upon request to list all the files under the preprocessing directive
BBB
the utiltiy should report
foo3

Thanks,
Avi

main()
{
}

#ifdef AAA

foo1()
{
}

foo2()
{
}

#endif

#ifdef BBB

foo3()
{
}

#endif

-----------------------------------------------------------




Posted by Keith Keller on April 18, 2008, 4:37 pm
Please log in for more thread options
> I'm looking for a utility that will scan a C++ file and list all the
> functions under a preprocessing directive.

Great! I assume you've started writing your own code, since this
newsgroup isn't your paid consultant. So post what you've written so
far, and people may help you fix it.

--keith



--
kkeller-usenet@wombat.san-francisco.ca.us
(try just my userid to email me)
AOLSFAQ=http://www.therockgarden.ca/aolsfaq.txt
see X- headers for PGP signature information


Similar ThreadsPosted
pod - purpose of L<> directive September 25, 2006, 3:04 am
JSP include directive (perhaps newby) May 24, 2005, 10:24 am
http directive to exec perl September 16, 2004, 8:02 pm
perl utility April 23, 2008, 3:28 am
Help with sorting lists of lists October 14, 2004, 12:21 am
free utility to create exe October 3, 2007, 2:22 pm
a nice little perl utility October 12, 2007, 2:15 pm
backup utility for remote hosts October 20, 2004, 10:52 am
trying to export some utility methods, and struggling September 7, 2007, 4:00 am
net::ssh and functions March 9, 2007, 5:43 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap