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

version» Context lines:

pike.git/src/modules/_Stdio/buffer.cmod:85:   #ifdef PIKE_DEBUG    PIKEVAR int b.num_malloc;    PIKEVAR int b.num_move;   #endif   #endif       CVAR Buffer b;       EXTRA    { +  /* The __output variable is merely for the benefit of the GC so that +  it can detect cycles */    PIKE_MAP_VARIABLE("__output", OFFSETOF(Buffer_struct, b.output),    tMix, PIKE_T_MIXED, ID_PRIVATE|ID_HIDDEN|ID_PROTECTED);    }          static void io_set_error_mode( Buffer *io, struct program *m )    {    if( m ) add_ref(m);    if( io->error_mode ) free_program( io->error_mode );    io->error_mode = m;
pike.git/src/modules/_Stdio/buffer.cmod:2987:    }    }       /*! @endclass RewindKey    */       static struct object* io_create_rewind_key( Buffer *io, int auto_mode )    {    struct object *o = fast_clone_object( Buffer_RewindKey_program );    struct Buffer_RewindKey_struct *s = (void*)o->storage; -  add_ref(io->this); -  s->obj = io->this; +  add_ref(s->obj = io->this);    s->rewind_to = io->offset;    s->io = io;    s->auto_mode = auto_mode;    io->locked_move++;    return o;    }      }   /*! @endclass Buffer    */