From 67578ec51f1a3ec2c967f15d370067caf9e0b87b Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 17 May 2005 16:49:15 -0300 Subject: several small details --- loslib.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'loslib.c') diff --git a/loslib.c b/loslib.c index 89aa794b..0d3b7047 100644 --- a/loslib.c +++ b/loslib.c @@ -1,5 +1,5 @@ /* -** $Id: loslib.c,v 1.7 2005/03/18 18:02:04 roberto Exp roberto $ +** $Id: loslib.c,v 1.8 2005/05/16 21:19:00 roberto Exp roberto $ ** Standard Operating System library ** See Copyright Notice in lua.h */ @@ -113,7 +113,7 @@ static int getfield (lua_State *L, const char *key, int d) { res = (int)lua_tointeger(L, -1); else { if (d < 0) - return luaL_error(L, "field " LUA_SM " missing in date table", key); + return luaL_error(L, "field " LUA_QS " missing in date table", key); res = d; } lua_pop(L, 1); @@ -151,7 +151,7 @@ static int io_date (lua_State *L) { if (strftime(b, sizeof(b), s, stm)) lua_pushstring(L, b); else - return luaL_error(L, LUA_SM " format too long", "date"); + return luaL_error(L, LUA_QL("date") " format too long"); } return 1; } -- cgit v1.2.3-55-g6feb