diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2004-02-18 10:40:03 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2004-02-18 10:40:03 -0300 |
commit | 1edea3466632a397e5c4e955b3d5cb219f8456cc (patch) | |
tree | 2942bc3c880f379451cb50cd28f095c85640b677 /lauxlib.c | |
parent | 2aaf7394ad17180565423ce360d5faffb60f4e4f (diff) | |
download | lua-1edea3466632a397e5c4e955b3d5cb219f8456cc.tar.gz lua-1edea3466632a397e5c4e955b3d5cb219f8456cc.tar.bz2 lua-1edea3466632a397e5c4e955b3d5cb219f8456cc.zip |
details
Diffstat (limited to 'lauxlib.c')
-rw-r--r-- | lauxlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lauxlib.c,v 1.107 2003/10/20 18:32:55 roberto Exp roberto $ | 2 | ** $Id: lauxlib.c,v 1.108 2003/11/05 11:59:14 roberto Exp roberto $ |
3 | ** Auxiliary functions for building Lua libraries | 3 | ** Auxiliary functions for building Lua libraries |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -502,8 +502,8 @@ LUALIB_API int luaL_loadfile (lua_State *L, const char *filename) { | |||
502 | else { | 502 | else { |
503 | lua_pushfstring(L, "@%s", filename); | 503 | lua_pushfstring(L, "@%s", filename); |
504 | lf.f = fopen(filename, "r"); | 504 | lf.f = fopen(filename, "r"); |
505 | if (lf.f == NULL) return errfile(L, fnameindex); /* unable to open file */ | ||
505 | } | 506 | } |
506 | if (lf.f == NULL) return errfile(L, fnameindex); /* unable to open file */ | ||
507 | c = getc(lf.f); | 507 | c = getc(lf.f); |
508 | if (c == '#') { /* Unix exec. file? */ | 508 | if (c == '#') { /* Unix exec. file? */ |
509 | lf.extraline = 1; | 509 | lf.extraline = 1; |