diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-10-26 09:00:12 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-10-26 09:00:12 -0200 |
| commit | 80b39d83c3512e1dd627842e64c69841638d9088 (patch) | |
| tree | ddc3f6b350edaffa03dd437fb51a1f865f2dd688 | |
| parent | 5a48255c9f75dea0799c1a3b55b9df11b2a666fb (diff) | |
| download | lua-80b39d83c3512e1dd627842e64c69841638d9088.tar.gz lua-80b39d83c3512e1dd627842e64c69841638d9088.tar.bz2 lua-80b39d83c3512e1dd627842e64c69841638d9088.zip | |
default `success' for exit is more useful.
| -rw-r--r-- | liolib.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: liolib.c,v 1.47 1999/10/11 16:06:01 roberto Exp roberto $ | 2 | ** $Id: liolib.c,v 1.48 1999/10/19 13:33:22 roberto Exp roberto $ |
| 3 | ** Standard I/O (and system) library | 3 | ** Standard I/O (and system) library |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -500,7 +500,7 @@ static void setloc (void) { | |||
| 500 | 500 | ||
| 501 | 501 | ||
| 502 | static void io_exit (void) { | 502 | static void io_exit (void) { |
| 503 | exit(luaL_opt_int(1, EXIT_FAILURE)); | 503 | exit(luaL_opt_int(1, EXIT_SUCCESS)); |
| 504 | } | 504 | } |
| 505 | 505 | ||
| 506 | /* }====================================================== */ | 506 | /* }====================================================== */ |
