How to trace include file chains?

K

Kyndig

I hope I'm not posting in the wrong group; but I figured c programmers
would be the ones most likely to have an answer to my question.

Let's say I have a directory full of source files and I want to
determine which file I should modify in order to change the FD_SETSIZE
macro. I'd have to look at all the source files that define and
redefine the macro and take into account the chain of #include
directives.

Are there any utilities for unix that could search through the source
files, following all #include directives, and report which file
effectively set's the macro which is to be used. If there are no
utilities, how would you suggest I go about this?

Thank you in advance!
 
J

Jogi Kuenstner

Kyndig said:
I hope I'm not posting in the wrong group; but I figured c programmers
would be the ones most likely to have an answer to my question.

Let's say I have a directory full of source files and I want to
determine which file I should modify in order to change the FD_SETSIZE
macro. I'd have to look at all the source files that define and
redefine the macro and take into account the chain of #include
directives.

Are there any utilities for unix that could search through the source
files, following all #include directives, and report which file
effectively set's the macro which is to be used. If there are no
utilities, how would you suggest I go about this?

Thank you in advance!

I think it's extremely OT, but did you have a look at Source-Navigator?
http://sourcenav.sourceforge.net/

Jogi
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,079
Messages
2,570,575
Members
47,207
Latest member
HelenaCani

Latest Threads

Top