summary refs log tree commit diff
path: root/src/memalloc.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2007-10-05 23:26:45 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2007-10-05 23:26:45 +0800
commit67c4a712abeb04df3bb98e40912d47bc8c294f5a (patch)
tree9f7cdde679122e0e1c27b732d26228b6dfe5ef21 /src/memalloc.c
parent[PARSER] Size optimisations in parameter expansion parser (diff)
downloaddash-67c4a712abeb04df3bb98e40912d47bc8c294f5a.tar.gz
dash-67c4a712abeb04df3bb98e40912d47bc8c294f5a.zip
[MEMALLOC] Made grabstackblock an inline wrapper for stalloc
The function grabstackblock is identical in semantics to stalloc within its
input constraints.
Diffstat (limited to '')
-rw-r--r--src/memalloc.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/memalloc.c b/src/memalloc.c
index 358e6ec..c8147d3 100644
--- a/src/memalloc.c
+++ b/src/memalloc.c
@@ -254,14 +254,6 @@ growstackblock(void)
 	}
 }
 
-void
-grabstackblock(size_t len)
-{
-	len = SHELL_ALIGN(len);
-	stacknxt += len;
-	stacknleft -= len;
-}
-
 /*
  * The following routines are somewhat easier to use than the above.
  * The user declares a variable of type STACKSTR, which may be declared