diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-04-04 19:24:51 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-04-04 19:24:51 -0300 |
| commit | 42fa305649199712aad1c96beadb944b01277e3f (patch) | |
| tree | d20afcf78aebc8b7fad91ce4e3b9061c2a29b000 /lua.c | |
| parent | 9319735744404831f7153653930d56826a4d2f6a (diff) | |
| download | lua-42fa305649199712aad1c96beadb944b01277e3f.tar.gz lua-42fa305649199712aad1c96beadb944b01277e3f.tar.bz2 lua-42fa305649199712aad1c96beadb944b01277e3f.zip | |
better error messages;
better names for some API functions.
Diffstat (limited to 'lua.c')
| -rw-r--r-- | lua.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -3,7 +3,7 @@ | |||
| 3 | ** Linguagem para Usuarios de Aplicacao | 3 | ** Linguagem para Usuarios de Aplicacao |
| 4 | */ | 4 | */ |
| 5 | 5 | ||
| 6 | char *rcs_lua="$Id: lua.c,v 1.13 1996/07/06 20:20:35 roberto Exp roberto $"; | 6 | char *rcs_lua="$Id: lua.c,v 1.14 1996/09/24 17:30:28 roberto Exp roberto $"; |
| 7 | 7 | ||
| 8 | #include <stdio.h> | 8 | #include <stdio.h> |
| 9 | #include <string.h> | 9 | #include <string.h> |
| @@ -59,8 +59,8 @@ int main (int argc, char *argv[]) | |||
| 59 | result = lua_dofile (argv[i]); | 59 | result = lua_dofile (argv[i]); |
| 60 | if (result) { | 60 | if (result) { |
| 61 | if (result == 2) { | 61 | if (result == 2) { |
| 62 | fprintf(stderr, "lua: cannot execute file `%s' - ", argv[i]); | 62 | fprintf(stderr, "lua: cannot execute file "); |
| 63 | perror(NULL); | 63 | perror(argv[i]); |
| 64 | } | 64 | } |
| 65 | return 1; | 65 | return 1; |
| 66 | } | 66 | } |
