Branch: Tag:

2019-02-02

2019-02-02 17:12:32 by Tobias S. Josefowitz <tobij@tobij.de>

Stdio.Buffer: Use Pike stack for storing on_write cb for call

Gives normal error propagation while freeing us from having to handle
errors ourselves.

458:    }       if ( io->output.u.object ) { -  struct svalue output_fun = io->output; -  +  move_svalue(Pike_sp++, &io->output);    SET_SVAL(io->output, PIKE_T_INT, NUMBER_NUMBER, integer, 0); -  -  safe_apply_svalue(&output_fun, 0, 1); -  free_svalue(&output_fun); +  apply_svalue(Pike_sp-1, 0); +  pop_n_elems(2);    }    }