pike.git / src / stralloc.c

version» Context lines:

pike.git/src/stralloc.c:310: Inside #if defined(PIKE_DEBUG) and #if defined(DEBUG_MALLOC)
  #ifdef PIKE_DEBUG   #ifdef DEBUG_MALLOC   #define DM(X) X   #else   #define DM(X)   #endif      PMOD_EXPORT p_wchar2 index_shared_string(const struct pike_string *s,    ptrdiff_t pos)   { +  /* NB: Allows access to the NUL-terminator. */    if(pos > s->len || pos<0) {    if (s->len) {    Pike_fatal("String index %"PRINTPTRDIFFT"d is out of "    "range 0..%"PRINTPTRDIFFT"d.\n",    pos, s->len-1);    } else {    Pike_fatal("Attempt to index the empty string with %"PRINTPTRDIFFT"d.\n",    pos);    }    }