aboutsummaryrefslogtreecommitdiff
path: root/lua.c
diff options
context:
space:
mode:
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 fcc778b7..7aec6d1b 100644
--- a/lua.c
+++ b/lua.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lua.c,v 1.152 2005/10/14 18:34:23 roberto Exp roberto $ 2** $Id: lua.c,v 1.153 2005/10/21 13:48:31 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*/
@@ -253,7 +253,7 @@ static int handle_script (lua_State *L, char **argv, int n) {
253} 253}
254 254
255 255
256static int collectargs (lua_State *L, char **argv, int *pi, int *pv, int *pe) { 256static int collectargs (char **argv, int *pi, int *pv, int *pe) {
257 int i; 257 int i;
258 for (i = 1; argv[i] != NULL; i++) { 258 for (i = 1; argv[i] != NULL; i++) {
259 if (argv[i][0] != '-') /* not an option? */ 259 if (argv[i][0] != '-') /* not an option? */
@@ -333,7 +333,7 @@ static int pmain (lua_State *L) {
333 luaL_openlibs(L); /* open libraries */ 333 luaL_openlibs(L); /* open libraries */
334 s->status = handle_luainit(L); 334 s->status = handle_luainit(L);
335 if (s->status != 0) return 0; 335 if (s->status != 0) return 0;
336 script = collectargs(L, argv, &has_i, &has_v, &has_e); 336 script = collectargs(argv, &has_i, &has_v, &has_e);
337 if (script < 0) { /* invalid args? */ 337 if (script < 0) { /* invalid args? */
338 print_usage(); 338 print_usage();
339 s->status = 1; 339 s->status = 1;