summaryrefslogtreecommitdiff
path: root/src/common/sort.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2024-03-03 11:54:51 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2024-03-03 11:54:51 (GMT)
commit7f25bd904e483ca90548c7001839a102090eb290 (patch)
treed19c48beb00ce3d3bbc38e5f801896f9ae406f99 /src/common/sort.h
parent28ef52f37784817c6590cdafc94aa9b356123802 (diff)
Use a global allocator to store (partial) matches.
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 4b2ae94..39a6f33 100644
--- a/src/common/sort.h
+++ b/src/common/sort.h
@@ -64,6 +64,12 @@ void *qinsert(void *, size_t *, size_t, __compar_fn_t, void *);
/* Ajoute au bon endroit un élément dans un tableau trié. */
void *qinsert_multi(void *, size_t *, size_t, __compar_fn_t, void *);
+/* Ajoute à l'endroit indiqué un élément dans un tableau. */
+void *_qinsert_managed(void *, size_t *, size_t *, size_t, void *, size_t);
+
+/* Ajoute au bon endroit un élément dans un tableau trié. */
+void *qinsert_managed(void *, size_t *, size_t *, size_t, __compar_fn_t, void *);
+
/* Supprime un élément dans un tableau trié. */
void *_qdelete(void *, size_t *, size_t, size_t);