aboutsummaryrefslogtreecommitdiff
path: root/lauxlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lauxlib.c')
-rw-r--r--lauxlib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lauxlib.c b/lauxlib.c
index 7b14ca4d..2d16c9ce 100644
--- a/lauxlib.c
+++ b/lauxlib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lauxlib.c,v 1.288 2016/12/04 20:17:24 roberto Exp roberto $ 2** $Id: lauxlib.c,v 1.289 2016/12/20 18:37:00 roberto Exp roberto $
3** Auxiliary functions for building Lua libraries 3** Auxiliary functions for building Lua libraries
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -496,7 +496,7 @@ static void *newbox (lua_State *L, size_t newsize) {
496** check whether buffer is using a userdata on the stack as a temporary 496** check whether buffer is using a userdata on the stack as a temporary
497** buffer 497** buffer
498*/ 498*/
499#define buffonstack(B) ((B)->b != (B)->initb) 499#define buffonstack(B) ((B)->b != (B)->init.b)
500 500
501 501
502/* 502/*
@@ -568,7 +568,7 @@ LUALIB_API void luaL_addvalue (luaL_Buffer *B) {
568 568
569LUALIB_API void luaL_buffinit (lua_State *L, luaL_Buffer *B) { 569LUALIB_API void luaL_buffinit (lua_State *L, luaL_Buffer *B) {
570 B->L = L; 570 B->L = L;
571 B->b = B->initb; 571 B->b = B->init.b;
572 B->n = 0; 572 B->n = 0;
573 B->size = LUAL_BUFFERSIZE; 573 B->size = LUAL_BUFFERSIZE;
574} 574}