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 <stdio.h> |
#include <stdio.h> |
Line 8 static data_unset *data_integer_copy(const data_unset
|
Line 10 static data_unset *data_integer_copy(const data_unset
|
data_integer *src = (data_integer *)s; |
data_integer *src = (data_integer *)s; |
data_integer *ds = data_integer_init(); |
data_integer *ds = data_integer_init(); |
|
|
buffer_copy_string_buffer(ds->key, src->key); | buffer_copy_buffer(ds->key, src->key); |
ds->is_index_key = src->is_index_key; |
ds->is_index_key = src->is_index_key; |
ds->value = src->value; |
ds->value = src->value; |
return (data_unset *)ds; |
return (data_unset *)ds; |
Line 50 data_integer *data_integer_init(void) {
|
Line 52 data_integer *data_integer_init(void) {
|
data_integer *ds; |
data_integer *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 = 0; |
ds->value = 0; |