"Fossies" - the Fresh Open Source Software Archive

Member "ngrep-1_47/regex-0.12/README" (7 Sep 2017, 2271 Bytes) of package /linux/misc/ngrep-1_47.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    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 instructions.  (The only thing
    7 installed is the documentation; regex.c is compiled into regex.o, but
    8 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 + 
   40 + #include <sys/types.h>
   41   #include "regex.h"
   42 ***************
   43 *** 477,479 ****
   44   				/* really needed. */
   45 !       && *(searchbuf.buffer) == (char) exactn /* first item is "exact match" */
   46         && searchbuf.buffer[1] + 2 == searchbuf.used) /*first is ONLY item */
   47 --- 479,482 ----
   48   				/* really needed. */
   49 !          /* first item is "exact match" */
   50 !       && *(searchbuf.buffer) == (char) RE_EXACTN_VALUE
   51         && searchbuf.buffer[1] + 2 == searchbuf.used) /*first is ONLY item */
   52 ***************
   53 *** 1273,1275 ****
   54     searchbuf.allocated = 100;
   55 !   searchbuf.buffer = (char *) malloc (searchbuf.allocated);
   56     searchbuf.fastmap = search_fastmap;
   57 --- 1276,1278 ----
   58     searchbuf.allocated = 100;
   59 !   searchbuf.buffer = (unsigned char *) malloc (searchbuf.allocated);
   60     searchbuf.fastmap = search_fastmap;