pike.git / src / builtin.cmod

version» Context lines:

pike.git/src/builtin.cmod:3278:    j = str->initial-s->len;    string_build_mkspace(&str->str, j, shift);    }    else if (shift != str->str.known_shift)    string_build_mkspace(&str->str, 0, shift);    s = str->str.s;    /* We know it will be a string that really is this wide. */    str->str.known_shift = shift;       if (s->len < pos) // Clear the padding -  MEMSET(s->str + (s->len << s->size_shift), +  memset(s->str + (s->len << s->size_shift),    0, (pos - s->len) << s->size_shift);       for(j = 1; j<args; j++) {    struct pike_string *a;    if (TYPEOF(Pike_sp[j-args]) == PIKE_T_STRING)    a = Pike_sp[j-args].u.string;    else if(!(a = OBJ2_BUFFER(Pike_sp[j-args].u.object)->str.s))    continue;    pike_string_cpy(MKPCHARP_STR_OFF(s, pos), a);    pos += a->len;
pike.git/src/builtin.cmod:3480:    */    PIKEFUN int _sizeof()    {    struct Buffer_struct *str = THIS;    RETURN str->str.s->len;    }       INIT    {    struct Buffer_struct *str = THIS; -  MEMSET( str, 0, sizeof( *str ) ); +  memset( str, 0, sizeof( *str ) );    }       EXIT    gc_trivial;    {    struct Buffer_struct *str = THIS;    if( Pike_fp->flags & OBJECT_CLEAR_ON_EXIT )    guaranteed_memset( str->str.s->str, 0, str->str.s->len );    free_string_builder( &str->str );    }
pike.git/src/builtin.cmod:3667:    push_svalue(encoded->item + i);    stack_swap();    }    pop_stack();       f_multi_string_replace_create(i);    }       INIT    { -  MEMSET(&THIS->ctx, 0, sizeof(struct replace_many_context)); +  memset(&THIS->ctx, 0, sizeof(struct replace_many_context));    }       EXIT    gc_trivial;    {    free_replace_many_context(&THIS->ctx);    }   }      /*! @endclass