Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 063d4e4

Browse files
committed
Lua 5.3.5 ported to git
This is the first commit for the branch Lua 5.3. All source files were copied from the official distribution of 5.3.5 in the Lua site. The test files are the same of 5.3.4. The manual came from the previous RCS repository, revision 1.167.1.2.
1 parent e354c63 commit 063d4e4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+21665
-87
lines changed

all

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
cd testes
2+
ulimit -S -s 2000
3+
if { ../lua all.lua; } then
4+
echo -e "\n\n final OK!!!!\n\n"
5+
else
6+
echo -e "\n\n >>>> BUG!!!!\n\n"
7+
fi

lapi.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
** $Id: lapi.c,v 2.258 2016/01/05 16:07:21 roberto Exp roberto $
2+
** $Id: lapi.c,v 2.259.1.2 2017/12/06 18:35:12 roberto Exp $
33
** Lua API
44
** See Copyright Notice in lua.h
55
*/
@@ -533,6 +533,7 @@ LUA_API void lua_pushcclosure (lua_State *L, lua_CFunction fn, int n) {
533533
lua_lock(L);
534534
if (n == 0) {
535535
setfvalue(L->top, fn);
536+
api_incr_top(L);
536537
}
537538
else {
538539
CClosure *cl;
@@ -546,9 +547,9 @@ LUA_API void lua_pushcclosure (lua_State *L, lua_CFunction fn, int n) {
546547
/* does not need barrier because closure is white */
547548
}
548549
setclCvalue(L, L->top, cl);
550+
api_incr_top(L);
551+
luaC_checkGC(L);
549552
}
550-
api_incr_top(L);
551-
luaC_checkGC(L);
552553
lua_unlock(L);
553554
}
554555

lapi.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
** $Id: lapi.h,v 2.8 2014/07/15 21:26:50 roberto Exp roberto $
2+
** $Id: lapi.h,v 2.9.1.1 2017/04/19 17:20:42 roberto Exp $
33
** Auxiliary functions from Lua API
44
** See Copyright Notice in lua.h
55
*/

lauxlib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
** $Id: lauxlib.c,v 1.288 2016/12/04 20:17:24 roberto Exp roberto $
2+
** $Id: lauxlib.c,v 1.289.1.1 2017/04/19 17:20:42 roberto Exp $
33
** Auxiliary functions for building Lua libraries
44
** See Copyright Notice in lua.h
55
*/

lauxlib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
** $Id: lauxlib.h,v 1.130 2016/12/04 20:17:24 roberto Exp roberto $
2+
** $Id: lauxlib.h,v 1.131.1.1 2017/04/19 17:20:42 roberto Exp $
33
** Auxiliary functions for building Lua libraries
44
** See Copyright Notice in lua.h
55
*/

lbaselib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
** $Id: lbaselib.c,v 1.313 2016/04/11 19:18:40 roberto Exp roberto $
2+
** $Id: lbaselib.c,v 1.314.1.1 2017/04/19 17:39:34 roberto Exp $
33
** Basic library
44
** See Copyright Notice in lua.h
55
*/

lbitlib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
** $Id: lbitlib.c,v 1.29 2015/10/08 15:55:35 roberto Exp roberto $
2+
** $Id: lbitlib.c,v 1.30.1.1 2017/04/19 17:20:42 roberto Exp $
33
** Standard library for bitwise operations
44
** See Copyright Notice in lua.h
55
*/

lcode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
** $Id: lcode.c,v 2.111 2016/07/19 17:12:07 roberto Exp roberto $
2+
** $Id: lcode.c,v 2.112.1.1 2017/04/19 17:20:42 roberto Exp $
33
** Code generator for Lua
44
** See Copyright Notice in lua.h
55
*/

lcode.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
** $Id: lcode.h,v 1.63 2013/12/30 20:47:58 roberto Exp roberto $
2+
** $Id: lcode.h,v 1.64.1.1 2017/04/19 17:20:42 roberto Exp $
33
** Code generator for Lua
44
** See Copyright Notice in lua.h
55
*/

lcorolib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
** $Id: lcorolib.c,v 1.9 2014/11/02 19:19:04 roberto Exp roberto $
2+
** $Id: lcorolib.c,v 1.10.1.1 2017/04/19 17:20:42 roberto Exp $
33
** Coroutine Library
44
** See Copyright Notice in lua.h
55
*/

0 commit comments

Comments
 (0)