Browse code

Cleanup headers

John Hawthorn authored on 15/09/2014 02:42:43
Showing 1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,8 +0,0 @@
1
-#ifndef FZY_H
2
-#define FZY_H FZY_H
3
-
4
-int has_match(const char *needle, const char *haystack);
5
-double match_positions(const char *needle, const char *haystack, size_t *positions);
6
-double match(const char *needle, const char *haystack);
7
-
8
-#endif
Browse code

Don't require scores to be positive

Previously a successful match was determined by the score being
positive. Now we will use has_match instead.

John Hawthorn authored on 26/07/2014 09:44:12
Showing 1 changed files
... ...
@@ -1,6 +1,7 @@
1 1
 #ifndef FZY_H
2 2
 #define FZY_H FZY_H
3 3
 
4
+int has_match(const char *needle, const char *haystack);
4 5
 double match_positions(const char *needle, const char *haystack, size_t *positions);
5 6
 double match(const char *needle, const char *haystack);
6 7
 
Browse code

Move declarations into fzy.h

John Hawthorn authored on 26/07/2014 09:37:24
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,7 @@
1
+#ifndef FZY_H
2
+#define FZY_H FZY_H
3
+
4
+double match_positions(const char *needle, const char *haystack, size_t *positions);
5
+double match(const char *needle, const char *haystack);
6
+
7
+#endif