diff options
author | Alexey Zaytsev <alexey.zaytsev@gmail.com> | 2008-07-18 03:18:19 +0400 |
---|---|---|
committer | Alexey Zaytsev <zaytsev.a@protei.ru> | 2008-07-18 03:18:19 +0400 |
commit | f7db593edb4c08d2aa551542ee1a8e78dcf57f80 (patch) | |
tree | 88ab14dd89ebdf5627acfe1e551f35cc1a925fbc | |
parent | 63badd91ff461767b08ecbd5b27ced795f077fe1 (diff) | |
download | syslinux-f7db593edb4c08d2aa551542ee1a8e78dcf57f80.tar.gz syslinux-f7db593edb4c08d2aa551542ee1a8e78dcf57f80.tar.xz syslinux-f7db593edb4c08d2aa551542ee1a8e78dcf57f80.zip |
Can't load precompiled binaries because if missing ungetc
Signed-off-by: Alexey Zaytsev <zaytsev.a@protei.ru>
-rw-r--r-- | com32/lua/src/lauxlib.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/com32/lua/src/lauxlib.c b/com32/lua/src/lauxlib.c index 10f14e2c..de528bc0 100644 --- a/com32/lua/src/lauxlib.c +++ b/com32/lua/src/lauxlib.c @@ -564,6 +564,7 @@ LUALIB_API int luaL_loadfile (lua_State *L, const char *filename) { lf.f = fopen(filename, "r"); if (lf.f == NULL) return errfile(L, "open", fnameindex); } +#if 0 c = getc(lf.f); if (c == '#') { /* Unix exec. file? */ lf.extraline = 1; @@ -578,6 +579,7 @@ LUALIB_API int luaL_loadfile (lua_State *L, const char *filename) { lf.extraline = 0; } ungetc(c, lf.f); +#endif status = lua_load(L, getF, &lf, lua_tostring(L, -1)); readstatus = ferror(lf.f); if (filename) fclose(lf.f); /* close file (even in case of errors) */ |