aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/sam/cmd.c
AgeCommit message (Collapse)AuthorFilesLines
2021-01-05acme, sam, samterm: remove weird switch usageRuss Cox1-2/+4
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.
2021-01-05stats: add threadmaybackgroundRuss Cox1-35/+35
2020-01-10Trivial changes: whitespace and modes.Dan Cross1-2/+2
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>
2009-09-11convert to 4-byte UTF-8 and 32-bit RuneRuss Cox1-1/+1
http://codereview.appspot.com/116075
2006-04-2064-bit fixesrsc1-12/+25
2006-04-01Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.rsc1-1/+1
2005-07-13warningsrsc1-0/+1
2003-09-30Reorgrsc1-3/+3
2003-09-30Initial revisionrsc1-0/+594