diffs-lua-5.2.3-lua-5.2.4
Makefile
49c49
< R= $V.3
> R= $V.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.
doc/contents.html
10d9
< list-style-position: outside ;
36c35
< Copyright © 2011–2013 Lua.org, PUC-Rio.
> Copyright © 2011–2015 Lua.org, PUC-Rio.
141a141
> <A HREF="manual.html#6.1">basic</A><BR>
145d144
< <P>
170a170
> <A HREF="manual.html#6.7">bit32</A><BR>
184a185
> <A HREF="manual.html#6.2">coroutine</A><BR>
192a194
> <A HREF="manual.html#6.10">debug</A><BR>
211,219c213
< <A HREF="manual.html#pdf-file:close">file:close</A><BR>
< <A HREF="manual.html#pdf-file:flush">file:flush</A><BR>
< <A HREF="manual.html#pdf-file:lines">file:lines</A><BR>
< <A HREF="manual.html#pdf-file:read">file:read</A><BR>
< <A HREF="manual.html#pdf-file:seek">file:seek</A><BR>
< <A HREF="manual.html#pdf-file:setvbuf">file:setvbuf</A><BR>
< <A HREF="manual.html#pdf-file:write">file:write</A><BR>
<
< <P>
> <A HREF="manual.html#6.8">io</A><BR>
233a228,234
> <A HREF="manual.html#pdf-file:close">file:close</A><BR>
> <A HREF="manual.html#pdf-file:flush">file:flush</A><BR>
> <A HREF="manual.html#pdf-file:lines">file:lines</A><BR>
> <A HREF="manual.html#pdf-file:read">file:read</A><BR>
> <A HREF="manual.html#pdf-file:seek">file:seek</A><BR>
> <A HREF="manual.html#pdf-file:setvbuf">file:setvbuf</A><BR>
> <A HREF="manual.html#pdf-file:write">file:write</A><BR>
238a240
> <A HREF="manual.html#6.6">math</A><BR>
269a272
> <A HREF="manual.html#6.9">os</A><BR>
282a286
> <A HREF="manual.html#6.3">package</A><BR>
292a297
> <A HREF="manual.html#6.4">string</A><BR>
308a314
> <A HREF="manual.html#6.5">table</A><BR>
315a322,329
> <H3><A NAME="env">environment<BR>variables</A></H3>
> <A HREF="manual.html#pdf-LUA_CPATH">LUA_CPATH</A><BR>
> <A HREF="manual.html#pdf-LUA_CPATH_5_2">LUA_CPATH_5_2</A><BR>
> <A HREF="manual.html#pdf-LUA_INIT">LUA_INIT</A><BR>
> <A HREF="manual.html#pdf-LUA_INIT_5_2">LUA_INIT_5_2</A><BR>
> <A HREF="manual.html#pdf-LUA_PATH">LUA_PATH</A><BR>
> <A HREF="manual.html#pdf-LUA_PATH_5_2">LUA_PATH_5_2</A><BR>
>
518a533,593
> <H3><A NAME="library">standard library</A></H3>
> <P>
> <A HREF="manual.html#pdf-luaopen_base">luaopen_base</A><BR>
> <A HREF="manual.html#pdf-luaopen_bit32">luaopen_bit32</A><BR>
> <A HREF="manual.html#pdf-luaopen_coroutine">luaopen_coroutine</A><BR>
> <A HREF="manual.html#pdf-luaopen_debug">luaopen_debug</A><BR>
> <A HREF="manual.html#pdf-luaopen_io">luaopen_io</A><BR>
> <A HREF="manual.html#pdf-luaopen_math">luaopen_math</A><BR>
> <A HREF="manual.html#pdf-luaopen_os">luaopen_os</A><BR>
> <A HREF="manual.html#pdf-luaopen_package">luaopen_package</A><BR>
> <A HREF="manual.html#pdf-luaopen_string">luaopen_string</A><BR>
> <A HREF="manual.html#pdf-luaopen_table">luaopen_table</A><BR>
>
> <H3><A NAME="constants">constants</A></H3>
> <A HREF="manual.html#pdf-LUA_ERRERR">LUA_ERRERR</A><BR>
> <A HREF="manual.html#pdf-LUA_ERRFILE">LUA_ERRFILE</A><BR>
> <A HREF="manual.html#pdf-LUA_ERRGCMM">LUA_ERRGCMM</A><BR>
> <A HREF="manual.html#pdf-LUA_ERRMEM">LUA_ERRMEM</A><BR>
> <A HREF="manual.html#pdf-LUA_ERRRUN">LUA_ERRRUN</A><BR>
> <A HREF="manual.html#pdf-LUA_ERRSYNTAX">LUA_ERRSYNTAX</A><BR>
> <A HREF="manual.html#pdf-LUA_HOOKCALL">LUA_HOOKCALL</A><BR>
> <A HREF="manual.html#pdf-LUA_HOOKCOUNT">LUA_HOOKCOUNT</A><BR>
> <A HREF="manual.html#pdf-LUA_HOOKLINE">LUA_HOOKLINE</A><BR>
> <A HREF="manual.html#pdf-LUA_HOOKRET">LUA_HOOKRET</A><BR>
> <A HREF="manual.html#pdf-LUA_HOOKTAILCALL">LUA_HOOKTAILCALL</A><BR>
> <A HREF="manual.html#pdf-LUA_MASKCALL">LUA_MASKCALL</A><BR>
> <A HREF="manual.html#pdf-LUA_MASKCOUNT">LUA_MASKCOUNT</A><BR>
> <A HREF="manual.html#pdf-LUA_MASKLINE">LUA_MASKLINE</A><BR>
> <A HREF="manual.html#pdf-LUA_MASKRET">LUA_MASKRET</A><BR>
> <A HREF="manual.html#pdf-LUA_MINSTACK">LUA_MINSTACK</A><BR>
> <A HREF="manual.html#pdf-LUA_MULTRET">LUA_MULTRET</A><BR>
> <A HREF="manual.html#pdf-LUA_NOREF">LUA_NOREF</A><BR>
> <A HREF="manual.html#pdf-LUA_OK">LUA_OK</A><BR>
> <A HREF="manual.html#pdf-LUA_OPADD">LUA_OPADD</A><BR>
> <A HREF="manual.html#pdf-LUA_OPDIV">LUA_OPDIV</A><BR>
> <A HREF="manual.html#pdf-LUA_OPEQ">LUA_OPEQ</A><BR>
> <A HREF="manual.html#pdf-LUA_OPLE">LUA_OPLE</A><BR>
> <A HREF="manual.html#pdf-LUA_OPLT">LUA_OPLT</A><BR>
> <A HREF="manual.html#pdf-LUA_OPMOD">LUA_OPMOD</A><BR>
> <A HREF="manual.html#pdf-LUA_OPMUL">LUA_OPMUL</A><BR>
> <A HREF="manual.html#pdf-LUA_OPPOW">LUA_OPPOW</A><BR>
> <A HREF="manual.html#pdf-LUA_OPSUB">LUA_OPSUB</A><BR>
> <A HREF="manual.html#pdf-LUA_OPUNM">LUA_OPUNM</A><BR>
> <A HREF="manual.html#pdf-LUA_REFNIL">LUA_REFNIL</A><BR>
> <A HREF="manual.html#pdf-LUA_REGISTRYINDEX">LUA_REGISTRYINDEX</A><BR>
> <A HREF="manual.html#pdf-LUA_RIDX_GLOBALS">LUA_RIDX_GLOBALS</A><BR>
> <A HREF="manual.html#pdf-LUA_RIDX_MAINTHREAD">LUA_RIDX_MAINTHREAD</A><BR>
> <A HREF="manual.html#pdf-LUA_TBOOLEAN">LUA_TBOOLEAN</A><BR>
> <A HREF="manual.html#pdf-LUA_TFUNCTION">LUA_TFUNCTION</A><BR>
> <A HREF="manual.html#pdf-LUA_TLIGHTUSERDATA">LUA_TLIGHTUSERDATA</A><BR>
> <A HREF="manual.html#pdf-LUA_TNIL">LUA_TNIL</A><BR>
> <A HREF="manual.html#pdf-LUA_TNONE">LUA_TNONE</A><BR>
> <A HREF="manual.html#pdf-LUA_TNUMBER">LUA_TNUMBER</A><BR>
> <A HREF="manual.html#pdf-LUA_TSTRING">LUA_TSTRING</A><BR>
> <A HREF="manual.html#pdf-LUA_TTABLE">LUA_TTABLE</A><BR>
> <A HREF="manual.html#pdf-LUA_TTHREAD">LUA_TTHREAD</A><BR>
> <A HREF="manual.html#pdf-LUA_TUSERDATA">LUA_TUSERDATA</A><BR>
> <A HREF="manual.html#pdf-LUA_USE_APICHECK">LUA_USE_APICHECK</A><BR>
> <A HREF="manual.html#pdf-LUA_YIELD">LUA_YIELD</A><BR>
> <A HREF="manual.html#pdf-LUAL_BUFFERSIZE">LUAL_BUFFERSIZE</A><BR>
>
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
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 ;
> }
doc/manual.html
22c22
< Copyright © 2011–2013 Lua.org, PUC-Rio.
> Copyright © 2011–2015 Lua.org, PUC-Rio.
36c36
< <!-- $Id: manual.of,v 1.103 2013/03/14 18:51:56 roberto Exp $ -->
> <!-- $Id: manual.of,v 1.104 2013/06/01 00:13:11 roberto Exp $ -->
2091c2091
< for some integer <em>n</em>.
> for some non-negative integer <em>n</em>.
4068c4068
< It is similar to the ANSI C function <code>sprintf</code>,
> It is similar to the ISO C function <code>sprintf</code>,
7909c7909
< The format string follows the same rules as the ANSI C function <code>sprintf</code>.
> The format string follows the same rules as the ISO C function <code>sprintf</code>.
9489c9489
< formatted according to the same rules as the ANSI C function <code>strftime</code>.
> formatted according to the same rules as the ISO C function <code>strftime</code>.
9524c9524
< This function is equivalent to the ANSI C function <code>system</code>.
> This function is equivalent to the ISO C function <code>system</code>.
9559c9559
< Calls the ANSI C function <code>exit</code> to terminate the host program.
> Calls the ISO C function <code>exit</code> 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 <code>count</code> different from zero,
< the hook is called after every <code>count</code> instructions.
> Moreover,
> with a <code>count</code> different from zero,
> the hook is called also after every <code>count</code> 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
doc/readme.html
101,102c101,102
< <A HREF="http://luaforwindows.luaforge.net/">Lua for Windows</A>,
< an easy-to-use distribution of Lua that includes many useful libraries.
> <A HREF="http://luadist.org/">LuaDist</A>,
> a multi-platform distribution of Lua that includes batteries.
113,114c113,114
< the top-level directory, which is named <TT>lua-5.2.3</TT>.
< The Makefile there controls both the build process and the installation process.
> the top-level directory, which is named <TT>lua-5.2.x</TT>.
> The <TT>Makefile</TT> 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 <TT>readline</TT> development package.
> make sure you have installed the <TT>readline</TT> development package
> (which is probably named <TT>libreadline-dev</TT> or <TT>readline-devel</TT>).
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 <TT>Makefile</TT>. You'll
161c162
< <TT>bin</TT>, <TT>include</TT>, <TT>lib</TT>, <TT>man</TT>,
> <TT>bin</TT>, <TT>include</TT>, <TT>lib</TT>, <TT>man</TT>, <TT>share</TT>,
165a167,168
> The installation starts in the <TT>src</TT> and <TT>doc</TT> directories,
> so take care if <TT>INSTALL_TOP</TT> 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 <TT>bin</TT> and <TT>man</TT>.
> The files in <TT>include</TT> and <TT>lib</TT> 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
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);
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);
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)
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);
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 */
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) */
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 <limits.h>
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))
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.
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