Author: matt
Date: 2011-09-28 13:44:35 -0700 (Wed, 28 Sep 2011)
New Revision: 9083
Log:
STR 2708: simple inline hint may reduce executable size quite a lot.

Modified:
   branches/branch-3.0/fluid/Fl_Menu_Type.cxx
   branches/branch-3.0/fluid/Fl_Widget_Type.cxx

Modified: branches/branch-3.0/fluid/Fl_Menu_Type.cxx
===================================================================
--- branches/branch-3.0/fluid/Fl_Menu_Type.cxx  2011-09-28 20:43:05 UTC (rev 
9082)
+++ branches/branch-3.0/fluid/Fl_Menu_Type.cxx  2011-09-28 20:44:35 UTC (rev 
9083)
@@ -362,7 +362,7 @@
       const char* cn = callback_name();
       const char* ut = user_data_type() ? user_data_type() : "void*";
       write_public(0);
-      write_h("  void %s_i(fltk3::Menu_*, %s);\n", cn, ut);
+      write_h("  inline void %s_i(fltk3::Menu_*, %s);\n", cn, ut);
       write_h("  static void %s(fltk3::Menu_*, %s);\n", cn, ut);
     }
   }

Modified: branches/branch-3.0/fluid/Fl_Widget_Type.cxx
===================================================================
--- branches/branch-3.0/fluid/Fl_Widget_Type.cxx        2011-09-28 20:43:05 UTC 
(rev 9082)
+++ branches/branch-3.0/fluid/Fl_Widget_Type.cxx        2011-09-28 20:44:35 UTC 
(rev 9083)
@@ -2066,7 +2066,7 @@
     const char* cn = callback_name();
     const char* ut = user_data_type() ? user_data_type() : "void*";
     write_public(0);
-    write_h("  void %s_i(%s*, %s);\n", cn, t, ut);
+    write_h("  inline void %s_i(%s*, %s);\n", cn, t, ut);
     write_h("  static void %s(%s*, %s);\n", cn, t, ut);
   }
   // figure out if local variable will be used (prevent compiler warnings):

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

Reply via email to