aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2002-04-01 10:58:03 +0800
committerkris <kris@FreeBSD.org>2002-04-01 10:58:03 +0800
commit88fa35ca563edb5a9201e59b2c66c1ed7a882e5b (patch)
tree2c5a8862c24a01f2ec470da54ae2dcc0f3b73003 /www
parent3de5105d1933df0625d44b05d1f2df2a86bc5a8f (diff)
downloadfreebsd-ports-gnome-88fa35ca563edb5a9201e59b2c66c1ed7a882e5b.tar.gz
freebsd-ports-gnome-88fa35ca563edb5a9201e59b2c66c1ed7a882e5b.tar.zst
freebsd-ports-gnome-88fa35ca563edb5a9201e59b2c66c1ed7a882e5b.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-aa35
-rw-r--r--www/linemode/files/patch-ab18
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
+