lua

A copy of the Lua development repository
Log | Files | Refs | README

commit a78eecee48c725549316629b9a8d936c990b65de
parent 43461d267f6f9925bac60064d682790c9bcb9ad5
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Mon, 22 Dec 1997 18:03:29 -0200

details (aborts with invalid arguments)

Diffstat:
Mlua.c | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lua.c b/lua.c @@ -1,5 +1,5 @@ /* -** $Id: lua.c,v 1.10 1997/12/19 18:34:23 roberto Exp roberto $ +** $Id: lua.c,v 1.11 1997/12/22 18:05:23 roberto Exp roberto $ ** Lua stand-alone interpreter ** See Copyright Notice in lua.h */ @@ -135,6 +135,7 @@ int main (int argc, char *argv[]) break; default: print_message(); + exit(1); } } else if (strchr(argv[i], '=')) @@ -146,7 +147,7 @@ int main (int argc, char *argv[]) fprintf(stderr, "lua: cannot execute file "); perror(argv[i]); } - return 1; + exit(1); } } }