summaryrefslogtreecommitdiff
path: root/ccan/array_size
AgeCommit message (Collapse)Author
2015-08-20array_size: fix spurious test fail with gcc-5Rusty Russell
It now warns about sizeof(function-param-not-really-an-array). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2014-06-16ccan: Correct some poor conventions in _info includesDavid Gibson
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>
2012-11-01Relicense all public domain modules to CC0.Rusty Russell
I wrote all of most of them, for the others, here's the CCAN mailing list thread authorizing it: From: Timothy B. Terriberry <tterribe@xiph.org> Subject: Re: [ccan] Changing from Public Domain to CC0 To: Rusty Russell <rusty@rustcorp.com.au> Cc: ccan@ozlabs.org Date: Wed, 31 Oct 2012 02:53:50 -0400 Rusty Russell <rusty@rustcorp.com.au> wrote: > I want to change the License string (and add a symlink) to the following > trivial modules. Please Ack. > isaac Ack. From: Alessandro Guido <ag@alessandroguido.name> Subject: Re: Changing from Public Domain to CC0 To: Rusty Russell <rusty@rustcorp.com.au> Date: Wed, 31 Oct 2012 10:59:53 +0100 Acked-by: Alessandro Guido <ag@alessandroguido.name> From: Brad Hards <bradh@frogmouth.net> Subject: Re: Changing from Public Domain to CC0 To: Rusty Russell <rusty@rustcorp.com.au> Cc: Joey Adams <joeyadams3.14159@gmail.com>, Alessandro Guido <ag@alessandroguido.name>, Andreas Schlick <schlick@lavabit.com>, ccan@ozlabs.org Date: Wed, 31 Oct 2012 23:43:24 +1100 On 31/10/12 17:43, Rusty Russell wrote: > Damn lawyers! > > Since Public Domain is a slippery concept outside certain countries, it > has been suggested that I formalize it to Creative Commons Zero. > > I want to change the License string (and add a symlink) to the following > trivial modules. Please Ack. Ack. More generally, anything I've put into CCAN is so trivial that you can relicense it (to any Free / Open Source license) as part of any relicensing you can otherwise get agreement to. Brad [Sorry if this comes out in HTML - I'm stuck with unsat tools while travelling]. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-08-16array_size: relicense under public domain.Rusty Russell
It's just a header, I don't care what's done with it.
2011-07-21various: add LICENSE comments.Rusty Russell
2011-07-19various: make the _info License: wording uniform for GPL variants.Rusty Russell
GPL versions 2 and 3 both specifically mention "any later version" as the phrase which allows the user to choose to upgrade the license. Make sure we use that phrase, and make the format consistent across modules.
2011-03-22array_size: make sure tests work even without GCC features.Rusty Russell
In this case, "work" means "fail to compile cleanly".
2011-03-17build_assert: rename EXPR_BUILD_ASSERT to BUILD_ASSERT_OR_ZERORusty Russell
Same thing (a BUILD_ASSERT which evaluates to zero), but there's a strong preference for all modules to stick with their own names as prefixes.
2010-11-04alignof, array_size, crc: provide comments to allow testing examples.Rusty Russell
2010-10-21license: more changing of licence -> license.Rusty Russell
2010-10-17licence->license: US English is the standard for code.Rusty Russell
If a Swedish-speaking Finn writes code in English, why should I complain about a few weird spellings?
2010-10-07modules: update documentation examples so they compile under ccanlint.Rusty Russell
This is everything up to the list module... now it's time for sleep.
2010-08-06Add author and maintainer fields.Rusty Russell
2010-08-06Add licences/ dir and symlinks for a bit more clarity.Rusty Russell
2010-01-06Remove old run-tests, clean up #includes to all be <ccan/...Rusty Russell
2009-05-28Rename _info.c to _info: this means we can simple compile *.c.Rusty Russell
2009-02-17Finally, ARRAY_SIZE!Rusty Russell