diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-02-26 11:16:05 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-02-26 11:16:05 -0300 |
commit | ef8263f81fdde2310ebb15c9a3fe5e954d57cab5 (patch) | |
tree | 8532d24bcfc4c59212616bdae1b25f087f1eb179 /ldump.c | |
parent | 2952bc5fc9cdc05ed061539cb7be26899513f004 (diff) | |
download | lua-ef8263f81fdde2310ebb15c9a3fe5e954d57cab5.tar.gz lua-ef8263f81fdde2310ebb15c9a3fe5e954d57cab5.tar.bz2 lua-ef8263f81fdde2310ebb15c9a3fe5e954d57cab5.zip |
better names for macros for tags and types.
rttype -> rawtt; ttyperaw -> withvariant; ttype -> ttypetag;
tnov -> ttype
Diffstat (limited to 'ldump.c')
-rw-r--r-- | ldump.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldump.c,v 2.39 2017/06/27 14:21:12 roberto Exp roberto $ | 2 | ** $Id: ldump.c,v 2.40 2017/11/28 11:19:07 roberto Exp roberto $ |
3 | ** save precompiled Lua chunks | 3 | ** save precompiled Lua chunks |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -111,8 +111,8 @@ static void DumpConstants (const Proto *f, DumpState *D) { | |||
111 | DumpInt(n, D); | 111 | DumpInt(n, D); |
112 | for (i = 0; i < n; i++) { | 112 | for (i = 0; i < n; i++) { |
113 | const TValue *o = &f->k[i]; | 113 | const TValue *o = &f->k[i]; |
114 | DumpByte(ttype(o), D); | 114 | DumpByte(ttypetag(o), D); |
115 | switch (ttype(o)) { | 115 | switch (ttypetag(o)) { |
116 | case LUA_TNIL: | 116 | case LUA_TNIL: |
117 | break; | 117 | break; |
118 | case LUA_TBOOLEAN: | 118 | case LUA_TBOOLEAN: |