aboutsummaryrefslogtreecommitdiff
path: root/lua.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2006-09-11 11:07:24 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2006-09-11 11:07:24 -0300
commita7c9e45c64a4bff9bdaf0d1177509bdd00fc53f7 (patch)
treef452f26770539293979a3dbd752ee0b38b849123 /lua.c
parentcedd2092ebe402e0c6d600969ec926496a8a9d22 (diff)
downloadlua-a7c9e45c64a4bff9bdaf0d1177509bdd00fc53f7.tar.gz
lua-a7c9e45c64a4bff9bdaf0d1177509bdd00fc53f7.tar.bz2
lua-a7c9e45c64a4bff9bdaf0d1177509bdd00fc53f7.zip
avoid trailing white spaces
Diffstat (limited to 'lua.c')
-rw-r--r--lua.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lua.c b/lua.c
index 5c0ae9c5..425c1290 100644
--- a/lua.c
+++ b/lua.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lua.c,v 1.160 2006/06/02 15:34:00 roberto Exp roberto $ 2** $Id: lua.c,v 1.161 2006/06/23 16:09:15 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*/
@@ -242,14 +242,14 @@ static int handle_script (lua_State *L, char **argv, int n) {
242 int narg = getargs(L, argv, n); /* collect arguments */ 242 int narg = getargs(L, argv, n); /* collect arguments */
243 lua_setglobal(L, "arg"); 243 lua_setglobal(L, "arg");
244 fname = argv[n]; 244 fname = argv[n];
245 if (strcmp(fname, "-") == 0 && strcmp(argv[n-1], "--") != 0) 245 if (strcmp(fname, "-") == 0 && strcmp(argv[n-1], "--") != 0)
246 fname = NULL; /* stdin */ 246 fname = NULL; /* stdin */
247 status = luaL_loadfile(L, fname); 247 status = luaL_loadfile(L, fname);
248 lua_insert(L, -(narg+1)); 248 lua_insert(L, -(narg+1));
249 if (status == 0) 249 if (status == 0)
250 status = docall(L, narg, 0); 250 status = docall(L, narg, 0);
251 else 251 else
252 lua_pop(L, narg); 252 lua_pop(L, narg);
253 return report(L, status); 253 return report(L, status);
254} 254}
255 255