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.104 2003/02/24 21:44:30 mast Exp $ + || $Id: builtin.cmod,v 1.105 2003/04/07 15:32:58 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:1529:    if( str->str.s )    {    str2 = OBJ2_BUFFER( res );       if( str2->str.s ) free_string_builder( &str2->str );    *str2 = *str;    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+sizeof(struct pike_string)); +  (str->str.malloced << str->str.s->size_shift) + sizeof(struct pike_string));    }    apply( res, "add", 1 );    RETURN res;    }       /*! @decl int add(string ... data)    *!    *! Adds @[data] to the buffer. Returns the size of the buffer.    *!    */