diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-02-02 17:02:40 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-02-02 17:02:40 -0200 |
commit | 7e3d3e1f70b75f0d5d8b5e3b240404a9f9adbcf1 (patch) | |
tree | 451d2bd1999ab7a333220568eb85950b4b04b893 | |
parent | 1f9e3731d17df79461a0dc57cc9bd159c70ac56f (diff) | |
download | lua-7e3d3e1f70b75f0d5d8b5e3b240404a9f9adbcf1.tar.gz lua-7e3d3e1f70b75f0d5d8b5e3b240404a9f9adbcf1.tar.bz2 lua-7e3d3e1f70b75f0d5d8b5e3b240404a9f9adbcf1.zip |
details
-rw-r--r-- | lauxlib.c | 4 | ||||
-rw-r--r-- | lauxlib.h | 8 | ||||
-rw-r--r-- | lbaselib.c | 6 | ||||
-rw-r--r-- | ldblib.c | 4 | ||||
-rw-r--r-- | liolib.c | 4 | ||||
-rw-r--r-- | lmathlib.c | 4 | ||||
-rw-r--r-- | lstrlib.c | 4 |
7 files changed, 17 insertions, 17 deletions
@@ -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 | ||
113 | LUALIB_API void luaL_openlib (lua_State *L, const struct luaL_reg *l, int n) { | 113 | LUALIB_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); |
@@ -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 | ||
23 | struct luaL_reg { | 23 | typedef 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 | ||
29 | LUALIB_API void luaL_openlib (lua_State *L, const struct luaL_reg *l, int n); | 29 | LUALIB_API void luaL_openlib (lua_State *L, const luaL_reg *l, int n); |
30 | LUALIB_API void luaL_argerror (lua_State *L, int numarg, const char *extramsg); | 30 | LUALIB_API void luaL_argerror (lua_State *L, int numarg, const char *extramsg); |
31 | LUALIB_API const char *luaL_check_lstr (lua_State *L, int numArg, size_t *len); | 31 | LUALIB_API const char *luaL_check_lstr (lua_State *L, int numArg, size_t *len); |
32 | LUALIB_API const char *luaL_opt_lstr (lua_State *L, int numArg, const char *def, size_t *len); | 32 | LUALIB_API const char *luaL_opt_lstr (lua_State *L, int numArg, const char *def, size_t *len); |
@@ -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 | ||
579 | static const struct luaL_reg deprecated_names [num_deprecated] = { | 579 | static 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 | ||
635 | static const struct luaL_reg base_funcs[] = { | 635 | static 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}, |
@@ -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 | ||
176 | static const struct luaL_reg dblib[] = { | 176 | static const luaL_reg dblib[] = { |
177 | {"getlocal", getlocal}, | 177 | {"getlocal", getlocal}, |
178 | {"getinfo", getinfo}, | 178 | {"getinfo", getinfo}, |
179 | {"setcallhook", setcallhook}, | 179 | {"setcallhook", setcallhook}, |
@@ -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 | ||
647 | static const struct luaL_reg iolib[] = { | 647 | static 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}, |
@@ -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 | ||
202 | static const struct luaL_reg mathlib[] = { | 202 | static 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}, |
@@ -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 | ||
631 | static const struct luaL_reg strlib[] = { | 631 | static 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}, |