diff options
Diffstat (limited to 'common.h')
| -rw-r--r-- | common.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -185,7 +185,8 @@ void free(void *); /* string interning */ typedef const struct internstr {char c;} *internstr; -internstr intern(const char *); +internstr intern_(const char *, uint len); +#define intern(s) intern_(s, 0) /* growable buffer that stores its capacity in the allocated memory */ #define xbnew_(n) (void *)(1 + (size_t *)xcalloc(sizeof(size_t) + (n))) |