No need for L argument to lj_str_initbuf().

This commit is contained in:
Mike Pall
2011-06-12 21:09:20 +02:00
parent 287de611a2
commit 0c8696dfbf
4 changed files with 4 additions and 4 deletions

View File

@@ -43,7 +43,7 @@ LJ_FUNC const char *lj_str_pushf(lua_State *L, const char *fmt, ...)
/* Resizable string buffers. Struct definition in lj_obj.h. */
LJ_FUNC char *lj_str_needbuf(lua_State *L, SBuf *sb, MSize sz);
#define lj_str_initbuf(L, sb) ((sb)->buf = NULL, (sb)->sz = 0)
#define lj_str_initbuf(sb) ((sb)->buf = NULL, (sb)->sz = 0)
#define lj_str_resetbuf(sb) ((sb)->n = 0)
#define lj_str_resizebuf(L, sb, size) \
((sb)->buf = (char *)lj_mem_realloc(L, (sb)->buf, (sb)->sz, (size)), \