]> git.ozlabs.org Git - ccan/commit
order: total_order_cmp() helper and better tests
authorDavid Gibson <david@gibson.dropbear.id.au>
Sun, 18 Oct 2015 10:10:58 +0000 (21:10 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Sun, 18 Oct 2015 10:10:58 +0000 (21:10 +1100)
commit9a082140b9331ade729893e2d1e352e90dc6cba5
tree4d43480ff995f6e31f37d77479ac0f7a4280366c
parent28681e0a15c453e86528ca488415e2220cbe0f0a
order: total_order_cmp() helper and better tests

Add a wrapper macro total_order_cmp() to more conveniently use the
total_order structures.  Add some tests for it, which also improve tests
the "fancy_cmp" function.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
ccan/order/order.h
ccan/order/test/fancy_cmp.h
ccan/order/test/run-fancy.c [new file with mode: 0644]