STR 2708: simple inline hint may reduce executable size quite a lot.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9082 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Matthias Melcher 2011-09-28 20:43:05 +00:00
parent dc7ac4e770
commit bc1b17056a
2 changed files with 2 additions and 2 deletions

View File

@ -353,7 +353,7 @@ void Fl_Menu_Item_Type::write_code1() {
const char* cn = callback_name(); const char* cn = callback_name();
const char* ut = user_data_type() ? user_data_type() : "void*"; const char* ut = user_data_type() ? user_data_type() : "void*";
write_public(0); 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); write_h(" static void %s(Fl_Menu_*, %s);\n", cn, ut);
} }
} }

View File

@ -2073,7 +2073,7 @@ void Fl_Widget_Type::write_code1() {
const char* cn = callback_name(); const char* cn = callback_name();
const char* ut = user_data_type() ? user_data_type() : "void*"; const char* ut = user_data_type() ? user_data_type() : "void*";
write_public(0); 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); write_h(" static void %s(%s*, %s);\n", cn, t, ut);
} }
// figure out if local variable will be used (prevent compiler warnings): // figure out if local variable will be used (prevent compiler warnings):