diff options
| author | Bill Spitzak <spitzak@gmail.com> | 2000-01-05 03:17:28 +0000 |
|---|---|---|
| committer | Bill Spitzak <spitzak@gmail.com> | 2000-01-05 03:17:28 +0000 |
| commit | 49b8502b834313ba87133ce803b820c2c4fbbbe2 (patch) | |
| tree | 9e647a9444604034a1fe293407d0d7d623a3410d /fluid | |
| parent | c0cdc569268ac94bc8ae000ab93b5f98515760d3 (diff) | |
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
Diffstat (limited to 'fluid')
| -rw-r--r-- | fluid/Fl_Function_Type.cxx | 11 |
1 files changed, 7 insertions, 4 deletions
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 $". // |
