summaryrefslogtreecommitdiff
path: root/src/diff.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2015-05-19 19:46:24 +0100
committerMaxime Coste <frrrwww@gmail.com>2015-05-19 19:46:24 +0100
commit9f46d75b27612b4bc280f61d09ba9212289b5ef7 (patch)
treefc5e68f15a0ba31900217290a89f220478edd63a /src/diff.hh
parent38bbecef62da8c0ca82dbbc3debc81c5e1b96a2e (diff)
Add headers guard to diff.hh along with a comment about the algorithm
Diffstat (limited to 'src/diff.hh')
-rw-r--r--src/diff.hh9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/diff.hh b/src/diff.hh
index f16b74ef..c339f435 100644
--- a/src/diff.hh
+++ b/src/diff.hh
@@ -1,3 +1,10 @@
+#ifndef diff_hh_INCLUDED
+#define diff_hh_INCLUDED
+
+// Implementation of the linear space variant of the algorithm described in
+// "An O(ND) Difference Algorithm and Its Variations"
+// (http://xmailserver.org/diff2.pdf)
+
#include "array_view.hh"
#include "vector.hh"
@@ -184,3 +191,5 @@ Vector<Diff> find_diff(Iterator a, int N, Iterator b, int M,
}
}
+
+#endif // diff_hh_INCLUDED