diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-07-12 11:32:08 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-07-12 11:32:08 -0300 |
commit | 80ac5e83fdc07d14c55056365aaf370436fbeb4e (patch) | |
tree | f4bf71357190c7e545a82fc48c93c03e12c9a75e | |
parent | 289b5dc67ae79423b35347ef7f8277ebc42d704a (diff) | |
download | lua-80ac5e83fdc07d14c55056365aaf370436fbeb4e.tar.gz lua-80ac5e83fdc07d14c55056365aaf370436fbeb4e.tar.bz2 lua-80ac5e83fdc07d14c55056365aaf370436fbeb4e.zip |
details (alphabetical order for list of functions)
-rw-r--r-- | ldblib.c | 14 | ||||
-rw-r--r-- | liolib.c | 12 | ||||
-rw-r--r-- | lstrlib.c | 18 | ||||
-rw-r--r-- | ltablib.c | 6 | ||||
-rw-r--r-- | ltests.c | 56 |
5 files changed, 53 insertions, 53 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldblib.c,v 1.97 2005/05/16 21:19:00 roberto Exp roberto $ | 2 | ** $Id: ldblib.c,v 1.98 2005/05/17 19:49:15 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 | */ |
@@ -366,18 +366,18 @@ static int db_errorfb (lua_State *L) { | |||
366 | 366 | ||
367 | 367 | ||
368 | static const luaL_reg dblib[] = { | 368 | static const luaL_reg dblib[] = { |
369 | {"getmetatable", db_getmetatable}, | 369 | {"debug", db_debug}, |
370 | {"setmetatable", db_setmetatable}, | ||
371 | {"getfenv", db_getfenv}, | 370 | {"getfenv", db_getfenv}, |
372 | {"setfenv", db_setfenv}, | ||
373 | {"getlocal", db_getlocal}, | ||
374 | {"getinfo", db_getinfo}, | ||
375 | {"gethook", db_gethook}, | 371 | {"gethook", db_gethook}, |
372 | {"getinfo", db_getinfo}, | ||
373 | {"getlocal", db_getlocal}, | ||
374 | {"getmetatable", db_getmetatable}, | ||
376 | {"getupvalue", db_getupvalue}, | 375 | {"getupvalue", db_getupvalue}, |
376 | {"setfenv", db_setfenv}, | ||
377 | {"sethook", db_sethook}, | 377 | {"sethook", db_sethook}, |
378 | {"setlocal", db_setlocal}, | 378 | {"setlocal", db_setlocal}, |
379 | {"setmetatable", db_setmetatable}, | ||
379 | {"setupvalue", db_setupvalue}, | 380 | {"setupvalue", db_setupvalue}, |
380 | {"debug", db_debug}, | ||
381 | {"traceback", db_errorfb}, | 381 | {"traceback", db_errorfb}, |
382 | {NULL, NULL} | 382 | {NULL, NULL} |
383 | }; | 383 | }; |
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: liolib.c,v 2.62 2005/06/06 13:30:52 roberto Exp roberto $ | 2 | ** $Id: liolib.c,v 2.63 2005/06/06 18:42:21 roberto Exp roberto $ |
3 | ** Standard I/O (and system) library | 3 | ** Standard I/O (and system) library |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -460,12 +460,12 @@ static int f_flush (lua_State *L) { | |||
460 | 460 | ||
461 | 461 | ||
462 | static const luaL_reg iolib[] = { | 462 | static const luaL_reg iolib[] = { |
463 | {"input", io_input}, | ||
464 | {"output", io_output}, | ||
465 | {"lines", io_lines}, | ||
466 | {"close", io_close}, | 463 | {"close", io_close}, |
467 | {"flush", io_flush}, | 464 | {"flush", io_flush}, |
465 | {"input", io_input}, | ||
466 | {"lines", io_lines}, | ||
468 | {"open", io_open}, | 467 | {"open", io_open}, |
468 | {"output", io_output}, | ||
469 | {"popen", io_popen}, | 469 | {"popen", io_popen}, |
470 | {"read", io_read}, | 470 | {"read", io_read}, |
471 | {"tmpfile", io_tmpfile}, | 471 | {"tmpfile", io_tmpfile}, |
@@ -476,13 +476,13 @@ static const luaL_reg iolib[] = { | |||
476 | 476 | ||
477 | 477 | ||
478 | static const luaL_reg flib[] = { | 478 | static const luaL_reg flib[] = { |
479 | {"close", io_close}, | ||
479 | {"flush", f_flush}, | 480 | {"flush", f_flush}, |
480 | {"read", f_read}, | ||
481 | {"lines", f_lines}, | 481 | {"lines", f_lines}, |
482 | {"read", f_read}, | ||
482 | {"seek", f_seek}, | 483 | {"seek", f_seek}, |
483 | {"setvbuf", f_setvbuf}, | 484 | {"setvbuf", f_setvbuf}, |
484 | {"write", f_write}, | 485 | {"write", f_write}, |
485 | {"close", io_close}, | ||
486 | {"__gc", io_gc}, | 486 | {"__gc", io_gc}, |
487 | {"__tostring", io_tostring}, | 487 | {"__tostring", io_tostring}, |
488 | {NULL, NULL} | 488 | {NULL, NULL} |
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstrlib.c,v 1.117 2005/05/31 14:25:18 roberto Exp roberto $ | 2 | ** $Id: lstrlib.c,v 1.118 2005/07/05 14:30:38 roberto Exp roberto $ |
3 | ** Standard library for string operations and pattern-matching | 3 | ** Standard library for string operations and pattern-matching |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -779,21 +779,21 @@ static int str_format (lua_State *L) { | |||
779 | 779 | ||
780 | 780 | ||
781 | static const luaL_reg strlib[] = { | 781 | static const luaL_reg strlib[] = { |
782 | {"len", str_len}, | ||
783 | {"sub", str_sub}, | ||
784 | {"reverse", str_reverse}, | ||
785 | {"lower", str_lower}, | ||
786 | {"upper", str_upper}, | ||
787 | {"char", str_char}, | ||
788 | {"rep", str_rep}, | ||
789 | {"byte", str_byte}, | 782 | {"byte", str_byte}, |
790 | {"format", str_format}, | 783 | {"char", str_char}, |
791 | {"dump", str_dump}, | 784 | {"dump", str_dump}, |
792 | {"find", str_find}, | 785 | {"find", str_find}, |
786 | {"format", str_format}, | ||
793 | {"gfind", gfind_nodef}, | 787 | {"gfind", gfind_nodef}, |
794 | {"gmatch", gmatch}, | 788 | {"gmatch", gmatch}, |
795 | {"gsub", str_gsub}, | 789 | {"gsub", str_gsub}, |
790 | {"len", str_len}, | ||
791 | {"lower", str_lower}, | ||
796 | {"match", str_match}, | 792 | {"match", str_match}, |
793 | {"rep", str_rep}, | ||
794 | {"reverse", str_reverse}, | ||
795 | {"sub", str_sub}, | ||
796 | {"upper", str_upper}, | ||
797 | {NULL, NULL} | 797 | {NULL, NULL} |
798 | }; | 798 | }; |
799 | 799 | ||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltablib.c,v 1.31 2005/05/17 19:49:15 roberto Exp roberto $ | 2 | ** $Id: ltablib.c,v 1.32 2005/07/11 18:48:02 roberto Exp roberto $ |
3 | ** Library for Table Manipulation | 3 | ** Library for Table Manipulation |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -241,10 +241,10 @@ static const luaL_reg tab_funcs[] = { | |||
241 | {"foreach", foreach}, | 241 | {"foreach", foreach}, |
242 | {"foreachi", foreachi}, | 242 | {"foreachi", foreachi}, |
243 | {"getn", getn}, | 243 | {"getn", getn}, |
244 | {"setn", setn}, | ||
245 | {"sort", sort}, | ||
246 | {"insert", tinsert}, | 244 | {"insert", tinsert}, |
247 | {"remove", tremove}, | 245 | {"remove", tremove}, |
246 | {"setn", setn}, | ||
247 | {"sort", sort}, | ||
248 | {NULL, NULL} | 248 | {NULL, NULL} |
249 | }; | 249 | }; |
250 | 250 | ||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltests.c,v 2.25 2005/05/31 14:34:02 roberto Exp roberto $ | 2 | ** $Id: ltests.c,v 2.26 2005/07/11 14:00:59 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 | */ |
@@ -719,12 +719,12 @@ static int newstate (lua_State *L) { | |||
719 | 719 | ||
720 | static int loadlib (lua_State *L) { | 720 | static int loadlib (lua_State *L) { |
721 | static const luaL_reg libs[] = { | 721 | static const luaL_reg libs[] = { |
722 | {"baselibopen", luaopen_base}, | ||
723 | {"dblibopen", luaopen_debug}, | ||
724 | {"iolibopen", luaopen_io}, | ||
722 | {"mathlibopen", luaopen_math}, | 725 | {"mathlibopen", luaopen_math}, |
723 | {"strlibopen", luaopen_string}, | 726 | {"strlibopen", luaopen_string}, |
724 | {"iolibopen", luaopen_io}, | ||
725 | {"tablibopen", luaopen_table}, | 727 | {"tablibopen", luaopen_table}, |
726 | {"dblibopen", luaopen_debug}, | ||
727 | {"baselibopen", luaopen_base}, | ||
728 | {NULL, NULL} | 728 | {NULL, NULL} |
729 | }; | 729 | }; |
730 | lua_State *L1 = cast(lua_State *, | 730 | lua_State *L1 = cast(lua_State *, |
@@ -1100,42 +1100,42 @@ static int auxsetf (lua_State *L) { | |||
1100 | 1100 | ||
1101 | 1101 | ||
1102 | static const struct luaL_reg tests_funcs[] = { | 1102 | static const struct luaL_reg tests_funcs[] = { |
1103 | {"checkmemory", lua_checkmemory}, | ||
1104 | {"closestate", closestate}, | ||
1105 | {"d2s", d2s}, | ||
1106 | {"doonnewstack", doonnewstack}, | ||
1107 | {"doremote", doremote}, | ||
1108 | {"gccolor", get_gccolor}, | ||
1109 | {"gcstate", gcstate}, | ||
1110 | {"getfield", auxgetf}, | ||
1111 | {"getref", getref}, | ||
1112 | {"gsub", auxgsub}, | ||
1103 | {"hash", hash_query}, | 1113 | {"hash", hash_query}, |
1114 | {"int2fb", int2fb_aux}, | ||
1104 | {"limits", get_limits}, | 1115 | {"limits", get_limits}, |
1105 | {"listcode", listcode}, | 1116 | {"listcode", listcode}, |
1106 | {"listk", listk}, | 1117 | {"listk", listk}, |
1107 | {"listlocals", listlocals}, | 1118 | {"listlocals", listlocals}, |
1108 | {"loadlib", loadlib}, | 1119 | {"loadlib", loadlib}, |
1109 | {"stacklevel", stacklevel}, | 1120 | {"log2", log2_aux}, |
1121 | {"newstate", newstate}, | ||
1122 | {"newuserdata", newuserdata}, | ||
1123 | {"num2int", num2int}, | ||
1124 | {"pushuserdata", pushuserdata}, | ||
1110 | {"querystr", string_query}, | 1125 | {"querystr", string_query}, |
1111 | {"querytab", table_query}, | 1126 | {"querytab", table_query}, |
1127 | {"ref", tref}, | ||
1128 | {"resume", coresume}, | ||
1129 | {"s2d", s2d}, | ||
1130 | {"setfield", auxsetf}, | ||
1131 | {"setyhook", setyhook}, | ||
1132 | {"stacklevel", stacklevel}, | ||
1112 | {"testC", testC}, | 1133 | {"testC", testC}, |
1113 | {"checkmemory", lua_checkmemory}, | 1134 | {"totalmem", mem_query}, |
1114 | {"gccolor", get_gccolor}, | ||
1115 | {"gcstate", gcstate}, | ||
1116 | {"trick", settrick}, | 1135 | {"trick", settrick}, |
1117 | {"ref", tref}, | 1136 | {"udataval", udataval}, |
1118 | {"getref", getref}, | ||
1119 | {"unref", unref}, | 1137 | {"unref", unref}, |
1120 | {"d2s", d2s}, | ||
1121 | {"s2d", s2d}, | ||
1122 | {"num2int", num2int}, | ||
1123 | {"upvalue", upvalue}, | 1138 | {"upvalue", upvalue}, |
1124 | {"newuserdata", newuserdata}, | ||
1125 | {"pushuserdata", pushuserdata}, | ||
1126 | {"udataval", udataval}, | ||
1127 | {"doonnewstack", doonnewstack}, | ||
1128 | {"newstate", newstate}, | ||
1129 | {"closestate", closestate}, | ||
1130 | {"doremote", doremote}, | ||
1131 | {"log2", log2_aux}, | ||
1132 | {"int2fb", int2fb_aux}, | ||
1133 | {"totalmem", mem_query}, | ||
1134 | {"resume", coresume}, | ||
1135 | {"setyhook", setyhook}, | ||
1136 | {"gsub", auxgsub}, | ||
1137 | {"getfield", auxgetf}, | ||
1138 | {"setfield", auxsetf}, | ||
1139 | {NULL, NULL} | 1139 | {NULL, NULL} |
1140 | }; | 1140 | }; |
1141 | 1141 | ||