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
commit6b9b7ec69002e062bb48049acdab7e1e7145b0ca (patch)
treec746866823441f341bc873bcb951f67392f549e1 /test/lib/comparators.h
parentb41f9b430878ea33ba8da7b30bfb6a81a4dd0317 (diff)
downloadlibdom-6b9b7ec69002e062bb48049acdab7e1e7145b0ca.tar.gz
libdom-6b9b7ec69002e062bb48049acdab7e1e7145b0ca.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