diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-01-13 14:18:25 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-01-13 14:18:25 -0200 |
commit | 070d3743a7892ec6429000c8309b72bfb0600d19 (patch) | |
tree | 6922c5b887e36400d6d1a9971d2b831799d9a2be /ltm.h | |
parent | 0c7de97d47074b82dd08e67443e78dcee1241277 (diff) | |
download | lua-070d3743a7892ec6429000c8309b72bfb0600d19.tar.gz lua-070d3743a7892ec6429000c8309b72bfb0600d19.tar.bz2 lua-070d3743a7892ec6429000c8309b72bfb0600d19.zip |
"no value" added to array luaT_typenames + occurrences of "userdata"
in that array unified in a single address
Diffstat (limited to 'ltm.h')
-rw-r--r-- | ltm.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltm.h,v 2.7 2007/09/10 17:59:32 roberto Exp roberto $ | 2 | ** $Id: ltm.h,v 2.8 2009/11/19 19:06:52 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,9 @@ typedef enum { | |||
43 | 43 | ||
44 | #define fasttm(l,et,e) gfasttm(G(l), et, e) | 44 | #define fasttm(l,et,e) gfasttm(G(l), et, e) |
45 | 45 | ||
46 | LUAI_DDEC const char *const luaT_typenames[]; | 46 | #define typename(x) luaT_typenames_[(x) + 1] |
47 | |||
48 | LUAI_DDEC const char *const luaT_typenames_[]; | ||
47 | 49 | ||
48 | 50 | ||
49 | LUAI_FUNC const TValue *luaT_gettm (Table *events, TMS event, TString *ename); | 51 | LUAI_FUNC const TValue *luaT_gettm (Table *events, TMS event, TString *ename); |