diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-03-11 15:59:19 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-03-11 15:59:19 -0300 |
commit | 82ad0d57705dd3be41081118781762b72e334f1b (patch) | |
tree | 6913717d8034552944758a3275649550caeaadd0 /ldo.c | |
parent | 256d1bea08ca12890372c6c53fc191e7b90c5a8e (diff) | |
download | lua-82ad0d57705dd3be41081118781762b72e334f1b.tar.gz lua-82ad0d57705dd3be41081118781762b72e334f1b.tar.bz2 lua-82ad0d57705dd3be41081118781762b72e334f1b.zip |
details
Diffstat (limited to 'ldo.c')
-rw-r--r-- | ldo.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldo.c,v 1.39 1999/03/10 14:19:41 roberto Exp roberto $ | 2 | ** $Id: ldo.c,v 1.40 1999/03/10 14:23:07 roberto Exp roberto $ |
3 | ** Stack and Call structure of Lua | 3 | ** Stack and Call structure of Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -356,7 +356,7 @@ void luaD_gcIM (TObject *o) | |||
356 | } | 356 | } |
357 | 357 | ||
358 | 358 | ||
359 | #define MAXFILENAME 200 /* maximum part of a file name kept */ | 359 | #define MAXFILENAME 260 /* maximum part of a file name kept */ |
360 | 360 | ||
361 | int lua_dofile (char *filename) { | 361 | int lua_dofile (char *filename) { |
362 | ZIO z; | 362 | ZIO z; |
@@ -372,7 +372,7 @@ int lua_dofile (char *filename) { | |||
372 | bin = (c == ID_CHUNK); | 372 | bin = (c == ID_CHUNK); |
373 | if (bin) | 373 | if (bin) |
374 | f = freopen(filename, "rb", f); /* set binary mode */ | 374 | f = freopen(filename, "rb", f); /* set binary mode */ |
375 | luaL_filesource(source, filename, MAXFILENAME); | 375 | luaL_filesource(source, filename, sizeof(source)); |
376 | luaZ_Fopen(&z, f, source); | 376 | luaZ_Fopen(&z, f, source); |
377 | status = do_main(&z, bin); | 377 | status = do_main(&z, bin); |
378 | if (f != stdin) | 378 | if (f != stdin) |