From 5b8ee9fa8d9bc3d3ad41a1acd547b79bc3b669a7 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 5 Jun 2002 14:24:04 -0300 Subject: new names for standard libraries --- liolib.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'liolib.c') diff --git a/liolib.c b/liolib.c index 5ed8fae2..e43d2261 100644 --- a/liolib.c +++ b/liolib.c @@ -1,5 +1,5 @@ /* -** $Id: liolib.c,v 2.5 2002/05/06 19:05:10 roberto Exp roberto $ +** $Id: liolib.c,v 2.6 2002/06/05 16:59:37 roberto Exp roberto $ ** Standard I/O (and system) library ** See Copyright Notice in lua.h */ @@ -594,12 +594,12 @@ static const luaL_reg syslib[] = { LUALIB_API int lua_iolibopen (lua_State *L) { createmeta(L); - luaL_opennamedlib(L, "os", syslib, 0); + luaL_opennamedlib(L, LUA_OSLIBNAME, syslib, 0); lua_pushliteral(L, FILEHANDLE); /* S: FH */ lua_rawget(L, LUA_REGISTRYINDEX); /* S: mt */ lua_pushvalue(L, -1); /* S: mt mt */ - luaL_opennamedlib(L, "io", iolib, 1); /* S: mt */ - lua_pushliteral(L, "io"); /* S: `io' mt */ + luaL_opennamedlib(L, LUA_IOLIBNAME, iolib, 1); /* S: mt */ + lua_pushliteral(L, LUA_IOLIBNAME); /* S: `io' mt */ lua_gettable(L, LUA_GLOBALSINDEX); /* S: io mt */ /* put predefined file handles into `io' table */ registerfile(L, stdin, "stdin", IO_INPUT); -- cgit v1.2.3-55-g6feb