home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1993 #1 / MONSTER.ISO / prog / gen / regex011.taz / regex011 / regex-0.11 / README < prev    next >
Encoding:
Text File  |  1992-09-12  |  2.2 KB  |  61 lines

  1. This directory contains the GNU regex library.  It is compliant with
  2. POSIX.2, except for internationalization features.
  3.  
  4. See the file NEWS for a list of major changes in the current release.
  5.  
  6. See the file INSTALL for compilation and installation instructions.
  7. (The only thing installed is the documentation; regex.c is compiled into
  8. regex.o, but not installed anywhere.)
  9.  
  10. The subdirectory `doc' contains a (programmers') manual for the library.
  11. It's probably out-of-date.  Improvements are welcome.
  12.  
  13. The subdirectory `test' contains the various tests we've written.
  14.  
  15. We know this code is not as fast as it might be.  If you have specific
  16. suggestions, profiling results, or other such useful information to
  17. report, please do.
  18.  
  19. Emacs 18 is not going use this revised regex (but Emacs 19 will).  If
  20. you want to try it with Emacs 18, apply the patch at the end of this
  21. file first.
  22.  
  23. Mail bug reports to bug-gnu-utils@prep.ai.mit.edu.
  24.  
  25. Please include an actual regular expression that fails (and the syntax
  26. used to compile it); without that, there's no way to reproduce the bug,
  27. so there's no way we can fix it.  Even if you include a patch, also
  28. include the regular expression in error; otherwise, we can't know for
  29. sure what you're trying to fix.
  30.  
  31. Here is the patch to make this version of regex work with Emacs 18.
  32.  
  33. *** ORIG/search.c    Tue Jan  8 13:04:55 1991
  34. --- search.c    Sun Jan  5 10:57:00 1992
  35. ***************
  36. *** 25,26 ****
  37. --- 25,28 ----
  38.   #include "commands.h"
  39. + #include <sys/types.h>
  40.   #include "regex.h"
  41. ***************
  42. *** 477,479 ****
  43.                   /* really needed. */
  44. !       && *(searchbuf.buffer) == (char) exactn /* first item is "exact match" */
  45.         && searchbuf.buffer[1] + 2 == searchbuf.used) /*first is ONLY item */
  46. --- 479,482 ----
  47.                   /* really needed. */
  48. !          /* first item is "exact match" */
  49. !       && *(searchbuf.buffer) == (char) RE_EXACTN_VALUE
  50.         && searchbuf.buffer[1] + 2 == searchbuf.used) /*first is ONLY item */
  51. ***************
  52. *** 1273,1275 ****
  53.     searchbuf.allocated = 100;
  54. !   searchbuf.buffer = (char *) malloc (searchbuf.allocated);
  55.     searchbuf.fastmap = search_fastmap;
  56. --- 1276,1278 ----
  57.     searchbuf.allocated = 100;
  58. !   searchbuf.buffer = (unsigned char *) malloc (searchbuf.allocated);
  59.     searchbuf.fastmap = search_fastmap;
  60.