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.c | |
| 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.c')
| -rw-r--r-- | ltm.c | 10 |
1 files changed, 6 insertions, 4 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ltm.c,v 2.9 2007/09/10 17:59:32 roberto Exp roberto $ | 2 | ** $Id: ltm.c,v 2.10 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 | */ |
| @@ -19,10 +19,12 @@ | |||
| 19 | #include "ltm.h" | 19 | #include "ltm.h" |
| 20 | 20 | ||
| 21 | 21 | ||
| 22 | static const char udatatypename[] = "userdata"; | ||
| 22 | 23 | ||
| 23 | LUAI_DDEF const char *const luaT_typenames[] = { | 24 | LUAI_DDEF const char *const luaT_typenames_[] = { |
| 24 | "nil", "boolean", "userdata", "number", | 25 | "no value", |
| 25 | "string", "table", "function", "userdata", "thread", | 26 | "nil", "boolean", udatatypename, "number", |
| 27 | "string", "table", "function", udatatypename, "thread", | ||
| 26 | "proto", "upval" | 28 | "proto", "upval" |
| 27 | }; | 29 | }; |
| 28 | 30 | ||
