mirror of
https://github.com/fltk/fltk.git
synced 2026-05-27 10:57:58 +08:00
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:
@@ -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).
|
// Widget type code for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -1295,8 +1295,7 @@ void Fl_Widget_Type::write_code1() {
|
|||||||
if (class_name()) {
|
if (class_name()) {
|
||||||
write_public(public_);
|
write_public(public_);
|
||||||
write_h(" %s *%s;\n", t, c);
|
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())) {
|
if (class_name() && callback() && !is_name(callback())) {
|
||||||
const char* cn = callback_name();
|
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 $".
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user