diff options
Diffstat (limited to 'src/lj_str.h')
-rw-r--r-- | src/lj_str.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_str.h b/src/lj_str.h index fc3d57f5..fbd927c0 100644 --- a/src/lj_str.h +++ b/src/lj_str.h | |||
@@ -43,7 +43,7 @@ LJ_FUNC const char *lj_str_pushf(lua_State *L, const char *fmt, ...) | |||
43 | /* Resizable string buffers. Struct definition in lj_obj.h. */ | 43 | /* Resizable string buffers. Struct definition in lj_obj.h. */ |
44 | LJ_FUNC char *lj_str_needbuf(lua_State *L, SBuf *sb, MSize sz); | 44 | LJ_FUNC char *lj_str_needbuf(lua_State *L, SBuf *sb, MSize sz); |
45 | 45 | ||
46 | #define lj_str_initbuf(L, sb) ((sb)->buf = NULL, (sb)->sz = 0) | 46 | #define lj_str_initbuf(sb) ((sb)->buf = NULL, (sb)->sz = 0) |
47 | #define lj_str_resetbuf(sb) ((sb)->n = 0) | 47 | #define lj_str_resetbuf(sb) ((sb)->n = 0) |
48 | #define lj_str_resizebuf(L, sb, size) \ | 48 | #define lj_str_resizebuf(L, sb, size) \ |
49 | ((sb)->buf = (char *)lj_mem_realloc(L, (sb)->buf, (sb)->sz, (size)), \ | 49 | ((sb)->buf = (char *)lj_mem_realloc(L, (sb)->buf, (sb)->sz, (size)), \ |