From: Zdenek K. <ka...@us...> - 2013-11-23 19:32:09
|
Update of /cvsroot/fte/fte/src In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv4443/src Modified Files: i_input.cpp i_search.cpp menu_text.cpp Log Message: Add Fall through comments Index: i_input.cpp =================================================================== RCS file: /cvsroot/fte/fte/src/i_input.cpp,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- i_input.cpp 19 Feb 2011 12:24:06 -0000 1.9 +++ i_input.cpp 23 Nov 2013 19:32:07 -0000 1.10 @@ -212,6 +212,7 @@ case 'Q' | kfCtrl: Event.What = evKeyDown; Event.Key.Code = Win->GetChar(0); + /* Fall through */ default: { char Ch; Index: menu_text.cpp =================================================================== RCS file: /cvsroot/fte/fte/src/menu_text.cpp,v retrieving revision 1.14 retrieving revision 1.15 diff -u -d -r1.14 -r1.15 --- menu_text.cpp 14 Feb 2010 17:55:30 -0000 1.14 +++ menu_text.cpp 23 Nov 2013 19:32:07 -0000 1.15 @@ -284,7 +284,9 @@ case evKeyDown: switch (kbCode(E.Key.Code)) { case kbPgDn: - case kbEnd: cur = Menus[id].Count; + case kbEnd: + cur = Menus[id].Count; + /* Fall through */ case kbUp: { int xcur = cur; @@ -296,7 +298,9 @@ } break; case kbPgUp: - case kbHome: cur = -1; + case kbHome: + cur = -1; + /* Fall through */ case kbDown: { int xcur = cur; @@ -537,7 +541,9 @@ break; case evKeyDown: switch (kbCode(E.Key.Code)) { - case kbEnd: cur = Menus[id].Count; + case kbEnd: + cur = Menus[id].Count; + /* Fall through */ case kbLeft: dovert = 1; { @@ -548,7 +554,9 @@ } while (cur != x && Menus[id].Items[cur].Name == 0); } break; - case kbHome: cur = -1; + case kbHome: + cur = -1; + /* Fall through */ case kbRight: dovert = 1; { Index: i_search.cpp =================================================================== RCS file: /cvsroot/fte/fte/src/i_search.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- i_search.cpp 23 Nov 2013 19:31:34 -0000 1.7 +++ i_search.cpp 23 Nov 2013 19:32:07 -0000 1.8 @@ -120,6 +120,7 @@ case 'Q' | kfCtrl: Event.What = evKeyDown; Event.Key.Code = Win->GetChar(0); + /* Fall through */ default: if (isAscii(Event.Key.Code) && (len < (int)MAXISEARCH)) { char Ch = (char) Event.Key.Code; |