Branch: Tag:

2016-12-31

2016-12-31 17:12:22 by Arne Goedeke <el@laramies.com>

describe_svalue: do not use global buffer

This commit removes the dynamic buffer from describe_svalue and related
funtions.

2315: Inside #if defined(PIKE_DEBUG)
      case F_CONSTANT:    { -  dynamic_buffer save_buf; -  char *s; -  init_buf(&save_buf); -  describe_svalue(& foo->u.sval, 0, 0); -  s=simple_free_buf(&save_buf); -  fprintf(stderr, "const(%s)",s); -  free(s); +  struct byte_buffer buf = BUFFER_INIT(); +  describe_svalue(&buf, & foo->u.sval, 0, 0); +  fprintf(stderr, "const(%s)",buffer_get_string(&buf)); +  buffer_free(&buf);    break;    }