diff options
Diffstat (limited to '')
-rw-r--r-- | src/memalloc.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/memalloc.h b/src/memalloc.h index 8a41e64..282dbb0 100644 --- a/src/memalloc.h +++ b/src/memalloc.h @@ -57,13 +57,17 @@ void stunalloc(pointer); void setstackmark(struct stackmark *); void popstackmark(struct stackmark *); void growstackblock(void); -void grabstackblock(size_t); void *growstackstr(void); char *makestrspace(size_t, char *); char *stnputs(const char *, size_t, char *); char *stputs(const char *, char *); +static inline void grabstackblock(size_t len) +{ + stalloc(len); +} + static inline char *_STPUTC(int c, char *p) { if (p == sstrend) p = growstackstr(); |