summaryrefslogtreecommitdiff
path: root/fluid/Fl_Function_Type.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <git@matthiasm.com>2021-12-09 21:06:04 +0100
committerMatthias Melcher <git@matthiasm.com>2021-12-09 21:51:37 +0100
commitc175d1276df0c3c96799e57ed20535e547416757 (patch)
treeb13f3d8f39c09b76dfb3d30ce961b977b37527bc /fluid/Fl_Function_Type.cxx
parent0c1f78c1f2eadc464cca6861c07bd98818a79068 (diff)
STR 3210: fixing indentation of Fl_Menu_Item cnd Widget allbacks.
also added and fixed a few comments STR 3210: fixed indenting of widget callbacks. Also fixed what is considered a 'name' (could still be improved). Also better formatting inlined functions in the header.
Diffstat (limited to 'fluid/Fl_Function_Type.cxx')
-rw-r--r--fluid/Fl_Function_Type.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/fluid/Fl_Function_Type.cxx b/fluid/Fl_Function_Type.cxx
index 0046d2e98..86dcfaef3 100644
--- a/fluid/Fl_Function_Type.cxx
+++ b/fluid/Fl_Function_Type.cxx
@@ -405,7 +405,11 @@ void Fl_Function_Type::write_code1() {
}
*sptr = '\0';
- write_h("%s;\n", s);
+ if (s[strlen(s)-1] == '}') { // special case for inlined functions
+ write_h("%s\n", s);
+ } else {
+ write_h("%s;\n", s);
+ }
// skip all function default param. init in body:
int skips=0,skipc=0;
int nc=0,plevel=0;