httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@locus.apache.org
Subject cvs commit: apache-2.0/src/lib/pcre/testdata testinput3 testoutput1 testoutput2 testoutput3 testoutput4
Date Sun, 20 Aug 2000 03:21:57 GMT
rbb         00/08/19 20:21:57

  Modified:    src      CHANGES
               src/include pcreposix.h
               src/lib/pcre ChangeLog LICENCE Makefile.in config.in
                        configure.in internal.h pcre.c pcre.h pcre.in
                        pcretest.c
               src/lib/pcre/doc pcre.3 pcre.html pcre.txt pcretest.txt
               src/lib/pcre/testdata testinput3 testoutput1 testoutput2
                        testoutput3 testoutput4
  Log:
  Upgrade PCRE to version 3.2
  
  Revision  Changes    Path
  1.209     +2 -0      apache-2.0/src/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/CHANGES,v
  retrieving revision 1.208
  retrieving revision 1.209
  diff -u -r1.208 -r1.209
  --- CHANGES	2000/08/19 16:54:44	1.208
  +++ CHANGES	2000/08/20 03:21:51	1.209
  @@ -1,5 +1,7 @@
   Changes with Apache 2.0a7
   
  +  *) Update PCRE to version 3.2.  [Ryan Bloom]
  +
     *) Change the way buckets' destroy functions are called so that
        they can be more directly used when changing the type of a
        bucket in place. [Tony Finch]
  
  
  
  1.2       +0 -1      apache-2.0/src/include/pcreposix.h
  
  Index: pcreposix.h
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/include/pcreposix.h,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- pcreposix.h	2000/05/05 23:17:53	1.1
  +++ pcreposix.h	2000/08/20 03:21:52	1.2
  @@ -3,7 +3,6 @@
   *************************************************/
   
   /* Copyright (c) 1997-2000 University of Cambridge */
  -/* Do not edit this file, this is provided by PCRE */
   
   #ifndef _PCREPOSIX_H
   #define _PCREPOSIX_H
  
  
  
  1.2       +39 -0     apache-2.0/src/lib/pcre/ChangeLog
  
  Index: ChangeLog
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/pcre/ChangeLog,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ChangeLog	2000/05/05 23:28:21	1.1
  +++ ChangeLog	2000/08/20 03:21:52	1.2
  @@ -2,6 +2,45 @@
   ------------------
   
   
  +Version 3.2 12-May-00
  +---------------------
  +
  +This is purely a bug fixing release.
  +
  +1. If the pattern /((Z)+|A)*/ was matched agained ZABCDEFG it matched Z instead
  +of ZA. This was just one example of several cases that could provoke this bug,
  +which was introduced by change 9 of version 2.00. The code for breaking
  +infinite loops after an iteration that matches an empty string was't working
  +correctly.
  +
  +2. The pcretest program was not imitating Perl correctly for the pattern /a*/g
  +when matched against abbab (for example). After matching an empty string, it
  +wasn't forcing anchoring when setting PCRE_NOTEMPTY for the next attempt; this
  +caused it to match further down the string than it should.
  +
  +3. The code contained an inclusion of sys/types.h. It isn't clear why this
  +was there because it doesn't seem to be needed, and it causes trouble on some
  +systems, as it is not a Standard C header. It has been removed.
  +
  +4. Made 4 silly changes to the source to avoid stupid compiler warnings that
  +were reported on the Macintosh. The changes were from
  +
  +  while ((c = *(++ptr)) != 0 && c != '\n');
  +to
  +  while ((c = *(++ptr)) != 0 && c != '\n') ;
  +
  +Totally extraordinary, but if that's what it takes...
  +
  +5. PCRE is being used in one environment where neither memmove() nor bcopy() is
  +available. Added HAVE_BCOPY and an autoconf test for it; if neither
  +HAVE_MEMMOVE nor HAVE_BCOPY is set, use a built-in emulation function which
  +assumes the way PCRE uses memmove() (always moving upwards).
  +
  +6. PCRE is being used in one environment where strchr() is not available. There
  +was only one use in pcre.c, and writing it out to avoid strchr() probably gives
  +faster code anyway.
  +
  +
   Version 3.1 09-Feb-00
   ---------------------
   
  
  
  
  1.2       +13 -1     apache-2.0/src/lib/pcre/LICENCE
  
  Index: LICENCE
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/pcre/LICENCE,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- LICENCE	2000/05/05 23:28:21	1.1
  +++ LICENCE	2000/08/20 03:21:52	1.2
  @@ -20,7 +20,19 @@
      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
   
   2. The origin of this software must not be misrepresented, either by
  -   explicit claim or by omission.
  +   explicit claim or by omission. In practice, this means you must put
  +   a sentence like this
  +
  +     Regular expression support is provided by the PCRE library package,
  +     which is open source software, copyright by the University of
  +     Cambridge.
  +
  +   somewhere reasonably visible in your documentation and in any relevant
  +   files. A reference to the ftp site for the source should also be given
  +
  +     ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/
  +
  +   in the documentation.
   
   3. Altered versions must be plainly marked as such, and must not be
      misrepresented as being the original software.
  
  
  
  1.7       +208 -12   apache-2.0/src/lib/pcre/Makefile.in
  
  Index: Makefile.in
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/pcre/Makefile.in,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- Makefile.in	2000/06/22 18:28:07	1.6
  +++ Makefile.in	2000/08/20 03:21:52	1.7
  @@ -1,19 +1,215 @@
  -LTLIBRARY_NAME = libpcre.la
  -LTLIBRARY_SOURCES = maketables.c get.c study.c pcre.c pcreposix.c
   
  -CLEANFILES = dftables config.h chartables.c
  +# Makefile.in for PCRE (Perl-Compatible Regular Expression) library.
   
  -include $(top_srcdir)/build/ltlib.mk
  +#---------------------------------------------------------------------------#
  +# To build mingw32 DLL uncomment the next two lines. This addition for      #
  +# mingw32 was contributed by <Paul.Sokolovsky@technologist.com>. I (Philip  #
  +# Hazel) don't know anything about it! There are some additional targets at #
  +# the bottom of this Makefile.                                              #
  +#---------------------------------------------------------------------------#
  +#
  +# include dll.mk
  +# DLL_LDFLAGS=-s
   
  -config.h:
  -	touch $@
   
  -$(LTLIBRARY_OBJECTS) dftables.lo: config.h
  +#---------------------------------------------------------------------------#
  +# The next few lines are modified by "configure" to insert data that it is  #
  +# given in its arguments, or which it finds out for itself.                 #
  +#---------------------------------------------------------------------------#
   
  -dftables: dftables.lo
  -	$(LINK) $(EXTRA_LDFLAGS) dftables.lo $(EXTRA_LIBS)
  +# BINDIR is the directory in which the pgrep command is installed.
  +# INCDIR is the directory in which the public header file pcre.h is installed.
  +# LIBDIR is the directory in which the libraries are installed.
  +# MANDIR is the directory in which the man pages are installed.
  +# The pcretest program, as it is a test program, does not get installed
  +# anywhere.
   
  -chartables.c: dftables
  -	./dftables > $@
  +prefix = @prefix@
  +exec_prefix = @exec_prefix@
   
  -pcre.lo: chartables.c
  +BINDIR = @bindir@
  +LIBDIR = @libdir@
  +INCDIR = @includedir@
  +MANDIR = @mandir@
  +
  +CC = @CC@
  +CFLAGS = @CFLAGS@
  +RANLIB = @RANLIB@
  +
  +# LIBTOOL defaults to "", which cuts out the building of shared libraries.
  +# If "configure" is called with --enable-shared-libraries, then LIBTOOL is
  +# set to "./libtool", which causes shared libraries to be built, and LIBSUFFIX
  +# is set to "la" instead of "a", which causes the shared libraries to be
  +# installed.
  +
  +LIBTOOL = @LIBTOOL@
  +LIBSUFFIX = @LIBSUFFIX@
  +
  +# These are the version numbers for the shared libraries
  +
  +PCRELIBVERSION = @PCRE_LIB_VERSION@
  +PCREPOSIXLIBVERSION = @PCRE_POSIXLIB_VERSION@
  +
  +
  +#---------------------------------------------------------------------------#
  +# A copy of install-sh is in this distribution and is used by default.      #
  +#---------------------------------------------------------------------------#
  +
  +INSTALL = ./install-sh -c
  +INSTALL_DATA = ${INSTALL} -m 644
  +
  +
  +#---------------------------------------------------------------------------#
  +# For almost all systems, the command to create a library is "ar cq", but   #
  +# there is at least one where it is different, to make this configurable.   #
  +# However, I haven't got round to learning how to make "configure" find     #
  +# this out for itself. It is necessary to use a command such as             #
  +# "make AR='ar -rc'" if you need to vary this.                              #
  +#---------------------------------------------------------------------------#
  +
  +AR = ar cq
  +
  +
  +##############################################################################
  +
  +
  +OBJ = maketables.o get.o study.o pcre.o
  +LOBJ = maketables.lo get.lo study.lo pcre.lo
  +
  +all:            libtool libpcre.$(LIBSUFFIX) libpcreposix.$(LIBSUFFIX) pcretest pgrep
  +
  +libtool:        config.guess config.sub ltconfig ltmain.sh
  +		@if test "$(LIBTOOL)" = "./libtool"; then \
  +		  echo '--- Building libtool ---'; \
  +		  ./ltconfig ./ltmain.sh; \
  +		  echo '--- Built libtool ---'; fi
  +
  +pgrep:          libpcre.$(LIBSUFFIX) pgrep.o
  +		  @echo ' '
  +		  @echo '--- Building pgrep utility'
  +		  @echo ' '
  +		$(LIBTOOL) $(CC) $(CFLAGS) -o pgrep pgrep.o libpcre.$(LIBSUFFIX)
  +
  +pcretest:       libpcre.$(LIBSUFFIX) libpcreposix.$(LIBSUFFIX) pcretest.o
  +		  @echo ' '
  +		  @echo '--- Building pcretest testing program'
  +		  @echo ' '
  +		$(LIBTOOL) $(PURIFY) $(CC) $(CFLAGS) -o pcretest pcretest.o \
  +		  libpcre.$(LIBSUFFIX) libpcreposix.$(LIBSUFFIX)
  +
  +libpcre.a:      $(OBJ)
  +		@echo ' '
  +		@echo '--- Building static library: libpcre'
  +		@echo ' '
  +		-rm -f libpcre.a
  +		$(AR) libpcre.a $(OBJ)
  +		$(RANLIB) libpcre.a
  +
  +libpcre.la:     $(OBJ)
  +		@echo ' '
  +		@echo '--- Building shared library: libpcre'
  +		@echo ' '
  +		-rm -f libpcre.la
  +		./libtool $(CC) -version-info '$(PCRELIBVERSION)' -o libpcre.la -rpath $(LIBDIR) $(LOBJ)
  +
  +libpcreposix.a: pcreposix.o
  +		@echo ' '
  +		@echo '--- Building static library: libpcreposix'
  +		@echo ' '
  +		-rm -f libpcreposix.a
  +		$(AR) libpcreposix.a pcreposix.o
  +		$(RANLIB) libpcreposix.a
  +
  +libpcreposix.la: pcreposix.o
  +		@echo ' '
  +		@echo '--- Building shared library: libpcreposix'
  +		@echo ' '
  +		-rm -f libpcreposix.la
  +		./libtool $(CC) -version-info '$(PCREPOSIXLIBVERSION)' -o libpcreposix.la -rpath $(LIBDIR) pcreposix.lo
  +
  +pcre.o:         chartables.c pcre.c pcre.h internal.h config.h Makefile
  +		$(LIBTOOL) $(CC) -c $(CFLAGS) pcre.c
  +
  +pcreposix.o:    pcreposix.c pcreposix.h internal.h pcre.h config.h Makefile
  +		$(LIBTOOL) $(CC) -c $(CFLAGS) pcreposix.c
  +
  +maketables.o:   maketables.c pcre.h internal.h config.h Makefile
  +		$(LIBTOOL) $(CC) -c $(CFLAGS) maketables.c
  +
  +get.o:          get.c pcre.h internal.h config.h Makefile
  +		$(LIBTOOL) $(CC) -c $(CFLAGS) get.c
  +
  +study.o:        study.c pcre.h internal.h config.h Makefile
  +		$(LIBTOOL) $(CC) -c $(CFLAGS) study.c
  +
  +pcretest.o:     pcretest.c pcre.h config.h Makefile
  +		$(CC) -c $(CFLAGS) pcretest.c
  +
  +pgrep.o:        pgrep.c pcre.h Makefile config.h
  +		$(CC) -c $(CFLAGS) pgrep.c
  +
  +# An auxiliary program makes the default character table source
  +
  +chartables.c:   dftables
  +		./dftables >chartables.c
  +
  +dftables:       dftables.c maketables.c pcre.h internal.h config.h Makefile
  +		$(CC) -o dftables $(CFLAGS) dftables.c
  +
  +install:        all
  +		$(LIBTOOL) $(INSTALL_DATA) libpcre.$(LIBSUFFIX) $(LIBDIR)/libpcre.$(LIBSUFFIX)
  +		$(LIBTOOL) $(INSTALL_DATA) libpcreposix.$(LIBSUFFIX) $(LIBDIR)/libpcreposix.$(LIBSUFFIX)
  +		$(INSTALL_DATA) pcre.h $(INCDIR)/pcre.h
  +		$(INSTALL_DATA) pcreposix.h $(INCDIR)/pcreposix.h
  +		$(INSTALL_DATA) doc/pcre.3 $(MANDIR)/man3/pcre.3
  +		$(INSTALL_DATA) doc/pcreposix.3 $(MANDIR)/man3/pcreposix.3
  +		$(INSTALL_DATA) doc/pgrep.1 $(MANDIR)/man1/pgrep.1
  +		@if test "$(LIBTOOL)" = "./libtool"; then \
  +		  echo ' '; \
  +		  echo '--- Rebuilding pgrep to use installed shared library ---'; \
  +		  echo $(CC) $(CFLAGS) -o pgrep pgrep.o -L$(LIBDIR) -lpcre; \
  +		  $(CC) $(CFLAGS) -o pgrep pgrep.o -L$(LIBDIR) -lpcre; \
  +		  echo '--- Rebuilding pcretest to use installed shared library ---'; \
  +		  echo $(CC) $(CFLAGS) -o pcretest pcretest.o -L$(LIBDIR) -lpcre -lpcreposix; \
  +		  $(CC) $(CFLAGS) -o pcretest pcretest.o -L$(LIBDIR) -lpcre -lpcreposix; \
  +		fi
  +		$(INSTALL)	pgrep $(BINDIR)/pgrep
  +		$(INSTALL)	pcre-config $(BINDIR)/pcre-config
  +
  +# We deliberately omit dftables and chartables.c from 'make clean'; once made
  +# chartables.c shouldn't change, and if people have edited the tables by hand,
  +# you don't want to throw them away.
  +
  +clean:;         -rm -rf *.o *.lo *.a *.la .libs pcretest pgrep testtry
  +
  +# But "make distclean" should get back to a virgin distribution
  +
  +distclean:      clean
  +		-rm -f chartables.c libtool pcre-config pcre.h \
  +		Makefile config.h config.status config.log config.cache
  +
  +check:          runtest
  +
  +runtest:        all
  +		./RunTest
  +
  +######## MINGW32 ############### MINGW32 ############### MINGW32 #############
  +
  +# This addition for mingw32 was contributed by  Paul Sokolovsky
  +# <Paul.Sokolovsky@technologist.com>. I (PH) don't know anything about it!
  +
  +dll:            _dll libpcre.dll.a pgrep_d pcretest_d
  +
  +_dll:
  +		$(MAKE) CFLAGS=-DSTATIC pcre.dll
  +
  +pcre.dll:       $(OBJ) pcreposix.o pcre.def
  +libpcre.dll.a:  pcre.def
  +
  +pgrep_d:        libpcre.dll.a pgrep.o
  +		$(CC) $(CFLAGS) -L. -o pgrep pgrep.o -lpcre.dll
  +
  +pcretest_d:     libpcre.dll.a pcretest.o
  +		$(PURIFY) $(CC) $(CFLAGS) -L. -o pcretest pcretest.o -lpcre.dll
  +
  +# End
  
  
  
  1.2       +10 -5     apache-2.0/src/lib/pcre/config.in
  
  Index: config.in
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/pcre/config.in,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- config.in	2000/05/05 23:28:21	1.1
  +++ config.in	2000/08/20 03:21:52	1.2
  @@ -5,7 +5,10 @@
   
   On a non-Unix system you should just copy this file into config.h and change
   the definitions of HAVE_STRERROR and HAVE_MEMMOVE to 1. Unfortunately, because
  -of the way autoconf works, these cannot be made the defaults. */
  +of the way autoconf works, these cannot be made the defaults. If your system
  +has bcopy() and not memmove(), change the definition of HAVE_BCOPY instead of
  +HAVE_MEMMOVE. If your system has neither bcopy() nor memmove(), leave them both
  +as 0; an emulation function will be used. */
   
   /* Define to empty if the keyword does not work. */
   
  @@ -17,12 +20,14 @@
   
   /* The following two definitions are mainly for the benefit of SunOS4, which
   doesn't have the strerror() or memmove() functions that should be present in
  -all Standard C libraries. The macros should normally be defined with the value
  -1 for other systems, but unfortunately we can't make this the default because
  -"configure" files generated by autoconf will only change 0 to 1; they won't
  -change 1 to 0 if the functions are not found. */
  +all Standard C libraries. The macros HAVE_STRERROR and HAVE_MEMMOVE should
  +normally be defined with the value 1 for other systems, but unfortunately we
  +can't make this the default because "configure" files generated by autoconf
  +will only change 0 to 1; they won't change 1 to 0 if the functions are not
  +found. If HAVE_MEMMOVE is set to 1, the value of HAVE_BCOPY is not relevant. */
   
   #define HAVE_STRERROR 0
   #define HAVE_MEMMOVE  0
  +#define HAVE_BCOPY    0
   
   /* End */
  
  
  
  1.4       +11 -21    apache-2.0/src/lib/pcre/configure.in
  
  Index: configure.in
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/pcre/configure.in,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- configure.in	2000/05/16 11:54:36	1.3
  +++ configure.in	2000/08/20 03:21:53	1.4
  @@ -17,22 +17,20 @@
   dnl that many releases anyway.
   
   PCRE_MAJOR=3
  -PCRE_MINOR=1
  -PCRE_DATE=09-Feb-2000
  +PCRE_MINOR=2
  +PCRE_DATE=12-May-2000
   PCRE_VERSION=${PCRE_MAJOR}.${PCRE_MINOR}
   
   dnl Provide versioning information for libtool shared libraries that
   dnl are built by default on Unix systems.
   
  -PCRE_LIB_VERSION=0:0:0
  +PCRE_LIB_VERSION=0:1:0
   PCRE_POSIXLIB_VERSION=0:0:0
   
   dnl Checks for programs.
   
   AC_PROG_CC
  -dnl OS/390 doesn't have ranlib and its make utility thinks RANLIB=:
  -dnl is a rule, so set RANLIB to true if there is no ranlib.
  -AC_CHECK_PROG(RANLIB, ranlib, ranlib, true)
  +AC_PROG_RANLIB
   
   dnl Checks for header files.
   
  @@ -46,27 +44,19 @@
   
   dnl Checks for library functions.
   
  -AC_CHECK_FUNCS(memmove strerror)
  +AC_CHECK_FUNCS(bcopy memmove strerror)
   
   dnl Handle --enable-shared-libraries
   
  -LIBTOOL=
  -LIBSUFFIX=a
  +LIBTOOL=./libtool
  +LIBSUFFIX=la
   AC_ARG_ENABLE(shared,
  -[  --enable-shared        build PCRE as a shared library],
  -if test "$enableval" = "yes"; then
  -  LIBTOOL=libtool
  -  LIBSUFFIX=la
  +[  --disable-shared        build PCRE as a static library],
  +if test "$enableval" = "no"; then
  +  LIBTOOL=
  +  LIBSUFFIX=a
   fi
   )
  -
  -PLATFORM=`uname -s`
  -
  -case "$PLATFORM" in
  -*OS/2*)
  -  CFLAGS="$CFLAGS -Zexe"
  -  ;;
  -esac
   
   dnl "Export" these variables
   
  
  
  
  1.2       +17 -1     apache-2.0/src/lib/pcre/internal.h
  
  Index: internal.h
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/pcre/internal.h,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- internal.h	2000/05/05 23:28:22	1.1
  +++ internal.h	2000/08/20 03:21:53	1.2
  @@ -40,11 +40,27 @@
   #include "config.h"
   
   /* To cope with SunOS4 and other systems that lack memmove() but have bcopy(),
  -define a macro for memmove() if HAVE_MEMMOVE is false. */
  +define a macro for memmove() if HAVE_MEMMOVE is false, provided that HAVE_BCOPY
  +is set. Otherwise, include an emulating function for those systems that have
  +neither (there some non-Unix environments where this is the case). This assumes
  +that all calls to memmove are moving strings upwards in store, which is the
  +case in PCRE. */
   
   #if ! HAVE_MEMMOVE
   #undef  memmove        /* some systems may have a macro */
  +#if HAVE_BCOPY
   #define memmove(a, b, c) bcopy(b, a, c)
  +#else
  +void *
  +pcre_memmove(unsigned char *dest, const unsigned char *src, size_t n)
  +{
  +int i;
  +dest += n;
  +src += n;
  +for (i = 0; i < n; ++i) *(--dest) =  *(--src);
  +}
  +#define memmove(a, b, c) pcre_memmove(a, b, c)
  +#endif
   #endif
   
   /* Standard C headers plus the external interface definition */
  
  
  
  1.2       +108 -49   apache-2.0/src/lib/pcre/pcre.c
  
  Index: pcre.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/pcre/pcre.c,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- pcre.c	2000/05/05 23:28:21	1.1
  +++ pcre.c	2000/08/20 03:21:53	1.2
  @@ -145,8 +145,23 @@
     compile_regex(int, int, int *, uschar **, const uschar **, const char **,
       BOOL, int, int *, int *, compile_data *);
   
  +/* Structure for building a chain of data that actually lives on the
  +stack, for holding the values of the subject pointer at the start of each
  +subpattern, so as to detect when an empty string has been matched by a
  +subpattern - to break infinite loops. */
  +
  +typedef struct eptrblock {
  +  struct eptrblock *prev;
  +  const uschar *saved_eptr;
  +} eptrblock;
   
  +/* Flag bits for the match() function */
   
  +#define match_condassert   0x01    /* Called to check a condition assertion */
  +#define match_isgroup      0x02    /* Set if start of bracketed group */
  +
  +
  +
   /*************************************************
   *               Global variables                 *
   *************************************************/
  @@ -855,7 +870,9 @@
       if ((cd->ctypes[c] & ctype_space) != 0) continue;
       if (c == '#')
         {
  -      while ((c = *(++ptr)) != 0 && c != '\n');
  +      /* The space before the ; is to avoid a warning on a silly compiler
  +      on the Macintosh. */
  +      while ((c = *(++ptr)) != 0 && c != '\n') ;
         continue;
         }
       }
  @@ -1795,7 +1812,9 @@
           if ((cd->ctypes[c] & ctype_space) != 0) continue;
           if (c == '#')
             {
  -          while ((c = *(++ptr)) != 0 && c != '\n');
  +          /* The space before the ; is to avoid a warning on a silly compiler
  +          on the Macintosh. */
  +          while ((c = *(++ptr)) != 0 && c != '\n') ;
             if (c == 0) break;
             continue;
             }
  @@ -2313,7 +2332,9 @@
       if ((compile_block.ctypes[c] & ctype_space) != 0) continue;
       if (c == '#')
         {
  -      while ((c = *(++ptr)) != 0 && c != '\n');
  +      /* The space before the ; is to avoid a warning on a silly compiler
  +      on the Macintosh. */
  +      while ((c = *(++ptr)) != 0 && c != '\n') ;
         continue;
         }
       }
  @@ -2523,8 +2544,8 @@
           else   /* An assertion must follow */
             {
             ptr++;   /* Can treat like ':' as far as spacing is concerned */
  -
  -          if (ptr[2] != '?' || strchr("=!<", ptr[3]) == NULL)
  +          if (ptr[2] != '?' ||
  +             (ptr[3] != '=' && ptr[3] != '!' && ptr[3] != '<') )
               {
               ptr += 2;    /* To get right offset in message */
               *errorptr = ERR28;
  @@ -2737,7 +2758,9 @@
           if ((compile_block.ctypes[c] & ctype_space) != 0) continue;
           if (c == '#')
             {
  -          while ((c = *(++ptr)) != 0 && c != '\n');
  +          /* The space before the ; is to avoid a warning on a silly compiler
  +          on the Macintosh. */
  +          while ((c = *(++ptr)) != 0 && c != '\n') ;
             continue;
             }
           }
  @@ -3195,19 +3218,37 @@
      offset_top  current top pointer
      md          pointer to "static" info for the match
      ims         current /i, /m, and /s options
  -   condassert  TRUE if called to check a condition assertion
  -   eptrb       eptr at start of last bracket
  +   eptrb       pointer to chain of blocks containing eptr at start of
  +                 brackets - for testing for empty matches
  +   flags       can contain
  +                 match_condassert - this is an assertion condition
  +                 match_isgroup - this is the start of a bracketed group
   
   Returns:       TRUE if matched
   */
   
   static BOOL
   match(register const uschar *eptr, register const uschar *ecode,
  -  int offset_top, match_data *md, unsigned long int ims, BOOL condassert,
  -  const uschar *eptrb)
  +  int offset_top, match_data *md, unsigned long int ims, eptrblock *eptrb,
  +  int flags)
   {
   unsigned long int original_ims = ims;   /* Save for resetting on ')' */
  +eptrblock newptrb;
  +
  +/* At the start of a bracketed group, add the current subject pointer to the
  +stack of such pointers, to be re-instated at the end of the group when we hit
  +the closing ket. When match() is called in other circumstances, we don't add to
  +the stack. */
   
  +if ((flags & match_isgroup) != 0)
  +  {
  +  newptrb.prev = eptrb;
  +  newptrb.saved_eptr = eptr;
  +  eptrb = &newptrb;
  +  }
  +
  +/* Now start processing the operations. */
  +
   for (;;)
     {
     int op = (int)*ecode;
  @@ -3252,7 +3293,8 @@
   
         do
           {
  -        if (match(eptr, ecode+3, offset_top, md, ims, FALSE, eptr)) return TRUE;
  +        if (match(eptr, ecode+3, offset_top, md, ims, eptrb, match_isgroup))
  +          return TRUE;
           ecode += (ecode[1] << 8) + ecode[2];
           }
         while (*ecode == OP_ALT);
  @@ -3278,7 +3320,8 @@
       DPRINTF(("start bracket 0\n"));
       do
         {
  -      if (match(eptr, ecode+3, offset_top, md, ims, FALSE, eptr)) return TRUE;
  +      if (match(eptr, ecode+3, offset_top, md, ims, eptrb, match_isgroup))
  +        return TRUE;
         ecode += (ecode[1] << 8) + ecode[2];
         }
       while (*ecode == OP_ALT);
  @@ -3297,7 +3340,7 @@
         return match(eptr,
           ecode + ((offset < offset_top && md->offset_vector[offset] >= 0)?
             5 : 3 + (ecode[1] << 8) + ecode[2]),
  -        offset_top, md, ims, FALSE, eptr);
  +        offset_top, md, ims, eptrb, match_isgroup);
         }
   
       /* The condition is an assertion. Call match() to evaluate it - setting
  @@ -3305,13 +3348,14 @@
   
       else
         {
  -      if (match(eptr, ecode+3, offset_top, md, ims, TRUE, NULL))
  +      if (match(eptr, ecode+3, offset_top, md, ims, NULL,
  +          match_condassert | match_isgroup))
           {
           ecode += 3 + (ecode[4] << 8) + ecode[5];
           while (*ecode == OP_ALT) ecode += (ecode[1] << 8) + ecode[2];
           }
         else ecode += (ecode[1] << 8) + ecode[2];
  -      return match(eptr, ecode+3, offset_top, md, ims, FALSE, eptr);
  +      return match(eptr, ecode+3, offset_top, md, ims, eptrb, match_isgroup);
         }
       /* Control never reaches here */
   
  @@ -3348,7 +3392,7 @@
       case OP_ASSERTBACK:
       do
         {
  -      if (match(eptr, ecode+3, offset_top, md, ims, FALSE, NULL)) break;
  +      if (match(eptr, ecode+3, offset_top, md, ims, NULL, match_isgroup)) break;
         ecode += (ecode[1] << 8) + ecode[2];
         }
       while (*ecode == OP_ALT);
  @@ -3356,7 +3400,7 @@
   
       /* If checking an assertion for a condition, return TRUE. */
   
  -    if (condassert) return TRUE;
  +    if ((flags & match_condassert) != 0) return TRUE;
   
       /* Continue from after the assertion, updating the offsets high water
       mark, since extracts may have been taken during the assertion. */
  @@ -3372,12 +3416,14 @@
       case OP_ASSERTBACK_NOT:
       do
         {
  -      if (match(eptr, ecode+3, offset_top, md, ims, FALSE, NULL)) return FALSE;
  +      if (match(eptr, ecode+3, offset_top, md, ims, NULL, match_isgroup))
  +        return FALSE;
         ecode += (ecode[1] << 8) + ecode[2];
         }
       while (*ecode == OP_ALT);
  +
  +    if ((flags & match_condassert) != 0) return TRUE;
   
  -    if (condassert) return TRUE;
       ecode += 3;
       continue;
   
  @@ -3423,7 +3469,8 @@
   
         for (i = 1; i <= c; i++)
           save[i] = md->offset_vector[md->offset_end - i];
  -      rc = match(eptr, md->start_pattern, offset_top, md, ims, FALSE, eptrb);
  +      rc = match(eptr, md->start_pattern, offset_top, md, ims, eptrb,
  +        match_isgroup);
         for (i = 1; i <= c; i++)
           md->offset_vector[md->offset_end - i] = save[i];
         if (save != stacksave) (pcre_free)(save);
  @@ -3449,10 +3496,12 @@
       case OP_ONCE:
         {
         const uschar *prev = ecode;
  +      const uschar *saved_eptr = eptr;
   
         do
           {
  -        if (match(eptr, ecode+3, offset_top, md, ims, FALSE, eptr)) break;
  +        if (match(eptr, ecode+3, offset_top, md, ims, eptrb, match_isgroup))
  +          break;
           ecode += (ecode[1] << 8) + ecode[2];
           }
         while (*ecode == OP_ALT);
  @@ -3475,7 +3524,7 @@
         5.005. If there is an options reset, it will get obeyed in the normal
         course of events. */
   
  -      if (*ecode == OP_KET || eptr == eptrb)
  +      if (*ecode == OP_KET || eptr == saved_eptr)
           {
           ecode += 3;
           break;
  @@ -3494,13 +3543,14 @@
   
         if (*ecode == OP_KETRMIN)
           {
  -        if (match(eptr, ecode+3, offset_top, md, ims, FALSE, eptr) ||
  -            match(eptr, prev, offset_top, md, ims, FALSE, eptr)) return TRUE;
  +        if (match(eptr, ecode+3, offset_top, md, ims, eptrb, 0) ||
  +            match(eptr, prev, offset_top, md, ims, eptrb, match_isgroup))
  +              return TRUE;
           }
         else  /* OP_KETRMAX */
           {
  -        if (match(eptr, prev, offset_top, md, ims, FALSE, eptr) ||
  -            match(eptr, ecode+3, offset_top, md, ims, FALSE, eptr)) return TRUE;
  +        if (match(eptr, prev, offset_top, md, ims, eptrb, match_isgroup) ||
  +            match(eptr, ecode+3, offset_top, md, ims, eptrb, 0)) return TRUE;
           }
         }
       return FALSE;
  @@ -3521,7 +3571,8 @@
       case OP_BRAZERO:
         {
         const uschar *next = ecode+1;
  -      if (match(eptr, next, offset_top, md, ims, FALSE, eptr)) return TRUE;
  +      if (match(eptr, next, offset_top, md, ims, eptrb, match_isgroup))
  +        return TRUE;
         do next += (next[1] << 8) + next[2]; while (*next == OP_ALT);
         ecode = next + 3;
         }
  @@ -3531,7 +3582,8 @@
         {
         const uschar *next = ecode+1;
         do next += (next[1] << 8) + next[2]; while (*next == OP_ALT);
  -      if (match(eptr, next+3, offset_top, md, ims, FALSE, eptr)) return TRUE;
  +      if (match(eptr, next+3, offset_top, md, ims, eptrb, match_isgroup))
  +        return TRUE;
         ecode++;
         }
       break;
  @@ -3546,6 +3598,9 @@
       case OP_KETRMAX:
         {
         const uschar *prev = ecode - (ecode[1] << 8) - ecode[2];
  +      const uschar *saved_eptr = eptrb->saved_eptr;
  +
  +      eptrb = eptrb->prev;    /* Back up the stack of bracket start pointers */
   
         if (*prev == OP_ASSERT || *prev == OP_ASSERT_NOT ||
             *prev == OP_ASSERTBACK || *prev == OP_ASSERTBACK_NOT ||
  @@ -3565,7 +3620,10 @@
           int number = *prev - OP_BRA;
           int offset = number << 1;
   
  -        DPRINTF(("end bracket %d\n", number));
  +#ifdef DEBUG
  +        printf("end bracket %d", number);
  +        printf("\n");
  +#endif
   
           if (number > 0)
             {
  @@ -3591,7 +3649,7 @@
         5.005. If there is an options reset, it will get obeyed in the normal
         course of events. */
   
  -      if (*ecode == OP_KET || eptr == eptrb)
  +      if (*ecode == OP_KET || eptr == saved_eptr)
           {
           ecode += 3;
           break;
  @@ -3602,13 +3660,14 @@
   
         if (*ecode == OP_KETRMIN)
           {
  -        if (match(eptr, ecode+3, offset_top, md, ims, FALSE, eptr) ||
  -            match(eptr, prev, offset_top, md, ims, FALSE, eptr)) return TRUE;
  +        if (match(eptr, ecode+3, offset_top, md, ims, eptrb, 0) ||
  +            match(eptr, prev, offset_top, md, ims, eptrb, match_isgroup))
  +              return TRUE;
           }
         else  /* OP_KETRMAX */
           {
  -        if (match(eptr, prev, offset_top, md, ims, FALSE, eptr) ||
  -            match(eptr, ecode+3, offset_top, md, ims, FALSE, eptr)) return TRUE;
  +        if (match(eptr, prev, offset_top, md, ims, eptrb, match_isgroup) ||
  +            match(eptr, ecode+3, offset_top, md, ims, eptrb, 0)) return TRUE;
           }
         }
       return FALSE;
  @@ -3819,7 +3878,7 @@
           {
           for (i = min;; i++)
             {
  -          if (match(eptr, ecode, offset_top, md, ims, FALSE, eptrb))
  +          if (match(eptr, ecode, offset_top, md, ims, eptrb, 0))
               return TRUE;
             if (i >= max || !match_ref(offset, eptr, length, md, ims))
               return FALSE;
  @@ -3840,7 +3899,7 @@
             }
           while (eptr >= pp)
             {
  -          if (match(eptr, ecode, offset_top, md, ims, FALSE, eptrb))
  +          if (match(eptr, ecode, offset_top, md, ims, eptrb, 0))
               return TRUE;
             eptr -= length;
             }
  @@ -3911,7 +3970,7 @@
           {
           for (i = min;; i++)
             {
  -          if (match(eptr, ecode, offset_top, md, ims, FALSE, eptrb))
  +          if (match(eptr, ecode, offset_top, md, ims, eptrb, 0))
               return TRUE;
             if (i >= max || eptr >= md->end_subject) return FALSE;
             c = *eptr++;
  @@ -3935,7 +3994,7 @@
             }
   
           while (eptr >= pp)
  -          if (match(eptr--, ecode, offset_top, md, ims, FALSE, eptrb))
  +          if (match(eptr--, ecode, offset_top, md, ims, eptrb, 0))
               return TRUE;
           return FALSE;
           }
  @@ -4032,7 +4091,7 @@
           {
           for (i = min;; i++)
             {
  -          if (match(eptr, ecode, offset_top, md, ims, FALSE, eptrb))
  +          if (match(eptr, ecode, offset_top, md, ims, eptrb, 0))
               return TRUE;
             if (i >= max || eptr >= md->end_subject ||
                 c != md->lcc[*eptr++])
  @@ -4049,7 +4108,7 @@
             eptr++;
             }
           while (eptr >= pp)
  -          if (match(eptr--, ecode, offset_top, md, ims, FALSE, eptrb))
  +          if (match(eptr--, ecode, offset_top, md, ims, eptrb, 0))
               return TRUE;
           return FALSE;
           }
  @@ -4066,7 +4125,7 @@
           {
           for (i = min;; i++)
             {
  -          if (match(eptr, ecode, offset_top, md, ims, FALSE, eptrb))
  +          if (match(eptr, ecode, offset_top, md, ims, eptrb, 0))
               return TRUE;
             if (i >= max || eptr >= md->end_subject || c != *eptr++) return FALSE;
             }
  @@ -4081,7 +4140,7 @@
             eptr++;
             }
           while (eptr >= pp)
  -         if (match(eptr--, ecode, offset_top, md, ims, FALSE, eptrb))
  +         if (match(eptr--, ecode, offset_top, md, ims, eptrb, 0))
              return TRUE;
           return FALSE;
           }
  @@ -4163,7 +4222,7 @@
           {
           for (i = min;; i++)
             {
  -          if (match(eptr, ecode, offset_top, md, ims, FALSE, eptrb))
  +          if (match(eptr, ecode, offset_top, md, ims, eptrb, 0))
               return TRUE;
             if (i >= max || eptr >= md->end_subject ||
                 c == md->lcc[*eptr++])
  @@ -4180,7 +4239,7 @@
             eptr++;
             }
           while (eptr >= pp)
  -          if (match(eptr--, ecode, offset_top, md, ims, FALSE, eptrb))
  +          if (match(eptr--, ecode, offset_top, md, ims, eptrb, 0))
               return TRUE;
           return FALSE;
           }
  @@ -4197,7 +4256,7 @@
           {
           for (i = min;; i++)
             {
  -          if (match(eptr, ecode, offset_top, md, ims, FALSE, eptrb))
  +          if (match(eptr, ecode, offset_top, md, ims, eptrb, 0))
               return TRUE;
             if (i >= max || eptr >= md->end_subject || c == *eptr++) return FALSE;
             }
  @@ -4212,7 +4271,7 @@
             eptr++;
             }
           while (eptr >= pp)
  -         if (match(eptr--, ecode, offset_top, md, ims, FALSE, eptrb))
  +         if (match(eptr--, ecode, offset_top, md, ims, eptrb, 0))
              return TRUE;
           return FALSE;
           }
  @@ -4312,7 +4371,7 @@
         {
         for (i = min;; i++)
           {
  -        if (match(eptr, ecode, offset_top, md, ims, FALSE, eptrb)) return TRUE;
  +        if (match(eptr, ecode, offset_top, md, ims, eptrb, 0)) return TRUE;
           if (i >= max || eptr >= md->end_subject) return FALSE;
   
           c = *eptr++;
  @@ -4431,7 +4490,7 @@
           }
   
         while (eptr >= pp)
  -        if (match(eptr--, ecode, offset_top, md, ims, FALSE, eptrb))
  +        if (match(eptr--, ecode, offset_top, md, ims, eptrb, 0))
             return TRUE;
         return FALSE;
         }
  @@ -4717,7 +4776,7 @@
     if certain parts of the pattern were not used. */
   
     match_block.start_match = start_match;
  -  if (!match(start_match, re->code, 2, &match_block, ims, FALSE, start_match))
  +  if (!match(start_match, re->code, 2, &match_block, ims, NULL, match_isgroup))
       continue;
   
     /* Copy the offset information from temporary store if necessary */
  
  
  
  1.2       +5 -3      apache-2.0/src/lib/pcre/pcre.h
  
  Index: pcre.h
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/pcre/pcre.h,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- pcre.h	2000/06/12 06:44:26	1.1
  +++ pcre.h	2000/08/20 03:21:53	1.2
  @@ -7,9 +7,12 @@
   #ifndef _PCRE_H
   #define _PCRE_H
   
  +/* The file pcre.h is build by "configure". Do not edit it; instead
  +make changes to pcre.in. */
  +
   #define PCRE_MAJOR 3
  -#define PCRE_MINOR 1
  -#define PCRE_DATE  09-Feb-2000
  +#define PCRE_MINOR 2
  +#define PCRE_DATE  12-May-2000
   
   /* Win32 uses DLL by default */
   
  @@ -26,7 +29,6 @@
   /* Have to include stdlib.h in order to ensure that size_t is defined;
   it is needed here for malloc. */
   
  -#include <sys/types.h>
   #include <stdlib.h>
   
   /* Allow for C++ users */
  
  
  
  1.2       +3 -1      apache-2.0/src/lib/pcre/pcre.in
  
  Index: pcre.in
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/pcre/pcre.in,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- pcre.in	2000/05/05 23:28:22	1.1
  +++ pcre.in	2000/08/20 03:21:53	1.2
  @@ -7,6 +7,9 @@
   #ifndef _PCRE_H
   #define _PCRE_H
   
  +/* The file pcre.h is build by "configure". Do not edit it; instead
  +make changes to pcre.in. */
  +
   #define PCRE_MAJOR @PCRE_MAJOR@
   #define PCRE_MINOR @PCRE_MINOR@
   #define PCRE_DATE  @PCRE_DATE@
  @@ -26,7 +29,6 @@
   /* Have to include stdlib.h in order to ensure that size_t is defined;
   it is needed here for malloc. */
   
  -#include <sys/types.h>
   #include <stdlib.h>
   
   /* Allow for C++ users */
  
  
  
  1.2       +6 -5      apache-2.0/src/lib/pcre/pcretest.c
  
  Index: pcretest.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/pcre/pcretest.c,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- pcretest.c	2000/05/05 23:28:22	1.1
  +++ pcretest.c	2000/08/20 03:21:53	1.2
  @@ -995,10 +995,10 @@
           }
   
         /* Failed to match. If this is a /g or /G loop and we previously set
  -      PCRE_NOTEMPTY after a null match, this is not necessarily the end.
  +      g_notempty after a null match, this is not necessarily the end.
         We want to advance the start offset, and continue. Fudge the offset
         values to achieve this. We won't be at the end of the string - that
  -      was checked before setting PCRE_NOTEMPTY. */
  +      was checked before setting g_notempty. */
   
         else
           {
  @@ -1025,14 +1025,15 @@
         /* If we have matched an empty string, first check to see if we are at
         the end of the subject. If so, the /g loop is over. Otherwise, mimic
         what Perl's /g options does. This turns out to be rather cunning. First
  -      we set PCRE_NOTEMPTY and try the match again at the same point. If this
  -      fails (picked up above) we advance to the next character. */
  +      we set PCRE_NOTEMPTY and PCRE_ANCHORED and try the match again at the
  +      same point. If this fails (picked up above) we advance to the next
  +      character. */
   
         g_notempty = 0;
         if (offsets[0] == offsets[1])
           {
           if (offsets[0] == len) break;
  -        g_notempty = PCRE_NOTEMPTY;
  +        g_notempty = PCRE_NOTEMPTY | PCRE_ANCHORED;
           }
   
         /* For /g, update the start offset, leaving the rest alone */
  
  
  
  1.2       +33 -34    apache-2.0/src/lib/pcre/doc/pcre.3
  
  Index: pcre.3
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/pcre/doc/pcre.3,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- pcre.3	2000/05/05 23:28:24	1.1
  +++ pcre.3	2000/08/20 03:21:55	1.2
  @@ -323,7 +323,7 @@
   
   Return information about the first character of any matched string, for a
   non-anchored pattern. If there is a fixed first character, e.g. from a pattern
  -such as (cat|cow|coyote), then it is returned in the integer pointed to by
  +such as (cat|cow|coyote), it is returned in the integer pointed to by
   \fIwhere\fR. Otherwise, if either
   
   (a) the pattern was compiled with the PCRE_MULTILINE option, and every branch
  @@ -332,9 +332,9 @@
   (b) every branch of the pattern starts with ".*" and PCRE_DOTALL is not set
   (if it were set, the pattern would be anchored),
   
  -then -1 is returned, indicating that the pattern matches only at the
  -start of a subject string or after any "\\n" within the string. Otherwise -2 is
  -returned. For anchored patterns, -2 is returned.
  +-1 is returned, indicating that the pattern matches only at the start of a
  +subject string or after any "\\n" within the string. Otherwise -2 is returned.
  +For anchored patterns, -2 is returned.
   
     PCRE_INFO_FIRSTTABLE
   
  @@ -550,8 +550,8 @@
   were captured by the match, including the substring that matched the entire
   regular expression. This is the value returned by \fBpcre_exec\fR if it
   is greater than zero. If \fBpcre_exec()\fR returned zero, indicating that it
  -ran out of space in \fIovector\fR, then the value passed as
  -\fIstringcount\fR should be the size of the vector divided by three.
  +ran out of space in \fIovector\fR, the value passed as \fIstringcount\fR should
  +be the size of the vector divided by three.
   
   The functions \fBpcre_copy_substring()\fR and \fBpcre_get_substring()\fR
   extract a single substring, whose number is given as \fIstringnumber\fR. A
  @@ -650,7 +650,7 @@
   with the settings of captured strings when part of a pattern is repeated. For
   example, matching "aba" against the pattern /^(a(b)?)+$/ sets $2 to the value
   "b", but matching "aabbaa" against /^(aa(bb)?)+$/ leaves $2 unset. However, if
  -the pattern is changed to /^(aa(b(b))?)+$/ then $2 (and $3) get set.
  +the pattern is changed to /^(aa(b(b))?)+$/ then $2 (and $3) are set.
   
   In Perl 5.004 $2 is set in both cases, and that is also true of PCRE. If in the
   future Perl changes to a consistent state that is different, PCRE may change to
  @@ -920,10 +920,10 @@
   .SH FULL STOP (PERIOD, DOT)
   Outside a character class, a dot in the pattern matches any one character in
   the subject, including a non-printing character, but not (by default) newline.
  -If the PCRE_DOTALL option is set, then dots match newlines as well. The
  -handling of dot is entirely independent of the handling of circumflex and
  -dollar, the only relationship being that they both involve newline characters.
  -Dot has no special meaning in a character class.
  +If the PCRE_DOTALL option is set, dots match newlines as well. The handling of
  +dot is entirely independent of the handling of circumflex and dollar, the only
  +relationship being that they both involve newline characters. Dot has no
  +special meaning in a character class.
   
   
   .SH SQUARE BRACKETS
  @@ -1213,7 +1213,7 @@
   fails, because it matches the entire string due to the greediness of the .*
   item.
   
  -However, if a quantifier is followed by a question mark, then it ceases to be
  +However, if a quantifier is followed by a question mark, it ceases to be
   greedy, and instead matches the minimum number of times possible, so the
   pattern
   
  @@ -1229,8 +1229,8 @@
   which matches one digit by preference, but can match two if that is the only
   way the rest of the pattern matches.
   
  -If the PCRE_UNGREEDY option is set (an option which is not available in Perl)
  -then the quantifiers are not greedy by default, but individual ones can be made
  +If the PCRE_UNGREEDY option is set (an option which is not available in Perl),
  +the quantifiers are not greedy by default, but individual ones can be made
   greedy by following them with a question mark. In other words, it inverts the
   default behaviour.
   
  @@ -1239,8 +1239,8 @@
   compiled pattern, in proportion to the size of the minimum or maximum.
   
   If a pattern starts with .* or .{0,} and the PCRE_DOTALL option (equivalent
  -to Perl's /s) is set, thus allowing the . to match newlines, then the pattern
  -is implicitly anchored, because whatever follows will be tried against every
  +to Perl's /s) is set, thus allowing the . to match newlines, the pattern is
  +implicitly anchored, because whatever follows will be tried against every
   character position in the subject string, so there is no point in retrying the
   overall match at any position after the first. PCRE treats such a pattern as
   though it were preceded by \\A. In cases where it is known that the subject
  @@ -1284,7 +1284,7 @@
   
   matches "sense and sensibility" and "response and responsibility", but not
   "sense and responsibility". If caseful matching is in force at the time of the
  -back reference, then the case of letters is relevant. For example,
  +back reference, the case of letters is relevant. For example,
   
     ((?i)rah)\\s+\\1
   
  @@ -1292,7 +1292,7 @@
   capturing subpattern is matched caselessly.
   
   There may be more than one back reference to the same subpattern. If a
  -subpattern has not actually been used in a particular match, then any back
  +subpattern has not actually been used in a particular match, any back
   references to it always fail. For example, the pattern
   
     (a|(bc))\\2
  @@ -1300,9 +1300,9 @@
   always fails if it starts to match "a" rather than "bc". Because there may be
   up to 99 back references, all digits following the backslash are taken
   as part of a potential back reference number. If the pattern continues with a
  -digit character, then some delimiter must be used to terminate the back
  -reference. If the PCRE_EXTENDED option is set, this can be whitespace.
  -Otherwise an empty comment can be used.
  +digit character, some delimiter must be used to terminate the back reference.
  +If the PCRE_EXTENDED option is set, this can be whitespace. Otherwise an empty
  +comment can be used.
   
   A back reference that occurs inside the parentheses to which it refers fails
   when the subpattern is first used, so, for example, (a\\1) never matches.
  @@ -1390,7 +1390,7 @@
   matches "foo" preceded by three digits that are not "999". Notice that each of
   the assertions is applied independently at the same point in the subject
   string. First there is a check that the previous three characters are all
  -digits, then there is a check that the same three characters are not "999".
  +digits, and then there is a check that the same three characters are not "999".
   This pattern does \fInot\fR match "foo" preceded by six characters, the first
   of which are digits and the last three of which are not "999". For example, it
   doesn't match "123abcfoo". A pattern to do that is
  @@ -1475,15 +1475,15 @@
   
     ^.*abcd$
   
  -then the initial .* matches the entire string at first, but when this fails
  -(because there is no following "a"), it backtracks to match all but the last
  -character, then all but the last two characters, and so on. Once again the
  -search for "a" covers the entire string, from right to left, so we are no
  -better off. However, if the pattern is written as
  +the initial .* matches the entire string at first, but when this fails (because
  +there is no following "a"), it backtracks to match all but the last character,
  +then all but the last two characters, and so on. Once again the search for "a"
  +covers the entire string, from right to left, so we are no better off. However,
  +if the pattern is written as
   
     ^(?>.*)(?<=abcd)
   
  -then there can be no backtracking for the .* item; it can match only the entire
  +there can be no backtracking for the .* item; it can match only the entire
   string. The subsequent lookbehind assertion does a single test on the last four
   characters. If it fails, the match fails immediately. For long strings, this
   approach makes a significant difference to the processing time.
  @@ -1528,11 +1528,10 @@
   subpattern, a compile-time error occurs.
   
   There are two kinds of condition. If the text between the parentheses consists
  -of a sequence of digits, then the condition is satisfied if the capturing
  -subpattern of that number has previously matched. Consider the following
  -pattern, which contains non-significant white space to make it more readable
  -(assume the PCRE_EXTENDED option) and to divide it into three parts for ease
  -of discussion:
  +of a sequence of digits, the condition is satisfied if the capturing subpattern
  +of that number has previously matched. Consider the following pattern, which
  +contains non-significant white space to make it more readable (assume the
  +PCRE_EXTENDED option) and to divide it into three parts for ease of discussion:
   
     ( \\( )?    [^()]+    (?(1) \\) )
   
  @@ -1622,7 +1621,7 @@
     \\( ( ( (?>[^()]+) | (?R) )* ) \\)
        ^                        ^
        ^                        ^
  -then the string they capture is "ab(cd)ef", the contents of the top level
  +the string they capture is "ab(cd)ef", the contents of the top level
   parentheses. If there are more than 15 capturing parentheses in a pattern, PCRE
   has to obtain extra memory to store data during a recursion, which it does by
   using \fBpcre_malloc\fR, freeing it via \fBpcre_free\fR afterwards. If no
  
  
  
  1.2       +33 -34    apache-2.0/src/lib/pcre/doc/pcre.html
  
  Index: pcre.html
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/pcre/doc/pcre.html,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- pcre.html	2000/05/05 23:28:25	1.1
  +++ pcre.html	2000/08/20 03:21:55	1.2
  @@ -430,7 +430,7 @@
   <P>
   Return information about the first character of any matched string, for a
   non-anchored pattern. If there is a fixed first character, e.g. from a pattern
  -such as (cat|cow|coyote), then it is returned in the integer pointed to by
  +such as (cat|cow|coyote), it is returned in the integer pointed to by
   <I>where</I>. Otherwise, if either
   </P>
   <P>
  @@ -442,9 +442,9 @@
   (if it were set, the pattern would be anchored),
   </P>
   <P>
  -then -1 is returned, indicating that the pattern matches only at the
  -start of a subject string or after any "\n" within the string. Otherwise -2 is
  -returned. For anchored patterns, -2 is returned.
  +-1 is returned, indicating that the pattern matches only at the start of a
  +subject string or after any "\n" within the string. Otherwise -2 is returned.
  +For anchored patterns, -2 is returned.
   </P>
   <P>
   <PRE>
  @@ -734,8 +734,8 @@
   were captured by the match, including the substring that matched the entire
   regular expression. This is the value returned by <B>pcre_exec</B> if it
   is greater than zero. If <B>pcre_exec()</B> returned zero, indicating that it
  -ran out of space in <I>ovector</I>, then the value passed as
  -<I>stringcount</I> should be the size of the vector divided by three.
  +ran out of space in <I>ovector</I>, the value passed as <I>stringcount</I> should
  +be the size of the vector divided by three.
   </P>
   <P>
   The functions <B>pcre_copy_substring()</B> and <B>pcre_get_substring()</B>
  @@ -857,7 +857,7 @@
   with the settings of captured strings when part of a pattern is repeated. For
   example, matching "aba" against the pattern /^(a(b)?)+$/ sets $2 to the value
   "b", but matching "aabbaa" against /^(aa(bb)?)+$/ leaves $2 unset. However, if
  -the pattern is changed to /^(aa(b(b))?)+$/ then $2 (and $3) get set.
  +the pattern is changed to /^(aa(b(b))?)+$/ then $2 (and $3) are set.
   </P>
   <P>
   In Perl 5.004 $2 is set in both cases, and that is also true of PCRE. If in the
  @@ -1186,10 +1186,10 @@
   <P>
   Outside a character class, a dot in the pattern matches any one character in
   the subject, including a non-printing character, but not (by default) newline.
  -If the PCRE_DOTALL option is set, then dots match newlines as well. The
  -handling of dot is entirely independent of the handling of circumflex and
  -dollar, the only relationship being that they both involve newline characters.
  -Dot has no special meaning in a character class.
  +If the PCRE_DOTALL option is set, dots match newlines as well. The handling of
  +dot is entirely independent of the handling of circumflex and dollar, the only
  +relationship being that they both involve newline characters. Dot has no
  +special meaning in a character class.
   </P>
   <LI><A NAME="SEC17" HREF="#TOC1">SQUARE BRACKETS</A>
   <P>
  @@ -1580,7 +1580,7 @@
   item.
   </P>
   <P>
  -However, if a quantifier is followed by a question mark, then it ceases to be
  +However, if a quantifier is followed by a question mark, it ceases to be
   greedy, and instead matches the minimum number of times possible, so the
   pattern
   </P>
  @@ -1605,8 +1605,8 @@
   way the rest of the pattern matches.
   </P>
   <P>
  -If the PCRE_UNGREEDY option is set (an option which is not available in Perl)
  -then the quantifiers are not greedy by default, but individual ones can be made
  +If the PCRE_UNGREEDY option is set (an option which is not available in Perl),
  +the quantifiers are not greedy by default, but individual ones can be made
   greedy by following them with a question mark. In other words, it inverts the
   default behaviour.
   </P>
  @@ -1617,8 +1617,8 @@
   </P>
   <P>
   If a pattern starts with .* or .{0,} and the PCRE_DOTALL option (equivalent
  -to Perl's /s) is set, thus allowing the . to match newlines, then the pattern
  -is implicitly anchored, because whatever follows will be tried against every
  +to Perl's /s) is set, thus allowing the . to match newlines, the pattern is
  +implicitly anchored, because whatever follows will be tried against every
   character position in the subject string, so there is no point in retrying the
   overall match at any position after the first. PCRE treats such a pattern as
   though it were preceded by \A. In cases where it is known that the subject
  @@ -1677,7 +1677,7 @@
   <P>
   matches "sense and sensibility" and "response and responsibility", but not
   "sense and responsibility". If caseful matching is in force at the time of the
  -back reference, then the case of letters is relevant. For example,
  +back reference, the case of letters is relevant. For example,
   </P>
   <P>
   <PRE>
  @@ -1690,7 +1690,7 @@
   </P>
   <P>
   There may be more than one back reference to the same subpattern. If a
  -subpattern has not actually been used in a particular match, then any back
  +subpattern has not actually been used in a particular match, any back
   references to it always fail. For example, the pattern
   </P>
   <P>
  @@ -1702,9 +1702,9 @@
   always fails if it starts to match "a" rather than "bc". Because there may be
   up to 99 back references, all digits following the backslash are taken
   as part of a potential back reference number. If the pattern continues with a
  -digit character, then some delimiter must be used to terminate the back
  -reference. If the PCRE_EXTENDED option is set, this can be whitespace.
  -Otherwise an empty comment can be used.
  +digit character, some delimiter must be used to terminate the back reference.
  +If the PCRE_EXTENDED option is set, this can be whitespace. Otherwise an empty
  +comment can be used.
   </P>
   <P>
   A back reference that occurs inside the parentheses to which it refers fails
  @@ -1836,7 +1836,7 @@
   matches "foo" preceded by three digits that are not "999". Notice that each of
   the assertions is applied independently at the same point in the subject
   string. First there is a check that the previous three characters are all
  -digits, then there is a check that the same three characters are not "999".
  +digits, and then there is a check that the same three characters are not "999".
   This pattern does <I>not</I> match "foo" preceded by six characters, the first
   of which are digits and the last three of which are not "999". For example, it
   doesn't match "123abcfoo". A pattern to do that is
  @@ -1957,11 +1957,11 @@
   </PRE>
   </P>
   <P>
  -then the initial .* matches the entire string at first, but when this fails
  -(because there is no following "a"), it backtracks to match all but the last
  -character, then all but the last two characters, and so on. Once again the
  -search for "a" covers the entire string, from right to left, so we are no
  -better off. However, if the pattern is written as
  +the initial .* matches the entire string at first, but when this fails (because
  +there is no following "a"), it backtracks to match all but the last character,
  +then all but the last two characters, and so on. Once again the search for "a"
  +covers the entire string, from right to left, so we are no better off. However,
  +if the pattern is written as
   </P>
   <P>
   <PRE>
  @@ -1969,7 +1969,7 @@
   </PRE>
   </P>
   <P>
  -then there can be no backtracking for the .* item; it can match only the entire
  +there can be no backtracking for the .* item; it can match only the entire
   string. The subsequent lookbehind assertion does a single test on the last four
   characters. If it fails, the match fails immediately. For long strings, this
   approach makes a significant difference to the processing time.
  @@ -2032,11 +2032,10 @@
   </P>
   <P>
   There are two kinds of condition. If the text between the parentheses consists
  -of a sequence of digits, then the condition is satisfied if the capturing
  -subpattern of that number has previously matched. Consider the following
  -pattern, which contains non-significant white space to make it more readable
  -(assume the PCRE_EXTENDED option) and to divide it into three parts for ease
  -of discussion:
  +of a sequence of digits, the condition is satisfied if the capturing subpattern
  +of that number has previously matched. Consider the following pattern, which
  +contains non-significant white space to make it more readable (assume the
  +PCRE_EXTENDED option) and to divide it into three parts for ease of discussion:
   </P>
   <P>
   <PRE>
  @@ -2157,7 +2156,7 @@
        ^                        ^
        ^                        ^
   </PRE>
  -then the string they capture is "ab(cd)ef", the contents of the top level
  +the string they capture is "ab(cd)ef", the contents of the top level
   parentheses. If there are more than 15 capturing parentheses in a pattern, PCRE
   has to obtain extra memory to store data during a recursion, which it does by
   using <B>pcre_malloc</B>, freeing it via <B>pcre_free</B> afterwards. If no
  
  
  
  1.2       +46 -47    apache-2.0/src/lib/pcre/doc/pcre.txt
  
  Index: pcre.txt
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/pcre/doc/pcre.txt,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- pcre.txt	2000/05/05 23:28:24	1.1
  +++ pcre.txt	2000/08/20 03:21:55	1.2
  @@ -353,8 +353,8 @@
        Return information about the first character of any  matched
        string,  for  a  non-anchored  pattern.  If there is a fixed
        first   character,   e.g.   from   a   pattern    such    as
  -     (cat|cow|coyote), then it is returned in the integer pointed
  -     to by where. Otherwise, if either
  +     (cat|cow|coyote),  it  is returned in the integer pointed to
  +     by where. Otherwise, if either
   
        (a) the pattern was compiled with the PCRE_MULTILINE option,
        and every branch starts with "^", or
  @@ -363,10 +363,10 @@
        PCRE_DOTALL is not set (if it were set, the pattern would be
        anchored),
   
  -     then -1 is returned, indicating  that  the  pattern  matches
  -     only  at  the  start  of  a subject string or after any "\n"
  -     within the string. Otherwise -2 is  returned.  For  anchored
  -     patterns, -2 is returned.
  +     -1 is returned, indicating that the pattern matches only  at
  +     the  start  of a subject string or after any "\n" within the
  +     string. Otherwise -2 is returned.  For anchored patterns, -2
  +     is returned.
   
          PCRE_INFO_FIRSTTABLE
   
  @@ -622,8 +622,8 @@
        entire regular expression. This is  the  value  returned  by
        pcre_exec  if  it  is  greater  than  zero.  If  pcre_exec()
        returned zero, indicating that it ran out of space in  ovec-
  -     tor, then the value passed as stringcount should be the size
  -     of the vector divided by three.
  +     tor,  the  value passed as stringcount should be the size of
  +     the vector divided by three.
   
        The functions pcre_copy_substring() and pcre_get_substring()
        extract a single substring, whose number is given as string-
  @@ -739,7 +739,7 @@
        "aba"  against the pattern /^(a(b)?)+$/ sets $2 to the value
        "b", but matching "aabbaa" against /^(aa(bb)?)+$/ leaves  $2
        unset.    However,    if   the   pattern   is   changed   to
  -     /^(aa(b(b))?)+$/ then $2 (and $3) get set.
  +     /^(aa(b(b))?)+$/ then $2 (and $3) are set.
   
        In Perl 5.004 $2 is set in both cases, and that is also true
        of PCRE. If in the future Perl changes to a consistent state
  @@ -1056,11 +1056,11 @@
        Outside a character class, a dot in the pattern matches  any
        one character in the subject, including a non-printing char-
        acter, but not (by default)  newline.   If  the  PCRE_DOTALL
  -     option  is  set,  then dots match newlines as well. The han-
  -     dling of dot is entirely independent of the handling of cir-
  -     cumflex  and  dollar,  the only relationship being that they
  -     both involve newline characters.  Dot has no special meaning
  -     in a character class.
  +     option  is set, dots match newlines as well. The handling of
  +     dot is entirely independent of the  handling  of  circumflex
  +     and  dollar,  the  only  relationship  being  that they both
  +     involve newline characters. Dot has no special meaning in  a
  +     character class.
   
   
   
  @@ -1406,9 +1406,9 @@
        fails, because it matches  the  entire  string  due  to  the
        greediness of the .*  item.
   
  -     However, if a quantifier is followed  by  a  question  mark,
  -     then it ceases to be greedy, and instead matches the minimum
  -     number of times possible, so the pattern
  +     However, if a quantifier is followed by a question mark,  it
  +     ceases  to be greedy, and instead matches the minimum number
  +     of times possible, so the pattern
   
          /\*.*?\*/
   
  @@ -1425,7 +1425,7 @@
        that is the only way the rest of the pattern matches.
   
        If the PCRE_UNGREEDY option is set (an option which  is  not
  -     available  in  Perl)  then the quantifiers are not greedy by
  +     available  in  Perl),  the  quantifiers  are  not  greedy by
        default, but individual ones can be made greedy by following
        them  with  a  question mark. In other words, it inverts the
        default behaviour.
  @@ -1437,7 +1437,7 @@
   
        If a pattern starts with .* or  .{0,}  and  the  PCRE_DOTALL
        option (equivalent to Perl's /s) is set, thus allowing the .
  -     to match newlines, then the pattern is implicitly  anchored,
  +     to match  newlines,  the  pattern  is  implicitly  anchored,
        because whatever follows will be tried against every charac-
        ter position in the subject string, so there is no point  in
        retrying  the overall match at any position after the first.
  @@ -1490,8 +1490,8 @@
   
        matches "sense and sensibility" and "response and  responsi-
        bility",  but  not  "sense  and  responsibility". If caseful
  -     matching is in force at the time of the back reference, then
  -     the case of letters is relevant. For example,
  +     matching is in force at the time of the back reference,  the
  +     case of letters is relevant. For example,
   
          ((?i)rah)\s+\1
   
  @@ -1501,8 +1501,8 @@
   
        There may be more than one back reference to the  same  sub-
        pattern.  If  a  subpattern  has not actually been used in a
  -     particular match, then any  back  references  to  it  always
  -     fail. For example, the pattern
  +     particular match, any back references to it always fail. For
  +     example, the pattern
   
          (a|(bc))\2
   
  @@ -1510,9 +1510,9 @@
        Because  there  may  be up to 99 back references, all digits
        following the backslash are taken as  part  of  a  potential
        back reference number. If the pattern continues with a digit
  -     character, then some delimiter must be used to terminate the
  -     back reference. If the PCRE_EXTENDED option is set, this can
  -     be whitespace.  Otherwise an empty comment can be used.
  +     character, some delimiter must be used to terminate the back
  +     reference.   If the PCRE_EXTENDED option is set, this can be
  +     whitespace. Otherwise an empty comment can be used.
   
        A back reference that occurs inside the parentheses to which
        it  refers  fails when the subpattern is first used, so, for
  @@ -1612,7 +1612,7 @@
        matches "foo" preceded by three digits that are  not  "999".
        Notice  that each of the assertions is applied independently
        at the same point in the subject string. First  there  is  a
  -     check  that  the  previous  three characters are all digits,
  +     check that the previous three characters are all digits, and
        then there is a check that the same three characters are not
        "999".   This  pattern  does not match "foo" preceded by six
        characters, the first of which are digits and the last three
  @@ -1713,21 +1713,20 @@
   
          ^.*abcd$
   
  -     then the initial .* matches the entire string at first,  but
  -     when  this  fails  (because  there  is no following "a"), it
  -     backtracks to match all but the last character, then all but
  -     the  last  two  characters, and so on. Once again the search
  -     for "a" covers the entire string, from right to left, so  we
  -     are no better off. However, if the pattern is written as
  +     the initial .* matches the entire string at first, but  when
  +     this  fails  (because  there  is no following "a"), it back-
  +     tracks to match all but the last character, then all but the
  +     last  two  characters,  and so on. Once again the search for
  +     "a" covers the entire string, from right to left, so we  are
  +     no better off. However, if the pattern is written as
   
          ^(?>.*)(?<=abcd)
   
  -     then there can be no backtracking for the .*  item;  it  can
  -     match  only  the  entire  string.  The subsequent lookbehind
  -     assertion does a single test on the last four characters. If
  -     it  fails,  the  match  fails immediately. For long strings,
  -     this approach makes a significant difference to the process-
  -     ing time.
  +     there can be no backtracking for the .* item; it  can  match
  +     only  the entire string. The subsequent lookbehind assertion
  +     does a single test on the last four characters. If it fails,
  +     the match fails immediately. For long strings, this approach
  +     makes a significant difference to the processing time.
   
        When a pattern contains an unlimited repeat inside a subpat-
        tern  that  can  itself  be  repeated an unlimited number of
  @@ -1777,12 +1776,12 @@
        error occurs.
   
        There are two kinds of condition. If the  text  between  the
  -     parentheses  consists  of  a  sequence  of  digits, then the
  -     condition is satisfied if the capturing subpattern  of  that
  -     number  has  previously matched. Consider the following pat-
  -     tern, which contains non-significant white space to make  it
  -     more  readable  (assume  the  PCRE_EXTENDED  option)  and to
  -     divide it into three parts for ease of discussion:
  +     parentheses  consists of a sequence of digits, the condition
  +     is satisfied if the capturing subpattern of that number  has
  +     previously  matched.  Consider  the following pattern, which
  +     contains non-significant white space to make it  more  read-
  +     able (assume the PCRE_EXTENDED option) and to divide it into
  +     three parts for ease of discussion:
   
          ( \( )?    [^()]+    (?(1) \) )
   
  @@ -1888,8 +1887,8 @@
   
          \( ( ( (?>[^()]+) | (?R) )* ) \)
             ^                        ^
  -          ^                        ^ then the string they capture
  -     is "ab(cd)ef", the contents of the top level parentheses. If
  +          ^                        ^ the string they  capture  is
  +     "ab(cd)ef",  the  contents  of the top level parentheses. If
        there are more than 15 capturing parentheses in  a  pattern,
        PCRE  has  to  obtain  extra  memory  to store data during a
        recursion, which it does by using  pcre_malloc,  freeing  it
  
  
  
  1.2       +5 -4      apache-2.0/src/lib/pcre/doc/pcretest.txt
  
  Index: pcretest.txt
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/pcre/doc/pcretest.txt,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- pcretest.txt	2000/05/05 23:28:25	1.1
  +++ pcretest.txt	2000/08/20 03:21:55	1.2
  @@ -63,10 +63,11 @@
   (including \b or \B).
   
   If any call to pcre_exec() in a /g or /G sequence matches an empty string, the
  -next call is done with the PCRE_NOTEMPTY flag set so that it cannot match an
  -empty string again at the same point. If however, this second match fails, the
  -start offset is advanced by one, and the match is retried. This imitates the
  -way Perl handles such cases when using the /g modifier or the split() function.
  +next call is done with the PCRE_NOTEMPTY and PCRE_ANCHORED flags set in order
  +to search for another, non-empty, match at the same point. If this second match
  +fails, the start offset is advanced by one, and the normal match is retried.
  +This imitates the way Perl handles such cases when using the /g modifier or the
  +split() function.
   
   There are a number of other modifiers for controlling the way pcretest
   operates.
  
  
  
  1.2       +18 -0     apache-2.0/src/lib/pcre/testdata/testinput3
  
  Index: testinput3
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/pcre/testdata/testinput3,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- testinput3	2000/05/05 23:28:26	1.1
  +++ testinput3	2000/08/20 03:21:56	1.2
  @@ -1689,4 +1689,22 @@
       <a href=\"abcd xyz pqr\" cats
       <a href       =       \'abcd xyz pqr\' cats
   
  +/((Z)+|A)*/
  +    ZABCDEFG
  +
  +/(Z()|A)*/
  +    ZABCDEFG
  +
  +/(Z(())|A)*/
  +    ZABCDEFG
  +
  +/((?>Z)+|A)*/
  +    ZABCDEFG
  +
  +/((?>)+|A)*/
  +    ZABCDEFG
  +
  +/a*/g
  +    abbab
  +
   / End of test input /       
  
  
  
  1.2       +1 -1      apache-2.0/src/lib/pcre/testdata/testoutput1
  
  Index: testoutput1
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/pcre/testdata/testoutput1,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- testoutput1	2000/05/05 23:28:25	1.1
  +++ testoutput1	2000/08/20 03:21:56	1.2
  @@ -1,4 +1,4 @@
  -PCRE version 3.1 09-Feb-2000
  +PCRE version 3.2 12-May-2000
   
   /the quick brown fox/
       the quick brown fox
  
  
  
  1.2       +1 -1      apache-2.0/src/lib/pcre/testdata/testoutput2
  
  Index: testoutput2
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/pcre/testdata/testoutput2,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- testoutput2	2000/05/05 23:28:26	1.1
  +++ testoutput2	2000/08/20 03:21:56	1.2
  @@ -1,4 +1,4 @@
  -PCRE version 3.1 09-Feb-2000
  +PCRE version 3.2 12-May-2000
   
   /(a)b|/
   Capturing subpattern count = 1
  
  
  
  1.2       +39 -1     apache-2.0/src/lib/pcre/testdata/testoutput3
  
  Index: testoutput3
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/pcre/testdata/testoutput3,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- testoutput3	2000/05/05 23:28:26	1.1
  +++ testoutput3	2000/08/20 03:21:56	1.2
  @@ -1,4 +1,4 @@
  -PCRE version 3.1 09-Feb-2000
  +PCRE version 3.2 12-May-2000
   
   /(?<!bar)foo/
       foo
  @@ -2924,6 +2924,44 @@
    0: <a href       =       'abcd xyz pqr'
    1: '
    2: abcd xyz pqr
  +
  +/((Z)+|A)*/
  +    ZABCDEFG
  + 0: ZA
  + 1: A
  + 2: Z
  +
  +/(Z()|A)*/
  +    ZABCDEFG
  + 0: ZA
  + 1: A
  + 2: 
  +
  +/(Z(())|A)*/
  +    ZABCDEFG
  + 0: ZA
  + 1: A
  + 2: 
  + 3: 
  +
  +/((?>Z)+|A)*/
  +    ZABCDEFG
  + 0: ZA
  + 1: A
  +
  +/((?>)+|A)*/
  +    ZABCDEFG
  + 0: 
  + 1: 
  +
  +/a*/g
  +    abbab
  + 0: a
  + 0: 
  + 0: 
  + 0: a
  + 0: 
  + 0: 
   
   / End of test input /       
   
  
  
  
  1.2       +1 -1      apache-2.0/src/lib/pcre/testdata/testoutput4
  
  Index: testoutput4
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/pcre/testdata/testoutput4,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- testoutput4	2000/05/05 23:28:26	1.1
  +++ testoutput4	2000/08/20 03:21:56	1.2
  @@ -1,4 +1,4 @@
  -PCRE version 3.1 09-Feb-2000
  +PCRE version 3.2 12-May-2000
   
   /^[\w]+/
       *** Failers
  
  
  

Mime
View raw message