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

version» Context lines:

pike.git/src/modules/_Stdio/buffer.cmod:347:    static void io_do_rewind_on_error( struct rewind_to *e )    {    e->io->locked_move--;    e->io->offset = e->rewind_to;    free( e );    }       static void io_rewind_on_error( IOBuffer *io, ONERROR *x )    {    struct rewind_to *rew = xalloc( sizeof( struct rewind_to ) ); +  io->locked_move++;   #if defined(PIKE_DEBUG)    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 )    {   #if defined(PIKE_DEBUG)    struct rewind_to *rew = x->arg;    if( io->locked_move != rew->old_locked_move )