From 09e4858bdbd026244ab250ef11d82a2189d46e49 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 28 May 2009 13:24:24 +0930 Subject: [PATCH] Joey's patch to ignore ccan/ lines in #include. --- tools/depends.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/depends.c b/tools/depends.c index 5878ef61..2bf11415 100644 --- a/tools/depends.c +++ b/tools/depends.c @@ -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]; -- 2.39.2