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

version» Context lines:

pike.git/src/modules/_Stdio/buffer.cmod:245:    }    else    push_text("Illegal arguments\n");       ref_push_object( io->this );    push_object(clone_object(io->error_mode, 2));    f_throw(1);    }    }    -  static struct pike_string *range_error_s; +     static int io_range_error( IOBuffer *io, int howmuch )    {    int res;    struct svalue *osp = Pike_sp;    -  if(!range_error_s) -  range_error_s = make_shared_string( "range_error" ); -  +     push_int( howmuch ); -  apply_low(io->this, -  really_low_find_shared_string_identifier -  (range_error_s, io->this->prog, SEE_PROTECTED), -  1); +  apply_current( f_IOBuffer_range_error_fun_num, 1 );    res = Pike_sp[-1].u.integer;    pop_n_elems( Pike_sp-osp );    if( !res ) io_range_error_throw( io, howmuch );       return res;    }       static int io_avail( IOBuffer *io, int len )    {    if( len < 0 || len + io->offset > io->len )
pike.git/src/modules/_Stdio/buffer.cmod:1572:    add_integer_constant( "buffer_error", 1, 0 );    buffer_error_program = end_program();   }         void exit_stdio_buffer(void)   {    if( shm_program ) free_program( shm_program );    if( sbuf_program ) free_program( sbuf_program );    free_program( buffer_error_program ); -  if( range_error_s ) free_string(range_error_s); +     EXIT   }   /*! @endmodule    */