Browse Source

details (alphabetical order for list of functions)

Roberto Ierusalimschy 20 years ago
parent
commit
80ac5e83fd
5 changed files with 53 additions and 53 deletions
  1. 7 7
      ldblib.c
  2. 6 6
      liolib.c
  3. 9 9
      lstrlib.c
  4. 3 3
      ltablib.c
  5. 28 28
      ltests.c

+ 7 - 7
ldblib.c

@@ -1,5 +1,5 @@
 /*
 /*
-** $Id: ldblib.c,v 1.97 2005/05/16 21:19:00 roberto Exp roberto $
+** $Id: ldblib.c,v 1.98 2005/05/17 19:49:15 roberto Exp roberto $
 ** Interface from Lua to its debug API
 ** Interface from Lua to its debug API
 ** See Copyright Notice in lua.h
 ** See Copyright Notice in lua.h
 */
 */
@@ -366,18 +366,18 @@ static int db_errorfb (lua_State *L) {
 
 
 
 
 static const luaL_reg dblib[] = {
 static const luaL_reg dblib[] = {
-  {"getmetatable", db_getmetatable},
-  {"setmetatable", db_setmetatable},
+  {"debug", db_debug},
   {"getfenv", db_getfenv},
   {"getfenv", db_getfenv},
-  {"setfenv", db_setfenv},
-  {"getlocal", db_getlocal},
-  {"getinfo", db_getinfo},
   {"gethook", db_gethook},
   {"gethook", db_gethook},
+  {"getinfo", db_getinfo},
+  {"getlocal", db_getlocal},
+  {"getmetatable", db_getmetatable},
   {"getupvalue", db_getupvalue},
   {"getupvalue", db_getupvalue},
+  {"setfenv", db_setfenv},
   {"sethook", db_sethook},
   {"sethook", db_sethook},
   {"setlocal", db_setlocal},
   {"setlocal", db_setlocal},
+  {"setmetatable", db_setmetatable},
   {"setupvalue", db_setupvalue},
   {"setupvalue", db_setupvalue},
-  {"debug", db_debug},
   {"traceback", db_errorfb},
   {"traceback", db_errorfb},
   {NULL, NULL}
   {NULL, NULL}
 };
 };

+ 6 - 6
liolib.c

@@ -1,5 +1,5 @@
 /*
 /*
-** $Id: liolib.c,v 2.62 2005/06/06 13:30:52 roberto Exp roberto $
+** $Id: liolib.c,v 2.63 2005/06/06 18:42:21 roberto Exp roberto $
 ** Standard I/O (and system) library
 ** Standard I/O (and system) library
 ** See Copyright Notice in lua.h
 ** See Copyright Notice in lua.h
 */
 */
@@ -460,12 +460,12 @@ static int f_flush (lua_State *L) {
 
 
 
 
 static const luaL_reg iolib[] = {
 static const luaL_reg iolib[] = {
-  {"input", io_input},
-  {"output", io_output},
-  {"lines", io_lines},
   {"close", io_close},
   {"close", io_close},
   {"flush", io_flush},
   {"flush", io_flush},
+  {"input", io_input},
+  {"lines", io_lines},
   {"open", io_open},
   {"open", io_open},
+  {"output", io_output},
   {"popen", io_popen},
   {"popen", io_popen},
   {"read", io_read},
   {"read", io_read},
   {"tmpfile", io_tmpfile},
   {"tmpfile", io_tmpfile},
@@ -476,13 +476,13 @@ static const luaL_reg iolib[] = {
 
 
 
 
 static const luaL_reg flib[] = {
 static const luaL_reg flib[] = {
+  {"close", io_close},
   {"flush", f_flush},
   {"flush", f_flush},
-  {"read", f_read},
   {"lines", f_lines},
   {"lines", f_lines},
+  {"read", f_read},
   {"seek", f_seek},
   {"seek", f_seek},
   {"setvbuf", f_setvbuf},
   {"setvbuf", f_setvbuf},
   {"write", f_write},
   {"write", f_write},
-  {"close", io_close},
   {"__gc", io_gc},
   {"__gc", io_gc},
   {"__tostring", io_tostring},
   {"__tostring", io_tostring},
   {NULL, NULL}
   {NULL, NULL}

+ 9 - 9
lstrlib.c

@@ -1,5 +1,5 @@
 /*
 /*
-** $Id: lstrlib.c,v 1.117 2005/05/31 14:25:18 roberto Exp roberto $
+** $Id: lstrlib.c,v 1.118 2005/07/05 14:30:38 roberto Exp roberto $
 ** Standard library for string operations and pattern-matching
 ** Standard library for string operations and pattern-matching
 ** See Copyright Notice in lua.h
 ** See Copyright Notice in lua.h
 */
 */
@@ -779,21 +779,21 @@ static int str_format (lua_State *L) {
 
 
 
 
 static const luaL_reg strlib[] = {
 static const luaL_reg strlib[] = {
-  {"len", str_len},
-  {"sub", str_sub},
-  {"reverse", str_reverse},
-  {"lower", str_lower},
-  {"upper", str_upper},
-  {"char", str_char},
-  {"rep", str_rep},
   {"byte", str_byte},
   {"byte", str_byte},
-  {"format", str_format},
+  {"char", str_char},
   {"dump", str_dump},
   {"dump", str_dump},
   {"find", str_find},
   {"find", str_find},
+  {"format", str_format},
   {"gfind", gfind_nodef},
   {"gfind", gfind_nodef},
   {"gmatch", gmatch},
   {"gmatch", gmatch},
   {"gsub", str_gsub},
   {"gsub", str_gsub},
+  {"len", str_len},
+  {"lower", str_lower},
   {"match", str_match},
   {"match", str_match},
+  {"rep", str_rep},
+  {"reverse", str_reverse},
+  {"sub", str_sub},
+  {"upper", str_upper},
   {NULL, NULL}
   {NULL, NULL}
 };
 };
 
 

+ 3 - 3
ltablib.c

@@ -1,5 +1,5 @@
 /*
 /*
-** $Id: ltablib.c,v 1.31 2005/05/17 19:49:15 roberto Exp roberto $
+** $Id: ltablib.c,v 1.32 2005/07/11 18:48:02 roberto Exp roberto $
 ** Library for Table Manipulation
 ** Library for Table Manipulation
 ** See Copyright Notice in lua.h
 ** See Copyright Notice in lua.h
 */
 */
@@ -241,10 +241,10 @@ static const luaL_reg tab_funcs[] = {
   {"foreach", foreach},
   {"foreach", foreach},
   {"foreachi", foreachi},
   {"foreachi", foreachi},
   {"getn", getn},
   {"getn", getn},
-  {"setn", setn},
-  {"sort", sort},
   {"insert", tinsert},
   {"insert", tinsert},
   {"remove", tremove},
   {"remove", tremove},
+  {"setn", setn},
+  {"sort", sort},
   {NULL, NULL}
   {NULL, NULL}
 };
 };
 
 

+ 28 - 28
ltests.c

@@ -1,5 +1,5 @@
 /*
 /*
-** $Id: ltests.c,v 2.25 2005/05/31 14:34:02 roberto Exp roberto $
+** $Id: ltests.c,v 2.26 2005/07/11 14:00:59 roberto Exp roberto $
 ** Internal Module for Debugging of the Lua Implementation
 ** Internal Module for Debugging of the Lua Implementation
 ** See Copyright Notice in lua.h
 ** See Copyright Notice in lua.h
 */
 */
@@ -719,12 +719,12 @@ static int newstate (lua_State *L) {
 
 
 static int loadlib (lua_State *L) {
 static int loadlib (lua_State *L) {
   static const luaL_reg libs[] = {
   static const luaL_reg libs[] = {
+    {"baselibopen", luaopen_base},
+    {"dblibopen", luaopen_debug},
+    {"iolibopen", luaopen_io},
     {"mathlibopen", luaopen_math},
     {"mathlibopen", luaopen_math},
     {"strlibopen", luaopen_string},
     {"strlibopen", luaopen_string},
-    {"iolibopen", luaopen_io},
     {"tablibopen", luaopen_table},
     {"tablibopen", luaopen_table},
-    {"dblibopen", luaopen_debug},
-    {"baselibopen", luaopen_base},
     {NULL, NULL}
     {NULL, NULL}
   };
   };
   lua_State *L1 = cast(lua_State *,
   lua_State *L1 = cast(lua_State *,
@@ -1100,42 +1100,42 @@ static int auxsetf (lua_State *L) {
 
 
 
 
 static const struct luaL_reg tests_funcs[] = {
 static const struct luaL_reg tests_funcs[] = {
+  {"checkmemory", lua_checkmemory},
+  {"closestate", closestate},
+  {"d2s", d2s},
+  {"doonnewstack", doonnewstack},
+  {"doremote", doremote},
+  {"gccolor", get_gccolor},
+  {"gcstate", gcstate},
+  {"getfield", auxgetf},
+  {"getref", getref},
+  {"gsub", auxgsub},
   {"hash", hash_query},
   {"hash", hash_query},
+  {"int2fb", int2fb_aux},
   {"limits", get_limits},
   {"limits", get_limits},
   {"listcode", listcode},
   {"listcode", listcode},
   {"listk", listk},
   {"listk", listk},
   {"listlocals", listlocals},
   {"listlocals", listlocals},
   {"loadlib", loadlib},
   {"loadlib", loadlib},
-  {"stacklevel", stacklevel},
+  {"log2", log2_aux},
+  {"newstate", newstate},
+  {"newuserdata", newuserdata},
+  {"num2int", num2int},
+  {"pushuserdata", pushuserdata},
   {"querystr", string_query},
   {"querystr", string_query},
   {"querytab", table_query},
   {"querytab", table_query},
+  {"ref", tref},
+  {"resume", coresume},
+  {"s2d", s2d},
+  {"setfield", auxsetf},
+  {"setyhook", setyhook},
+  {"stacklevel", stacklevel},
   {"testC", testC},
   {"testC", testC},
-  {"checkmemory", lua_checkmemory},
-  {"gccolor", get_gccolor},
-  {"gcstate", gcstate},
+  {"totalmem", mem_query},
   {"trick", settrick},
   {"trick", settrick},
-  {"ref", tref},
-  {"getref", getref},
+  {"udataval", udataval},
   {"unref", unref},
   {"unref", unref},
-  {"d2s", d2s},
-  {"s2d", s2d},
-  {"num2int", num2int},
   {"upvalue", upvalue},
   {"upvalue", upvalue},
-  {"newuserdata", newuserdata},
-  {"pushuserdata", pushuserdata},
-  {"udataval", udataval},
-  {"doonnewstack", doonnewstack},
-  {"newstate", newstate},
-  {"closestate", closestate},
-  {"doremote", doremote},
-  {"log2", log2_aux},
-  {"int2fb", int2fb_aux},
-  {"totalmem", mem_query},
-  {"resume", coresume},
-  {"setyhook", setyhook},
-  {"gsub", auxgsub},
-  {"getfield", auxgetf},
-  {"setfield", auxsetf},
   {NULL, NULL}
   {NULL, NULL}
 };
 };