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

version» Context lines:

pike.git/src/modules/_Stdio/buffer.cmod:2486:    this->allocated = 256-32;    this->malloced = 1;    }    else if( TYPEOF(*x) == PIKE_T_INT )    {    INT_TYPE len = x->u.integer;    if( len <= 0 )    this->buffer = xalloc(1);    else    this->buffer = xalloc(len); -  this->allocated = MAX(len,1); +  this->allocated = MAXIMUM(len,1);    this->malloced = 1;    }    else    io_append_svalue( THIS, x );    }       INIT {    Buffer *this = THIS;    memset( this, 0, sizeof(Buffer));    this->this = Pike_fp->current_object;