From 6b9b7ec69002e062bb48049acdab7e1e7145b0ca Mon Sep 17 00:00:00 2001 From: James Shaw Date: Sat, 22 Sep 2007 23:08:54 +0000 Subject: Extend list implementation, add test-list.c to test some of it. svn path=/trunk/dom/; revision=3573 --- test/lib/comparators.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/lib/comparators.h (limited to 'test/lib/comparators.h') diff --git a/test/lib/comparators.h b/test/lib/comparators.h new file mode 100644 index 0000000..4cdeb97 --- /dev/null +++ b/test/lib/comparators.h @@ -0,0 +1,18 @@ +/* + * This file is part of libdom test suite. + * Licensed under the MIT License, + * http://www.opensource.org/licenses/mit-license.php + * Copyright 2007 James Shaw + */ + +#ifndef comparators_h_ +#define comparators_h_ + +/** + * A function pointer type for a comparator. + */ +typedef int (*comparator)(const void* a, const void* b); + +int int_comparator(const int* a, const int* b); + +#endif -- cgit v1.2.3