Author: matt
Date: 2010-02-26 13:10:46 -0800 (Fri, 26 Feb 2010)
New Revision: 7162
Log:
Adding FALLTHROUGH label to a buch of case fallthroughs in order to make lint 
happy. STR #2285

Modified:
   branches/branch-1.3/src/Fl_Button.cxx
   branches/branch-1.3/src/Fl_Color_Chooser.cxx
   branches/branch-1.3/src/Fl_Counter.cxx
   branches/branch-1.3/src/Fl_Dial.cxx
   branches/branch-1.3/src/Fl_Group.cxx
   branches/branch-1.3/src/Fl_Menu_Button.cxx
   branches/branch-1.3/src/Fl_Tabs.cxx
   branches/branch-1.3/src/filename_match.cxx

Modified: branches/branch-1.3/src/Fl_Button.cxx
===================================================================
--- branches/branch-1.3/src/Fl_Button.cxx       2010-02-26 20:44:35 UTC (rev 
7161)
+++ branches/branch-1.3/src/Fl_Button.cxx       2010-02-26 21:10:46 UTC (rev 
7162)
@@ -84,7 +84,7 @@
 int Fl_Button::handle(int event) {
   int newval;
   switch (event) {
-  case FL_ENTER:
+  case FL_ENTER: /* FALLTHROUGH */
   case FL_LEAVE:
 //  if ((value_?selection_color():color())==FL_GRAY) redraw();
     return 1;
@@ -143,7 +143,7 @@
          do_callback();
     } else if (when() & FL_WHEN_RELEASE) do_callback();
     return 1;
-  case FL_FOCUS :
+  case FL_FOCUS : /* FALLTHROUGH */
   case FL_UNFOCUS :
     if (Fl::visible_focus()) {
       if (box() == FL_NO_BOX) {

Modified: branches/branch-1.3/src/Fl_Color_Chooser.cxx
===================================================================
--- branches/branch-1.3/src/Fl_Color_Chooser.cxx        2010-02-26 20:44:35 UTC 
(rev 7161)
+++ branches/branch-1.3/src/Fl_Color_Chooser.cxx        2010-02-26 21:10:46 UTC 
(rev 7162)
@@ -123,7 +123,7 @@
     gvalue.range(0,1); gvalue.step(1,1000); gvalue.value(g_);
     bvalue.range(0,1); bvalue.step(1,1000); bvalue.value(b_);
     break;
-  case M_BYTE:
+  case M_BYTE: /* FALLTHROUGH */
   case M_HEX:
     rvalue.range(0,255); rvalue.step(1); rvalue.value(int(255*r_+.5));
     gvalue.range(0,255); gvalue.step(1); gvalue.value(int(255*g_+.5));
@@ -233,7 +233,7 @@
     if (Fl::event_state(FL_CTRL)) H = ih;
     if (c->hsv(H, S, c->value())) c->do_callback();
     } return 1;
-  case FL_FOCUS :
+  case FL_FOCUS : /* FALLTHROUGH */
   case FL_UNFOCUS :
     if (Fl::visible_focus()) {
       redraw();
@@ -354,7 +354,7 @@
     if (fabs(Yf-iv)<(3*1.0/h())) Yf = iv;
     if (c->hsv(c->hue(),c->saturation(),Yf)) c->do_callback();
     } return 1;
-  case FL_FOCUS :
+  case FL_FOCUS : /* FALLTHROUGH */
   case FL_UNFOCUS :
     if (Fl::visible_focus()) {
       redraw();

Modified: branches/branch-1.3/src/Fl_Counter.cxx
===================================================================
--- branches/branch-1.3/src/Fl_Counter.cxx      2010-02-26 20:44:35 UTC (rev 
7161)
+++ branches/branch-1.3/src/Fl_Counter.cxx      2010-02-26 21:10:46 UTC (rev 
7162)
@@ -165,13 +165,13 @@
         return 0;
     }
     // break not required because of switch...
-  case FL_FOCUS :
+  case FL_FOCUS : /* FALLTHROUGH */
   case FL_UNFOCUS :
     if (Fl::visible_focus()) {
       redraw();
       return 1;
     } else return 0;
-  case FL_ENTER :
+  case FL_ENTER : /* FALLTHROUGH */
   case FL_LEAVE :
     return 1;
   default:

Modified: branches/branch-1.3/src/Fl_Dial.cxx
===================================================================
--- branches/branch-1.3/src/Fl_Dial.cxx 2010-02-26 20:44:35 UTC (rev 7161)
+++ branches/branch-1.3/src/Fl_Dial.cxx 2010-02-26 21:10:46 UTC (rev 7162)
@@ -134,7 +134,7 @@
   case FL_RELEASE:
     handle_release();
     return 1;
-  case FL_ENTER :
+  case FL_ENTER : /* FALLTHROUGH */
   case FL_LEAVE :
     return 1;
   default:

Modified: branches/branch-1.3/src/Fl_Group.cxx
===================================================================
--- branches/branch-1.3/src/Fl_Group.cxx        2010-02-26 20:44:35 UTC (rev 
7161)
+++ branches/branch-1.3/src/Fl_Group.cxx        2010-02-26 21:10:46 UTC (rev 
7162)
@@ -102,7 +102,7 @@
   if (o->type() < FL_WINDOW) return o->handle(event);
   switch ( event )
   {
-  case FL_DND_ENTER:
+  case FL_DND_ENTER: /* FALLTHROUGH */
   case FL_DND_DRAG:
     // figure out correct type of event:
     event = (o->contains(Fl::belowmouse())) ? FL_DND_DRAG : FL_DND_ENTER;
@@ -114,7 +114,7 @@
   Fl::e_x = save_x;
   switch ( event )
   {
-  case FL_ENTER:
+  case FL_ENTER: /* FALLTHROUGH */
   case FL_DND_ENTER:
     // Successful completion of FL_ENTER means the widget is now the
     // belowmouse widget, but only call Fl::belowmouse if the child

Modified: branches/branch-1.3/src/Fl_Menu_Button.cxx
===================================================================
--- branches/branch-1.3/src/Fl_Menu_Button.cxx  2010-02-26 20:44:35 UTC (rev 
7161)
+++ branches/branch-1.3/src/Fl_Menu_Button.cxx  2010-02-26 21:10:46 UTC (rev 
7162)
@@ -73,7 +73,7 @@
 int Fl_Menu_Button::handle(int e) {
   if (!menu() || !menu()->text) return 0;
   switch (e) {
-  case FL_ENTER:
+  case FL_ENTER: /* FALLTHROUGH */
   case FL_LEAVE:
     return (box() && !type()) ? 1 : 0;
   case FL_PUSH:
@@ -95,7 +95,7 @@
   case FL_SHORTCUT:
     if (Fl_Widget::test_shortcut()) {popup(); return 1;}
     return test_shortcut() != 0;
-  case FL_FOCUS:
+  case FL_FOCUS: /* FALLTHROUGH */
   case FL_UNFOCUS:
     if (box() && Fl::visible_focus()) {
       redraw();

Modified: branches/branch-1.3/src/Fl_Tabs.cxx
===================================================================
--- branches/branch-1.3/src/Fl_Tabs.cxx 2010-02-26 20:44:35 UTC (rev 7161)
+++ branches/branch-1.3/src/Fl_Tabs.cxx 2010-02-26 21:10:46 UTC (rev 7162)
@@ -151,6 +151,7 @@
     } else {
       if (Fl::event_y() < y()+h()+H) return Fl_Group::handle(event);
     }}
+    /* FALLTHROUGH */
   case FL_DRAG:
   case FL_RELEASE:
     o = which(Fl::event_x(), Fl::event_y());

Modified: branches/branch-1.3/src/filename_match.cxx
===================================================================
--- branches/branch-1.3/src/filename_match.cxx  2010-02-26 20:44:35 UTC (rev 
7161)
+++ branches/branch-1.3/src/filename_match.cxx  2010-02-26 21:10:46 UTC (rev 
7162)
@@ -114,6 +114,7 @@
 
     case '\\': // quote next character
       if (*p) p++;
+      /* FALLTHROUGH */
     default:
       if (tolower(*s) != tolower(*(p-1))) return 0;
       s++;

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to