Tree
- Tree:
5b4c0a3ba8784251a08dc46ed3a8f23e6b48cc60
- Date:
- Message:
- 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.
README | commits | blame |
README
# Thanks to Caerwyn Jones for preparing the dictionary # and modifying dict to handle it. # This is the Project Gutenberg original Webster's dictionary wget -O- https://9fans.github.io/plan9port/dist/pgw.tar.bz2| bunzip2| tar xf - # This is the Project Gutenberg original Roget's thesaurus wget -O- https://9fans.github.io/plan9port/dist/roget.tar.bz2| bunzip2| tar xf -