From e9cb50188b1b04b6e5e8e8ccc8874b2abcff8bb1 Mon Sep 17 00:00:00 2001 From: Herbert Xu Date: Thu, 31 May 2018 01:51:48 +0800 Subject: memalloc: Avoid looping in growstackto Currently growstackto will repeatedly call growstackblock until the requisite size is obtained. This is wasteful. This patch changes growstackblock to take a minimum size instead. Signed-off-by: Herbert Xu --- 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 b348d9c..b9c63da 100644 --- a/src/memalloc.h +++ b/src/memalloc.h @@ -55,7 +55,6 @@ void stunalloc(pointer); void pushstackmark(struct stackmark *mark, size_t len); void setstackmark(struct stackmark *); void popstackmark(struct stackmark *); -void growstackblock(void); void *growstackstr(void); char *growstackto(size_t len); char *makestrspace(size_t, char *); -- cgit 1.4.1 f='/src/'>summary refs log tree commit diff
Commit message (Expand)Author
2022-06-08Add Maiden, Mother, CroneJune McEnroe
2022-06-05FIRST SHOW IN 2.5 YEARS BABEY!!!June McEnroe
2022-06-03Set line number on File linesJune McEnroe
2022-06-03Stop polling stdin after EOFJune McEnroe
2022-06-02Set TABSIZE=4June McEnroe
2022-06-02Do basic match highlightingJune McEnroe
2022-06-02Clean up parsing a littleJune McEnroe
2022-06-02Don't duplicate path stringJune McEnroe
2022-06-02Use stderr instead of /dev/tty, realloc buffer if lines too longJune McEnroe
2022-06-02Add initial working version of qfJune McEnroe
2022-05-29Set prompt for okshJune McEnroe