Branch: Tag:

2016-04-26

2016-04-26 15:25:49 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler: Survive deprecated efuns returning void.

The compiler didn't handle attributed returned void values correctly,
and assumed that they would return a value.

266:    case F_APPLY:    if(CAR(n)->token == F_CONSTANT &&    TYPEOF(CAR(n)->u.sval) == T_FUNCTION && -  SUBTYPEOF(CAR(n)->u.sval) == FUNCTION_BUILTIN && -  n->type == void_type_string) -  return 0; +  SUBTYPEOF(CAR(n)->u.sval) == FUNCTION_BUILTIN) { +  return !pike_types_le(n->type, void_type_string); +  }    return 1;       case F_RANGE_FROM_BEG: