Commits
- Commit:
1c845e0bd5ff897dc5e90f2c24db4ecd81a8f60c
- From:
- Russ Cox <rsc@swtch.com>
- Date:
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.
- Commit:
36d9b90c56e939244b7081b575dc51c2afddff93
- From:
- Russ Cox <rsc@swtch.com>
- Date:
acme, sam: fix regexp code for bigger Runemax
R=r
http://codereview.appspot.com/1765042
- Commit:
0cadb4301d18724e7513d7489cb5bebd262c82f1
- From:
- Russ Cox <russcox@gmail.com>
- Date:
convert to 4-byte UTF-8 and 32-bit Rune
http://codereview.appspot.com/116075
- Commit:
3a9401ae90d2a16c7a06328d397775ca5b46ffc0
- From:
- Russ Cox <rsc@swtch.com>
- Date:
sam: fix regexp match choice bug
- Commit:
2deda14e4268e7e8af4910d453db73e210d3eb58
- From:
- Russ Cox <rsc@swtch.com>
- Date:
sam: revert regexp fix
- Commit:
608a09284ecf721781b2145ea62cce82f4f44712
- From:
- Russ Cox <rsc@swtch.com>
- Date:
sam: regexp fix (see libregexp change)
- Commit:
c99ef336aaa39a0c7aa2d0c62e93680764790605
- From:
- rsc <devnull@localhost>
- Date:
better fix
- Commit:
2f9d900118318c1a820b170cc04ddf58ed1eee87
- From:
- rsc <devnull@localhost>
- Date:
day one bug in sam regexp code
- Commit:
522b0689c340d26feeac360640bf7e2e0582353c
- From:
- rsc <devnull@localhost>
- Date:
Reorg
- Commit:
76193d7cb0457807b2f0b95f909ab5de19480cd7
- From:
- rsc <devnull@localhost>
- Date:
Initial revision