summaryrefslogtreecommitdiff
path: root/opcode.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1996-01-23 16:43:07 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1996-01-23 16:43:07 -0200
commit445872a6e2ee7a7ae030a8e2f8a5526f95f08f4c (patch)
tree54d477072fc7282769d6c48349c45bd9d91411d0 /opcode.c
parent3681d025accc24c107da07c36f701596fa20806f (diff)
downloadlua-github-445872a6e2ee7a7ae030a8e2f8a5526f95f08f4c.tar.gz
"dofile" does not issue a warning when unable to open the file,
but only returns an error code.
Diffstat (limited to 'opcode.c')
-rw-r--r--opcode.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/opcode.c b/opcode.c
index d946df96..2708f949 100644
--- a/opcode.c
+++ b/opcode.c
@@ -3,7 +3,7 @@
** TecCGraf - PUC-Rio
*/
-char *rcs_opcode="$Id: opcode.c,v 3.50 1995/11/16 20:46:24 roberto Exp $";
+char *rcs_opcode="$Id: opcode.c,v 3.52 1996/01/09 20:22:44 roberto Exp roberto $";
#include <setjmp.h>
#include <stdlib.h>
@@ -520,12 +520,8 @@ int lua_call (char *funcname)
int lua_dofile (char *filename)
{
int status;
- char *message = lua_openfile (filename);
- if (message)
- {
- lua_message(message);
+ if (lua_openfile(filename))
return 1;
- }
status = do_protectedmain();
lua_closefile();
return status;