diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 1999-02-19 14:33:22 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 1999-02-19 14:33:22 +0000 |
| commit | 9b0162e21250da6421cc116d404cd297e13a4e47 (patch) | |
| tree | ddbbd89304afe912601b0139e72307668df65035 /fluid | |
| parent | 34caa8250d2d8ff8ed36bcb57629bea53aa74ab6 (diff) | |
Added modified patch from Tom Holroyd to support class "chaining".
git-svn-id: file:///fltk/svn/fltk/trunk@303 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid')
| -rw-r--r-- | fluid/Fl_Function_Type.cxx | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/fluid/Fl_Function_Type.cxx b/fluid/Fl_Function_Type.cxx index fef8a2d11..dac17f78a 100644 --- a/fluid/Fl_Function_Type.cxx +++ b/fluid/Fl_Function_Type.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Function_Type.cxx,v 1.13 1999/02/17 16:24:45 mike Exp $" +// "$Id: Fl_Function_Type.cxx,v 1.14 1999/02/19 14:33:22 mike Exp $" // // C function type code for the Fast Light Tool Kit (FLTK). // @@ -224,7 +224,15 @@ void Fl_Function_Type::write_code1() { write_h("%s ", t); write_c("%s ", t); } - write_h("%s;\n", name()); + + // if this is a subclass, only write_h() the part before the ':' + char s[1024], *sptr = s; + char *nptr = (char *)name(); + + while (*nptr && *nptr != ':') *sptr++ = *nptr++; + *sptr = '\0'; + + write_h("%s;\n", s); write_c("%s::%s {\n", k, name()); } else { if (public_) write_h("%s %s;\n", t, name()); @@ -701,5 +709,5 @@ void Fl_Class_Type::write_code2() { } // -// End of "$Id: Fl_Function_Type.cxx,v 1.13 1999/02/17 16:24:45 mike Exp $". +// End of "$Id: Fl_Function_Type.cxx,v 1.14 1999/02/19 14:33:22 mike Exp $". // |
