From 44a94779a85f2a87cd0d552c1d272b8c05b85630 Mon Sep 17 00:00:00 2001 From: Herbert Xu Date: Sun, 11 Nov 2007 15:00:06 +0800 Subject: [EXPAND] Removed herefd hack The herefd hack goes back more than a decade. it limits the amount of memory we have to allocate when expanding here-documents by writing the result out from time to time. However, it's no longer safe because the stack is used to place intermediate results too and there we certainly don't want to write them out should we be short on memory. In any case, with today's computers we can afford to keep the entire result in memory and write them out at the end. --- src/memalloc.h | 1 - 1 file changed, 1 deletion(-) (limited to 'src/memalloc.h') diff --git a/src/memalloc.h b/src/memalloc.h index ad6015d..4b5be46 100644 --- a/src/memalloc.h +++ b/src/memalloc.h @@ -46,7 +46,6 @@ struct stackmark { extern char *stacknxt; extern size_t stacknleft; extern char *sstrend; -extern int herefd; pointer ckmalloc(size_t); pointer ckrealloc(pointer, size_t); -- cgit 1.4.1