I have tried to use the makedepend program, but I found a thing
similar to a bug.

A sample/test source file that causes the problem:
--- test.c ---
#define STR(a)   #a
#define XSTR(a)   STR(a)
#define INCLUDE XSTR(foo.h)
#include INCLUDE
---

It should be perfectly C code and the included file should be "foo.h",
but makedepend shows a warning message:
makedepend: warning:  test.c, line 4: incomplete include == "#include INCLUDE"

I tried to investigate the makedepend source files and it seems the
stringification (#) is not correctly managed during #include line
parsing.
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to