pike.git / src / builtin.cmod

version» Context lines:

pike.git/src/builtin.cmod:1:   /* -*- c -*-   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: builtin.cmod,v 1.105 2003/04/07 15:32:58 mast Exp $ + || $Id: builtin.cmod,v 1.106 2003/04/07 16:19:15 mast Exp $   */      #include "global.h"   #include "interpret.h"   #include "svalue.h"   #include "opcodes.h"   #include "pike_macros.h"   #include "object.h"   #include "program.h"   #include "array.h"
pike.git/src/builtin.cmod:1535:    init_string_builder_alloc( &str2->str,    str->str.malloced,    str->str.s->size_shift );    MEMCPY( (void *)str2->str.s, (void *)str->str.s,    (str->str.malloced << str->str.s->size_shift) + sizeof(struct pike_string));    }    apply( res, "add", 1 );    RETURN res;    }    +  PIKEFUN object `+=( string what ) +  { +  f_Buffer_add( 1 ); +  REF_RETURN Pike_fp->current_object; +  } +     /*! @decl int add(string ... data)    *!    *! Adds @[data] to the buffer. Returns the size of the buffer.    *!    */    PIKEFUN int add( string ... arg1 )    {    struct Buffer_struct *str = THIS;    int j;