• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

doc/H04-Oct-2019-13,43610,820

test/H04-Oct-2019-8,5235,936

AUTHORSH A D04-Oct-2019408 117

COPYINGH A D04-Oct-201917.6 KiB340281

ChangeLogH A D04-Oct-2019136.4 KiB3,0312,390

INSTALLH A D04-Oct-20195.6 KiB11896

MakefileH A D04-Oct-20193.2 KiB9949

Makefile.inH A D04-Oct-20192.8 KiB9950

NEWSH A D04-Oct-20192 KiB6340

READMEH A D04-Oct-20192.2 KiB6150

config.hH A D04-Oct-20192.4 KiB647

config.statusH A D04-Oct-201920.7 KiB774601

configureH A D04-Oct-2019151 KiB5,5974,636

configure.inH A D04-Oct-2019438 2417

regex.cH A D04-Oct-2019157.9 KiB4,9492,924

regex.hH A D04-Oct-201918.3 KiB491168

README

1This directory contains the GNU regex library.  It is compliant with
2POSIX.2, except for internationalization features.
3
4See the file NEWS for a list of major changes in the current release.
5
6See the file INSTALL for compilation instructions.  (The only thing
7installed is the documentation; regex.c is compiled into regex.o, but
8not installed anywhere.)
9
10The subdirectory `doc' contains a (programmers') manual for the library.
11It's probably out-of-date.  Improvements are welcome.
12
13The subdirectory `test' contains the various tests we've written.
14
15We know this code is not as fast as it might be.  If you have specific
16suggestions, profiling results, or other such useful information to
17report, please do.
18
19Emacs 18 is not going use this revised regex (but Emacs 19 will).  If
20you want to try it with Emacs 18, apply the patch at the end of this
21file first.
22
23Mail bug reports to bug-gnu-utils@prep.ai.mit.edu.
24
25Please include an actual regular expression that fails (and the syntax
26used to compile it); without that, there's no way to reproduce the bug,
27so there's no way we can fix it.  Even if you include a patch, also
28include the regular expression in error; otherwise, we can't know for
29sure what you're trying to fix.
30
31Here 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;
61