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

version» Context lines:

pike.git/src/modules/_Stdio/buffer.cmod:2592:       PIKEFUN void create()    flags ID_PRIVATE;    {    /* FIXME: The following zeroing isn't safe! */    THIS->obj = 0;    THIS->io = 0;    Pike_error("Not supported\n");    }    } - } +     -  +  /*! @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;    s->rewind_to = io->offset;    s->io = io;    s->auto_mode = auto_mode;    io->locked_move++;    return o;    }    - /*! @endclass -  * RewindKey + } + /*! @endclass Buffer    */    - /*! @endclass -  * Buffer -  */ +     -  - /*! @endmodule -  * Stdio + /*! @endmodule Stdio    */         void init_stdio_buffer(void)   {    INIT    start_new_program();    low_inherit(generic_error_program,0,0,0,0,0);    add_integer_constant( "buffer_error", 1, 0 );    buffer_error_program = end_program();   }         void exit_stdio_buffer(void)   {    free_program( buffer_error_program );    EXIT   }