avoid trailing white spaces

This commit is contained in:
Roberto Ierusalimschy
2006-09-11 11:07:24 -03:00
parent cedd2092eb
commit a7c9e45c64
20 changed files with 65 additions and 65 deletions

6
lua.c
View File

@@ -1,5 +1,5 @@
/*
** $Id: lua.c,v 1.160 2006/06/02 15:34:00 roberto Exp roberto $
** $Id: lua.c,v 1.161 2006/06/23 16:09:15 roberto Exp roberto $
** Lua stand-alone interpreter
** See Copyright Notice in lua.h
*/
@@ -242,14 +242,14 @@ static int handle_script (lua_State *L, char **argv, int n) {
int narg = getargs(L, argv, n); /* collect arguments */
lua_setglobal(L, "arg");
fname = argv[n];
if (strcmp(fname, "-") == 0 && strcmp(argv[n-1], "--") != 0)
if (strcmp(fname, "-") == 0 && strcmp(argv[n-1], "--") != 0)
fname = NULL; /* stdin */
status = luaL_loadfile(L, fname);
lua_insert(L, -(narg+1));
if (status == 0)
status = docall(L, narg, 0);
else
lua_pop(L, narg);
lua_pop(L, narg);
return report(L, status);
}