Clean up case switching in handleKeyPress()
commit066af13b5c33aeb96b832d90177394b0bc425c9a
authorCarlos R. Mafra <crmafra@gmail.com>
Wed, 19 Aug 2009 20:03:43 +0000 (19 22:03 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Wed, 19 Aug 2009 20:11:15 +0000 (19 22:11 +0200)
tree0a66ea7a06b0df201a1acfce17138e03b10a1719
parente2d8cbe238d54ce2242be475adfdf62f2637d107
Clean up case switching in handleKeyPress()

GCC has an extension to deal with ranges within case statements.
Let's use it to make the code more readable and ~5% smaller,

[mafra@Pilar:wmaker.git]$ size src/event.o.*
   text    data     bss     dec     hex filename
  13087       0    1056   14143    373f src/event.o.new
  13711       0    1056   14767    39af src/event.o.old
src/event.c