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

version» Context lines:

pike.git/src/modules/_Stdio/buffer.cmod:2306:    PIKEFUN void destroy( int reason )    flags ID_PRIVATE;    {    if( reason > 1 ) /* no refs or gc */    {    if( THIS->io && THIS->obj->prog )    THIS->io->offset = THIS->rewind_to;    }    }    +  /*! @decl void rewind() +  *! Rewinds the buffer explicitly. +  *! @note +  *! Destructs this @[UnwindKey] +  */ +  PIKEFUN void rewind() { +  destruct_object(Pike_fp->current_object, DESTRUCT_GC); +  } +     PIKEFUN void create()    flags ID_PRIVATE;    {    THIS->obj = 0;    THIS->io = 0;    Pike_error("Not supported\n");    }    }   }