- 16 Mar, 2015 1 commit
-
-
Rusty Russell authored
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
- 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 15 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>
-
David Gibson authored
This introduces the functions bytestring_splitchrs_first() and bytestring_splitchrs_next() which can be used to iterate through substrings of a bytestring separated by any of a given set of delimiter characters. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-
David Gibson authored
This introduces the functions bytestring_splitchr_first() and bytestring_splitchr_next() which can be used to iterate through substrings of a bytestring separated by a single, specified delimiter character. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-
David Gibson authored
Add bytestring_spn() and bytestring_cspn() functions which, in analogy to strspn() and strcspn() return the lengths of initial sub-bytestrings which either contain only a given set of bytes, or anything except a given set of bytes. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-
David Gibson authored
Add a bytestring_bytestring() function which, in analogy with strstr() and memmem() finds one bytestring within another. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-
David Gibson authored
Add bytestring equivalents of the index() and rindex() standard functions which search for characters/bytes within a bytestring. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-
David Gibson authored
This implements bytestring_starts() and bytestring_ends() which will test if a given bytestring starts or ends with another given bytestring. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-
David Gibson authored
Add a bytestring_slice() function to take a sub(byte)string of a bytestring. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-
David Gibson authored
Add a bytestring_byte() function to get a single byte / character from a bytestring. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-
- 27 Oct, 2014 3 commits
-
-
David Gibson authored
The memrchr() function, which works like memchr(), but searches from the back of the region to the front is implemented in the GNU C library, but isn't standard. This patch adds an implementation of the function to the mem module, when it's not available in the system C library. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-
David Gibson authored
Currently the 'mem' module testcases use test/run.c even though they don't rely on access to the module internals. They're also missing an include of mem.c, which has the effect that on systems with a C library memmem() implementaiton, only that is tested, not the (re-)implementation in the mem module itself. This corrects that by moving run.c to api.c/ Additionally, the memmem() testcases don't cover the case where the "needle" appears multiple times in the "haystack". This patch also adds such a test. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-
David Gibson authored
Currently the 'memmem' module does nothing but provide an implementation of the memmem() function if it is missing from the standard C library. However there are other functions (e.g. memrchr()) also missing from some C library implementations, so rename the module to mem to allow future inclusion of other functions. This also updates the rfc822 module - the only existing user of the memmem module - to use the new name. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-
- 25 Oct, 2014 6 commits
-
-
Chris McCormick authored
Syntax highlighting for module example code using prettify. Note: prettify is introduced with an svn checkout into the web directoy.
-
Chris McCormick authored
-
Chris McCormick authored
New page layout, font, background image. Replaced table tags with headers and paragraph tags as appropriate. Redesigned logo. Added stylesheet to specify layout more easily. Meta tag for mobile device friendliness.
-
Chris McCormick authored
-
Chris McCormick authored
-
Chris McCormick authored
-