| 1 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,12 +0,0 @@ |
| 1 |
-#ifndef MATCH_H |
|
| 2 |
-#define MATCH_H MATCH_H |
|
| 3 |
- |
|
| 4 |
-typedef double score_t; |
|
| 5 |
-#define SCORE_MAX INFINITY |
|
| 6 |
-#define SCORE_MIN -INFINITY |
|
| 7 |
- |
|
| 8 |
-int has_match(const char *needle, const char *haystack); |
|
| 9 |
-score_t match_positions(const char *needle, const char *haystack, size_t *positions); |
|
| 10 |
-score_t match(const char *needle, const char *haystack); |
|
| 11 |
- |
|
| 12 |
-#endif |
| ... | ... |
@@ -1,8 +1,12 @@ |
| 1 | 1 |
#ifndef MATCH_H |
| 2 | 2 |
#define MATCH_H MATCH_H |
| 3 | 3 |
|
| 4 |
+typedef double score_t; |
|
| 5 |
+#define SCORE_MAX INFINITY |
|
| 6 |
+#define SCORE_MIN -INFINITY |
|
| 7 |
+ |
|
| 4 | 8 |
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); |
|
| 9 |
+score_t match_positions(const char *needle, const char *haystack, size_t *positions); |
|
| 10 |
+score_t match(const char *needle, const char *haystack); |
|
| 7 | 11 |
|
| 8 | 12 |
#endif |
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,8 @@ |
| 1 |
+#ifndef MATCH_H |
|
| 2 |
+#define MATCH_H MATCH_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 |