aboutsummaryrefslogtreecommitdiff
path: root/ldblib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-08-21 16:12:40 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-08-21 16:12:40 -0300
commit01549fb1ed821fdb267ccd590195fc523e5eb593 (patch)
treee2633330723e3389bc993a5c3f7c744980f96198 /ldblib.c
parent4fba1174335a3eb33f057ee23a36c795d37da567 (diff)
downloadlua-01549fb1ed821fdb267ccd590195fc523e5eb593.tar.gz
lua-01549fb1ed821fdb267ccd590195fc523e5eb593.tar.bz2
lua-01549fb1ed821fdb267ccd590195fc523e5eb593.zip
'Csize' -> 'sizeof' + removed its 'b' option
Diffstat (limited to 'ldblib.c')
-rw-r--r--ldblib.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/ldblib.c b/ldblib.c
index 7a9f3fbb..e95457aa 100644
--- a/ldblib.c
+++ b/ldblib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldblib.c,v 1.138 2014/04/30 18:59:15 roberto Exp roberto $ 2** $Id: ldblib.c,v 1.139 2014/05/15 19:27:33 roberto Exp roberto $
3** Interface from Lua to its debug API 3** Interface from Lua to its debug API
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -28,7 +28,6 @@ static int db_Csize (lua_State *L) {
28 } sizes[] = { 28 } sizes[] = {
29 {'I', sizeof(lua_Integer)}, 29 {'I', sizeof(lua_Integer)},
30 {'F', sizeof(lua_Number)}, 30 {'F', sizeof(lua_Number)},
31 {'b', CHAR_BIT}, /* here is number of bits (not bytes) */
32 {'h', sizeof(short)}, 31 {'h', sizeof(short)},
33 {'i', sizeof(int)}, 32 {'i', sizeof(int)},
34 {'l', sizeof(long)}, 33 {'l', sizeof(long)},
@@ -426,7 +425,7 @@ static int db_traceback (lua_State *L) {
426 425
427 426
428static const luaL_Reg dblib[] = { 427static const luaL_Reg dblib[] = {
429 {"Csize", db_Csize}, 428 {"sizeof", db_Csize},
430 {"debug", db_debug}, 429 {"debug", db_debug},
431 {"getuservalue", db_getuservalue}, 430 {"getuservalue", db_getuservalue},
432 {"gethook", db_gethook}, 431 {"gethook", db_gethook},