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.h | |
| 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.h')
| -rw-r--r-- | lauxlib.h | 7 |
1 files changed, 5 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lauxlib.h,v 1.130 2016/12/04 20:17:24 roberto Exp roberto $ | 2 | ** $Id: lauxlib.h,v 1.131 2016/12/06 14:54:31 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 | */ |
| @@ -150,7 +150,10 @@ typedef struct luaL_Buffer { | |||
| 150 | size_t size; /* buffer size */ | 150 | size_t size; /* buffer size */ |
| 151 | size_t n; /* number of characters in buffer */ | 151 | size_t n; /* number of characters in buffer */ |
| 152 | lua_State *L; | 152 | lua_State *L; |
| 153 | char initb[LUAL_BUFFERSIZE]; /* initial buffer */ | 153 | union { |
| 154 | LUAI_MAXALIGN; /* ensure maximum alignment for buffer */ | ||
| 155 | char b[LUAL_BUFFERSIZE]; /* initial buffer */ | ||
| 156 | } init; | ||
| 154 | } luaL_Buffer; | 157 | } luaL_Buffer; |
| 155 | 158 | ||
| 156 | 159 | ||
