diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-08-21 16:12:40 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-08-21 16:12:40 -0300 |
commit | 01549fb1ed821fdb267ccd590195fc523e5eb593 (patch) | |
tree | e2633330723e3389bc993a5c3f7c744980f96198 /ldblib.c | |
parent | 4fba1174335a3eb33f057ee23a36c795d37da567 (diff) | |
download | lua-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.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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 | ||
428 | static const luaL_Reg dblib[] = { | 427 | static 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}, |