projects
/
ccan
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5802573
)
ccanlint: handle DOS-style \r\n lines when parsing.
author
Rusty Russell
<rusty@rustcorp.com.au>
Thu, 21 Jul 2011 05:14:50 +0000
(14:44 +0930)
committer
Rusty Russell
<rusty@rustcorp.com.au>
Thu, 21 Jul 2011 05:14:50 +0000
(14:44 +0930)
We don't correctly detect pure-comment lines in ccan/ttxml/ttxml.c
without this.
tools/ccanlint/file_analysis.c
patch
|
blob
|
history
diff --git
a/tools/ccanlint/file_analysis.c
b/tools/ccanlint/file_analysis.c
index c20211677d6b3db3063ca0947778232d1ca18718..d55e2b8c12bebd7b4d4062ed93b1d7350ae8216e 100644
(file)
--- a/
tools/ccanlint/file_analysis.c
+++ b/
tools/ccanlint/file_analysis.c
@@
-349,7
+349,7
@@
static char *remove_comments(const char *line, bool in_comment,
static bool is_empty(const char *line)
{
- return strspn(line, " \t") == strlen(line);
+ return strspn(line, " \
r\
t") == strlen(line);
}
static bool continues(const char *line)