pike.git / src / stralloc.c

version» Context lines:

pike.git/src/stralloc.c:18:      #include <errno.h>   #include <float.h>   #include <ctype.h>   #include <math.h>      #ifndef HUGE   #define HUGE HUGE_VAL   #endif /*!HUGE*/    - RCSID("$Id: stralloc.c,v 1.73 1999/10/30 16:55:37 noring Exp $"); + RCSID("$Id: stralloc.c,v 1.74 1999/10/31 21:58:02 grubba Exp $");      #define BEGIN_HASH_SIZE 997   #define MAX_AVG_LINK_LENGTH 3      /* Experimental dynamic hash length */   #ifndef HASH_PREFIX   static unsigned int HASH_PREFIX=64;   static unsigned int need_more_hash_prefix=0;   #endif   
pike.git/src/stralloc.c:595:    default:    fatal("Unknown string width!\n");    }   }      struct pike_string * debug_make_shared_pcharp(const PCHARP str)   {    return debug_make_shared_binary_pcharp(str, pcharp_strlen(str));   }    + struct pike_string * debug_make_shared_binary_string0(const p_wchar0 *str,int len) + { +  return debug_make_shared_binary_string((char *)str, len); + } +    struct pike_string * debug_make_shared_binary_string1(const p_wchar1 *str,int len)   {    struct pike_string *s;    int h;       if(!find_magnitude1(str,len))    {    /* Wrong size, convert */    s=begin_shared_string(len);    convert_1_to_0(STR0(s),str,len);
pike.git/src/stralloc.c:663:    add_ref(s);       return s;   }      struct pike_string *debug_make_shared_string(const char *str)   {    return make_shared_binary_string(str, strlen(str));   }    + struct pike_string *debug_make_shared_string0(const p_wchar0 *str) + { +  return debug_make_shared_string((char *)str); + } +    struct pike_string *debug_make_shared_string1(const p_wchar1 *str)   {    INT32 len;    for(len=0;str[len];len++);    return debug_make_shared_binary_string1(str,len);   }      struct pike_string *debug_make_shared_string2(const p_wchar2 *str)   {    INT32 len;