- 30 Mar, 2015 7 commits
-
-
Eric Wong authored
These internal iteration macros will make implementing reverse iteration simpler. For now, reimplement existing list_for_each_off and list_for_each_safe_off macros on top of these macros to prove they pass existing tests. Signed-off-by: Eric Wong <normalperson@yhbt.net> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Eric Wong authored
This allows deleting and re-inserting an element in place of the deleted element without branching. Signed-off-by: Eric Wong <normalperson@yhbt.net> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Eric Wong authored
These make it easy to add a new element before or after an existing element in the middle of the list. The existing list_add and list_add_tail functions are trivially reimplemented on top of these new functions. Signed-off-by: Eric Wong <normalperson@yhbt.net> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
It's a test dependency, not a core one, so it belongs under "testdepends". Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Jeremy Kerr authored
Commit 9e2c88b5 added an extra return (with an unconditional byteswap) in cpu_to_be64. This breaks on big-endian, where we shouldn't be byteswapping. Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Stuart Longland authored
This is a small couple of functions for joining lists of strings together. The lists can either be varadic arguments or arrays, and delimiters are optional. This patch incorporates some advice from David Gibson on the original module.
-
Rusty Russell authored
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
- 20 Mar, 2015 3 commits
-
-
Rusty Russell authored
Mainly include path fixes. Also Samba's unit tests were enhanced to detect the prefixes helpapi and helprun to indicate an object was to be linked against only api/run tests. We hack around that by #including the helper code instead. 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 was missing dependency information, and a description of ntdb. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
- 18 Mar, 2015 2 commits
-
-
Rusty Russell authored
The other option would be to require Python.h, which seems overkill. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
- 17 Mar, 2015 1 commit
-
-
- 16 Mar, 2015 5 commits
-
-
Rusty Russell authored
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
David Disseldorp authored
The Authors entries were added based on source file copyright statements. Full details can be found via the upstream Samba Git repository. Signed-off-by: David Disseldorp <ddiss@suse.de>
-
David Disseldorp authored
Signed-off-by: David Disseldorp <ddiss@suse.de>
-
David Disseldorp authored
As part of Samba, ntdb was built using the Waf build system. As part of ccan, convert this to a simple Makefile, and add a static config.h. The Makefile only builds core ntdb components for now - libntdb and tools. Signed-off-by: David Disseldorp <ddiss@suse.de>
-
David Disseldorp authored
ntdb is a partial rewrite of Samba's Trivial Database, providing > 4GB database scalability and an improved API. Obtained from the Samba repository at git://git.samba.org/samba.git, as of bd13405e8570e9a5942165a8c52a2bc3fdc9d96e. See Samba's Git changelog for authorship details. Signed-off-by: David Disseldorp <ddiss@suse.de>
-
- 15 Mar, 2015 3 commits
-
-
Rusty Russell authored
Kalle shows the superiority of 3 (as does the paper for > 50 buckets). https://github.com/kallerosenbaum/bitcoin-iblt/wiki/Diff-count-VS-failure-probabilitySigned-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
- 14 Nov, 2014 4 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
This lets you annotate your headers with notes for cdump. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
We can now parse array sizes properly: comments and extra [] pairs will no longer confuse us. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
- 11 Nov, 2014 5 commits
-
-
Rusty Russell authored
This was found because ccanlint now looks for examples here too. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
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
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
- 10 Nov, 2014 2 commits
-
-
Rusty Russell authored
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
pushpull module doesn't have examples in pushpull.h. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
- 07 Nov, 2014 1 commit
-
-
Rusty Russell authored
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
- 30 Oct, 2014 7 commits
-
-
Rusty Russell authored
Reported-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
This catches duplicate timer_add() calls, as well as meaning we don't need to track if the timer is active before calling timer_del(). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
The linked list method was problematic, especially if timers delete other expired timers (eg. the next one in the expired list: the timer_del will delete it from expired, but that's a bit unexpected). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
David Gibson authored
The BYTESTRING macro is constant, since it's designed to take a string literal, but it doesn't count as constant since it involves an (inlined) function call. That means it can't be used in a static storage duration initializer. Unfortunately, I can't see a portable way to make something which can be used as an initializer, but which can also be used in other contexts where BYTESTRING() can be used, so this patch introduces BYTESTRING_INIT() which is similar to BYTESTRING() but produces an initializer. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-
David Gibson authored
The bytestring() constructor function satisfies the constraints of CONST_FUNCTION, so mark it as such. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-
David Gibson authored
This introduces the functions bytestring_splitstr_first() and bytestring_splitstr_next() which can be used to iterate through substrings of a bytestring separated by a specified substring. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-