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
edit.c
4
edit.c
@ -5,7 +5,7 @@
|
||||
|
||||
#include "sh.h"
|
||||
|
||||
__RCSID("$MirOS: src/bin/mksh/edit.c,v 1.144 2008/11/12 00:54:46 tg Exp $");
|
||||
__RCSID("$MirOS: src/bin/mksh/edit.c,v 1.145 2008/11/15 07:35:23 tg Exp $");
|
||||
|
||||
/* tty driver characters we are interested in */
|
||||
typedef struct {
|
||||
@ -2681,7 +2681,7 @@ x_init_emacs(void)
|
||||
{
|
||||
int i, j;
|
||||
|
||||
AEDIT = anew();
|
||||
AEDIT = anew(0);
|
||||
x_nextcmd = -1;
|
||||
|
||||
x_tab = alloc(X_NTABS, sizeof (*x_tab), AEDIT);
|
||||
|
Reference in New Issue
Block a user