- 19 Aug, 2015 4 commits
-
-
Cody P Schafer authored
Signed-off-by: Cody P Schafer <dev@codyps.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Cody P Schafer authored
Signed-off-by: Cody P Schafer <dev@codyps.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Cody P Schafer authored
Config defines are disabled if a warning is emitted (we may want to reconsider that), and warnings are emitted for define redefinition. Signed-off-by: Cody P Schafer <dev@codyps.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Cody P Schafer authored
As for the type punning: gcc-5.1 with optimization (at least) warns about type punning in the previous example. The new usage should be exactly equivalent to the old, but just seperates the cast and deref into 2 statements. Frankly, I'm suprised gcc's type-punning analysis is so limited. Signed-off-by: Cody P Schafer <dev@codyps.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
- 18 Aug, 2015 2 commits
-
-
David Gibson authored
Reviewing the previous patch it took me some time to work out what the purpose of the compile_fail-BYTESTRING-2.c test. Add a comment to avoid that in future. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-
Cody P Schafer authored
bytestring: Module tests compile (tests_compile): FAIL /home/x/g/ccc/ccan/ccan/bytestring/test/compile_fail-BYTESTRING-2.c:Compile gave warnings without -DFAIL: /home/x/g/ccc/ccan/ccan/bytestring/test/compile_fail-BYTESTRING-2.c: In function ‘main’: /home/x/g/ccc/ccan/ccan/bytestring/test/compile_fail-BYTESTRING-2.c:15:2: warning: ‘bs.len’ is used uninitialized in this function [-Wuninitialized] printf("%zd %s\n", bs.len, x); ^ Signed-off-by: Cody P Schafer <dev@codyps.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-
- 17 Aug, 2015 2 commits
-
-
Cody P Schafer authored
Without this, gcc warns about a sign mismatch in the comparison. Signed-off-by: Cody P Schafer <dev@codyps.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Cody P Schafer authored
These leaks aren't really an issue since they are completely bounded, but if one is building with leak sanitizer enabled (as -fsanitize=address does in gcc-5.1), it kills the configurator, which isn't very useful for us. Add the few free() calls it's looking for. This is not an actual code issue, they just workaround some optional compiler peculiarities. Signed-off-by: Cody P Schafer <dev@codyps.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (split off leak change)
-
- 15 Aug, 2015 2 commits
-
-
A. Samy authored
Signed-off-by: A. Samy <f.fallen45@gmail.com>
-
A. Samy authored
Signed-off-by: A. Samy <f.fallen45@gmail.com>
-
- 14 Aug, 2015 1 commit
-
-
Rusty Russell authored
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
- 12 Aug, 2015 5 commits
-
-
A. Samy authored
-
A. Samy authored
-
A. Samy authored
-
A. Samy authored
-
Rusty Russell authored
I really need to get rid of this... Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
- 01 Aug, 2015 7 commits
-
-
David Gibson authored
New module Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-
David Gibson authored
This adds a more complex testcase to the aga module. This one is a trie (basically a radix tree for strings). It demonstrates different ways of constructing edge information from an internal representation than the existing testcases. Importantly, it also demonstrates aga's ability to cope with the edge function lazily constructing nodes on the fly. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-
David Gibson authored
The aga algorithms can't be run concurrently, because they store state information in the aga_node structures. However, they are supposed to detect an attempt to re-enter and safely report an error. This adds a testcase for this. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-
David Gibson authored
This implements breadth first search for the abstract graph algorithms module. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-
David Gibson authored
This implements depth first search for the abstract graph algorithms module. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-
David Gibson authored
This adds code for a number of example graphs for use in tests of the aga module. They also demonstrate several different ways of constructing graphs using the aga callbacks. It adds one actual testcase, which just verifies that the example graph look like what they're supposed to. Specifically it computes a set of adjacency lists for the example graphs from the callback code, then compares that to a canned example of what it should be. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-
David Gibson authored
New module. This patch just adds the module, with some generic helper routines, no actual algorithms are implemented yet. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-
- 30 Jul, 2015 2 commits
-
-
Maxim Zakharov authored
-
Maxim Zakharov authored
-
- 20 Jul, 2015 1 commit
-
-
Joel Stanley authored
Our project builds the ccan tests with -Wextra, so we get warnings about the unused variables. Signed-off-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
- 09 Jul, 2015 7 commits
-
-
Rusty Russell authored
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
The cp -a would copy nested submodules, and worse, if that submodule was copied later it would end up duplicated in a subdir, eg. "ccan/tal/str/str/". Using modfiles handles this properly, and also uses git to filter out ignored files & other junk. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
It's generally a symlink, so the lstat & S_ISREG tests were eliminating it. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
They currently get classed as "other_files"; they should be entirely ignored. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
- 08 Jul, 2015 3 commits
-
-
Rusty Russell authored
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
sha256_update_bytes is sha256_update since f989a43b. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
- 25 Jun, 2015 2 commits
-
-
Rusty Russell authored
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
- 18 Jun, 2015 2 commits
-
-
David Gibson authored
The AvlCompare type defined in the avl module is identical in signature to the compare function used by qsort() and bsearch(). That has a common definition in the new order module, so use that rather than defining its own. In addition use the standard comparison functions from order where possible for the avl test code. Cc: Joey Adams <joeyadams3.14159@gmail.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-
David Gibson authored
The asort routine takes a user-supplied comparison function. Use the definitions from the new order module to slightly simplify the declaration and handling of this function. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-