summaryrefslogtreecommitdiff
path: root/test/lib/comparators.h
diff options
context:
space:
mode:
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