rbuf, tools: clean up rbuf usage. We should use rbuf primitives not reach inside to membuf. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
tools: fix compile after rbuf rewrite. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
io failtest timer tools: fallout from time changes. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
tools: use tal/grab_file Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
tools: use tal/path instead of writing own path handlers. 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: use rbuf instead of grab_file. Slowly removing the talloc dependency. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
tools: fix dependencies. In particular, we might need the C files for foreach and err. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
failtest, tools: update for new timespec-using ccan/time module.
tools: fix bogus unreachable return.
ccanlint: remove argument to -k/--keep It's much easier to simply say "keep all", and it simplifies the code quite a bit.
ccanlint: use ccan/time Our own dogfood, and it's yummy!
To compile ccan under DragonFly BSD some additional includes are required.
tools: fix up warnings with -Wwrite-strings. Be a little more careful with const.
ccanlint: fix mangled output for 'make scores' We need to flush stdout before forking.
ccanlint: -k should not pollute module directory. It leads to numerous problems, such as the next ccanlint getting confused trying to compile examples, and "-k examples_compile -k examples_exist" giving bogus errors. So instead we leave the temporary dir lying around and delete individual files which aren't marked "keep".
ccanlint: make compile commands return output. We want to distinguish between warnings and errors: the first step is to return the output even if the command doesn't fail.
tools: new "configurator" tool. A simple C program to generate config.h. It also saves the compiler and flags for use by ccanlint (though they have to accept -c and -o).
tools: fixes for 64-bit. printf's %.* means an unsigned arg, not a size_t.
ccanlint: rename files on collision even with keep=true.