diff options
| author | Bill Spitzak <spitzak@gmail.com> | 1999-09-08 06:05:00 +0000 |
|---|---|---|
| committer | Bill Spitzak <spitzak@gmail.com> | 1999-09-08 06:05:00 +0000 |
| commit | 820654ccd63662460b1b7ee5595784fbe49e0977 (patch) | |
| tree | 62c4b11d98b1d8cde1a854f577acf8ce7f55b930 /fluid | |
| parent | 7f60ccd9adbaac2094d417753f12fa29ad117b48 (diff) | |
Does not write "extern foo *bar" declarations twice.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@709 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid')
| -rw-r--r-- | fluid/Fl_Widget_Type.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/fluid/Fl_Widget_Type.cxx b/fluid/Fl_Widget_Type.cxx index 88bf48ecb..75c00928b 100644 --- a/fluid/Fl_Widget_Type.cxx +++ b/fluid/Fl_Widget_Type.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Widget_Type.cxx,v 1.15.2.6 1999/08/09 13:53:55 mike Exp $" +// "$Id: Fl_Widget_Type.cxx,v 1.15.2.7 1999/09/08 06:05:00 bill Exp $" // // Widget type code for the Fast Light Tool Kit (FLTK). // @@ -1295,8 +1295,7 @@ void Fl_Widget_Type::write_code1() { if (class_name()) { write_public(public_); write_h(" %s *%s;\n", t, c); - } else if (public_) - write_h("extern %s *%s;\n", t, c); + } } if (class_name() && callback() && !is_name(callback())) { const char* cn = callback_name(); @@ -1746,5 +1745,5 @@ int Fl_Widget_Type::read_fdesign(const char* name, const char* value) { } // -// End of "$Id: Fl_Widget_Type.cxx,v 1.15.2.6 1999/08/09 13:53:55 mike Exp $". +// End of "$Id: Fl_Widget_Type.cxx,v 1.15.2.7 1999/09/08 06:05:00 bill Exp $". // |
