Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

This commit was manufactured by cvs2svn to create tag

'BEFORE_PRE_SHUTDOWN_REVERSE_PATCH'.
  • Loading branch information...
commit 81110224e210ab42f6332b493ff0c3bfc97562de 1 parent 97e1ad1
authored January 16, 2000
64  ext/pcre/config0.m4
... ...
@@ -1,64 +0,0 @@
1  
-dnl $Id$
2  
-dnl config.m4 for extension pcre
3  
-
4  
-dnl By default we'll compile and link against the bundled PCRE library
5  
-dnl if DIR is supplied, we'll use that for linking
6  
-
7  
-AC_MSG_CHECKING(whether to include PCRE support)
8  
-AC_ARG_WITH(pcre-regex,
9  
-[  --without-pcre-regex    Do not include Perl Compatible Regular Expressions 
10  
-                          support. Use --with-pcre-regex=DIR to specify DIR
11  
-                          where PCRE's include and library files are located,
12  
-                          if not using bundled library.],
13  
-[
14  
-	case "$withval" in 
15  
-		no)
16  
-			AC_MSG_RESULT(no)
17  
-			;;
18  
-		yes)
19  
-			EXTRA_LIBS="-L$abs_builddir/ext/pcre/pcrelib -lpcre $EXTRA_LIBS"
20  
-			PCRE_SUBDIR="pcrelib"
21  
-			AC_DEFINE(HAVE_BUNDLED_PCRE, 1, [ ])
22  
-			AC_MSG_RESULT(yes)
23  
-			PHP_EXTENSION(pcre)
24  
-			PHP_FAST_OUTPUT(ext/pcre/pcrelib/Makefile)
25  
-			;;
26  
-		*)
27  
-			if test -f $withval/pcre.h ; then
28  
-				changequote({,})
29  
-				pcre_major=`grep PCRE_MAJOR $withval/pcre.h | sed -e 's/[^0-9]//g'`
30  
-				pcre_minor=`grep PCRE_MINOR $withval/pcre.h | sed -e 's/[^0-9]//g'`
31  
-				changequote([,])
32  
-				pcre_version=$pcre_major$pcre_minor
33  
-				if test "$pcre_version" -ge 208; then
34  
-					AC_ADD_INCLUDE($withval)
35  
-				else
36  
-					AC_MSG_ERROR(PCRE extension requires PCRE library version >= 2.08)
37  
-				fi
38  
-			else
39  
-				AC_MSG_ERROR(Could not find pcre.h in $withval)
40  
-			fi
41  
-
42  
-			if test -f $withval/libpcre.a ; then
43  
-				AC_ADD_LIBRARY_WITH_PATH(pcre, $withval)
44  
-			else
45  
-				AC_MSG_ERROR(Could not find libpcre.a in $withval)
46  
-			fi
47  
-
48  
-			AC_DEFINE(HAVE_PCRE, 1, [ ])
49  
-			AC_MSG_RESULT(yes)
50  
-			PHP_EXTENSION(pcre)
51  
-			;;
52  
-	esac
53  
-],[
54  
-  PCRE_LIBADD=pcrelib/libpcre.la
55  
-  PCRE_SUBDIRS=pcrelib
56  
-  AC_DEFINE(HAVE_BUNDLED_PCRE, 1, [ ])
57  
-  AC_MSG_RESULT(yes)
58  
-  PHP_EXTENSION(pcre)
59  
-  PHP_FAST_OUTPUT(ext/pcre/pcrelib/Makefile)
60  
-]) 
61  
-PHP_SUBST(PCRE_LIBADD)
62  
-PHP_SUBST(PCRE_SUBDIRS)
63  
-
64  
-AC_CHECK_FUNC(memmove, [], [AC_DEFINE(USE_BCOPY, 1, [ ])])
113  strtok_r.c
... ...
@@ -1,113 +0,0 @@
1  
-#include "php.h"
2  
-
3  
-#ifndef HAVE_STRTOK_R
4  
-
5  
-/*
6  
- * Copyright (c) 1998 Softweyr LLC.  All rights reserved.
7  
- *
8  
- * strtok_r, from Berkeley strtok
9  
- * Oct 13, 1998 by Wes Peters <wes@softweyr.com>
10  
- *
11  
- * Copyright (c) 1988, 1993
12  
- *	The Regents of the University of California.  All rights reserved.
13  
- *
14  
- * Redistribution and use in source and binary forms, with or without
15  
- * modification, are permitted provided that the following conditions
16  
- * are met:
17  
- *
18  
- * 1. Redistributions of source code must retain the above copyright
19  
- *    notices, this list of conditions and the following disclaimer.
20  
- * 
21  
- * 2. Redistributions in binary form must reproduce the above copyright
22  
- *    notices, this list of conditions and the following disclaimer in the
23  
- *    documentation and/or other materials provided with the distribution.
24  
- * 
25  
- * 3. All advertising materials mentioning features or use of this software
26  
- *    must display the following acknowledgement:
27  
- *
28  
- *	This product includes software developed by Softweyr LLC, the
29  
- *      University of California, Berkeley, and its contributors.
30  
- *
31  
- * 4. Neither the name of the University nor the names of its contributors
32  
- *    may be used to endorse or promote products derived from this software
33  
- *    without specific prior written permission.
34  
- *
35  
- * THIS SOFTWARE IS PROVIDED BY SOFTWEYR LLC, THE REGENTS AND CONTRIBUTORS
36  
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
37  
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
38  
- * PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL SOFTWEYR LLC, THE
39  
- * REGENTS, OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
40  
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
41  
- * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
42  
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
43  
- * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
44  
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
45  
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
46  
- */
47  
-
48  
-#include <stddef.h>
49  
-#include <string.h>
50  
-
51  
-char *
52  
-strtok_r(char *s, const char *delim, char **last)
53  
-{
54  
-    char *spanp;
55  
-    int c, sc;
56  
-    char *tok;
57  
-
58  
-    if (s == NULL && (s = *last) == NULL)
59  
-    {
60  
-	return NULL;
61  
-    }
62  
-
63  
-    /*
64  
-     * Skip (span) leading delimiters (s += strspn(s, delim), sort of).
65  
-     */
66  
-cont:
67  
-    c = *s++;
68  
-    for (spanp = (char *)delim; (sc = *spanp++) != 0; )
69  
-    {
70  
-	if (c == sc)
71  
-	{
72  
-	    goto cont;
73  
-	}
74  
-    }
75  
-
76  
-    if (c == 0)		/* no non-delimiter characters */
77  
-    {
78  
-	*last = NULL;
79  
-	return NULL;
80  
-    }
81  
-    tok = s - 1;
82  
-
83  
-    /*
84  
-     * Scan token (scan for delimiters: s += strcspn(s, delim), sort of).
85  
-     * Note that delim must have one NUL; we stop if we see that, too.
86  
-     */
87  
-    for (;;)
88  
-    {
89  
-	c = *s++;
90  
-	spanp = (char *)delim;
91  
-	do
92  
-	{
93  
-	    if ((sc = *spanp++) == c)
94  
-	    {
95  
-		if (c == 0)
96  
-		{
97  
-		    s = NULL;
98  
-		}
99  
-		else
100  
-		{
101  
-		    char *w = s - 1;
102  
-		    *w = '\0';
103  
-		}
104  
-		*last = s;
105  
-		return tok;
106  
-	    }
107  
-	}
108  
-	while (sc != 0);
109  
-    }
110  
-    /* NOTREACHED */
111  
-}
112  
-
113  
-#endif

0 notes on commit 8111022

Please sign in to comment.
Something went wrong with that request. Please try again.