pike.git / src / pike_types.cmod

version» Context lines:

pike.git/src/pike_types.cmod:11764:    fun_type = low_object_lfun_type(fun_type, LFUN_CALL);    if (fun_type) goto loop;    /* FIXME: Multiple cases:    * Untyped object.    * Failed to lookup program id.    * Program does not have the lfun `()().    */       /* FALLTHRU */    case PIKE_T_MIXED: -  case PIKE_T_UNKNOWN: +     copy_pike_type(res, mixed_type_string);    break;       case PIKE_T_FUNCTION:    do {    if (!match_types(fun_type->car, void_type_string)) {    /* Too few arguments. */    break;    }    fun_type = fun_type->cdr;
pike.git/src/pike_types.cmod:11796:    tmp = apply_type_operator(fun_type->type, fun_type->car, fun_type->cdr);    res = new_get_return_type(tmp, flags);    free_type(tmp);    break;       case PIKE_T_TRANSITIVE:    /* NB: Not 100% correct, but good enough for most purposes. */    fun_type = fun_type->car;    goto loop;    +  case PIKE_T_UNKNOWN:    default:    /* Not a callable. */    break;    }       if (!res) {   #ifdef PIKE_DEBUG    if (l_flag>2) {    fprintf(stderr, "Failed.\n");    }