diff options
Diffstat (limited to 'loslib.c')
| -rw-r--r-- | loslib.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: loslib.c,v 1.7 2005/03/18 18:02:04 roberto Exp roberto $ | 2 | ** $Id: loslib.c,v 1.8 2005/05/16 21:19:00 roberto Exp roberto $ |
| 3 | ** Standard Operating System library | 3 | ** Standard Operating System library |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -113,7 +113,7 @@ static int getfield (lua_State *L, const char *key, int d) { | |||
| 113 | res = (int)lua_tointeger(L, -1); | 113 | res = (int)lua_tointeger(L, -1); |
| 114 | else { | 114 | else { |
| 115 | if (d < 0) | 115 | if (d < 0) |
| 116 | return luaL_error(L, "field " LUA_SM " missing in date table", key); | 116 | return luaL_error(L, "field " LUA_QS " missing in date table", key); |
| 117 | res = d; | 117 | res = d; |
| 118 | } | 118 | } |
| 119 | lua_pop(L, 1); | 119 | lua_pop(L, 1); |
| @@ -151,7 +151,7 @@ static int io_date (lua_State *L) { | |||
| 151 | if (strftime(b, sizeof(b), s, stm)) | 151 | if (strftime(b, sizeof(b), s, stm)) |
| 152 | lua_pushstring(L, b); | 152 | lua_pushstring(L, b); |
| 153 | else | 153 | else |
| 154 | return luaL_error(L, LUA_SM " format too long", "date"); | 154 | return luaL_error(L, LUA_QL("date") " format too long"); |
| 155 | } | 155 | } |
| 156 | return 1; | 156 | return 1; |
| 157 | } | 157 | } |
