version 1.1, 2013/10/14 10:32:48
|
version 1.1.1.2, 2016/11/02 10:35:00
|
Line 1
|
Line 1
|
|
#include "first.h" |
|
|
#include "array.h" |
#include "array.h" |
|
|
#include <string.h> |
#include <string.h> |
Line 8 static data_unset *data_array_copy(const data_unset *s
|
Line 10 static data_unset *data_array_copy(const data_unset *s
|
data_array *src = (data_array *)s; |
data_array *src = (data_array *)s; |
data_array *ds = data_array_init(); |
data_array *ds = data_array_init(); |
|
|
buffer_copy_string_buffer(ds->key, src->key); | buffer_copy_buffer(ds->key, src->key); |
array_free(ds->value); |
array_free(ds->value); |
ds->value = array_init_array(src->value); |
ds->value = array_init_array(src->value); |
ds->is_index_key = src->is_index_key; |
ds->is_index_key = src->is_index_key; |
Line 50 data_array *data_array_init(void) {
|
Line 52 data_array *data_array_init(void) {
|
data_array *ds; |
data_array *ds; |
|
|
ds = calloc(1, sizeof(*ds)); |
ds = calloc(1, sizeof(*ds)); |
|
force_assert(NULL != ds); |
|
|
ds->key = buffer_init(); |
ds->key = buffer_init(); |
ds->value = array_init(); |
ds->value = array_init(); |