Branch: Tag:

2016-12-31

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

dynamic_buffer: use new buffer internally

The API of dynamic_buffer is now a slim swapper around the new buffer
API. This changes many places where the dynamic_buffer internals were
directly used.

824:    case T_INT:    if(SUBTYPEOF(Pike_sp[-1]) == NUMBER_UNDEFINED)    { -  int to_change = data->buf.s.len; +  int to_change = buffer_content_length(&data->buf);    struct svalue tmp = entry_id;       EDB(5,fprintf(stderr, "%*s(UNDEFINED)\n", data->depth, ""));
869:    * become: code_entry(TAG_OBJECT, 1, data);    * -Hubbe    */ -  data->buf.s.str[to_change] = 99; +  ((char*)buffer_ptr(&data->buf))[to_change] = 99;       fun = find_identifier("encode_object",    encoder_codec (data)->prog);