Author: matt
Date: 2011-09-28 13:43:05 -0700 (Wed, 28 Sep 2011)
New Revision: 9082
Log:
STR 2708: simple inline hint may reduce executable size quite a lot.
Modified:
branches/branch-1.3/fluid/Fl_Menu_Type.cxx
branches/branch-1.3/fluid/Fl_Widget_Type.cxx
Modified: branches/branch-1.3/fluid/Fl_Menu_Type.cxx
===================================================================
--- branches/branch-1.3/fluid/Fl_Menu_Type.cxx 2011-09-28 20:31:58 UTC (rev
9081)
+++ branches/branch-1.3/fluid/Fl_Menu_Type.cxx 2011-09-28 20:43:05 UTC (rev
9082)
@@ -353,7 +353,7 @@
const char* cn = callback_name();
const char* ut = user_data_type() ? user_data_type() : "void*";
write_public(0);
- write_h(" void %s_i(Fl_Menu_*, %s);\n", cn, ut);
+ write_h(" inline void %s_i(Fl_Menu_*, %s);\n", cn, ut);
write_h(" static void %s(Fl_Menu_*, %s);\n", cn, ut);
}
}
Modified: branches/branch-1.3/fluid/Fl_Widget_Type.cxx
===================================================================
--- branches/branch-1.3/fluid/Fl_Widget_Type.cxx 2011-09-28 20:31:58 UTC
(rev 9081)
+++ branches/branch-1.3/fluid/Fl_Widget_Type.cxx 2011-09-28 20:43:05 UTC
(rev 9082)
@@ -2073,7 +2073,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