summaryrefslogtreecommitdiff
path: root/lang/eperl
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2001-12-19 14:43:59 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2001-12-19 14:43:59 +0000
commit21e04a0b9b5dca99d821dbcf77717956163a103e (patch)
tree15e84c3a2a93a84baeb9908c71454e6133cd6a29 /lang/eperl
parentAdd p5-Scalar-List-Utils, a collection of Perl subroutines that would be (diff)
Unbroke on -current: don't prototype/implement strnstr(3) - this function
is already in libc.
Notes
Notes: svn path=/head/; revision=51842
Diffstat (limited to 'lang/eperl')
-rw-r--r--lang/eperl/files/patch-eperl_parse.c26
-rw-r--r--lang/eperl/files/patch-eperl_proto.h13
2 files changed, 39 insertions, 0 deletions
diff --git a/lang/eperl/files/patch-eperl_parse.c b/lang/eperl/files/patch-eperl_parse.c
new file mode 100644
index 000000000000..fe0ee26898cc
--- /dev/null
+++ b/lang/eperl/files/patch-eperl_parse.c
@@ -0,0 +1,26 @@
+
+$FreeBSD$
+
+--- eperl_parse.c 2001/12/19 14:40:20 1.1
++++ eperl_parse.c 2001/12/19 14:40:33
+@@ -298,20 +298,6 @@
+ return NULL;
+ }
+
+-char *strnstr(char *buf, char *str, int n)
+-{
+- char *cp;
+- char *cpe;
+- int len;
+-
+- len = strlen(str);
+- for (cp = buf, cpe = buf+n-len; cp <= cpe; cp++) {
+- if (strncmp(cp, str, len) == 0)
+- return cp;
+- }
+- return NULL;
+-}
+-
+ char *strncasestr(char *buf, char *str, int n)
+ {
+ char *cp;
diff --git a/lang/eperl/files/patch-eperl_proto.h b/lang/eperl/files/patch-eperl_proto.h
new file mode 100644
index 000000000000..4038c60b440f
--- /dev/null
+++ b/lang/eperl/files/patch-eperl_proto.h
@@ -0,0 +1,13 @@
+
+$FreeBSD$
+
+--- eperl_proto.h 2001/12/19 14:37:46 1.1
++++ eperl_proto.h 2001/12/19 14:39:24
+@@ -79,7 +79,6 @@
+ extern char *ePerl_Efwrite(char *cpBuf, int nBuf, int cNum, char *cpOut);
+ extern char *ePerl_Cfwrite(char *cpBuf, int nBuf, int cNum, char *cpOut);
+ extern char *strnchr(char *buf, char chr, int n);
+-extern char *strnstr(char *buf, char *str, int n);
+ extern char *strncasestr(char *buf, char *str, int n);
+ extern char *strndup(char *buf, int n);
+ extern char *ePerl_Bristled2Plain(char *cpBuf);