Branch: Tag:

2002-04-08

2002-04-08 00:41:16 by Martin Nilsson <mani@lysator.liu.se>

Removed += from String.Buffer since using it can result in big slowdown if the buffer object has more than one reference. [bug 2858 (#2858)]

Rev: src/builtin.cmod:1.82

1:   /* -*- c -*- -  * $Id: builtin.cmod,v 1.81 2002/04/07 11:15:39 nilsson Exp $ +  * $Id: builtin.cmod,v 1.82 2002/04/08 00:41:16 nilsson Exp $    */      #include "global.h"
1437:    RETURN res;    }    -  PIKEFUN object `+=( string what ) -  { -  f_Buffer_add( 1 ); -  REF_RETURN fp->current_object; -  } -  +     /*! @decl int add(string ... data)    *!    *! Adds @[data] to the buffer. Returns the size of the buffer.