summaryrefslogtreecommitdiffstats
path: root/src/mergesort.h
diff options
context:
space:
mode:
authorGravatar Gediminas Jakutis <gediminas@varciai.lt> 2021-02-09 05:43:36 +0200
committerGravatar Gediminas Jakutis <gediminas@varciai.lt> 2021-02-09 05:43:36 +0200
commit41efe7b8f9f67d5956ab677f3631478c48114ac1 (patch)
tree9b2d1cff2bc30b484a9192a498d38344803d83d9 /src/mergesort.h
parent7754455c48c50764ad7291ea508109c53b60517f (diff)
downloadalgos-ld1-41efe7b8f9f67d5956ab677f3631478c48114ac1.tar.gz
algos-ld1-41efe7b8f9f67d5956ab677f3631478c48114ac1.tar.bz2
algos-ld1-41efe7b8f9f67d5956ab677f3631478c48114ac1.zip
A major overhaul of the whole thing.
It has come to my attention that previously, the project was built on top of some *very* incorrect assumptions. This patch mostly addresses that. And while it does NOT leave the project in otherwise working state, it does weed out most, if not all, of effects of previously incorrect assumptions, so it can be built the right way from here on forth. Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
Diffstat (limited to 'src/mergesort.h')
-rw-r--r--src/mergesort.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mergesort.h b/src/mergesort.h
new file mode 100644
index 0000000..8ac3ab5
--- /dev/null
+++ b/src/mergesort.h
@@ -0,0 +1,12 @@
+/* SPDX-License-Identifier: LGPL-2.1-only */
+
+/* Copyright (C) 2020 Gediminas Jakutis */
+
+#ifndef ALGOS_MERGESORT_H_INCLUDED
+#define ALGOS_MERGESORT_H_INCLUDED
+
+#include "defs.h"
+
+int merge(struct stream * const dest, struct stream * const A, struct stream * const B);
+
+#endif /* ALGOS_MERGESORT_H_INCLUDED */