aboutsummaryrefslogtreecommitdiff
path: root/lua.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2016-12-22 11:08:50 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2016-12-22 11:08:50 -0200
commit2a235312f029cbd2b1eb79f158d4f74b3ffa1b85 (patch)
treeee359ba97c390d1d6709243ab7c92c1e8252617a /lua.c
parent9903dd52a39fbe4531596b1266e226f01769de21 (diff)
downloadlua-2a235312f029cbd2b1eb79f158d4f74b3ffa1b85.tar.gz
lua-2a235312f029cbd2b1eb79f158d4f74b3ffa1b85.tar.bz2
lua-2a235312f029cbd2b1eb79f158d4f74b3ffa1b85.zip
detail (removing spaces at end of lines)
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 dbfb9075..2ca9a3a5 100644
--- a/lua.c
+++ b/lua.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lua.c,v 1.227 2016/07/18 17:55:59 roberto Exp roberto $ 2** $Id: lua.c,v 1.228 2016/12/13 15:50:58 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*/
@@ -461,7 +461,7 @@ static int handle_script (lua_State *L, char **argv) {
461/* 461/*
462** Traverses all arguments from 'argv', returning a mask with those 462** Traverses all arguments from 'argv', returning a mask with those
463** needed before running any Lua code (or an error code if it finds 463** needed before running any Lua code (or an error code if it finds
464** any invalid argument). 'first' returns the first not-handled argument 464** any invalid argument). 'first' returns the first not-handled argument
465** (either the script name or a bad argument in case of error). 465** (either the script name or a bad argument in case of error).
466*/ 466*/
467static int collectargs (char **argv, int *first) { 467static int collectargs (char **argv, int *first) {
@@ -485,7 +485,7 @@ static int collectargs (char **argv, int *first) {
485 args |= has_E; 485 args |= has_E;
486 break; 486 break;
487 case 'i': 487 case 'i':
488 args |= has_i; /* (-i implies -v) *//* FALLTHROUGH */ 488 args |= has_i; /* (-i implies -v) *//* FALLTHROUGH */
489 case 'v': 489 case 'v':
490 if (argv[i][2] != '\0') /* extra characters after 1st? */ 490 if (argv[i][2] != '\0') /* extra characters after 1st? */
491 return has_error; /* invalid option */ 491 return has_error; /* invalid option */