I want to know the ordering of functions in a given source file (and ultimately which header files they correspond to), for purposes of knowing the ordering of lib includes. Is there a "canonical" automated way (i.e. not trial and error) to get this info? I'm good with sed/awk hacks but is there a "better way"?
A:
I think you're right. It is indeed the order of the includes/libraries that matters here; I only need to determine what functions are present, not necessarily the order in which they are called. Let me rephrase my question: I'm interested in (a) making a list of the functions that are used in a given source file, (b) matching those functions to their respective header files, and (c) determining in what order the header files need to be listed such that there are no missing dependencies (where one header file, or lib, may depend on the presence of another).
a9usr
2010-08-16 10:11:04