Browse Source

Joey's patch to ignore ccan/ lines in #include.

Rusty Russell 16 years ago
parent
commit
09e4858bdb
1 changed files with 4 additions and 0 deletions
  1. 4 0
      tools/depends.c

+ 4 - 0
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];