From 034de1fe73c24dcb75658b4c9ab16dd012ba3057 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 11 Mar 2003 09:24:34 -0300 Subject: new names for functions that open C libraries --- lmathlib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lmathlib.c') diff --git a/lmathlib.c b/lmathlib.c index 3a6420c4..b1a70959 100644 --- a/lmathlib.c +++ b/lmathlib.c @@ -1,5 +1,5 @@ /* -** $Id: lmathlib.c,v 1.53 2002/12/04 17:38:31 roberto Exp roberto $ +** $Id: lmathlib.c,v 1.54 2002/12/20 10:26:33 roberto Exp roberto $ ** Standard mathematical library ** See Copyright Notice in lua.h */ @@ -233,7 +233,7 @@ static const luaL_reg mathlib[] = { /* ** Open math library */ -LUALIB_API int lua_mathlibopen (lua_State *L) { +LUALIB_API int luaopen_math (lua_State *L) { luaL_openlib(L, LUA_MATHLIBNAME, mathlib, 0); lua_pushliteral(L, "pi"); lua_pushnumber(L, PI); -- cgit v1.2.3-55-g6feb