diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-09-21 11:18:43 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-09-21 11:18:43 -0300 |
commit | 857a1204d8df62c20adab201329445f335c4066e (patch) | |
tree | e96659e259182c1ef0e235c48b053e86d3b05d9b | |
parent | d742b88fa1afdeb47c6aff4a623a98425088dbda (diff) | |
download | lua-857a1204d8df62c20adab201329445f335c4066e.tar.gz lua-857a1204d8df62c20adab201329445f335c4066e.tar.bz2 lua-857a1204d8df62c20adab201329445f335c4066e.zip |
by lhf
-rw-r--r-- | lundump.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lundump.c,v 1.31 2000/09/19 18:18:38 lhf Exp $ | 2 | ** $Id: lundump.c,v 1.32 2000/09/21 03:15:36 lhf Exp $ |
3 | ** load bytecodes from files | 3 | ** load bytecodes from files |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -177,7 +177,7 @@ static void TestSize (lua_State* L, int s, const char* what, ZIO* Z) | |||
177 | int r=ezgetc(L,Z); | 177 | int r=ezgetc(L,Z); |
178 | if (r!=s) | 178 | if (r!=s) |
179 | luaO_verror(L,"virtual machine mismatch in `%.255s':\n" | 179 | luaO_verror(L,"virtual machine mismatch in `%.255s':\n" |
180 | " %s is %d but read %d",ZNAME(Z),what,r,s); | 180 | " %s is %d but read %d",ZNAME(Z),what,s,r); |
181 | } | 181 | } |
182 | 182 | ||
183 | #define TESTSIZE(s) TestSize(L,s,#s,Z) | 183 | #define TESTSIZE(s) TestSize(L,s,#s,Z) |
@@ -198,7 +198,6 @@ static int LoadHeader (lua_State* L, ZIO* Z) | |||
198 | " read version %d.%d; expected at least %d.%d", | 198 | " read version %d.%d; expected at least %d.%d", |
199 | ZNAME(Z),V(version),V(VERSION)); | 199 | ZNAME(Z),V(version),V(VERSION)); |
200 | swap=(luaU_endianess()!=ezgetc(L,Z)); /* need to swap bytes? */ | 200 | swap=(luaU_endianess()!=ezgetc(L,Z)); /* need to swap bytes? */ |
201 | if (swap) puts("swap!"); | ||
202 | TESTSIZE(sizeof(int)); | 201 | TESTSIZE(sizeof(int)); |
203 | TESTSIZE(sizeof(size_t)); | 202 | TESTSIZE(sizeof(size_t)); |
204 | TESTSIZE(sizeof(Instruction)); | 203 | TESTSIZE(sizeof(Instruction)); |