diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-12-22 18:03:50 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-12-22 18:03:50 -0200 |
commit | a78eecee48c725549316629b9a8d936c990b65de (patch) | |
tree | 96398b86b7336cda441e6b338cff6e65fbfeece7 | |
parent | 43461d267f6f9925bac60064d682790c9bcb9ad5 (diff) | |
download | lua-a78eecee48c725549316629b9a8d936c990b65de.tar.gz lua-a78eecee48c725549316629b9a8d936c990b65de.tar.bz2 lua-a78eecee48c725549316629b9a8d936c990b65de.zip |
details (aborts with invalid arguments)
-rw-r--r-- | lua.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lua.c,v 1.10 1997/12/19 18:34:23 roberto Exp roberto $ | 2 | ** $Id: lua.c,v 1.11 1997/12/22 18:05:23 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 | */ |
@@ -135,6 +135,7 @@ int main (int argc, char *argv[]) | |||
135 | break; | 135 | break; |
136 | default: | 136 | default: |
137 | print_message(); | 137 | print_message(); |
138 | exit(1); | ||
138 | } | 139 | } |
139 | } | 140 | } |
140 | else if (strchr(argv[i], '=')) | 141 | else if (strchr(argv[i], '=')) |
@@ -146,7 +147,7 @@ int main (int argc, char *argv[]) | |||
146 | fprintf(stderr, "lua: cannot execute file "); | 147 | fprintf(stderr, "lua: cannot execute file "); |
147 | perror(argv[i]); | 148 | perror(argv[i]); |
148 | } | 149 | } |
149 | return 1; | 150 | exit(1); |
150 | } | 151 | } |
151 | } | 152 | } |
152 | } | 153 | } |