summaryrefslogtreecommitdiff
path: root/src/data_integer.c
diff options
context:
space:
mode:
authorjan <jan@152afb58-edef-0310-8abb-c4023f1b3aa9>2005-08-08 14:40:47 +0000
committerjan <jan@152afb58-edef-0310-8abb-c4023f1b3aa9>2005-08-08 14:40:47 +0000
commit95da4b1ff7e00434c932059ff44dd32aa952ee06 (patch)
tree09f561df82237dc0b2a159557b1f4428ded2156f /src/data_integer.c
parent1945045341184aa643cbe2644e6383ffe313bbc5 (diff)
downloadlighttpd-95da4b1ff7e00434c932059ff44dd32aa952ee06.tar.gz
user defined variable, compute on parsing: string+string, int+int, array+array, var+=expression.
"include" sub configuration file. (merged ([308], [309], [306], [305]) git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@520 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'src/data_integer.c')
-rw-r--r--src/data_integer.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/data_integer.c b/src/data_integer.c
index ea627cc6..b938ff70 100644
--- a/src/data_integer.c
+++ b/src/data_integer.c
@@ -4,6 +4,15 @@
#include "array.h"
+static data_unset *data_integer_copy(data_unset *s) {
+ data_integer *src = (data_integer *)s;
+ data_integer *ds = data_integer_init();
+
+ ds->key = buffer_init_buffer(src->key);
+ ds->value = src->value;
+ return (data_unset *)ds;
+}
+
static void data_integer_free(data_unset *d) {
data_integer *ds = (data_integer *)d;
@@ -44,6 +53,7 @@ data_integer *data_integer_init(void) {
ds->key = buffer_init();
ds->value = 0;
+ ds->copy = data_integer_copy;
ds->free = data_integer_free;
ds->reset = data_integer_reset;
ds->insert_dup = data_integer_insert_dup;