mirror of
https://github.com/fltk/fltk.git
synced 2026-05-31 22:04:26 +08:00
STR 3460: removed nanny code for Fluid comments
When writing comments, FLuid would check if the comment was C compatible. However, comments don;t need to comply to C syntax. We could check for the "*/", but is that really needed?
This commit is contained in:
@@ -1280,12 +1280,6 @@ void comment_cb(Fl_Text_Editor* i, void *v) {
|
|||||||
} else {
|
} else {
|
||||||
int mod = 0;
|
int mod = 0;
|
||||||
char *c = i->buffer()->text();
|
char *c = i->buffer()->text();
|
||||||
const char *d = c_check(c);
|
|
||||||
if (d) {
|
|
||||||
fl_message("Error in comment: %s",d);
|
|
||||||
if (i->window()) i->window()->make_current();
|
|
||||||
haderror = 1;
|
|
||||||
}
|
|
||||||
for (Fl_Type *o = Fl_Type::first; o; o = o->next) {
|
for (Fl_Type *o = Fl_Type::first; o; o = o->next) {
|
||||||
if (o->selected) {
|
if (o->selected) {
|
||||||
o->comment(c);
|
o->comment(c);
|
||||||
|
|||||||
Reference in New Issue
Block a user