summaryrefslogtreecommitdiffstats
path: root/lib/libcompat/4.3/regex.c
Commit message (Collapse)AuthorAgeFilesLines
* Trim down libcompat by removing <regexp.h>.ed2010-03-141-92/+0
| | | | | | | | | | | | | | | Erwin ran an exp-run with libcompat and <regexp.h> removed. It turns out the regexp library is almost entirely unused. In fact, it looks like it is sometimes used by accident. Because these function names clash with libc's <regex.h>, some application use both <regex.h> and libcompat, which means they link against the wrong regex library. This commit removes the regexp library and reimplements re_comp() and re_exec() using <regex.h>. It seems the grammar of the regular expressions accepted by these functions is similar to POSIX EREs. After this commit, 1 low-profile port will be broken, but the maintainer already has a patch for it sitting in his mailbox.
* K&R -> ANSIdelphij2009-06-231-6/+3
|
* Remove California Regent's clause 3, per letterimp2007-01-091-4/+3
|
* add a couple of missing #include linesphk1995-03-191-0/+1
|
* Add sanity check for "no previous regular expression" state,ache1994-09-141-1/+4
| | | | bringed by 'more'
* Fix bug with searching "" pattern, cause 'more' always showsache1994-09-141-1/+1
| | | | next line on "/<Enter>" instead of searching next pattern
* This is James da Silva at the University of Maryland at College Park'srgrimes1994-05-271-0/+92
regex.c code as picked up from the net.
OpenPOWER on IntegriCloud