1 |
mabi 10/02/23 12:19:36 |
2 |
|
3 |
Added: 03_all_debug_getfenv.upstream.patch |
4 |
04_all_gc_performance.upstream.patch |
5 |
Log: |
6 |
add upstream patches |
7 |
(Portage version: 2.1.7.16/cvs/Linux i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 dev-lang/lua/files/5.1.4/03_all_debug_getfenv.upstream.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/lua/files/5.1.4/03_all_debug_getfenv.upstream.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/lua/files/5.1.4/03_all_debug_getfenv.upstream.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: 03_all_debug_getfenv.upstream.patch |
16 |
=================================================================== |
17 |
--- lua-5.1.4.orig/src/ldblib.c 2007/12/28 15:32:23 2.63.1.3 |
18 |
+++ lua-5.1.4/src/ldblib.c 2010/02/23 12:36:59 |
19 |
@@ -45,6 +45,7 @@ |
20 |
|
21 |
|
22 |
static int db_getfenv (lua_State *L) { |
23 |
+ luaL_checkany(L, 1); |
24 |
lua_getfenv(L, 1); |
25 |
return 1; |
26 |
} |
27 |
|
28 |
|
29 |
|
30 |
1.1 dev-lang/lua/files/5.1.4/04_all_gc_performance.upstream.patch |
31 |
|
32 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/lua/files/5.1.4/04_all_gc_performance.upstream.patch?rev=1.1&view=markup |
33 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/lua/files/5.1.4/04_all_gc_performance.upstream.patch?rev=1.1&content-type=text/plain |
34 |
|
35 |
Index: 04_all_gc_performance.upstream.patch |
36 |
=================================================================== |
37 |
--- lua-5.1.4.orig/src/llex.c 2007/12/28 15:32:23 2.63.1.3 |
38 |
+++ lua-5.1.4/src/llex.c 2010/02/23 12:36:59 |
39 |
@@ -118,8 +118,10 @@ |
40 |
lua_State *L = ls->L; |
41 |
TString *ts = luaS_newlstr(L, str, l); |
42 |
TValue *o = luaH_setstr(L, ls->fs->h, ts); /* entry for `str' */ |
43 |
- if (ttisnil(o)) |
44 |
+ if (ttisnil(o)) { |
45 |
setbvalue(o, 1); /* make sure `str' will not be collected */ |
46 |
+ luaC_checkGC(L); |
47 |
+ } |
48 |
return ts; |
49 |
} |