mirror of
https://github.com/lua/lua
synced 2025-04-25 06:53:02 +03:00
detail
This commit is contained in:
parent
eecc1491f3
commit
0730a56d38
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
** $Id: lstring.c,v 2.24 2012/05/11 14:14:42 roberto Exp roberto $
|
** $Id: lstring.c,v 2.25 2012/10/02 17:41:50 roberto Exp roberto $
|
||||||
** String table (keeps all strings handled by Lua)
|
** String table (keeps all strings handled by Lua)
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
@ -139,7 +139,7 @@ static TString *internshrstr (lua_State *L, const char *str, size_t l) {
|
|||||||
o = gch(o)->next) {
|
o = gch(o)->next) {
|
||||||
TString *ts = rawgco2ts(o);
|
TString *ts = rawgco2ts(o);
|
||||||
if (h == ts->tsv.hash &&
|
if (h == ts->tsv.hash &&
|
||||||
ts->tsv.len == l &&
|
l == ts->tsv.len &&
|
||||||
(memcmp(str, getstr(ts), l * sizeof(char)) == 0)) {
|
(memcmp(str, getstr(ts), l * sizeof(char)) == 0)) {
|
||||||
if (isdead(G(L), o)) /* string is dead (but was not collected yet)? */
|
if (isdead(G(L), o)) /* string is dead (but was not collected yet)? */
|
||||||
changewhite(o); /* resurrect it */
|
changewhite(o); /* resurrect it */
|
||||||
|
5
lvm.h
5
lvm.h
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
** $Id: lvm.h,v 2.16 2011/05/31 18:24:36 roberto Exp roberto $
|
** $Id: lvm.h,v 2.17 2011/05/31 18:27:56 roberto Exp roberto $
|
||||||
** Lua virtual machine
|
** Lua virtual machine
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
@ -19,8 +19,7 @@
|
|||||||
|
|
||||||
#define equalobj(L,o1,o2) (ttisequal(o1, o2) && luaV_equalobj_(L, o1, o2))
|
#define equalobj(L,o1,o2) (ttisequal(o1, o2) && luaV_equalobj_(L, o1, o2))
|
||||||
|
|
||||||
#define luaV_rawequalobj(t1,t2) \
|
#define luaV_rawequalobj(o1,o2) equalobj(NULL,o1,o2)
|
||||||
(ttisequal(t1,t2) && luaV_equalobj_(NULL,t1,t2))
|
|
||||||
|
|
||||||
|
|
||||||
/* not to called directly */
|
/* not to called directly */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user