pike.git
/
src
/
builtin.cmod
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/builtin.cmod:1:
/* -*- c -*-
-
* $Id: builtin.cmod,v 1.
31
2003/
01
/
29
15:
55
:
24
mast Exp $
+
* $Id: builtin.cmod,v 1.
32
2003/
04
/
07
15:
32
:
49
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:492:
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; } PIKEFUN object `+=( string what ) { f_Buffer_add( 1 ); REF_RETURN fp->current_object; }