]> git.ozlabs.org Git - ccan/commit
ccanlint: load file contents on demand, fix names for extracted examples.
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 6 Oct 2010 01:45:31 +0000 (12:15 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 6 Oct 2010 01:45:31 +0000 (12:15 +1030)
commitf3305bc06847d022831f8ffd7beaccab316d8143
treeb0adc25de4c7f89e674cbb69472ae0d42a1737eb
parent4d10049d84ed551defe051707a5e5c33855b4869
ccanlint: load file contents on demand, fix names for extracted examples.

We had example names like "example-opt.h-opt_parse", which got trimmed to
"example-opt".  By using a basename of example-opt.h-opt_parse.c, we only
strip the final ".c" not the middle ".h".
tools/ccanlint/ccanlint.h
tools/ccanlint/file_analysis.c
tools/ccanlint/tests/has_examples.c