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

version» Context lines:

pike.git/src/modules/_Stdio/buffer.cmod:466:    static void io_actually_trigger_output( Buffer *io )    {    struct program *prog;    struct reference *ref;    struct inherit *inh;       if (UNLIKELY(!(prog = io->output.u.object->prog))) {    /* Destructed object. */    free_svalue(&io->output);    SET_SVAL(io->output, PIKE_T_INT, NUMBER_NUMBER, integer, 0); -  return 0; +  return;    }    ref = PTR_FROM_INT(prog, SUBTYPEOF(io->output));    inh = INHERIT_FROM_PTR(prog, ref);    if ((inh->prog == file_program) &&    (ref->identifier_offset == fd_write_identifier_offset)) {    /* Stdio.Fd::write */    struct my_file *fd =    get_inherit_storage( io->output.u.object, ref->inherit_offset );    io_set_events( io, fd, PIKE_BIT_FD_WRITE_OOB, PIKE_FD_WRITE );    io->output_triggered = 1;