- 18 Jul, 2012 1 commit
-
-
Rusty Russell authored
In particular, don't complain on conditional lines. That's less thorough, but removes false negatives we have now.
-
- 26 Jun, 2012 4 commits
-
-
Rusty Russell authored
It's only used for testing, but it's LGPLv3 (vs LGPLv2). But unless we suppress it, ccanlint exits with status 1 and my sanity checks stop me from uploading.
-
Rusty Russell authored
-
Rusty Russell authored
-
Rusty Russell authored
-
- 20 Jun, 2012 1 commit
-
-
Alessandro Guido authored
Fixes this error: /hash.h:304:13: error: two or more data types in declaration specifiers
-
- 09 Jun, 2012 2 commits
-
-
Rusty Russell authored
-
Rusty Russell authored
Seems it's not available on Solaris.
-
- 08 Jun, 2012 4 commits
-
-
Rusty Russell authored
This is where you see the genius of the originals: you can't implement them without horrible hacks to get the program name :(
-
Rusty Russell authored
-
Rusty Russell authored
-
Rusty Russell authored
Seems like Solaris doesn't have err.h, as discovered by Samba.
-
- 28 May, 2012 5 commits
-
-
Michael Ellerman authored
This adds a "waf" buildtype to create-ccan-tree. When passed it generates a basic wscript for building everything into a libccan.a It doesn't support running the generator, so you need to provide config.h Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com>
-
Jeremy Kerr authored
Add a new build type to create an appropriate Makefile.am for the newly-created ccan tree. Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com>
-
Jeremy Kerr authored
Replace the --exclude-configurator argument with a single --build-type=TYPE argument, allowing future expansion of build system types (and allowing source-tree-only creation). We currently support: * 'make' (just the Makefile, equivalent to --exclude-configurator) * 'make+config' (current default) Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com>
-
Jeremy Kerr authored
Rather than explicitly excluding the tests, just copy the source files by default. Add an option (--copy-all) to include all of the non-source stuff in each module. Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com>
-
Jeremy Kerr authored
Commit a77cc282 causes tools/create-ccan-tree to fail, as it can't build tools/ccan_depends (via `make tools/ccan_depends`) without a configuration header present. This change adds a dependency on config.h, so that the configurator kicks-in prior to building ccan_depends.o. Other tools don't need this dependency, as tools/ccan_depends is built during the Makefile 'include' process. Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
- 17 May, 2012 2 commits
-
-
Rusty Russell authored
We create and upload an example for the web anyway, if people really need it.
-
Jeremy Kerr authored
Add a script to create a ccan source tree for inclusion into projects' distributed code. create-ccan-tree takes a list of ccan modules and copies them, plus any dependent modules, into a target directory. Enough build infrastructure is added to build libccan.a from the ccan modules. Typical usage for my project that uses talloc and read-write-all: lib/ccan.git/tools/create-ccan-tree --exclude-tests \ lib/ccan/ talloc read-write-all - this uses a git submodule in $PWDlib/ccan.git to create a source tree in $PWD/lib/ccan, containing code for talloc and read-write-all. Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com>
-
- 29 Mar, 2012 3 commits
-
-
Rusty Russell authored
Solaris CC seems to support typeof, but not __builtin_types_compatible_p.
-
Rusty Russell authored
cast_const() et. al. are supposed to be a constant expression, so you can do things like: static char *p = cast_const(char *, (const char *)"hello"); Unfortunately, a cast to intptr_t and arithmetic makes suncc reject it as a constant expression. We need the cast, because (1) the expression could be a void *, so we can't just add to it, and (2) gcc complains with -Wcast-qual without it. So instead of adding BUILD_BUG_OR_ZERO, we use a ? :, which keeps everyone happy.
-
Rusty Russell authored
That's a gcc extension.
-
- 27 Mar, 2012 13 commits
-
-
Rusty Russell authored
It still gave a warning on gcc, because casting a char to a char* gives a warning. Not so on sun CC.
-
Rusty Russell authored
Gcc doesn't include unused inline functions, even without -O, but Solaris CC does, so fails to link block_pool where one inline function refers to a non-inline function.
-
Rusty Russell authored
We get away with it on Linux, not on Solaris.
-
Rusty Russell authored
We only support gcc/gcov so far.
-
Rusty Russell authored
This only matters on non-gcc, where ilog functions are not just mapped to builtins.
-
Rusty Russell authored
The Sun C compiler has them, but fails this overzealous check.
-
Rusty Russell authored
Need sys/termios.h for struct winsize.
-
Rusty Russell authored
Needed for FIONREAD.
-
Rusty Russell authored
Sun CC complains.
-
Rusty Russell authored
We have compiler.h for that.
-
Rusty Russell authored
-
Rusty Russell authored
Header file was wrong, suncc gives warning about missing open prototype, causing configurator to fail.
-
Rusty Russell authored
This means we don't create an empty file if configurator fails.
-
- 21 Mar, 2012 1 commit
-
-
Rusty Russell authored
OpenBSD doesn't idempotent-wrap sys/mman.h, so when we #define mmap to an alternative, it fails to compile when sys/mman.h is included again. Workaround is not to #define mmap to add arguments on Open BSD.
-
- 19 Mar, 2012 4 commits
-
-
Rusty Russell authored
-
Rusty Russell authored
Move ccan_dir determination out to its own function, rather than implying it by the first time we get the manifest of a module.
-
Rusty Russell authored
Move ccan_dir determination out to its own function, rather than implying it by the first time we get the manifest of a module.
-
Rusty Russell authored
After the first module we were resetting even the excluded tests, which caused a segfault as they weren't initialized.
-