Branch: Tag:

2001-06-21

2001-06-21 00:23:58 by Per Hedbor <ph@opera.com>

added init_string_builder_alloc (backported from 7.3)

Rev: src/stralloc.c:1.116
Rev: src/stralloc.h:1.59

26:   #define HUGE HUGE_VAL   #endif /*!HUGE*/    - RCSID("$Id: stralloc.c,v 1.115 2001/02/04 02:33:09 hubbe Exp $"); + RCSID("$Id: stralloc.c,v 1.116 2001/06/21 00:23:57 per Exp $");      #define BEGIN_HASH_SIZE 997   #define MAX_AVG_LINK_LENGTH 3
1770:    s->known_shift=0;   }    + PMOD_EXPORT void init_string_builder_alloc(struct string_builder *s, ptrdiff_t length, int mag) + { +  s->malloced=length; +  s->s=begin_wide_shared_string(length,mag); +  s->s->len=0; +  s->known_shift=0; + } +    static void string_build_mkspace(struct string_builder *s,    ptrdiff_t chars, int mag)   {