]> git.ozlabs.org Git - ccan/commitdiff
order: Scalar comparison functions
authorDavid Gibson <david@gibson.dropbear.id.au>
Tue, 2 Jun 2015 07:30:58 +0000 (17:30 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 18 Jun 2015 09:26:40 +0000 (19:26 +1000)
Extend the order module to provide simple, standard, comparison
callbacks for scalar types (i.e. integer and floating point types).

In addition to the usual variants comparing a plain scalar, this also
provides helper macros to construct a suitably typed callback and context
pointer to order structures by a specified scalar field.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>

No differences found