enable passing of a hint how many pointers we’ll need to anew()
if 0, the default is used
This commit is contained in:
4
var.c
4
var.c
@ -2,7 +2,7 @@
|
||||
|
||||
#include "sh.h"
|
||||
|
||||
__RCSID("$MirOS: src/bin/mksh/var.c,v 1.60 2008/11/12 00:54:52 tg Exp $");
|
||||
__RCSID("$MirOS: src/bin/mksh/var.c,v 1.61 2008/11/15 07:35:25 tg Exp $");
|
||||
|
||||
/*
|
||||
* Variables
|
||||
@ -39,7 +39,7 @@ newblock(void)
|
||||
|
||||
l = alloc(1, sizeof (struct block), ATEMP);
|
||||
l->flags = 0;
|
||||
l->areap = anew(); /* TODO: could use e->area */
|
||||
l->areap = anew(0); /* TODO: could use e->area */
|
||||
if (!e->loc) {
|
||||
l->argc = 0;
|
||||
l->argv = empty;
|
||||
|
Reference in New Issue
Block a user