aboutsummaryrefslogtreecommitdiff
path: root/lauxlib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-04-24 15:06:12 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-04-24 15:06:12 -0300
commit2caecf1b3efdbee4e08888a04143421589d6143b (patch)
tree5eb37237e2440b1fb0b3750e5917d6d6d80a8be7 /lauxlib.c
parentf399e6705fab15013ae468049c910577e1a9a5a1 (diff)
downloadlua-2caecf1b3efdbee4e08888a04143421589d6143b.tar.gz
lua-2caecf1b3efdbee4e08888a04143421589d6143b.tar.bz2
lua-2caecf1b3efdbee4e08888a04143421589d6143b.zip
type 'L_Umaxalign' replaced by macro 'LUAI_MAXALIGN', which is also added
to the auxlib buffer
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}