summaryrefslogtreecommitdiff
path: root/src/common/sort.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2017-05-21 16:48:11 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2017-05-21 16:48:11 (GMT)
commitacd355c4c5ae25fb9cac64b8dc17407a2bcc979b (patch)
treed5b43201049116cd9734ff554e61ed8a7e0084cc /src/common/sort.h
parent4691a434a34a19317156a761967f719e408b73bb (diff)
Refined the whole share system for operands.
Diffstat (limited to 'src/common/sort.h')
-rw-r--r--src/common/sort.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/sort.h b/src/common/sort.h
index fb47a5e..a887543 100644
--- a/src/common/sort.h
+++ b/src/common/sort.h
@@ -30,9 +30,15 @@
+/* Compare un booléen avec une autre. */
+int sort_boolean(bool, bool);
+
/* Compare une valeur avec une autre. */
int sort_unsigned_long(unsigned long, unsigned long);
+/* Compare un pointeur avec un autre. */
+int sort_pointer(const void *, const void *, __compar_fn_t);
+
/* Effectue une recherche dichotomique dans un tableau. */
bool bsearch_index(const void *, const void *, size_t, size_t, __compar_fn_t, size_t *);