]>
Commit | Line | Data |
---|---|---|
e970653a RN |
1 | wxWindows regex |
2 | ---------------- | |
3 | This is a version of Henry Spencer's regex, | |
4 | which was taken from postresql, which was | |
5 | taken from the source of TCL (Toolkit Command Language). | |
6 | ||
7 | This is version of Henry Spencer's library is | |
8 | modified by the wxWindows team. The modifications | |
9 | made by the wxWindows team are as follows: | |
10 | regcustom.h (all code) | |
11 | regex.h (function wrappers, other) | |
12 | regc_locale.c (A function or two). | |
13 | All the rest (Using standard c library routines instead of | |
14 | postresql routines, various cleanup/optimizations) | |
15 | ||
16 | The code that is wxWindows-specific is as follows: | |
17 | regcustom.h (all code, see comments on how to replace) | |
18 | regex.h (where noted with comments, compiler workarounds) | |
19 | regcomp.c (a few of the functions prefixed with wx_, | |
20 | these may be replaced by c library routines) | |
21 | ||
22 | This newer library was chosen over the old one because | |
23 | Henry Spencer's old library did not support unicode and | |
24 | had some other bugs that were fixed by this one, and | |
25 | the license was incompatible with the wxWindows license | |
26 | and the gpl. | |
27 | ||
28 | Modifications made by the wxWindows team are not licensed. | |
29 | ||
30 | ||
31 | The original readme (from the TCL distribution) follows: | |
32 | ||
07dcc217 VZ |
33 | alpha3.8 release. |
34 | Tue Aug 10 15:51:48 EDT 1999 | |
35 | henry@spsystems.net (formerly henry@zoo.toronto.edu) | |
36 | ||
37 | See WHATSNEW for change listing. | |
38 | ||
39 | installation notes: | |
40 | -------- | |
41 | Read the comments at the beginning of Makefile before running. | |
42 | ||
43 | Utils.h contains some things that just might have to be modified on | |
44 | some systems, as well as a nested include (ugh) of <assert.h>. | |
45 | ||
46 | The "fake" directory contains quick-and-dirty fakes for some header | |
47 | files and routines that old systems may not have. Note also that | |
48 | -DUSEBCOPY will make utils.h substitute bcopy() for memmove(). | |
49 | ||
50 | After that, "make r" will build regcomp.o, regexec.o, regfree.o, | |
51 | and regerror.o (the actual routines), bundle them together into a test | |
52 | program, and run regression tests on them. No output is good output. | |
53 | ||
54 | "make lib" builds just the .o files for the actual routines (when | |
55 | you're happy with testing and have adjusted CFLAGS for production), | |
56 | and puts them together into libregex.a. You can pick up either the | |
57 | library or *.o ("make lib" makes sure there are no other .o files left | |
58 | around to confuse things). | |
59 | ||
60 | Main.c, debug.c, split.c are used for regression testing but are not part | |
61 | of the RE routines themselves. | |
62 | ||
63 | Regex.h goes in /usr/include. All other .h files are internal only. | |
64 | -------- |