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
This commit is contained in:
Bill Spitzak 1999-09-08 06:05:00 +00:00
parent 7f60ccd9ad
commit 820654ccd6

View File

@ -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 $".
//