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
sh.h
4
sh.h
@@ -103,7 +103,7 @@
|
||||
#define __SCCSID(x) __IDSTRING(sccsid,x)
|
||||
|
||||
#ifdef EXTERN
|
||||
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.257 2008/11/12 04:55:19 tg Exp $");
|
||||
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.258 2008/11/15 07:35:24 tg Exp $");
|
||||
#endif
|
||||
#define MKSH_VERSION "R36 2008/11/11"
|
||||
|
||||
@@ -1247,7 +1247,7 @@ EXTERN int histsize; /* history size */
|
||||
EXTERN struct timeval j_usrtime, j_systime;
|
||||
|
||||
/* alloc.c */
|
||||
PArea anew(void); /* cannot fail */
|
||||
PArea anew(size_t); /* cannot fail */
|
||||
void adelete(PArea *);
|
||||
void *alloc(size_t, size_t, PArea); /* cannot fail */
|
||||
void *aresize(void *, size_t, size_t, PArea);
|
||||
|
Reference in New Issue
Block a user