aboutsummaryrefslogtreecommitdiff
path: root/lua.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-10-17 13:28:21 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-10-17 13:28:21 -0300
commitf97c64d7bf4c0f373711795d8faba0e8cd206761 (patch)
tree99c9e25132b2ef193dc417873e8f44e5c0ea8738 /lua.c
parentea3155e380080095a6f8c63297f0505789cf08b7 (diff)
downloadlua-f97c64d7bf4c0f373711795d8faba0e8cd206761.tar.gz
lua-f97c64d7bf4c0f373711795d8faba0e8cd206761.tar.bz2
lua-f97c64d7bf4c0f373711795d8faba0e8cd206761.zip
macros 'LUA_QL'/'LUA_QL' deprecated
Diffstat (limited to 'lua.c')
-rw-r--r--lua.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/lua.c b/lua.c
index 806be9fb..5aaaecd2 100644
--- a/lua.c
+++ b/lua.c
@@ -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