diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-11-28 09:19:07 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-11-28 09:19:07 -0200 |
commit | dfd188ba12f22db8d31cb80426d568e97345e1e2 (patch) | |
tree | 8c4f97b82a4f44c4c4bd591570cf979f0f7d36aa /lundump.c | |
parent | 093c16b67b263e334600ed306310b9015f65fa8b (diff) | |
download | lua-github-dfd188ba12f22db8d31cb80426d568e97345e1e2.tar.gz |
detail (identation of switch)
Diffstat (limited to 'lundump.c')
-rw-r--r-- | lundump.c | 37 |
1 files changed, 18 insertions, 19 deletions
@@ -1,5 +1,5 @@ /* -** $Id: lundump.c,v 2.46 2017/06/27 14:21:12 roberto Exp roberto $ +** $Id: lundump.c,v 2.47 2017/06/29 15:06:44 roberto Exp roberto $ ** load precompiled Lua chunks ** See Copyright Notice in lua.h */ @@ -134,24 +134,23 @@ static void LoadConstants (LoadState *S, Proto *f) { TValue *o = &f->k[i]; int t = LoadByte(S); switch (t) { - case LUA_TNIL: - setnilvalue(o); - break; - case LUA_TBOOLEAN: - setbvalue(o, LoadByte(S)); - break; - case LUA_TNUMFLT: - setfltvalue(o, LoadNumber(S)); - break; - case LUA_TNUMINT: - setivalue(o, LoadInteger(S)); - break; - case LUA_TSHRSTR: - case LUA_TLNGSTR: - setsvalue2n(S->L, o, LoadString(S)); - break; - default: - lua_assert(0); + case LUA_TNIL: + setnilvalue(o); + break; + case LUA_TBOOLEAN: + setbvalue(o, LoadByte(S)); + break; + case LUA_TNUMFLT: + setfltvalue(o, LoadNumber(S)); + break; + case LUA_TNUMINT: + setivalue(o, LoadInteger(S)); + break; + case LUA_TSHRSTR: + case LUA_TLNGSTR: + setsvalue2n(S->L, o, LoadString(S)); + break; + default: lua_assert(0); } } } |