This commit fixes one aspect of bug STR #984. However, since Allesandro took his patch back, I would like to first run this one by the developers before I fix the rest on the list.

This patch is different to Alessandro's in that it checks if data was actually changed and the n setting the modflag.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4528 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Matthias Melcher 2005-08-20 20:30:56 +00:00
parent c1ba87140e
commit 61fb41fd7f

View File

@ -181,12 +181,18 @@ void Fl_Function_Type::open() {
if (*c && *d != '(') {
message = "must be name(arguments), try again:"; continue;
}
int mod = 0;
c = f_return_type_input->value();
message = c_check(c); if (message) continue;
if (name() && strcmp(f_name_input->value(), name())) mod = 1;
name(f_name_input->value());
if (return_type && strcmp(return_type, c)) mod = 1;
storestring(c, return_type);
if (public_ != f_public_button->value()) mod = 1;
public_ = f_public_button->value();
if (cdecl_ != f_c_button->value()) mod = 1;
cdecl_ = f_c_button->value();
if (mod) set_modflag(1);
break;
}
BREAK2: