aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/sam/regexp.c
Commit message (Collapse)AuthorAgeFilesLines
* acme, sam, samterm: remove weird switch usageRuss Cox2021-01-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | For whatever reason all three of these programs contain switches like: switch(x) { case 1: if(cond) case 2: f(); } Like Duff's device, this is legal C but more obscure than it really needs to be. This commit assumes those are intended as written and simply writes them more clearly. I did consider that maybe they are mistakes, but in the case of sam/regexp.c, my rewrite in this commit matches the acme/regx.c that has been in plan9port since I added acme in 2003. (I didn't bother to dig up the old Plan 9 releases.) Assuming acme/regx.c has been correct for the past two decades, this commit should be correct too.
* acme, sam: fix regexp code for bigger RunemaxRuss Cox2010-07-141-24/+26
| | | | | R=r http://codereview.appspot.com/1765042
* convert to 4-byte UTF-8 and 32-bit RuneRuss Cox2009-09-111-2/+2
| | | | http://codereview.appspot.com/116075
* sam: fix regexp match choice bugRuss Cox2008-01-301-1/+1
|
* sam: revert regexp fixRuss Cox2007-12-071-59/+49
|
* sam: regexp fix (see libregexp change)Russ Cox2007-12-071-49/+59
|
* better fixrsc2007-06-091-14/+15
|
* day one bug in sam regexp codersc2007-06-091-1/+1
|
* Reorgrsc2003-09-301-2/+2
|
* Initial revisionrsc2003-09-301-0/+801