Commit Briefs

Russ Cox

acme, sam, samterm: remove weird switch usage

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.


Russ Cox

acme, sam: fix regexp code for bigger Runemax

R=r http://codereview.appspot.com/1765042


Russ Cox

convert to 4-byte UTF-8 and 32-bit Rune

http://codereview.appspot.com/116075


Russ Cox

sam: fix regexp match choice bug


Russ Cox

sam: revert regexp fix



rsc

better fix



rsc

Reorg


rsc

Initial revision