tools: set, don't increment bool. Not really a bug, but stylistically questionable and makes PCS Suite complain. Reported-by: Jon Griffiths Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
tools: use tal instead of talloc. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
tools: don't abort on malformed documentation lines. ccanlint would abort with 'Malformed line 53' if there was a bad header. That's very poor, and deeply unhelpful. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
tools: don't assume modules are immediately below ccan/ dir. Removing this assumption should allow nested modules. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
tools/doc_extract: trim trailing blank lines on sections. Makes things a bit neater.
tools: trim leading whitespace in documentation extract. Take some care to preserve formatting, even with mixed tabs and spaces.
tools: always include config.h before anything else. Otherwise, _GNU_SOURCE isn't defined (for example) so prototypes such as isblank can be missing.
strsplit: remove nump argument You can use talloc_array_length() to get the length of a tallocated array.
ccanlint: keep mapping back to original source line for doc_extract Makes reporting of documentation easier.
ccanlint: use strreg for section extraction. Makes it simpler and clearer.
ccanlint: fix parsing bug which believes lines starting with - are a section header.
ccanlint: typo fix and fix errant description parsing. "C has fairly weak typing:" from check_type/_info is not a new section heading! Enforce that each word in multi-word sections must be caps.
tools: fix bug in doc-extract, handle spaces in summary line /** * struct foo - some description So, <identifier> here can have a space in it.
tools: "See Also:" can be a section in documentation, so allow it.
Canonicalize typenames, and remove empty sections.
Broaden use of doc_extract code, put in ccanlint, and fix ccanlint compile.