Branch: Tag:

2020-08-02

2020-08-02 12:23:17 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Revert "Stdio.Buffer: Use PIKE_TYPEOF() macro."

This reverts commit 2317b255de66f471eb1555165af276f51430015d.

This commit was part of a set of speculative fixes that
introduced other issues (SIGSEGV in testsuite).

455:       PMOD_EXPORT void io_actually_trigger_output( Buffer *io )    { -  if (PIKE_TYPEOF(io->output) == PIKE_T_FUNCTION) { +  if (io->output.tu.named_type == PIKE_T_FUNCTION) {    if (UNLIKELY(!io->output.u.object->prog)) {    /* Destructed object. */    free_svalue(&io->output);
994:    if (f)    assign_svalue(&io->output, f);    else { -  if (PIKE_TYPEOF(io->output) == PIKE_T_FUNCTION) +  if (io->output.tu.named_type == PIKE_T_FUNCTION)    free_svalue(&io->output);    }    }