aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-06-25 16:17:22 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-06-25 16:17:22 -0300
commit35707e94f343b3f02cd642602aad00337846b9c7 (patch)
treeaa1d2486bb7ce478aa913b99e1e6871ae1a01958
parent89b102bd1d967656daeb337bf59ad6abeddeb613 (diff)
downloadlua-35707e94f343b3f02cd642602aad00337846b9c7.tar.gz
lua-35707e94f343b3f02cd642602aad00337846b9c7.tar.bz2
lua-35707e94f343b3f02cd642602aad00337846b9c7.zip
`__weakmode' -> `__mode'
-rw-r--r--ltm.c6
-rw-r--r--ltm.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/ltm.c b/ltm.c
index 25bebc82..580936e1 100644
--- a/ltm.c
+++ b/ltm.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltm.c,v 1.95 2002/06/13 13:39:55 roberto Exp roberto $ 2** $Id: ltm.c,v 1.96 2002/06/24 20:17:59 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*/
@@ -26,7 +26,7 @@ const char *const luaT_typenames[] = {
26void luaT_init (lua_State *L) { 26void luaT_init (lua_State *L) {
27 static const char *const luaT_eventname[] = { /* ORDER TM */ 27 static const char *const luaT_eventname[] = { /* ORDER TM */
28 "__index", "__newindex", 28 "__index", "__newindex",
29 "__gc", "__eq", "__weakmode", 29 "__gc", "__eq", "__mode",
30 "__gettable", "__settable", 30 "__gettable", "__settable",
31 "__add", "__sub", "__mul", "__div", 31 "__add", "__sub", "__mul", "__div",
32 "__pow", "__unm", "__lt", "__le", 32 "__pow", "__unm", "__lt", "__le",
@@ -46,7 +46,7 @@ void luaT_init (lua_State *L) {
46*/ 46*/
47const TObject *luaT_gettm (Table *events, TMS event, TString *ename) { 47const TObject *luaT_gettm (Table *events, TMS event, TString *ename) {
48 const TObject *tm = luaH_getstr(events, ename); 48 const TObject *tm = luaH_getstr(events, ename);
49 lua_assert(event <= TM_WEAKMODE); 49 lua_assert(event <= TM_MODE);
50 if (ttype(tm) == LUA_TNIL) { /* no tag method? */ 50 if (ttype(tm) == LUA_TNIL) { /* no tag method? */
51 events->flags |= (1u<<event); /* cache this fact */ 51 events->flags |= (1u<<event); /* cache this fact */
52 return NULL; 52 return NULL;
diff --git a/ltm.h b/ltm.h
index b0d6439a..c99bd59d 100644
--- a/ltm.h
+++ b/ltm.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltm.h,v 1.35 2002/06/13 13:39:55 roberto Exp roberto $ 2** $Id: ltm.h,v 1.36 2002/06/24 20:17:59 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*/
@@ -19,7 +19,7 @@ typedef enum {
19 TM_NEWINDEX, 19 TM_NEWINDEX,
20 TM_GC, 20 TM_GC,
21 TM_EQ, 21 TM_EQ,
22 TM_WEAKMODE, /* last tag method with `fast' access */ 22 TM_MODE, /* last tag method with `fast' access */
23 TM_GETTABLE, 23 TM_GETTABLE,
24 TM_SETTABLE, 24 TM_SETTABLE,
25 TM_ADD, 25 TM_ADD,