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
>
> luaopen_base
> luaopen_bit32
> luaopen_coroutine
> luaopen_debug
> luaopen_io
> luaopen_math
> luaopen_os
> luaopen_package
> luaopen_string
> luaopen_table
>
>
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