pike.git / src / builtin_functions.c

version» Context lines:

pike.git/src/builtin_functions.c:7425:    unsigned int res = 0;    int i;    ptrdiff_t node_ref;    INT32 e;    struct svalue *x;    struct keypair *k;       switch( TYPEOF(*s) )    {    case PIKE_T_STRING: -  if( s->u.string->flags & STRING_IS_SHORT ) +  if(string_is_block_allocated(s))    return (2*sizeof(struct pike_string)) / s->u.string->refs;    return (((s->u.string->len+1) << s->u.string->size_shift) +    sizeof(struct pike_string)) / s->u.string->refs;    case PIKE_T_INT:    case PIKE_T_OBJECT:    case PIKE_T_FLOAT:    case PIKE_T_FUNCTION:    case PIKE_T_TYPE:    return 0;    }