diff options
Diffstat (limited to 'lua.c')
-rw-r--r-- | lua.c | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lua.c,v 1.213 2014/06/30 19:48:08 roberto Exp roberto $ | 2 | ** $Id: lua.c,v 1.214 2014/09/25 14:20:37 roberto Exp roberto $ |
3 | ** Lua stand-alone interpreter | 3 | ** Lua stand-alone interpreter |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -134,9 +134,9 @@ static void print_usage (const char *badoption) { | |||
134 | luai_writestringerror( | 134 | luai_writestringerror( |
135 | "usage: %s [options] [script [args]]\n" | 135 | "usage: %s [options] [script [args]]\n" |
136 | "Available options are:\n" | 136 | "Available options are:\n" |
137 | " -e stat execute string " LUA_QL("stat") "\n" | 137 | " -e stat execute string 'stat'\n" |
138 | " -i enter interactive mode after executing " LUA_QL("script") "\n" | 138 | " -i enter interactive mode after executing 'script'\n" |
139 | " -l name require library " LUA_QL("name") "\n" | 139 | " -l name require library 'name'\n" |
140 | " -v show version information\n" | 140 | " -v show version information\n" |
141 | " -E ignore environment variables\n" | 141 | " -E ignore environment variables\n" |
142 | " -- stop handling options\n" | 142 | " -- stop handling options\n" |
@@ -388,9 +388,8 @@ static void l_print (lua_State *L) { | |||
388 | lua_getglobal(L, "print"); | 388 | lua_getglobal(L, "print"); |
389 | lua_insert(L, 1); | 389 | lua_insert(L, 1); |
390 | if (lua_pcall(L, n, 0, 0) != LUA_OK) | 390 | if (lua_pcall(L, n, 0, 0) != LUA_OK) |
391 | l_message(progname, lua_pushfstring(L, | 391 | l_message(progname, lua_pushfstring(L, "error calling 'print' (%s)", |
392 | "error calling " LUA_QL("print") " (%s)", | 392 | lua_tostring(L, -1))); |
393 | lua_tostring(L, -1))); | ||
394 | } | 393 | } |
395 | } | 394 | } |
396 | 395 | ||