summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>1999-06-12 12:59:06 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>1999-06-12 12:59:06 +0000
commitf3980ef211936a202e7176cf93344309d8a5dbbf (patch)
treeefdd444d09423be0b504a879a523a040328234db
parentc227a1f36947df98f7e87914adc3851c0eb5bf5a (diff)
Fixed subclass (Class::Member) output bug reported by Jim Hourihan.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@600 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--fluid/Fl_Function_Type.cxx13
1 files changed, 10 insertions, 3 deletions
diff --git a/fluid/Fl_Function_Type.cxx b/fluid/Fl_Function_Type.cxx
index a811e60f5..627f33f81 100644
--- a/fluid/Fl_Function_Type.cxx
+++ b/fluid/Fl_Function_Type.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Function_Type.cxx,v 1.15.2.3 1999/05/11 09:39:28 bill Exp $"
+// "$Id: Fl_Function_Type.cxx,v 1.15.2.4 1999/06/12 12:59:06 mike Exp $"
//
// C function type code for the Fast Light Tool Kit (FLTK).
//
@@ -233,7 +233,14 @@ void Fl_Function_Type::write_code1() {
char s[1024], *sptr = s;
char *nptr = (char *)name();
- while (*nptr && *nptr != ':') *sptr++ = *nptr++;
+ while (*nptr) {
+ if (*nptr == ':') {
+ if (nptr[1] != ':') break;
+ // Copy extra ":" for "class::member"...
+ *sptr++ = *nptr++;
+ }
+ *sptr++ = *nptr++;
+ }
*sptr = '\0';
write_h("%s;\n", s);
@@ -653,5 +660,5 @@ void Fl_Class_Type::write_code2() {
}
//
-// End of "$Id: Fl_Function_Type.cxx,v 1.15.2.3 1999/05/11 09:39:28 bill Exp $".
+// End of "$Id: Fl_Function_Type.cxx,v 1.15.2.4 1999/06/12 12:59:06 mike Exp $".
//