Speaking of doing things to C source that involve at least partial =20 parsing, are there any tools that will do a sort of "partial =20 preprocessing" of C source code? In particular, I'd like to figure out all the files that are #included =20 from the top-level code, after accounting for comments and such. A partial pre-processor that would strip comments and conditionally-=20 compiled (not compiled) sections would be a good start (a FULL pre-=20 processor would yield more than just the top level of includes, and I =20 don't want it to actually have to know where those files are. (the =20 goal is to be able to build a list of include and library paths based =20 on the top-level includes that the user has typed.)) If I have: > #define USEFLASHLIB 0 > #include > #include "audio.h" > // #include "futurelibrary.h" > /* > * When this is finished, we'll want to use it instead > #include "otherfuturelib.h> > */ > #if USEFLASHLIB > #include "flashlib.h" > #else > #include > #endif I want to get: > #include > #include "audio.h" > #include (It OK if it assumes that none of the conditional compilation symbols =20 are defined/redefined by the include files. That would be asking too =20 much...) Thanks Bill W --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .