plan9port/src/cmd/samterm
Russ Cox 1c845e0bd5 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.
2021-01-05 23:38:09 -05:00
..
acid
flayer.c acme, sam, samterm: remove weird switch usage 2021-01-05 23:38:09 -05:00
flayer.h samterm: retina scaling for scroll bars, borders 2012-11-26 00:23:06 -05:00
icons.c Trivial changes: whitespace and modes. 2020-01-10 14:54:30 +00:00
io.c Trivial changes: whitespace and modes. 2020-01-10 14:54:30 +00:00
main.c Trivial changes: whitespace and modes. 2020-01-10 14:54:30 +00:00
menu.c
mesg.c Trivial changes: whitespace and modes. 2020-01-10 14:54:30 +00:00
mkfile
plan9.c samterm: free some getenv results 2018-03-27 15:03:12 +02:00
rasp.c
samterm.h Trivial changes: whitespace and modes. 2020-01-10 14:54:30 +00:00
scroll.c samterm: retina scaling for scroll bars, borders 2012-11-26 00:23:06 -05:00
syms