aboutsummaryrefslogtreecommitdiff
path: root/src/libregexp
Commit message (Collapse)AuthorAgeFilesLines
* libregexp: allow up to 127 captured subexpressions in one regexpIgor Burago2023-03-311-1/+1
| | | | 128 counting with the entire expression match ($0).
* Trivial changes: whitespace and modes.Dan Cross2020-01-102-2/+1
| | | | | | | | | Remote whitespace at the ends of lines. Remove blank lines from the ends of files. Change modes on source files so that they are not executable. Signed-off-by: Dan Cross <cross@gajendra.net>
* libregexp: include stddef.h in lib9.std.hDavid du Colombier2018-09-291-0/+1
| | | | | | Commit 2d82ef9d98 added ptrdiff_t in regcomp.c. However, this change broke the build of the Unix package because ptrdiff_t is defined in stddef.h.
* all: fix or silence all INSTALL warnings on macOSRuss Cox2017-01-061-4/+1
| | | | | | | | Should be a clean build now. Change-Id: Id3460371cb5e8d4071f8faa9c2aec870d213a067 Reviewed-on: https://plan9port-review.googlesource.com/2781 Reviewed-by: Russ Cox <rsc@swtch.com>
* libregexp: various fixesDavid du Colombier2016-11-023-6/+4
| | | | | | | | | | | | - Check before dereference. - Fix memory leak - Remove duplicate if statement. - Remove trailing spaces. Change-Id: I140a05c8f7006493dddae753aebfa5b4577c65ef Reviewed-on: https://plan9port-review.googlesource.com/1301 Reviewed-by: Neven Sajko <nsajko@gmail.com> Reviewed-by: Russ Cox <rsc@swtch.com>
* fix segfaults on OpenBSD: int cannot hold all the values a ptrdiff_t can take.Gleydson Soares2016-11-021-1/+1
| | | | | | Change-Id: I90806e6f2e46a94f38aa0a8a7038aa6599b448b3 Reviewed-on: https://plan9port-review.googlesource.com/2660 Reviewed-by: Russ Cox <rsc@swtch.com>
* libregexp: fix copy-paste errorDavid du Colombier2015-06-031-1/+1
| | | | | | | Change-Id: I042d63ea62e2abd599bf9767acb3374bb39ddc7d Reviewed-on: https://plan9port-review.googlesource.com/1050 Reviewed-by: Minux Ma <minux@golang.org> Reviewed-by: Russ Cox <rsc@google.com>
* libregexp: update from Plan 9David du Colombier2013-07-025-24/+25
| | | | | R=rsc https://codereview.appspot.com/10690044
* libregexp: more placating of gcc (John Gosset)Russ Cox2008-05-101-5/+5
|
* libregexp: fix match choice bugRuss Cox2008-01-102-2/+2
| | | | | | | | This bug fix allows some pathological regular expressions to cause the regexp library to report a stack overflow (really a stack filling; safe) but it also fixes the behavior of some common regexps. It is too hard to satisfy both.
* libregexp: revert regexp fixRuss Cox2007-12-075-117/+113
|
* libregexp: fix ambiguous match selectionRuss Cox2007-12-075-113/+117
| | | | | | | | | | echo SYSSYSR1 | sed 's/SYS.+/sysr1/' was producing SYSsysr1 instead of sysr1. Bug was introduced during overflow cleanup earlier this year. Also bring regexec.c and rregexec.c into sync again. Also allocate large enough lists in the regexec2/rregexec2 case.
* anotherrsc2007-06-091-1/+1
|
* day one bug in sam regexp codersc2007-06-091-1/+1
|
* fix pointer comparison (Ramon de Vera)rsc2007-05-211-1/+1
|
* Match leading ^ in regexp with embedded newlines (Roger Peppe)rsc2007-05-182-11/+10
|
* silence warning (andrey)rsc2006-04-201-5/+5
|
* no wide character constants; sighrsc2005-05-071-17/+17
|
* silence warningrsc2005-01-141-1/+1
|
* bad namersc2004-12-271-6/+0
|
* add for portingrsc2004-12-271-0/+10
|
* add portdatersc2004-12-261-0/+9
|
* odds and endsrsc2004-04-211-0/+11
|
* clean up when finished.rsc2004-04-191-1/+0
| | | | | don't set PLAN9 don't set PLAN9
* don't need these.rsc2004-03-052-283/+0
|
* Update libregexp with recent bug fixes from Plan 9.rsc2004-03-0512-81/+111
|
* make -> mkrsc2003-11-232-27/+27
|
* Use new directory structure.rsc2003-10-111-4/+4
|
* Reorgrsc2003-09-3017-705/+5
|
* Initial revisionrsc2003-09-3032-0/+2385