diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2011-09-28 20:43:05 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2011-09-28 20:43:05 +0000 |
| commit | bc1b17056a44af5890cb2b5ec56cf9fbb72ccea4 (patch) | |
| tree | 44c091a08ba013a862754232f072376d43b61232 | |
| parent | dc7ac4e770e6d97ebd23fb4a1833b5606e63a7f3 (diff) | |
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
| -rw-r--r-- | fluid/Fl_Menu_Type.cxx | 2 | ||||
| -rw-r--r-- | fluid/Fl_Widget_Type.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/fluid/Fl_Menu_Type.cxx b/fluid/Fl_Menu_Type.cxx index 303b5c9ed..fbf9856e8 100644 --- a/fluid/Fl_Menu_Type.cxx +++ b/fluid/Fl_Menu_Type.cxx @@ -353,7 +353,7 @@ void Fl_Menu_Item_Type::write_code1() { 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); } } diff --git a/fluid/Fl_Widget_Type.cxx b/fluid/Fl_Widget_Type.cxx index 279cd1370..397d56ae8 100644 --- a/fluid/Fl_Widget_Type.cxx +++ b/fluid/Fl_Widget_Type.cxx @@ -2073,7 +2073,7 @@ void Fl_Widget_Type::write_code1() { 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): |
