summaryrefslogtreecommitdiff
path: root/fluid/Fl_Function_Type.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <git@matthiasm.com>2021-12-20 01:19:00 +0100
committerMatthias Melcher <github@matthiasm.com>2021-12-20 01:23:59 +0100
commit0d435d51aca65f76702369a1a7d389ee0e31e1e2 (patch)
tree1852658a6746459fc829a479059d3f8c2bb7738f /fluid/Fl_Function_Type.cxx
parente8961f10b87290ce9a0b9efc1a0439760b3b2e60 (diff)
GitHub #328: removed stray ';' in Fluid code generation.
Diffstat (limited to 'fluid/Fl_Function_Type.cxx')
-rw-r--r--fluid/Fl_Function_Type.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/fluid/Fl_Function_Type.cxx b/fluid/Fl_Function_Type.cxx
index ab3672e23..a4ab673a0 100644
--- a/fluid/Fl_Function_Type.cxx
+++ b/fluid/Fl_Function_Type.cxx
@@ -994,9 +994,8 @@ void Fl_Decl_Type::write_code1() {
const char* e = c+strlen(c), *csc = c;
while (csc<e && (csc[0]!='/' || csc[1]!='/')) csc++;
if (csc!=e) e = csc; // comment found
- // lose all trailing semicolons so I can add one:
+ // lose spaces between text and comment, if any
while (e>c && e[-1]==' ') e--;
- while (e>c && e[-1]==';') e--;
if (class_name(1)) {
write_public(public_);
write_comment_h(indent(1));