diff options
author | Kris Kennaway <kris@FreeBSD.org> | 2002-04-01 02:58:03 +0000 |
---|---|---|
committer | Kris Kennaway <kris@FreeBSD.org> | 2002-04-01 02:58:03 +0000 |
commit | eccc8292fd6dfac841c0fee32e9a15c9c88de140 (patch) | |
tree | ef8b02d97be323a2440eae16cde3dbe1014f8a67 /www | |
parent | 9b4580f1d4d3016ad93aae8f901b98686ff3e0a8 (diff) | |
download | freebsd-ports-eccc8292fd6dfac841c0fee32e9a15c9c88de140.zip |
Remove internal implementation of strcasestr(). Build still broken on
-current due to stdio changes.
Diffstat (limited to 'www')
-rw-r--r-- | www/linemode/files/patch-aa | 35 | ||||
-rw-r--r-- | www/linemode/files/patch-ab | 18 |
2 files changed, 53 insertions, 0 deletions
diff --git a/www/linemode/files/patch-aa b/www/linemode/files/patch-aa new file mode 100644 index 000000000000..798184d1e1c8 --- /dev/null +++ b/www/linemode/files/patch-aa @@ -0,0 +1,35 @@ +--- ./Library/Implementation/HTString.c.orig Sun Mar 31 18:52:30 2002 ++++ ./Library/Implementation/HTString.c Sun Mar 31 18:53:07 2002 +@@ -62,32 +62,6 @@ + } + + +-/* +-** strcasestr(s1,s2) -- like strstr(s1,s2) but case-insensitive. +-*/ +-PUBLIC char * strcasestr (char * s1, char * s2) +-{ +- char * ptr = s1; +- +- if (!s1 || !s2 || !*s2) return s1; +- +- while (*ptr) { +- if (TOUPPER(*ptr) == TOUPPER(*s2)) { +- char * cur1 = ptr + 1; +- char * cur2 = s2 + 1; +- while (*cur1 && *cur2 && TOUPPER(*cur1) == TOUPPER(*cur2)) { +- cur1++; +- cur2++; +- } +- if (!*cur2) return ptr; +- } +- ptr++; +- } +- return NULL; +-} +- +- +- + /* Allocate a new copy of a string, and returns it + */ + PUBLIC char * HTSACopy (char ** dest, CONST char * src) diff --git a/www/linemode/files/patch-ab b/www/linemode/files/patch-ab new file mode 100644 index 000000000000..80b5a48b73a4 --- /dev/null +++ b/www/linemode/files/patch-ab @@ -0,0 +1,18 @@ +--- ./Library/Implementation/HTString.h.orig Sun Mar 31 18:52:36 2002 ++++ ./Library/Implementation/HTString.h Sun Mar 31 18:52:50 2002 +@@ -61,14 +61,6 @@ + */ + extern char * HTStrMatch (CONST char * tmpl, CONST char * name); + extern char * HTStrCaseMatch (CONST char * tmpl, CONST char * name); +-/* +- +-Case-insensitive strstr +- +- This works like strstr() but is not case-sensitive. +- +- */ +-extern char * strcasestr (char * s1, char * s2); + /* + + Strip white space off a string + |