cvs: Rebuild without gnuregex library
[dragonfly.git] / gnu / lib / libregex / README
CommitLineData
984263bc
MD
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\f
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;