diff -r lua-5.2.3/Makefile lua-5.2.4/Makefile 49c49 < R= $V.3 --- > R= $V.4 diff -r lua-5.2.3/README lua-5.2.4/README 2c2 < This is Lua 5.2.3, released on 11 Nov 2013. --- > This is Lua 5.2.4, released on 25 Feb 2015. diff -r lua-5.2.3/doc/contents.html lua-5.2.4/doc/contents.html 10d9 < list-style-position: outside ; 36c35 < Copyright © 2011–2013 Lua.org, PUC-Rio. --- > Copyright © 2011–2015 Lua.org, PUC-Rio. 141a141 > basic
145d144 <

170a170 > bit32
184a185 > coroutine
192a194 > debug
211,219c213 < file:close
< file:flush
< file:lines
< file:read
< file:seek
< file:setvbuf
< file:write
< <

--- > io
233a228,234 > file:close
> file:flush
> file:lines
> file:read
> file:seek
> file:setvbuf
> file:write
238a240 > math
269a272 > os
282a286 > package
292a297 > string
308a314 > table
315a322,329 >

environment
variables

> LUA_CPATH
> LUA_CPATH_5_2
> LUA_INIT
> LUA_INIT_5_2
> LUA_PATH
> LUA_PATH_5_2
> 518a533,593 >

standard library

>

> luaopen_base
> luaopen_bit32
> luaopen_coroutine
> luaopen_debug
> luaopen_io
> luaopen_math
> luaopen_os
> luaopen_package
> luaopen_string
> luaopen_table
> >

constants

