pike.git / src / stralloc.c

version» Context lines:

pike.git/src/stralloc.c:982:    return make_shared_binary_string((char *)(str.ptr), len);    case 1:    return make_shared_binary_string1((p_wchar1 *)(str.ptr), len);    case 2:    return make_shared_binary_string2((p_wchar2 *)(str.ptr), len);   #ifdef PIKE_DEBUG    default:    Pike_fatal("Unknown string width!\n");   #endif    } -  /* NOT REACHED */ -  return NULL; /* Keep the compiler happy */ +  UNREACHABLE(return NULL);   }      PMOD_EXPORT struct pike_string * debug_make_shared_pcharp(const PCHARP str)   {    return debug_make_shared_binary_pcharp(str, pcharp_strlen(str));   }      PMOD_EXPORT struct pike_string * debug_make_shared_binary_string0(const p_wchar0 *str,size_t len)   {    return debug_make_shared_binary_string((const char *)str, len);
pike.git/src/stralloc.c:3213:   {    switch(ptr.shift)    {    case 0: return MKPCHARP(memchr(ptr.ptr,chr,len),0);    case 1: return MKPCHARP(MEMCHR1((p_wchar1 *)ptr.ptr,chr,len),1);    case 2: return MKPCHARP(MEMCHR2((p_wchar2 *)ptr.ptr,chr,len),2);    }   #ifdef PIKE_DEBUG    Pike_fatal("Illegal shift in MEMCHR_PCHARP.\n");   #endif -  return MKPCHARP(0,0); /* make wcc happy */ +  UNREACHABLE(MKPCHARP(0,0));   }      #define DIGIT(x) (WIDE_ISDIGIT(x) ? (x) - '0' : \    WIDE_ISLOWER(x) ? (x) + 10 - 'a' : (x) + 10 - 'A')   #define MBASE ('z' - 'a' + 1 + 10)      PMOD_EXPORT long STRTOL_PCHARP(PCHARP str, PCHARP *ptr, int base)   {    /* Note: Code duplication in strtol and pcharp_to_svalue_inumber. */