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
This commit is contained in:
parent
c0cdc56926
commit
49b8502b83
@ -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 $".
|
||||
//
|
||||
|
@ -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 $".
|
||||
//
|
||||
|
@ -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 $".
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user