From 5bd16a99921291ce46fac6db14972ca7bca5c155 Mon Sep 17 00:00:00 2001 From: teodor Date: Tue, 30 Mar 2010 13:56:46 +0000 Subject: [PATCH] reduce size of context, fix double support in template --- template.c | 2 +- template.h | 2 +- tmalloc.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/template.c b/template.c index 9e22f18..fbc971e 100644 --- a/template.c +++ b/template.c @@ -1051,7 +1051,7 @@ int setTemplateValueDouble( TemplateInstance tmpl, char * key, double val ) { storage.flags = TND_DEFINED; storage.type = valueDouble; - storage.value.boolValue = val; + storage.value.doubleValue = val; return setTemplateValue( tmpl, key ); } diff --git a/template.h b/template.h index 9806415..97e9070 100644 --- a/template.h +++ b/template.h @@ -33,7 +33,7 @@ ****************************************************************************** * SYNTAX * ****************************************************************************** - * <% EXPRESSION , "FORMAT"] [# "DEFAULTVALUE"] [|(h|u)]%> + * <% EXPRESSION [, "FORMAT"] [# "DEFAULTVALUE"] [|(h|u)]%> * - format value should be as in strftime for time value and printf * for all other. Currently, bool values have only "true"/"false" * string values diff --git a/tmalloc.h b/tmalloc.h index 2d1fd69..f1abcee 100644 --- a/tmalloc.h +++ b/tmalloc.h @@ -46,7 +46,7 @@ int clrspace(char *buf); /* fast allocate */ -#define CNTXCHUNK (1024*1024) +#define CNTXCHUNK (64*1024) typedef struct MemoryChunk { size_t size; -- 2.37.3