home *** CD-ROM | disk | FTP | other *** search
- diff -c old-regexpr/regexpr.c new-regexpr/regexpr.c
- *** old-regexpr/regexpr.c Sun Mar 29 16:41:46 1992
- --- new-regexpr/regexpr.c Sun Mar 29 16:55:41 1992
- ***************
- *** 7,18 ****
- Copyright (c) 1991 Tatu Ylonen, Espoo, Finland
-
- Permission to use, copy, modify, distribute, and sell this software
- ! and its documentation for any purpose is hereby granted without fee,
- ! provided that the above copyright notice appear in all copies. This
- ! software is provided "as is" without express or implied warranty.
-
- Created: Thu Sep 26 17:14:05 1991 ylo
- ! Last modified: Mon Nov 4 17:06:48 1991 ylo
-
- This code draws many ideas from the regular expression packages by
- Henry Spencer of the University of Toronto and Richard Stallman of the
- --- 7,22 ----
- Copyright (c) 1991 Tatu Ylonen, Espoo, Finland
-
- Permission to use, copy, modify, distribute, and sell this software
- ! and its documentation is hereby granted without fee, provided that the
- ! above copyright notice appears in all source code copies, the name of
- ! Tatu Ylonen is not used to advertise products containing this software
- ! or a derivation thereof, and all modified versions are clearly marked
- ! as such.
-
- + This software is provided "as is" without express or implied warranty.
- +
- Created: Thu Sep 26 17:14:05 1991 ylo
- ! Last modified: Sun Mar 29 16:47:31 1992 ylo
-
- This code draws many ideas from the regular expression packages by
- Henry Spencer of the University of Toronto and Richard Stallman of the
- ***************
- *** 21,27 ****
- Emacs-specific code and syntax table code is almost directly borrowed
- from GNU regexp.
-
- ! $Header: /u/src/lib/tools/RCS/regexpr.c,v 1.1 91/12/30 08:53:37 ylo Exp $
-
- */
-
- --- 25,31 ----
- Emacs-specific code and syntax table code is almost directly borrowed
- from GNU regexp.
-
- ! $Header: /u/src/lib/tools/RCS/regexpr.c,v 1.4 92/03/29 16:52:04 ylo Exp $
-
- */
-
- ***************
- *** 816,822 ****
- pos++;
- break;
- case Cmatch_memory:
- ! /* should this ever happen for sensible patterns??? */
- *can_be_null = 1;
- return;
- case Cjump:
- --- 820,827 ----
- pos++;
- break;
- case Cmatch_memory:
- ! for (a = 0; a < 256; a++)
- ! fastmap[a] = 1;
- *can_be_null = 1;
- return;
- case Cjump:
- ***************
- *** 1377,1383 ****
- char anchor;
-
- assert(size1 >= 0 && size2 >= 0 && pos >= 0 && mstop >= 0);
- ! assert(pos + range + 1 >= 0 && pos + range - 1 <= size1 + size2);
- assert(pos <= mstop);
-
- fastmap = bufp->fastmap;
- --- 1382,1388 ----
- char anchor;
-
- assert(size1 >= 0 && size2 >= 0 && pos >= 0 && mstop >= 0);
- ! assert(pos + range >= 0 && pos + range <= size1 + size2);
- assert(pos <= mstop);
-
- fastmap = bufp->fastmap;
- diff -c old-regexpr/regexpr.h new-regexpr/regexpr.h
- *** old-regexpr/regexpr.h Sun Mar 29 16:41:44 1992
- --- new-regexpr/regexpr.h Sun Mar 29 16:55:41 1992
- ***************
- *** 7,18 ****
- Copyright (c) 1991 Tatu Ylonen, Espoo, Finland
-
- Permission to use, copy, modify, distribute, and sell this software
- ! and its documentation for any purpose is hereby granted without fee,
- ! provided that the above copyright notice appear in all copies. This
- ! software is provided "as is" without express or implied warranty.
-
- Created: Thu Sep 26 17:15:36 1991 ylo
- ! Last modified: Mon Nov 4 15:49:46 1991 ylo
-
- */
-
- --- 7,22 ----
- Copyright (c) 1991 Tatu Ylonen, Espoo, Finland
-
- Permission to use, copy, modify, distribute, and sell this software
- ! and its documentation is hereby granted without fee, provided that the
- ! above copyright notice appears in all source code copies, the name of
- ! Tatu Ylonen is not used to advertise products containing this software
- ! or a derivation thereof, and all modified versions are clearly marked
- ! as such.
-
- + This software is provided "as is" without express or implied warranty.
- +
- Created: Thu Sep 26 17:15:36 1991 ylo
- ! Last modified: Fri Jan 3 12:05:45 1992 ylo
-
- */
-
-