From b101ac281d35a0ded31e14924c0f110eee25d6bb Mon Sep 17 00:00:00 2001 From: Bill Spitzak Date: Fri, 17 Dec 1999 18:35:00 +0000 Subject: 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 --- fluid/Fl_Function_Type.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'fluid/Fl_Function_Type.cxx') 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 $". // -- cgit v1.2.3