| ... | ... |
@@ -1,3 +1,6 @@ |
| 1 |
+#ifndef CHOICES_H |
|
| 2 |
+#define CHOICES_H CHOICES_H |
|
| 3 |
+ |
|
| 1 | 4 |
typedef struct {
|
| 2 | 5 |
size_t capacity; |
| 3 | 6 |
size_t size; |
| ... | ... |
@@ -20,3 +23,4 @@ double choices_getscore(choices_t *c, size_t n); |
| 20 | 23 |
void choices_prev(choices_t *c); |
| 21 | 24 |
void choices_next(choices_t *c); |
| 22 | 25 |
|
| 26 |
+#endif |
| 12 | 12 |
similarity index 83% |
| 13 | 13 |
rename from fzy.h |
| 14 | 14 |
rename to match.h |
| ... | ... |
@@ -1,5 +1,5 @@ |
| 1 |
-#ifndef FZY_H |
|
| 2 |
-#define FZY_H FZY_H |
|
| 1 |
+#ifndef MATCH_H |
|
| 2 |
+#define MATCH_H MATCH_H |
|
| 3 | 3 |
|
| 4 | 4 |
int has_match(const char *needle, const char *haystack); |
| 5 | 5 |
double match_positions(const char *needle, const char *haystack, size_t *positions); |