ref: 049ac5456df23da6d3b6d22d1c7bedc99d820c94
parent: 095fdd12f103a99f1b5f247d9598c50e434c0478
author: qwx <qwx@sciops.net>
date: Sun Aug 16 21:55:04 EDT 2020
declare kmpstrfind and silly statics
--- a/asif.h
+++ b/asif.h
@@ -17,6 +17,7 @@
VArray* valloc(ulong, int);
VArray* naivestrfind(String, String);
+VArray* kmpstrfind(String, String);
typedef struct Pairheap Pairheap;
struct Pairheap{
--- a/kmp.c
+++ b/kmp.c
@@ -5,7 +5,7 @@
/* ordinary knuth-morris-pratt exact string search of a word W within a text S
* with W preprocessing */
-int *
+static int *
jumptab(String W)
{
int i, j, *T;