diff options
| author | Bill Spitzak <spitzak@gmail.com> | 1999-12-17 18:35:00 +0000 |
|---|---|---|
| committer | Bill Spitzak <spitzak@gmail.com> | 1999-12-17 18:35:00 +0000 |
| commit | b101ac281d35a0ded31e14924c0f110eee25d6bb (patch) | |
| tree | 43d89aea3714875ec44e66265db50da45ec4414f /fluid/Fl_Function_Type.cxx | |
| parent | e7f42fa15f646de02a6c3770111dc5ecaf21266d (diff) | |
Patch from Clemens Hintze to allow declaratons of "typedef" to work.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@954 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid/Fl_Function_Type.cxx')
| -rw-r--r-- | fluid/Fl_Function_Type.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fluid/Fl_Function_Type.cxx b/fluid/Fl_Function_Type.cxx index 4546d5137..9bbee4d59 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.9 1999/08/17 05:33:12 bill Exp $" +// "$Id: Fl_Function_Type.cxx,v 1.15.2.10 1999/12/17 18:34:55 bill Exp $" // // C function type code for the Fast Light Tool Kit (FLTK). // @@ -449,10 +449,11 @@ Fl_Decl_Type Fl_Decl_type; void Fl_Decl_Type::write_code1() { const char* c = name(); if (!c) return; - // handle putting #include or extern into decl: + // handle putting #include or extern or typedef into decl: if (!isalpha(*c) && *c != '~' || !strncmp(c,"extern",6) && isspace(c[6]) || !strncmp(c,"class",5) && isspace(c[5]) + || !strncmp(c,"typedef",7) && isspace(c[7]) // || !strncmp(c,"struct",6) && isspace(c[6]) ) { if (public_) @@ -660,5 +661,5 @@ void Fl_Class_Type::write_code2() { } // -// End of "$Id: Fl_Function_Type.cxx,v 1.15.2.9 1999/08/17 05:33:12 bill Exp $". +// End of "$Id: Fl_Function_Type.cxx,v 1.15.2.10 1999/12/17 18:34:55 bill Exp $". // |
