X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fdepends.c;h=2bf11415bd2e632290fa1e63a4efd3bd13add985;hp=c631b9bc82968747147a1fd7328297a5d9fff3bc;hb=15290c3feb9b61967311659a865fb3b5d05b1a49;hpb=9965fc25fcc92dc76d1cd4cf9595dc3dc9ebc586 diff --git a/tools/depends.c b/tools/depends.c index c631b9bc..2bf11415 100644 --- a/tools/depends.c +++ b/tools/depends.c @@ -1,7 +1,7 @@ -#include "talloc/talloc.h" -#include "str/str.h" -#include "grab_file/grab_file.h" -#include "str_talloc/str_talloc.h" +#include +#include +#include +#include #include "tools.h" #include #include @@ -112,6 +112,10 @@ static char **get_one_safe_deps(const void *ctx, char *str; unsigned int len; + /* Ignore lines starting with # (e.g. #include) */ + if (lines[i][0] == '#') + continue; + /* Start of line, or after ". */ if (strstarts(lines[i], "ccan/")) str = lines[i];