version 1.1, 2013/10/14 10:32:47
|
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 "fastcgi.h" |
#include "fastcgi.h" |
|
|
Line 9 static data_unset *data_fastcgi_copy(const data_unset
|
Line 11 static data_unset *data_fastcgi_copy(const data_unset
|
data_fastcgi *src = (data_fastcgi *)s; |
data_fastcgi *src = (data_fastcgi *)s; |
data_fastcgi *ds = data_fastcgi_init(); |
data_fastcgi *ds = data_fastcgi_init(); |
|
|
buffer_copy_string_buffer(ds->key, src->key); | buffer_copy_buffer(ds->key, src->key); |
buffer_copy_string_buffer(ds->host, src->host); | buffer_copy_buffer(ds->host, src->host); |
ds->is_index_key = src->is_index_key; |
ds->is_index_key = src->is_index_key; |
return (data_unset *)ds; |
return (data_unset *)ds; |
} |
} |
Line 52 data_fastcgi *data_fastcgi_init(void) {
|
Line 54 data_fastcgi *data_fastcgi_init(void) {
|
data_fastcgi *ds; |
data_fastcgi *ds; |
|
|
ds = calloc(1, sizeof(*ds)); |
ds = calloc(1, sizeof(*ds)); |
|
force_assert(NULL != ds); |
|
|
ds->key = buffer_init(); |
ds->key = buffer_init(); |
ds->host = buffer_init(); |
ds->host = buffer_init(); |