From: teodor Date: Tue, 30 Mar 2010 13:56:46 +0000 (+0000) Subject: reduce size of context, fix double support in template X-Git-Url: http://sigaev.ru/git/gitweb.cgi?a=commitdiff_plain;h=5bd16a99921291ce46fac6db14972ca7bca5c155;p=tedtools.git reduce size of context, fix double support in template --- 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;