pike.git / src / modules / _Stdio / buffer.cmod

version» Context lines:

pike.git/src/modules/_Stdio/buffer.cmod:1025:    if( TYPEOF(*f) == PIKE_T_OBJECT ) {    struct program *p = f->u.object->prog;    if (LIKELY(p)) {    struct inherit *inh = p->inherits + SUBTYPEOF(*f);    p = inh->prog;    if ((write_fun_num = find_identifier("write", p)) == -1) {    Pike_error("Function \"write\" not available in object.\n");    }    SET_SVAL_TYPE_SUBTYPE(*f, PIKE_T_FUNCTION, write_fun_num);    } else { -  SIMPLE_BAD_ARG_ERROR("output_to", 1, "object|function"); +  SIMPLE_ARG_TYPE_ERROR("output_to", 1, "object|function");    }    } else if (UNLIKELY(TYPEOF(*f) != PIKE_T_FUNCTION)) { -  SIMPLE_BAD_ARG_ERROR("output_to", 1, "object|function"); +  SIMPLE_ARG_TYPE_ERROR("output_to", 1, "object|function");    } else {    write_fun_num = SUBTYPEOF(*f);    }       if (write_fun_num != FUNCTION_BUILTIN) {    struct program *prog = f->u.object->prog;    struct reference *ref = PTR_FROM_INT(prog, write_fun_num);    struct inherit *inh = INHERIT_FROM_PTR(prog, ref);       if( (inh->prog == file_program) &&