]> git.ozlabs.org Git - ccan/commit - ccan/avl/test/run.c
avl: Use definitions from order module
authorDavid Gibson <david@gibson.dropbear.id.au>
Thu, 18 Jun 2015 09:30:18 +0000 (19:30 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 18 Jun 2015 09:30:18 +0000 (19:30 +1000)
commit712dc43d55741bc11490abae8f7edbb8ec982f0d
tree844bb38d4282d7a3ba06c005548ee50ff5010230
parent918a733fc27172f56d66a28bc24bd897ac1c48f6
avl: Use definitions from order module

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>
ccan/avl/_info
ccan/avl/avl.c
ccan/avl/avl.h
ccan/avl/test/run.c