]> git.ozlabs.org Git - ccan/commitdiff
Joey's patch to ignore ccan/ lines in #include.
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 28 May 2009 03:54:24 +0000 (13:24 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 28 May 2009 03:54:24 +0000 (13:24 +0930)
tools/depends.c

index 5878ef61e0f1cf9a536e06dede43a67c04370391..2bf11415bd2e632290fa1e63a4efd3bd13add985 100644 (file)
@@ -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];