diff options
| author | Bill Spitzak <spitzak@gmail.com> | 1999-07-22 07:27:12 +0000 |
|---|---|---|
| committer | Bill Spitzak <spitzak@gmail.com> | 1999-07-22 07:27:12 +0000 |
| commit | 0bb590c832fb50a6bcf40aecbae2cad918ebee94 (patch) | |
| tree | bd7153ec8d97c9f0fd51207da8e5aed9623e52ba /fluid | |
| parent | ae621ef7787392b1214a4a662a9f70e7c3a74794 (diff) | |
Pragma added around xlib.h to shut up the IRIX compiler warnings
Fluid writes "class foo;" to the header and c file without prepending
"extern" or "static". This patch also does this to "class foo bar;"
which is wrong...
Tabs draw very short labels.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@629 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid')
| -rw-r--r-- | fluid/Fl_Function_Type.cxx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/fluid/Fl_Function_Type.cxx b/fluid/Fl_Function_Type.cxx index 0cb506d2d..4c21831bc 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.5 1999/07/09 15:04:47 mike Exp $" +// "$Id: Fl_Function_Type.cxx,v 1.15.2.6 1999/07/22 07:27:09 bill Exp $" // // C function type code for the Fast Light Tool Kit (FLTK). // @@ -450,7 +450,11 @@ void Fl_Decl_Type::write_code1() { const char* c = name(); if (!c) return; // handle putting #include or extern into decl: - if ((!isalpha(*c) || !strncmp(c,"extern",6)) && *c != '~') { + if (!isalpha(*c) && *c != '~' + || !strncmp(c,"extern",6) && isspace(c[6]) + || !strncmp(c,"class",5) && isspace(c[5]) +// || !strncmp(c,"struct",6) && isspace(c[6]) + ) { if (public_) write_h("%s\n", c); else @@ -660,5 +664,5 @@ void Fl_Class_Type::write_code2() { } // -// End of "$Id: Fl_Function_Type.cxx,v 1.15.2.5 1999/07/09 15:04:47 mike Exp $". +// End of "$Id: Fl_Function_Type.cxx,v 1.15.2.6 1999/07/22 07:27:09 bill Exp $". // |
