diff options
Diffstat (limited to 'misc/elizatalk')
-rw-r--r-- | misc/elizatalk/distinfo | 4 | ||||
-rw-r--r-- | misc/elizatalk/patches/patch-ab | 61 |
2 files changed, 61 insertions, 4 deletions
diff --git a/misc/elizatalk/distinfo b/misc/elizatalk/distinfo index 4a72e19a066..1cb0e37fef6 100644 --- a/misc/elizatalk/distinfo +++ b/misc/elizatalk/distinfo @@ -1,6 +1,6 @@ -$NetBSD: distinfo,v 1.1.1.1 2003/03/01 13:02:10 jlam Exp $ +$NetBSD: distinfo,v 1.2 2004/09/10 12:02:53 drochner Exp $ SHA1 (elizatalk-0.4.tar.gz) = 8d5d1931fcd3d014b63d27d1c893661941800f84 Size (elizatalk-0.4.tar.gz) = 116369 bytes SHA1 (patch-aa) = 4c8e1702707636cc3ef516b1a9a26f743d8b5f39 -SHA1 (patch-ab) = e3eac085d8a410771b8ce97079decaa0a656cc45 +SHA1 (patch-ab) = b39c87a6ec89403d14fab195b4e4dd0d48c4e2be diff --git a/misc/elizatalk/patches/patch-ab b/misc/elizatalk/patches/patch-ab index 72f28650921..b17390b85e5 100644 --- a/misc/elizatalk/patches/patch-ab +++ b/misc/elizatalk/patches/patch-ab @@ -1,6 +1,6 @@ -$NetBSD: patch-ab,v 1.1.1.1 2003/03/01 13:02:11 jlam Exp $ +$NetBSD: patch-ab,v 1.2 2004/09/10 12:02:54 drochner Exp $ ---- splotch.c.orig Mon Oct 23 04:37:56 2000 +--- splotch.c.orig 2000-10-23 13:37:56.000000000 +0200 +++ splotch.c @@ -17,9 +17,12 @@ #define NAME "Eliza" /* name of robot */ @@ -18,3 +18,60 @@ $NetBSD: patch-ab,v 1.1.1.1 2003/03/01 13:02:11 jlam Exp $ #define DEBUG 0 /* debug flag */ #define VERBOSE 0 /* verbose errors */ #define DEB 0 +@@ -40,7 +43,6 @@ FILE *dfile; /* file poi + int maxtempl; /* templ[maxtempl] is last entry */ + int oldkeywd[SP_HIST]; /* queue of indices of most recent keys */ + +-char *strcasestr(); + char *phrasefind(); + char *lower(); + +@@ -549,7 +551,7 @@ char *lower(s) + char *s; + { + int i; +- char tmp[400]; ++ static char tmp[400]; + + for (i=0; s[i]; ++i) + tmp[i] = tolower(s[i]); +@@ -642,30 +644,6 @@ char fname[50]; + + + +-/********************************* +-strcasestr() +-**********************************/ +-char *strcasestr (s1, s2) +-char *s1, *s2; +-{ +- +- char n1[256], n2[256]; +- int j; +- +- for (j=0;s1[j] != '\0';j++) +- n1[j] = toupper (s1[j]); +- n1[j] = '\0'; +- for (j=0;s2[j] != '\0';j++) +- n2[j] = toupper (s2[j]); +- n2[j] = '\0'; +- +- return (strstr (n1, n2)); +-} +- +- +- +- +- + + + +@@ -706,7 +684,7 @@ trytempl(question) + firstime=0; + } + else +- key=strtok(key[strlen(key)], ":\n"); ++ key=strtok(0, ":\n"); + if (key == NULL) { + done=1; + break; |