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

version» Context lines:

pike.git/src/modules/_Stdio/buffer.cmod:355:    rew->old_locked_move = io->locked_move;   #endif    io->locked_move++;    rew->io = io;    rew->rewind_to = io->offset;    SET_ONERROR( (*x), io_do_rewind_on_error, rew );    }       static void io_unset_rewind_on_error( IOBuffer *io, ONERROR *x )    { +  struct rewind_to *rew = x->arg; +     UNSET_ONERROR( (*x) );    io->locked_move--;   #if defined(PIKE_DEBUG) -  if( io->locked_move != ((struct rewind*)x)->old_locked_mode ) +  if( io->locked_move != rew->old_locked_move )    Pike_fatal( "Invalid io_rewind_on_error nesting\n");   #endif -  free( x->arg ); +  +  free( rew );    }             static void io_do_unwrite_on_error( struct rewind_to *e )    {    e->io->len = e->rewind_to;    free( e );    }