diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-08-21 17:09:51 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-08-21 17:09:51 -0300 |
| commit | 0df6635711230ab306710056f621b6da59fac5ea (patch) | |
| tree | d8ae245fc35157219a54407d9af6a52b42922ce1 /ltm.c | |
| parent | ae800656c9f82b54f6fae1497022d3484ad0c920 (diff) | |
| download | lua-0df6635711230ab306710056f621b6da59fac5ea.tar.gz lua-0df6635711230ab306710056f621b6da59fac5ea.tar.bz2 lua-0df6635711230ab306710056f621b6da59fac5ea.zip | |
"fixed" objects kept in a separated list (instead of being kept in
'allgc' list with a bit marking them)
Diffstat (limited to 'ltm.c')
| -rw-r--r-- | ltm.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ltm.c,v 2.19 2013/04/29 16:56:50 roberto Exp roberto $ | 2 | ** $Id: ltm.c,v 2.20 2013/05/06 17:19:11 roberto Exp roberto $ |
| 3 | ** Tag methods | 3 | ** Tag methods |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -43,7 +43,7 @@ void luaT_init (lua_State *L) { | |||
| 43 | int i; | 43 | int i; |
| 44 | for (i=0; i<TM_N; i++) { | 44 | for (i=0; i<TM_N; i++) { |
| 45 | G(L)->tmname[i] = luaS_new(L, luaT_eventname[i]); | 45 | G(L)->tmname[i] = luaS_new(L, luaT_eventname[i]); |
| 46 | luaS_fix(G(L)->tmname[i]); /* never collect these names */ | 46 | luaC_fix(L, obj2gco(G(L)->tmname[i])); /* never collect these names */ |
| 47 | } | 47 | } |
| 48 | } | 48 | } |
| 49 | 49 | ||
