diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-04-24 15:06:12 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-04-24 15:06:12 -0300 |
commit | 2caecf1b3efdbee4e08888a04143421589d6143b (patch) | |
tree | 5eb37237e2440b1fb0b3750e5917d6d6d80a8be7 /lauxlib.c | |
parent | f399e6705fab15013ae468049c910577e1a9a5a1 (diff) | |
download | lua-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 | ||
569 | LUALIB_API void luaL_buffinit (lua_State *L, luaL_Buffer *B) { | 569 | LUALIB_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 | } |