summaryrefslogtreecommitdiff
path: root/ltests.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-07-12 15:11:58 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-07-12 15:11:58 -0300
commitae1cf64348ca7bcb6d3abb19a0b97918e343914c (patch)
tree23bd25ec0cc4d29ad62a64fad039495fbbee8bb5 /ltests.c
parenta264fd089e1814bc13d6de924b928959af2e38d9 (diff)
downloadlua-ae1cf64348ca7bcb6d3abb19a0b97918e343914c.tar.gz
lua-ae1cf64348ca7bcb6d3abb19a0b97918e343914c.tar.bz2
lua-ae1cf64348ca7bcb6d3abb19a0b97918e343914c.zip
better names for type-related functions
Diffstat (limited to 'ltests.c')
-rw-r--r--ltests.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ltests.c b/ltests.c
index a8a1cd98..3bba2782 100644
--- a/ltests.c
+++ b/ltests.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltests.c,v 1.86 2001/06/28 19:58:57 roberto Exp roberto $ 2** $Id: ltests.c,v 1.87 2001/07/05 20:31:14 roberto Exp roberto $
3** Internal Module for Debugging of the Lua Implementation 3** Internal Module for Debugging of the Lua Implementation
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -367,8 +367,8 @@ static int udataval (lua_State *L) {
367} 367}
368 368
369static int newtag (lua_State *L) { 369static int newtag (lua_State *L) {
370 lua_pushnumber(L, lua_newxtype(L, lua_tostring(L, 1), 370 lua_pushnumber(L, lua_newtype(L, lua_tostring(L, 1),
371 (int)lua_tonumber(L, 2))); 371 (int)lua_tonumber(L, 2)));
372 return 1; 372 return 1;
373} 373}
374 374
@@ -619,7 +619,7 @@ static int testC (lua_State *L) {
619 lua_gettagmethod(L, tag, event); 619 lua_gettagmethod(L, tag, event);
620 } 620 }
621 else if EQ(l_s("type")) { 621 else if EQ(l_s("type")) {
622 lua_pushstring(L, lua_typename(L, lua_type(L, getnum))); 622 lua_pushstring(L, lua_type(L, getnum));
623 } 623 }
624 else luaL_verror(L, l_s("unknown instruction %.30s"), buff); 624 else luaL_verror(L, l_s("unknown instruction %.30s"), buff);
625 } 625 }