From 2b3c3a85ec8aa8b4b94c0e594c32449dd70b4d26 Mon Sep 17 00:00:00 2001 From: John Hawthorn Date: Sat, 21 May 2016 14:56:03 -0700 Subject: Move sources into src directory --- src/match.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/match.h (limited to 'src/match.h') diff --git a/src/match.h b/src/match.h new file mode 100644 index 0000000..941b62e --- /dev/null +++ b/src/match.h @@ -0,0 +1,12 @@ +#ifndef MATCH_H +#define MATCH_H MATCH_H + +typedef double score_t; +#define SCORE_MAX INFINITY +#define SCORE_MIN -INFINITY + +int has_match(const char *needle, const char *haystack); +score_t match_positions(const char *needle, const char *haystack, size_t *positions); +score_t match(const char *needle, const char *haystack); + +#endif -- cgit v1.2.3