diff options
Diffstat (limited to 'lua.c')
-rw-r--r-- | lua.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 | */ |
467 | static int collectargs (char **argv, int *first) { | 467 | static 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 */ |