summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ldblib.c14
-rw-r--r--liolib.c12
-rw-r--r--lstrlib.c18
-rw-r--r--ltablib.c6
-rw-r--r--ltests.c56
5 files changed, 53 insertions, 53 deletions
diff --git a/ldblib.c b/ldblib.c
index 824ae680..ac516ca8 100644
--- a/ldblib.c
+++ b/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
** See Copyright Notice in lua.h
*/
@@ -366,18 +366,18 @@ static int db_errorfb (lua_State *L) {
static const luaL_reg dblib[] = {
- {"getmetatable", db_getmetatable},
- {"setmetatable", db_setmetatable},
+ {"debug", db_debug},
{"getfenv", db_getfenv},
- {"setfenv", db_setfenv},
- {"getlocal", db_getlocal},
- {"getinfo", db_getinfo},
{"gethook", db_gethook},
+ {"getinfo", db_getinfo},
+ {"getlocal", db_getlocal},
+ {"getmetatable", db_getmetatable},
{"getupvalue", db_getupvalue},
+ {"setfenv", db_setfenv},
{"sethook", db_sethook},
{"setlocal", db_setlocal},
+ {"setmetatable", db_setmetatable},
{"setupvalue", db_setupvalue},
- {"debug", db_debug},
{"traceback", db_errorfb},
{NULL, NULL}
};
diff --git a/liolib.c b/liolib.c
index ed641a26..3f5771ad 100644
--- a/liolib.c
+++ b/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
** See Copyright Notice in lua.h
*/
@@ -460,12 +460,12 @@ static int f_flush (lua_State *L) {
static const luaL_reg iolib[] = {
- {"input", io_input},
- {"output", io_output},
- {"lines", io_lines},
{"close", io_close},
{"flush", io_flush},
+ {"input", io_input},
+ {"lines", io_lines},
{"open", io_open},
+ {"output", io_output},
{"popen", io_popen},
{"read", io_read},
{"tmpfile", io_tmpfile},
@@ -476,13 +476,13 @@ static const luaL_reg iolib[] = {
static const luaL_reg flib[] = {
+ {"close", io_close},
{"flush", f_flush},
- {"read", f_read},
{"lines", f_lines},
+ {"read", f_read},
{"seek", f_seek},
{"setvbuf", f_setvbuf},
{"write", f_write},
- {"close", io_close},
{"__gc", io_gc},
{"__tostring", io_tostring},
{NULL, NULL}
diff --git a/lstrlib.c b/lstrlib.c
index 149db248..25aa7748 100644
--- a/lstrlib.c
+++ b/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
** See Copyright Notice in lua.h
*/
@@ -779,21 +779,21 @@ static int str_format (lua_State *L) {
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},
- {"format", str_format},
+ {"char", str_char},
{"dump", str_dump},
{"find", str_find},
+ {"format", str_format},
{"gfind", gfind_nodef},
{"gmatch", gmatch},
{"gsub", str_gsub},
+ {"len", str_len},
+ {"lower", str_lower},
{"match", str_match},
+ {"rep", str_rep},
+ {"reverse", str_reverse},
+ {"sub", str_sub},
+ {"upper", str_upper},
{NULL, NULL}
};
diff --git a/ltablib.c b/ltablib.c
index 578c1264..a9182d25 100644
--- a/ltablib.c
+++ b/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
** See Copyright Notice in lua.h
*/
@@ -241,10 +241,10 @@ static const luaL_reg tab_funcs[] = {
{"foreach", foreach},
{"foreachi", foreachi},
{"getn", getn},
- {"setn", setn},
- {"sort", sort},
{"insert", tinsert},
{"remove", tremove},
+ {"setn", setn},
+ {"sort", sort},
{NULL, NULL}
};
diff --git a/ltests.c b/ltests.c
index 900f349e..a6d39b7b 100644
--- a/ltests.c
+++ b/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
** See Copyright Notice in lua.h
*/
@@ -719,12 +719,12 @@ static int newstate (lua_State *L) {
static int loadlib (lua_State *L) {
static const luaL_reg libs[] = {
+ {"baselibopen", luaopen_base},
+ {"dblibopen", luaopen_debug},
+ {"iolibopen", luaopen_io},
{"mathlibopen", luaopen_math},
{"strlibopen", luaopen_string},
- {"iolibopen", luaopen_io},
{"tablibopen", luaopen_table},
- {"dblibopen", luaopen_debug},
- {"baselibopen", luaopen_base},
{NULL, NULL}
};
lua_State *L1 = cast(lua_State *,
@@ -1100,42 +1100,42 @@ static int auxsetf (lua_State *L) {
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},
+ {"int2fb", int2fb_aux},
{"limits", get_limits},
{"listcode", listcode},
{"listk", listk},
{"listlocals", listlocals},
{"loadlib", loadlib},
- {"stacklevel", stacklevel},
+ {"log2", log2_aux},
+ {"newstate", newstate},
+ {"newuserdata", newuserdata},
+ {"num2int", num2int},
+ {"pushuserdata", pushuserdata},
{"querystr", string_query},
{"querytab", table_query},
+ {"ref", tref},
+ {"resume", coresume},
+ {"s2d", s2d},
+ {"setfield", auxsetf},
+ {"setyhook", setyhook},
+ {"stacklevel", stacklevel},
{"testC", testC},
- {"checkmemory", lua_checkmemory},
- {"gccolor", get_gccolor},
- {"gcstate", gcstate},
+ {"totalmem", mem_query},
{"trick", settrick},
- {"ref", tref},
- {"getref", getref},
+ {"udataval", udataval},
{"unref", unref},
- {"d2s", d2s},
- {"s2d", s2d},
- {"num2int", num2int},
{"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}
};