further simplify

XXX check whose platforms’ realloc(3) don’t take NULL
This commit is contained in:
tg
2009-03-24 08:53:45 +00:00
parent ebfce0fafd
commit c7b2af502e
2 changed files with 32 additions and 41 deletions

6
sh.h
View File

@@ -102,7 +102,7 @@
#define __SCCSID(x) __IDSTRING(sccsid,x)
#ifdef EXTERN
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.284 2009/03/22 18:50:43 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.285 2009/03/24 08:53:45 tg Exp $");
#endif
#define MKSH_VERSION "R37 2009/03/22"
@@ -398,8 +398,8 @@ char *ucstrstr(char *, const char *);
/*
* simple grouping allocator
*/
typedef struct {
void *ent; /* entry pointer, must be first */
typedef struct lalloc {
struct lalloc *next;
} Area;
EXTERN Area aperm; /* permanent object space */