Branch: Tag:

2014-09-03

2014-09-03 21:11:21 by Martin Nilsson <nilsson@opera.com>

strchr is C89 and 4.3BSD

2419: Inside #if defined(PIKE_DEBUG) and #if defined(DEBUG_MALLOC)
   {    char *tmp=dmalloc_find_name(p);    if (tmp) { -  char *p = STRCHR (tmp, ':'); +  char *p = strchr (tmp, ':');    if (p) {    char *pp; -  while ((pp = STRCHR (p + 1, ':'))) p = pp; +  while ((pp = strchr (p + 1, ':'))) p = pp;    *line = atoi (p + 1);    return make_shared_binary_string (tmp, p - tmp);    }