]> git.ozlabs.org Git - ccan/commit - ccan/rbtree/_info
ccan: Correct some poor conventions in _info includes
authorDavid Gibson <david@gibson.dropbear.id.au>
Sun, 15 Jun 2014 14:09:09 +0000 (00:09 +1000)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 16 Jun 2014 11:42:44 +0000 (21:12 +0930)
commit291237b4fed863be74051274ac5ad9920cb33cc3
treecc2186c3a568f44c5bc42aeed93db91c2b27273f
parent9a483e66096528915f59d875931a48eab523ca82
ccan: Correct some poor conventions in _info includes

There are a couple of small problems with the includes used in most of
ccan's _info files.

   * _info routinely uses printf(), and so should include <stdio.h>, but
only some of them do.  We get away with it, because they do include
<string.h>, which apparently includes <stdio.h> indirectly, but we should
be explicit about it.

   * Most _info files were including config.h after the system headers.
That _seems_ sensible, but actually causes problems.  Because config.h
defines _GNU_SOURCE it can change the behaviour of the system headers.
More specifically it can make them behave differently to how the individual
module headers (which have included config.h) expects them to behave.

This patch adjusts all the existing _info files and, more importantly,
the template constructed by ccanlint.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
88 files changed:
ccan/alignof/_info
ccan/antithread/_info
ccan/antithread/alloc/_info
ccan/argcheck/_info
ccan/array_size/_info
ccan/asearch/_info
ccan/asort/_info
ccan/asprintf/_info
ccan/autodata/_info
ccan/avl/_info
ccan/bdelta/_info
ccan/bitmap/_info
ccan/block_pool/_info
ccan/breakpoint/_info
ccan/btree/_info
ccan/build_assert/_info
ccan/bytestring/_info
ccan/cast/_info
ccan/ccan_tokenizer/_info
ccan/charset/_info
ccan/check_type/_info
ccan/ciniparser/_info
ccan/compiler/_info
ccan/container_of/_info
ccan/cpuid/_info
ccan/crc/_info
ccan/crcsync/_info
ccan/daemon_with_notify/_info
ccan/daemonize/_info
ccan/darray/_info
ccan/dgraph/_info
ccan/endian/_info
ccan/err/_info
ccan/failtest/_info
ccan/grab_file/_info
ccan/hash/_info
ccan/heap/_info
ccan/htable/_info
ccan/idtree/_info
ccan/ilog/_info
ccan/io/_info
ccan/isaac/_info
ccan/iscsi/_info
ccan/jacobson_karels/_info
ccan/jmap/_info
ccan/jset/_info
ccan/json/_info
ccan/lbalance/_info
ccan/likely/_info
ccan/list/_info
ccan/md4/_info
ccan/minmax/_info
ccan/net/_info
ccan/nfs/_info
ccan/noerr/_info
ccan/objset/_info
ccan/ogg_to_pcm/_info
ccan/opt/_info
ccan/ptr_valid/_info
ccan/rbtree/_info
ccan/rbuf/_info
ccan/read_write_all/_info
ccan/short_types/_info
ccan/siphash/_info
ccan/sparse_bsearch/_info
ccan/str/_info
ccan/stringmap/_info
ccan/strmap/_info
ccan/strset/_info
ccan/take/_info
ccan/tal/_info
ccan/tal/grab_file/_info
ccan/tal/link/_info
ccan/tal/path/_info
ccan/tal/str/_info
ccan/tal/talloc/_info
ccan/talloc/_info
ccan/tally/_info
ccan/tap/_info
ccan/tcon/_info
ccan/time/_info
ccan/timer/_info
ccan/tlist/_info
ccan/ttxml/_info
ccan/typesafe_cb/_info
ccan/version/_info
ccan/wwviaudio/_info
tools/ccanlint/tests/info_exists.c