aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-02-02 17:02:40 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-02-02 17:02:40 -0200
commit7e3d3e1f70b75f0d5d8b5e3b240404a9f9adbcf1 (patch)
tree451d2bd1999ab7a333220568eb85950b4b04b893
parent1f9e3731d17df79461a0dc57cc9bd159c70ac56f (diff)
downloadlua-7e3d3e1f70b75f0d5d8b5e3b240404a9f9adbcf1.tar.gz
lua-7e3d3e1f70b75f0d5d8b5e3b240404a9f9adbcf1.tar.bz2
lua-7e3d3e1f70b75f0d5d8b5e3b240404a9f9adbcf1.zip
details
-rw-r--r--lauxlib.c4
-rw-r--r--lauxlib.h8
-rw-r--r--lbaselib.c6
-rw-r--r--ldblib.c4
-rw-r--r--liolib.c4
-rw-r--r--lmathlib.c4
-rw-r--r--lstrlib.c4
7 files changed, 17 insertions, 17 deletions
diff --git a/lauxlib.c b/lauxlib.c
index ab7609e6..8920ac9c 100644
--- a/lauxlib.c
+++ b/lauxlib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lauxlib.c,v 1.44 2000/12/04 18:33:40 roberto Exp roberto $ 2** $Id: lauxlib.c,v 1.45 2001/01/25 16:45:36 roberto Exp roberto $
3** Auxiliary functions for building Lua libraries 3** Auxiliary functions for building Lua libraries
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -110,7 +110,7 @@ LUALIB_API lua_Number luaL_opt_number (lua_State *L, int narg, lua_Number def) {
110} 110}
111 111
112 112
113LUALIB_API void luaL_openlib (lua_State *L, const struct luaL_reg *l, int n) { 113LUALIB_API void luaL_openlib (lua_State *L, const luaL_reg *l, int n) {
114 int i; 114 int i;
115 for (i=0; i<n; i++) 115 for (i=0; i<n; i++)
116 lua_register(L, l[i].name, l[i].func); 116 lua_register(L, l[i].name, l[i].func);
diff --git a/lauxlib.h b/lauxlib.h
index c7545ba3..f5cffa79 100644
--- a/lauxlib.h
+++ b/lauxlib.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lauxlib.h,v 1.31 2000/12/04 18:33:40 roberto Exp roberto $ 2** $Id: lauxlib.h,v 1.32 2001/01/25 16:45:36 roberto Exp roberto $
3** Auxiliary functions for building Lua libraries 3** Auxiliary functions for building Lua libraries
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -20,13 +20,13 @@
20#endif 20#endif
21 21
22 22
23struct luaL_reg { 23typedef struct luaL_reg {
24 const char *name; 24 const char *name;
25 lua_CFunction func; 25 lua_CFunction func;
26}; 26} luaL_reg;
27 27
28 28
29LUALIB_API void luaL_openlib (lua_State *L, const struct luaL_reg *l, int n); 29LUALIB_API void luaL_openlib (lua_State *L, const luaL_reg *l, int n);
30LUALIB_API void luaL_argerror (lua_State *L, int numarg, const char *extramsg); 30LUALIB_API void luaL_argerror (lua_State *L, int numarg, const char *extramsg);
31LUALIB_API const char *luaL_check_lstr (lua_State *L, int numArg, size_t *len); 31LUALIB_API const char *luaL_check_lstr (lua_State *L, int numArg, size_t *len);
32LUALIB_API const char *luaL_opt_lstr (lua_State *L, int numArg, const char *def, size_t *len); 32LUALIB_API const char *luaL_opt_lstr (lua_State *L, int numArg, const char *def, size_t *len);
diff --git a/lbaselib.c b/lbaselib.c
index 997dcb84..17ce4506 100644
--- a/lbaselib.c
+++ b/lbaselib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lbaselib.c,v 1.19 2001/01/25 16:45:36 roberto Exp roberto $ 2** $Id: lbaselib.c,v 1.20 2001/01/31 19:53:01 roberto Exp roberto $
3** Basic library 3** Basic library
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -576,7 +576,7 @@ static int luaB_sort (lua_State *L) {
576 576
577#define num_deprecated 4 577#define num_deprecated 4
578 578
579static const struct luaL_reg deprecated_names [num_deprecated] = { 579static const luaL_reg deprecated_names [num_deprecated] = {
580 {"foreachvar", luaB_foreach}, 580 {"foreachvar", luaB_foreach},
581 {"nextvar", luaB_next}, 581 {"nextvar", luaB_next},
582 {"rawgetglobal", luaB_rawget}, 582 {"rawgetglobal", luaB_rawget},
@@ -632,7 +632,7 @@ static void deprecated_funcs (lua_State *L) {
632 632
633/* }====================================================== */ 633/* }====================================================== */
634 634
635static const struct luaL_reg base_funcs[] = { 635static const luaL_reg base_funcs[] = {
636 {LUA_ALERT, luaB__ALERT}, 636 {LUA_ALERT, luaB__ALERT},
637 {LUA_ERRORMESSAGE, luaB__ERRORMESSAGE}, 637 {LUA_ERRORMESSAGE, luaB__ERRORMESSAGE},
638 {"call", luaB_call}, 638 {"call", luaB_call},
diff --git a/ldblib.c b/ldblib.c
index 6898a3f9..73024335 100644
--- a/ldblib.c
+++ b/ldblib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldblib.c,v 1.30 2000/11/23 13:47:39 roberto Exp roberto $ 2** $Id: ldblib.c,v 1.31 2001/01/10 16:58:11 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*/
@@ -173,7 +173,7 @@ static int setlinehook (lua_State *L) {
173} 173}
174 174
175 175
176static const struct luaL_reg dblib[] = { 176static const luaL_reg dblib[] = {
177 {"getlocal", getlocal}, 177 {"getlocal", getlocal},
178 {"getinfo", getinfo}, 178 {"getinfo", getinfo},
179 {"setcallhook", setcallhook}, 179 {"setcallhook", setcallhook},
diff --git a/liolib.c b/liolib.c
index cb3325f0..2c1b75c7 100644
--- a/liolib.c
+++ b/liolib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: liolib.c,v 1.101 2001/01/26 11:45:51 roberto Exp roberto $ 2** $Id: liolib.c,v 1.102 2001/01/26 12:12:16 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*/
@@ -644,7 +644,7 @@ static int errorfb (lua_State *L) {
644 644
645 645
646 646
647static const struct luaL_reg iolib[] = { 647static const luaL_reg iolib[] = {
648 {"appendto", io_appendto}, 648 {"appendto", io_appendto},
649 {"clock", io_clock}, 649 {"clock", io_clock},
650 {"closefile", io_close}, 650 {"closefile", io_close},
diff --git a/lmathlib.c b/lmathlib.c
index e1c3def8..92a54f1f 100644
--- a/lmathlib.c
+++ b/lmathlib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lmathlib.c,v 1.32 2000/10/31 13:10:24 roberto Exp roberto $ 2** $Id: lmathlib.c,v 1.33 2000/12/04 18:33:40 roberto Exp roberto $
3** Standard mathematical library 3** Standard mathematical library
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -199,7 +199,7 @@ static int math_randomseed (lua_State *L) {
199} 199}
200 200
201 201
202static const struct luaL_reg mathlib[] = { 202static const luaL_reg mathlib[] = {
203{"abs", math_abs}, 203{"abs", math_abs},
204{"sin", math_sin}, 204{"sin", math_sin},
205{"cos", math_cos}, 205{"cos", math_cos},
diff --git a/lstrlib.c b/lstrlib.c
index 9a8823a6..42e4e9d3 100644
--- a/lstrlib.c
+++ b/lstrlib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstrlib.c,v 1.60 2000/12/18 13:41:41 roberto Exp roberto $ 2** $Id: lstrlib.c,v 1.61 2001/01/10 16:58:11 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*/
@@ -628,7 +628,7 @@ static int str_format (lua_State *L) {
628} 628}
629 629
630 630
631static const struct luaL_reg strlib[] = { 631static const luaL_reg strlib[] = {
632{"strlen", str_len}, 632{"strlen", str_len},
633{"strsub", str_sub}, 633{"strsub", str_sub},
634{"strlower", str_lower}, 634{"strlower", str_lower},