several small details

This commit is contained in:
Roberto Ierusalimschy
2005-05-17 16:49:15 -03:00
parent c2bb9abcec
commit 67578ec51f
20 changed files with 152 additions and 137 deletions

View File

@@ -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;
}