projects
/
profile
/
ivi
/
syslinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63badd9
)
Can't load precompiled binaries because if missing ungetc
author
Alexey Zaytsev
<alexey.zaytsev@gmail.com>
Thu, 17 Jul 2008 23:18:19 +0000
(
03:18
+0400)
committer
Alexey Zaytsev
<zaytsev.a@protei.ru>
Thu, 17 Jul 2008 23:18:19 +0000
(
03:18
+0400)
Signed-off-by: Alexey Zaytsev <zaytsev.a@protei.ru>
com32/lua/src/lauxlib.c
patch
|
blob
|
history
diff --git
a/com32/lua/src/lauxlib.c
b/com32/lua/src/lauxlib.c
index
10f14e2
..
de528bc
100644
(file)
--- 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) */