From: Rusty Russell Date: Thu, 28 May 2009 03:54:24 +0000 (+0930) Subject: Joey's patch to ignore ccan/ lines in #include. X-Git-Url: http://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=09e4858bdbd026244ab250ef11d82a2189d46e49 Joey's patch to ignore ccan/ lines in #include. --- 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];