ccanlint: mark unused parameters. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
tools: use tal instead of talloc. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccanlint: remove argument to -k/--keep It's much easier to simply say "keep all", and it simplifies the code quite a bit.
ccanlint: clean up reduced feature handling. Putting the reduced config.h in the current directory means that it's actually being picked up by other tests, such as the string checks. So move it to a sub-directory where we need an explicit -I. We also fix the dependencies, so that "--target tests_pass_without_features" works.
ccanlint: keep separate array of compiled versions. Rather than mug the old ->compiled version when we reduce features, keep both in the structure. This makes it clear that we are using the right version (we weren't in all cases, in particular we weren't recompiling the test helpers correctly.
ccanlint: read config.h to get compilation flags at runtime. This means you don't have to recompile ccanlint to get the new flags; it's a small step towards making ccanlint useful outside the ccan repo.
ccanlint: score_file_error() takes printf-format We simply build up the error string in score_file_error; a bit different but simpler than current behaviour. We keep around struct file_error because some tests need it.
ccanlint: rename files to match keys