home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume29 / regexpr / patch01 / regexpr-patch1
Text File  |  1992-04-06  |  4KB  |  121 lines

  1. diff -c old-regexpr/regexpr.c new-regexpr/regexpr.c
  2. *** old-regexpr/regexpr.c    Sun Mar 29 16:41:46 1992
  3. --- new-regexpr/regexpr.c    Sun Mar 29 16:55:41 1992
  4. ***************
  5. *** 7,18 ****
  6.   Copyright (c) 1991 Tatu Ylonen, Espoo, Finland
  7.   
  8.   Permission to use, copy, modify, distribute, and sell this software
  9. ! and its documentation for any purpose is hereby granted without fee,
  10. ! provided that the above copyright notice appear in all copies.  This
  11. ! software is provided "as is" without express or implied warranty.
  12.   
  13.   Created: Thu Sep 26 17:14:05 1991 ylo
  14. ! Last modified: Mon Nov  4 17:06:48 1991 ylo
  15.   
  16.   This code draws many ideas from the regular expression packages by
  17.   Henry Spencer of the University of Toronto and Richard Stallman of the
  18. --- 7,22 ----
  19.   Copyright (c) 1991 Tatu Ylonen, Espoo, Finland
  20.   
  21.   Permission to use, copy, modify, distribute, and sell this software
  22. ! and its documentation is hereby granted without fee, provided that the
  23. ! above copyright notice appears in all source code copies, the name of
  24. ! Tatu Ylonen is not used to advertise products containing this software
  25. ! or a derivation thereof, and all modified versions are clearly marked
  26. ! as such.
  27.   
  28. + This software is provided "as is" without express or implied warranty.
  29.   Created: Thu Sep 26 17:14:05 1991 ylo
  30. ! Last modified: Sun Mar 29 16:47:31 1992 ylo
  31.   
  32.   This code draws many ideas from the regular expression packages by
  33.   Henry Spencer of the University of Toronto and Richard Stallman of the
  34. ***************
  35. *** 21,27 ****
  36.   Emacs-specific code and syntax table code is almost directly borrowed
  37.   from GNU regexp.
  38.   
  39. ! $Header: /u/src/lib/tools/RCS/regexpr.c,v 1.1 91/12/30 08:53:37 ylo Exp $
  40.   
  41.   */
  42.   
  43. --- 25,31 ----
  44.   Emacs-specific code and syntax table code is almost directly borrowed
  45.   from GNU regexp.
  46.   
  47. ! $Header: /u/src/lib/tools/RCS/regexpr.c,v 1.4 92/03/29 16:52:04 ylo Exp $
  48.   
  49.   */
  50.   
  51. ***************
  52. *** 816,822 ****
  53.       pos++;
  54.       break;
  55.         case Cmatch_memory:
  56. !     /* should this ever happen for sensible patterns??? */
  57.       *can_be_null = 1;
  58.       return;
  59.         case Cjump:
  60. --- 820,827 ----
  61.       pos++;
  62.       break;
  63.         case Cmatch_memory:
  64. !     for (a = 0; a < 256; a++)
  65. !       fastmap[a] = 1;
  66.       *can_be_null = 1;
  67.       return;
  68.         case Cjump:
  69. ***************
  70. *** 1377,1383 ****
  71.     char anchor;
  72.     
  73.     assert(size1 >= 0 && size2 >= 0 && pos >= 0 && mstop >= 0);
  74. !   assert(pos + range + 1 >= 0 && pos + range - 1 <= size1 + size2);
  75.     assert(pos <= mstop);
  76.     
  77.     fastmap = bufp->fastmap;
  78. --- 1382,1388 ----
  79.     char anchor;
  80.     
  81.     assert(size1 >= 0 && size2 >= 0 && pos >= 0 && mstop >= 0);
  82. !   assert(pos + range >= 0 && pos + range <= size1 + size2);
  83.     assert(pos <= mstop);
  84.     
  85.     fastmap = bufp->fastmap;
  86. diff -c old-regexpr/regexpr.h new-regexpr/regexpr.h
  87. *** old-regexpr/regexpr.h    Sun Mar 29 16:41:44 1992
  88. --- new-regexpr/regexpr.h    Sun Mar 29 16:55:41 1992
  89. ***************
  90. *** 7,18 ****
  91.   Copyright (c) 1991 Tatu Ylonen, Espoo, Finland
  92.   
  93.   Permission to use, copy, modify, distribute, and sell this software
  94. ! and its documentation for any purpose is hereby granted without fee,
  95. ! provided that the above copyright notice appear in all copies.  This
  96. ! software is provided "as is" without express or implied warranty.
  97.   
  98.   Created: Thu Sep 26 17:15:36 1991 ylo
  99. ! Last modified: Mon Nov  4 15:49:46 1991 ylo
  100.   
  101.   */
  102.   
  103. --- 7,22 ----
  104.   Copyright (c) 1991 Tatu Ylonen, Espoo, Finland
  105.   
  106.   Permission to use, copy, modify, distribute, and sell this software
  107. ! and its documentation is hereby granted without fee, provided that the
  108. ! above copyright notice appears in all source code copies, the name of
  109. ! Tatu Ylonen is not used to advertise products containing this software
  110. ! or a derivation thereof, and all modified versions are clearly marked
  111. ! as such.
  112.   
  113. + This software is provided "as is" without express or implied warranty.
  114.   Created: Thu Sep 26 17:15:36 1991 ylo
  115. ! Last modified: Fri Jan  3 12:05:45 1992 ylo
  116.   
  117.   */
  118.   
  119.