From 49b8502b834313ba87133ce803b820c2c4fbbbe2 Mon Sep 17 00:00:00 2001 From: Bill Spitzak Date: Wed, 5 Jan 2000 03:17:28 +0000 Subject: Added Fl.H required by an inline function if Fl_Repeat_Button.H Fl_add_idle adds new functions to the end of the queue ring, rather than the start, so they are executed in the order added, and a callback that adds itself does not prevent others from being called. Fluid lets you type in code that starts with '#' for cpp directives. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@969 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_Repeat_Button.H | 5 +++-- fluid/Fl_Function_Type.cxx | 11 +++++++---- src/Fl_add_idle.cxx | 5 ++--- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/FL/Fl_Repeat_Button.H b/FL/Fl_Repeat_Button.H index 73a153e71..6dacb7e6d 100644 --- a/FL/Fl_Repeat_Button.H +++ b/FL/Fl_Repeat_Button.H @@ -1,5 +1,5 @@ // -// "$Id: Fl_Repeat_Button.H,v 1.5.2.1 1999/07/10 23:16:13 mike Exp $" +// "$Id: Fl_Repeat_Button.H,v 1.5.2.2 2000/01/05 03:17:24 bill Exp $" // // Repeat button header file for the Fast Light Tool Kit (FLTK). // @@ -25,6 +25,7 @@ #ifndef Fl_Repeat_Button_H #define Fl_Repeat_Button_H +#include "Fl.H" #include "Fl_Button.H" class Fl_Repeat_Button : public Fl_Button { @@ -42,5 +43,5 @@ public: #endif // -// End of "$Id: Fl_Repeat_Button.H,v 1.5.2.1 1999/07/10 23:16:13 mike Exp $". +// End of "$Id: Fl_Repeat_Button.H,v 1.5.2.2 2000/01/05 03:17:24 bill Exp $". // diff --git a/fluid/Fl_Function_Type.cxx b/fluid/Fl_Function_Type.cxx index 9bbee4d59..a3225a076 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.10 1999/12/17 18:34:55 bill Exp $" +// "$Id: Fl_Function_Type.cxx,v 1.15.2.11 2000/01/05 03:17:26 bill Exp $" // // C function type code for the Fast Light Tool Kit (FLTK). // @@ -66,10 +66,14 @@ const char *_c_check(const char * & c, int type) { while ((*c != '*' || c[1] != '/') && *c) c++; if (*c == '*') c+=2; else { - return "unterminated /* ... */ comment"; + return "missing '*/'"; } } break; + case '#': + // treat cpp directives as a comment: + while (*c != '\n' && *c) c++; + break; case '{': if (type==')') goto UNEXPECTED; d = _c_check(c,'}'); @@ -89,7 +93,6 @@ const char *_c_check(const char * & c, int type) { break; case '}': case ')': - case '#': UNEXPECTED: if (type == *(c-1)) return 0; sprintf(buffer, "unexpected %c", *(c-1)); @@ -661,5 +664,5 @@ void Fl_Class_Type::write_code2() { } // -// End of "$Id: Fl_Function_Type.cxx,v 1.15.2.10 1999/12/17 18:34:55 bill Exp $". +// End of "$Id: Fl_Function_Type.cxx,v 1.15.2.11 2000/01/05 03:17:26 bill Exp $". // diff --git a/src/Fl_add_idle.cxx b/src/Fl_add_idle.cxx index 9527ce8a0..14c25b979 100644 --- a/src/Fl_add_idle.cxx +++ b/src/Fl_add_idle.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_add_idle.cxx,v 1.4 1999/01/07 19:17:30 mike Exp $" +// "$Id: Fl_add_idle.cxx,v 1.4.2.1 2000/01/05 03:17:28 bill Exp $" // // Idle routine support for the Fast Light Tool Kit (FLTK). // @@ -56,7 +56,6 @@ void Fl::add_idle(void (*cb)(void*), void* data) { if (first) { last->next = p; p->next = first; - first = p; } else { first = last = p; p->next = p; @@ -85,5 +84,5 @@ void Fl::remove_idle(void (*cb)(void*), void* data) { } // -// End of "$Id: Fl_add_idle.cxx,v 1.4 1999/01/07 19:17:30 mike Exp $". +// End of "$Id: Fl_add_idle.cxx,v 1.4.2.1 2000/01/05 03:17:28 bill Exp $". // -- cgit v1.2.3