> LUA_ERRERR
> LUA_ERRFILE
> LUA_ERRGCMM
> LUA_ERRMEM
> LUA_ERRRUN
> LUA_ERRSYNTAX
> LUA_HOOKCALL
> LUA_HOOKCOUNT
> LUA_HOOKLINE
> LUA_HOOKRET
> LUA_HOOKTAILCALL
> LUA_MASKCALL
> LUA_MASKCOUNT
> LUA_MASKLINE
> LUA_MASKRET
> LUA_MINSTACK
> LUA_MULTRET
> LUA_NOREF
> LUA_OK
> LUA_OPADD
> LUA_OPDIV
> LUA_OPEQ
> LUA_OPLE
> LUA_OPLT
> LUA_OPMOD
> LUA_OPMUL
> LUA_OPPOW
> LUA_OPSUB
> LUA_OPUNM
> LUA_REFNIL
> LUA_REGISTRYINDEX
> LUA_RIDX_GLOBALS
> LUA_RIDX_MAINTHREAD
> LUA_TBOOLEAN
> LUA_TFUNCTION
> LUA_TLIGHTUSERDATA
> LUA_TNIL
> LUA_TNONE
> LUA_TNUMBER
> LUA_TSTRING
> LUA_TTABLE
> LUA_TTHREAD
> LUA_TUSERDATA
> LUA_USE_APICHECK
> LUA_YIELD
> LUAL_BUFFERSIZE
> 526c601 < Tue Mar 12 11:22:18 BRT 2013 --- > Mon Feb 23 22:24:36 BRT 2015 529c604 < Last change: revised for Lua 5.2.2 --- > Last change: revised for Lua 5.2.4 diff -r lua-5.2.3/doc/lua.css lua-5.2.4/doc/lua.css 13a14 > line-height: 1.25 ; 55a57 > border-radius: 4px ; 61a64,67 > h1 a img { > vertical-align: text-bottom ; > } > 89d94 < -moz-border-radius: 2em ; 91c96 < background-repeat: no-repeat; --- > background-repeat: no-repeat ; 96a102,106 > pre.session { > background-color: #F8F8F8 ; > padding: 1em ; > border-radius: 8px ; > } diff -r lua-5.2.3/doc/manual.html lua-5.2.4/doc/manual.html 22c22 < Copyright © 2011–2013 Lua.org, PUC-Rio. --- > Copyright © 2011–2015 Lua.org, PUC-Rio. 36c36 < --- > 2091c2091 < for some integer n. --- > for some non-negative integer n. 4068c4068 < It is similar to the ANSI C function sprintf, --- > It is similar to the ISO C function sprintf, 7909c7909 < The format string follows the same rules as the ANSI C function sprintf. --- > The format string follows the same rules as the ISO C function sprintf. 9489c9489 < formatted according to the same rules as the ANSI C function strftime. --- > formatted according to the same rules as the ISO C function strftime. 9524c9524 < This function is equivalent to the ANSI C function system. --- > This function is equivalent to the ISO C function system. 9559c9559 < Calls the ANSI C function exit to terminate the host program. --- > Calls the ISO C function exit to terminate the host program. 9896c9896 < The string mask may have the following characters, --- > The string mask may have any combination of the following characters, 9904,9905c9904,9906 < With a count different from zero, < the hook is called after every count instructions. --- > Moreover, > with a count different from zero, > the hook is called also after every count instructions. 10500c10501 < Thu Mar 21 12:58:59 BRT 2013 --- > Mon Feb 23 22:24:44 BRT 2015 10503c10504 < Last change: revised for Lua 5.2.2 --- > Last change: revised for Lua 5.2.4 diff -r lua-5.2.3/doc/readme.html lua-5.2.4/doc/readme.html 101,102c101,102 < Lua for Windows, < an easy-to-use distribution of Lua that includes many useful libraries. --- > LuaDist, > a multi-platform distribution of Lua that includes batteries. 113,114c113,114 < the top-level directory, which is named lua-5.2.3. < The Makefile there controls both the build process and the installation process. --- > the top-level directory, which is named lua-5.2.x. > The Makefile there controls both the build process and the installation process. 139c139 < after building Lua. This will run the interpreter and print its version string. --- > after building Lua. This will run the interpreter and print its version. 143c143,144 < make sure you have installed the readline development package. --- > make sure you have installed the readline development package > (which is probably named libreadline-dev or readline-devel). 151c152 < place and the way to install files are defined in the Makefile. You'll --- > place and the way to install files are defined in the Makefile. You'll 161c162 < bin, include, lib, man, --- > bin, include, lib, man, share, 165a167,168 > The installation starts in the src and doc directories, > so take care if INSTALL_TOP is not an absolute path. 189,190c192,193 < you only need the files in bin and man. < The files in include and lib are needed for --- > you only need the files in bin and man. > The files in include and lib are needed for 206c209 < record the changes you need. --- > record the changes you've made. 256a260 > In all cases, the compiler luac should be linked statically. 378c382 < Copyright © 1994–2013 Lua.org, PUC-Rio. --- > Copyright © 1994–2015 Lua.org, PUC-Rio. 406c410 < Sat Nov 9 22:39:16 BRST 2013 --- > Mon Feb 23 22:25:08 BRT 2015 409c413 < Last change: revised for Lua 5.2.3 --- > Last change: revised for Lua 5.2.4 diff -r lua-5.2.3/src/ldblib.c lua-5.2.4/src/ldblib.c 2c2 < ** $Id: ldblib.c,v 1.132.1.1 2013/04/12 18:48:47 roberto Exp $ --- > ** $Id: ldblib.c,v 1.132.1.2 2015/02/19 17:16:55 roberto Exp $ 23a24,28 > static void checkstack (lua_State *L, lua_State *L1, int n) { > if (L != L1 && !lua_checkstack(L1, n)) > luaL_error(L, "stack overflow"); > } > 116a122 > checkstack(L, L1, 3); 175a182 > checkstack(L, L1, 1); 198a206 > checkstack(L, L1, 1); 315a324 > checkstack(L, L1, 1); 333a343 > checkstack(L, L1, 1); diff -r lua-5.2.3/src/ldebug.c lua-5.2.4/src/ldebug.c 2c2 < ** $Id: ldebug.c,v 2.90.1.3 2013/05/16 16:04:15 roberto Exp $ --- > ** $Id: ldebug.c,v 2.90.1.4 2015/02/19 17:05:13 roberto Exp $ 49a50,59 > static void swapextra (lua_State *L) { > if (L->status == LUA_YIELD) { > CallInfo *ci = L->ci; /* get function that yielded */ > StkId temp = ci->func; /* exchange its 'func' and 'extra' values */ > ci->func = restorestack(L, ci->extra); > ci->extra = savestack(L, temp); > } > } > > 146a157 > swapextra(L); 160a172 > swapextra(L); 168c180 < const char *name = findlocal(L, ar->i_ci, n, &pos); --- > const char *name; 169a182,183 > swapextra(L); > name = findlocal(L, ar->i_ci, n, &pos); 172a187 > swapextra(L); 271a287 > swapextra(L); 289a306 > swapextra(L); diff -r lua-5.2.3/src/lgc.c lua-5.2.4/src/lgc.c 2c2 < ** $Id: lgc.c,v 2.140.1.2 2013/04/26 18:22:05 roberto Exp $ --- > ** $Id: lgc.c,v 2.140.1.3 2014/09/01 16:55:08 roberto Exp $ 406c406 < if (prop) --- > if (g->gcstate != GCSatomic || prop) diff -r lua-5.2.3/src/llex.c lua-5.2.4/src/llex.c 2c2 < ** $Id: llex.c,v 2.63.1.2 2013/08/30 15:49:41 roberto Exp $ --- > ** $Id: llex.c,v 2.63.1.3 2015/02/09 17:56:34 roberto Exp $ 155c155 < luaX_syntaxerror(ls, "chunk has too many lines"); --- > lexerror(ls, "chunk has too many lines", 0); diff -r lua-5.2.3/src/lobject.h lua-5.2.4/src/lobject.h 2c2 < ** $Id: lobject.h,v 2.71.1.1 2013/04/12 18:48:47 roberto Exp $ --- > ** $Id: lobject.h,v 2.71.1.2 2014/05/07 14:14:58 roberto Exp $ 564c564 < struct Table *metatable; --- > int sizearray; /* size of `array' array */ 567a568 > struct Table *metatable; 569d569 < int sizearray; /* size of `array' array */ diff -r lua-5.2.3/src/lopcodes.h lua-5.2.4/src/lopcodes.h 2c2 < ** $Id: lopcodes.h,v 1.142.1.1 2013/04/12 18:48:47 roberto Exp $ --- > ** $Id: lopcodes.h,v 1.142.1.2 2014/10/20 18:32:09 roberto Exp $ 199c199 < OP_JMP,/* A sBx pc+=sBx; if (A) close all upvalues >= R(A) + 1 */ --- > OP_JMP,/* A sBx pc+=sBx; if (A) close all upvalues >= R(A - 1) */ diff -r lua-5.2.3/src/ltablib.c lua-5.2.4/src/ltablib.c 2c2 < ** $Id: ltablib.c,v 1.65.1.1 2013/04/12 18:48:47 roberto Exp $ --- > ** $Id: ltablib.c,v 1.65.1.2 2014/05/07 16:32:55 roberto Exp $ 7a8 > #include 137c138,139 < int i, e, n; --- > int i, e; > unsigned int n; 142,143c144,145 < n = e - i + 1; /* number of elements */ < if (n <= 0 || !lua_checkstack(L, n)) /* n <= 0 means arith. overflow */ --- > n = (unsigned int)e - (unsigned int)i; /* number of elements minus 1 */ > if (n > (INT_MAX - 10) || !lua_checkstack(L, ++n)) diff -r lua-5.2.3/src/lua.h lua-5.2.4/src/lua.h 2c2 < ** $Id: lua.h,v 1.285.1.2 2013/11/11 12:09:16 roberto Exp $ --- > ** $Id: lua.h,v 1.285.1.4 2015/02/21 14:04:50 roberto Exp $ 22c22 < #define LUA_VERSION_RELEASE "3" --- > #define LUA_VERSION_RELEASE "4" 26c26 < #define LUA_COPYRIGHT LUA_RELEASE " Copyright (C) 1994-2013 Lua.org, PUC-Rio" --- > #define LUA_COPYRIGHT LUA_RELEASE " Copyright (C) 1994-2015 Lua.org, PUC-Rio" 421c421 < * Copyright (C) 1994-2013 Lua.org, PUC-Rio. --- > * Copyright (C) 1994-2015 Lua.org, PUC-Rio. diff -r lua-5.2.3/src/luaconf.h lua-5.2.4/src/luaconf.h 2c2 < ** $Id: luaconf.h,v 1.176.1.1 2013/04/12 18:48:47 roberto Exp $ --- > ** $Id: luaconf.h,v 1.176.1.2 2013/11/21 17:26:16 roberto Exp $ 329c329 < @@ LUA_INT32 is an signed integer with exactly 32 bits. --- > @@ LUA_INT32 is a signed integer with exactly 32 bits. 353c353 < ** its only purpose is to stop Lua to consume unlimited stack --- > ** its only purpose is to stop Lua from consuming unlimited stack