Fixes STR# 3420; fluid crash on certain static functions.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12531 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Greg Ercolano 2017-10-28 21:23:35 +00:00
parent 2a3e869210
commit 9c2b0d743f
1 changed files with 2 additions and 0 deletions

View File

@ -275,6 +275,8 @@ void Fl_Function_Type::write_code1() {
if (rtype) {
if (!strcmp(rtype,"static")) {is_static = 1; rtype = 0;}
else if (!strncmp(rtype, "static ",7)) {is_static = 1; rtype += 7;}
}
if (rtype) {
if (!strcmp(rtype, "virtual")) {is_virtual = 1; rtype = 0;}
else if (!strncmp(rtype, "virtual ",8)) {is_virtual = 1; rtype += 8;}
}