projects
/
ccan
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Joey's patch to ignore ccan/ lines in #include.
[ccan]
/
tools
/
depends.c
diff --git
a/tools/depends.c
b/tools/depends.c
index 5878ef61e0f1cf9a536e06dede43a67c04370391..2bf11415bd2e632290fa1e63a4efd3bd13add985 100644
(file)
--- 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];