[Omake] preprocessor for computing dependencies
Jason Hickey
jyh at cs.caltech.edu
Wed Sep 13 11:25:52 PDT 2006
Thomas Nagy wrote:
> Hello,
>
> I think you might be interested by some preprocessor
> code for computing dependencies in c files:
> http://freehackers.org/~tnagy/preproc.py
>
> It is in python and it does not handle functions
> (yet), but it should be translatable in caml easily.
Thanks! Currently, omake is using gcc -M when possible, but it turns
out that, for example, Visual C++ 6.0 has no similar option. I guess
people are supposed to use Visual Studio when compiling on Windows. The
way we get it to work is by calling the preprocessor, then grepping for
the #line numbers, which is very slow. This code may indeed help out.
Jason
--
Jason Hickey http://www.cs.caltech.edu/~jyh
Caltech Computer Science Tel: 626-395-6568 FAX: 626-792-4257
More information about the Omake
mailing list