summaryrefslogtreecommitdiff
path: root/test/lib/comparators.h
diff options
context:
space:
mode:
authorJames Shaw <jshaw@netsurf-browser.org>2007-09-22 23:08:54 +0000
committerJames Shaw <jshaw@netsurf-browser.org>2007-09-22 23:08:54 +0000
commitbac4a13febf82bea5c188c45d32fcedc7e868597 (patch)
treec746866823441f341bc873bcb951f67392f549e1 /test/lib/comparators.h
parentd92e7f8b5d95e832101ab8a5b58630caec1ebd57 (diff)
downloadlibdom-bac4a13febf82bea5c188c45d32fcedc7e868597.tar.gz
libdom-bac4a13febf82bea5c188c45d32fcedc7e868597.tar.bz2
Extend list implementation, add test-list.c to test some of it.
svn path=/trunk/dom/; revision=3573
Diffstat (limited to 'test/lib/comparators.h')
-rw-r--r--test/lib/comparators.h18
1 files changed, 18 insertions, 0 deletions
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 <jshaw@netsurf-browser.org>
+ */
+
+#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