diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-06-25 16:17:22 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-06-25 16:17:22 -0300 |
| commit | 35707e94f343b3f02cd642602aad00337846b9c7 (patch) | |
| tree | aa1d2486bb7ce478aa913b99e1e6871ae1a01958 | |
| parent | 89b102bd1d967656daeb337bf59ad6abeddeb613 (diff) | |
| download | lua-35707e94f343b3f02cd642602aad00337846b9c7.tar.gz lua-35707e94f343b3f02cd642602aad00337846b9c7.tar.bz2 lua-35707e94f343b3f02cd642602aad00337846b9c7.zip | |
`__weakmode' -> `__mode'
| -rw-r--r-- | ltm.c | 6 | ||||
| -rw-r--r-- | ltm.h | 4 |
2 files changed, 5 insertions, 5 deletions
| @@ -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[] = { | |||
| 26 | void luaT_init (lua_State *L) { | 26 | void 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 | */ |
| 47 | const TObject *luaT_gettm (Table *events, TMS event, TString *ename) { | 47 | const 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; |
| @@ -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, |
