lua

A copy of the Lua development repository
Log | Files | Refs | README

commit aae16127470f266e1852dad7ad99d72e0671addc
parent 8050e75f9d11362dbb2a77cfb0384870471042b6
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Fri,  8 Oct 2004 15:56:54 -0300

avoid name chash in `all.c'

Diffstat:
Mloslib.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/loslib.c b/loslib.c @@ -1,5 +1,5 @@ /* -** $Id: loslib.c,v 1.1 2004/07/09 15:47:48 roberto Exp roberto $ +** $Id: loslib.c,v 1.2 2004/08/05 19:30:37 roberto Exp roberto $ ** Standard Operating System library ** See Copyright Notice in lua.h */ @@ -20,7 +20,7 @@ #include "lualib.h" -static int pushresult (lua_State *L, int i, const char *filename) { +static int os_pushresult (lua_State *L, int i, const char *filename) { if (i) { lua_pushboolean(L, 1); return 1; @@ -45,14 +45,14 @@ static int io_execute (lua_State *L) { static int io_remove (lua_State *L) { const char *filename = luaL_checkstring(L, 1); - return pushresult(L, remove(filename) == 0, filename); + return os_pushresult(L, remove(filename) == 0, filename); } static int io_rename (lua_State *L) { const char *fromname = luaL_checkstring(L, 1); const char *toname = luaL_checkstring(L, 2); - return pushresult(L, rename(fromname, toname) == 0, fromname); + return os_pushresult(L, rename(fromname, toname) == 0, fromname); }