1
0
mirror of https://github.com/lua/lua.git synced 2025-01-14 05:43:00 +08:00
This commit is contained in:
Roberto Ierusalimschy 2001-02-02 17:02:40 -02:00
parent 1f9e3731d1
commit 7e3d3e1f70
7 changed files with 17 additions and 17 deletions

View File

@ -1,5 +1,5 @@
/*
** $Id: lauxlib.c,v 1.44 2000/12/04 18:33:40 roberto Exp roberto $
** $Id: lauxlib.c,v 1.45 2001/01/25 16:45:36 roberto Exp roberto $
** Auxiliary functions for building Lua libraries
** See Copyright Notice in lua.h
*/
@ -110,7 +110,7 @@ LUALIB_API lua_Number luaL_opt_number (lua_State *L, int narg, lua_Number def) {
}
LUALIB_API void luaL_openlib (lua_State *L, const struct luaL_reg *l, int n) {
LUALIB_API void luaL_openlib (lua_State *L, const luaL_reg *l, int n) {
int i;
for (i=0; i<n; i++)
lua_register(L, l[i].name, l[i].func);

View File

@ -1,5 +1,5 @@
/*
** $Id: lauxlib.h,v 1.31 2000/12/04 18:33:40 roberto Exp roberto $
** $Id: lauxlib.h,v 1.32 2001/01/25 16:45:36 roberto Exp roberto $
** Auxiliary functions for building Lua libraries
** See Copyright Notice in lua.h
*/
@ -20,13 +20,13 @@
#endif
struct luaL_reg {
typedef struct luaL_reg {
const char *name;
lua_CFunction func;
};
} luaL_reg;
LUALIB_API void luaL_openlib (lua_State *L, const struct luaL_reg *l, int n);
LUALIB_API void luaL_openlib (lua_State *L, const luaL_reg *l, int n);
LUALIB_API void luaL_argerror (lua_State *L, int numarg, const char *extramsg);
LUALIB_API const char *luaL_check_lstr (lua_State *L, int numArg, size_t *len);
LUALIB_API const char *luaL_opt_lstr (lua_State *L, int numArg, const char *def, size_t *len);

View File

@ -1,5 +1,5 @@
/*
** $Id: lbaselib.c,v 1.19 2001/01/25 16:45:36 roberto Exp roberto $
** $Id: lbaselib.c,v 1.20 2001/01/31 19:53:01 roberto Exp roberto $
** Basic library
** See Copyright Notice in lua.h
*/
@ -576,7 +576,7 @@ static int luaB_sort (lua_State *L) {
#define num_deprecated 4
static const struct luaL_reg deprecated_names [num_deprecated] = {
static const luaL_reg deprecated_names [num_deprecated] = {
{"foreachvar", luaB_foreach},
{"nextvar", luaB_next},
{"rawgetglobal", luaB_rawget},
@ -632,7 +632,7 @@ static void deprecated_funcs (lua_State *L) {
/* }====================================================== */
static const struct luaL_reg base_funcs[] = {
static const luaL_reg base_funcs[] = {
{LUA_ALERT, luaB__ALERT},
{LUA_ERRORMESSAGE, luaB__ERRORMESSAGE},
{"call", luaB_call},

View File

@ -1,5 +1,5 @@
/*
** $Id: ldblib.c,v 1.30 2000/11/23 13:47:39 roberto Exp roberto $
** $Id: ldblib.c,v 1.31 2001/01/10 16:58:11 roberto Exp roberto $
** Interface from Lua to its debug API
** See Copyright Notice in lua.h
*/
@ -173,7 +173,7 @@ static int setlinehook (lua_State *L) {
}
static const struct luaL_reg dblib[] = {
static const luaL_reg dblib[] = {
{"getlocal", getlocal},
{"getinfo", getinfo},
{"setcallhook", setcallhook},

View File

@ -1,5 +1,5 @@
/*
** $Id: liolib.c,v 1.101 2001/01/26 11:45:51 roberto Exp roberto $
** $Id: liolib.c,v 1.102 2001/01/26 12:12:16 roberto Exp roberto $
** Standard I/O (and system) library
** See Copyright Notice in lua.h
*/
@ -644,7 +644,7 @@ static int errorfb (lua_State *L) {
static const struct luaL_reg iolib[] = {
static const luaL_reg iolib[] = {
{"appendto", io_appendto},
{"clock", io_clock},
{"closefile", io_close},

View File

@ -1,5 +1,5 @@
/*
** $Id: lmathlib.c,v 1.32 2000/10/31 13:10:24 roberto Exp roberto $
** $Id: lmathlib.c,v 1.33 2000/12/04 18:33:40 roberto Exp roberto $
** Standard mathematical library
** See Copyright Notice in lua.h
*/
@ -199,7 +199,7 @@ static int math_randomseed (lua_State *L) {
}
static const struct luaL_reg mathlib[] = {
static const luaL_reg mathlib[] = {
{"abs", math_abs},
{"sin", math_sin},
{"cos", math_cos},

View File

@ -1,5 +1,5 @@
/*
** $Id: lstrlib.c,v 1.60 2000/12/18 13:41:41 roberto Exp roberto $
** $Id: lstrlib.c,v 1.61 2001/01/10 16:58:11 roberto Exp roberto $
** Standard library for string operations and pattern-matching
** See Copyright Notice in lua.h
*/
@ -628,7 +628,7 @@ static int str_format (lua_State *L) {
}
static const struct luaL_reg strlib[] = {
static const luaL_reg strlib[] = {
{"strlen", str_len},
{"strsub", str_sub},
{"strlower", str_lower},