--- parser3/src/main/pa_common.C 2001/10/24 14:39:44 1.76 +++ parser3/src/main/pa_common.C 2001/10/29 13:04:46 1.78 @@ -4,7 +4,7 @@ Copyright(c) 2001 ArtLebedev Group(http://www.artlebedev.com) Author: Alexander Petrosyan (http://design.ru/paf) - $Id: pa_common.C,v 1.76 2001/10/24 14:39:44 parser Exp $ + $Id: pa_common.C,v 1.78 2001/10/29 13:04:46 paf Exp $ */ #include "pa_common.h" @@ -96,7 +96,7 @@ bool file_read(Pool& pool, const String& data=0; read_size=0; } else { - data=pool.malloc(max_size+(as_text?1:0)); + data=pool.malloc(max_size+(as_text?1:0), 3); if(offset) lseek(f, offset, SEEK_SET); read_size=read(f, data, max_size); @@ -302,7 +302,7 @@ char *rsplit(char *string, char delim) { /// @todo less stupid type detection char *format(Pool& pool, double value, char *fmt) { - char *result=(char *)pool.malloc(MAX_NUMBER); + char *result=(char *)pool.malloc(MAX_NUMBER, 4); if(fmt) if(strpbrk(fmt, "diouxX")) if(strpbrk(fmt, "ouxX")) @@ -333,8 +333,8 @@ size_t stdout_write(const void *buf, siz #endif } -const char *unescape_chars(Pool& pool, const char *cp, int len) { - char *s=(char *)pool.malloc(len + 1); +char *unescape_chars(Pool& pool, const char *cp, int len) { + char *s=(char *)pool.malloc(len + 1, 5); enum EscapeState { EscapeRest, EscapeFirst,