Commit graph

29 commits

Author SHA1 Message Date
Dan Cross
fa325e9b42 Trivial changes: whitespace and modes.
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>
2020-01-10 14:54:30 +00:00
David du Colombier
de3b6d5848 libregexp: include stddef.h in lib9.std.h
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.
2018-09-29 15:59:31 +02:00
Russ Cox
310ae03327 all: fix or silence all INSTALL warnings on macOS
Should be a clean build now.

Change-Id: Id3460371cb5e8d4071f8faa9c2aec870d213a067
Reviewed-on: https://plan9port-review.googlesource.com/2781
Reviewed-by: Russ Cox <rsc@swtch.com>
2017-01-06 21:37:31 +00:00
David du Colombier
1b68dbef7b libregexp: various fixes
- 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>
2016-11-02 23:17:40 +00:00
Gleydson Soares
2d82ef9d98 fix segfaults on OpenBSD: int cannot hold all the values a ptrdiff_t can take.
Change-Id: I90806e6f2e46a94f38aa0a8a7038aa6599b448b3
Reviewed-on: https://plan9port-review.googlesource.com/2660
Reviewed-by: Russ Cox <rsc@swtch.com>
2016-11-02 23:16:21 +00:00
David du Colombier
7a6f3d9d6d libregexp: fix copy-paste error
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>
2015-06-03 15:34:13 +00:00
David du Colombier
3d31240bfd libregexp: update from Plan 9
R=rsc
https://codereview.appspot.com/10690044
2013-07-02 06:39:17 +02:00
Russ Cox
002d2f2610 libregexp: more placating of gcc (John Gosset) 2008-05-10 13:36:05 -04:00
Russ Cox
27589754e4 libregexp: fix match choice bug
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.
2008-01-10 17:06:51 -05:00
Russ Cox
6d08a0f548 libregexp: revert regexp fix 2007-12-07 17:33:41 -05:00
Russ Cox
a7511dd43d libregexp: fix ambiguous match selection
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.
2007-12-07 15:32:45 -05:00
rsc
1d550471f1 another 2007-06-09 04:59:40 +00:00
rsc
2f9d900118 day one bug in sam regexp code 2007-06-09 04:58:00 +00:00
rsc
29412e1c31 fix pointer comparison (Ramon de Vera) 2007-05-21 19:21:56 +00:00
rsc
da7f7882a2 Match leading ^ in regexp with embedded newlines (Roger Peppe) 2007-05-18 16:43:43 +00:00
rsc
4515de8f50 silence warning (andrey) 2006-04-20 20:18:13 +00:00
rsc
bb0266fe61 no wide character constants; sigh 2005-05-07 22:42:06 +00:00
rsc
5ba56e9139 silence warning 2005-01-14 17:55:23 +00:00
rsc
9cb6f43045 bad name 2004-12-27 00:12:22 +00:00
rsc
186a31de6b add for porting 2004-12-27 00:12:12 +00:00
rsc
127d5444fb add portdate 2004-12-26 23:48:25 +00:00
rsc
7e42d21012 odds and ends 2004-04-21 23:43:46 +00:00
rsc
1b135a7805 clean up when finished.
don't set PLAN9
don't set PLAN9
2004-04-19 23:04:36 +00:00
rsc
28fe2052d0 don't need these. 2004-03-05 05:14:18 +00:00
rsc
62390091b7 Update libregexp with recent bug fixes from Plan 9. 2004-03-05 05:13:56 +00:00
rsc
99947423b1 make -> mk 2003-11-23 18:22:36 +00:00
rsc
90026180d1 Use new directory structure. 2003-10-11 03:58:46 +00:00
rsc
522b0689c3 Reorg 2003-09-30 19:05:50 +00:00
rsc
b2cfc4e2e7 Initial revision 2003-09-30 17:47:41 +00:00