Age | Commit message (Collapse) | Author |
|
This may have been causing a travis failure. Let's see!
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
|
|
asearch, like the standard library bsearch, takes a comparison callback.
Like bsearch() that callback doesn't include a user supplied context
pointer. As well as being generally limiting, that makes the comparison
functions used by asearch gratuitously different from those used by the
asort module.
This patch alters this. Note that this is an incompatible change to the
asearch interface. I think this is worth it to correct the oversight, but
others might disagree. At present the only user within ccan is ntdb, which
is corrected to match.
This means actually supplying a binary search implementation, rather than
relying on bsearch() from the standard library. We follow the lead of the
asort module and steal^H^H^H^H^Hadapt the implementation from glibc.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
|
|
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>
|
|
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
|
|
It was missing dependency information, and a description of ntdb.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
|
|
The other option would be to require Python.h, which seems overkill.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
|
|
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
|
|
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>
|
|
Signed-off-by: David Disseldorp <ddiss@suse.de>
|
|
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>
|
|
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>
|