summaryrefslogtreecommitdiffstats
path: root/package/lua/5.1.5/lua-12-fix-reader-at-eoz.patch
diff options
context:
space:
mode:
authorFrancois Perrad <fperrad@gmail.com>2014-12-24 10:10:34 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-12-24 12:00:51 +0100
commit6b0fbd0020fa027aa5766b2f7514942cfb66e7bb (patch)
tree94e149d37713692a12111326196f209934ffd9b4 /package/lua/5.1.5/lua-12-fix-reader-at-eoz.patch
parent38f09d6873436cfe4606ae32adbe4ac99bb8ad61 (diff)
downloadbuildroot-6b0fbd0020fa027aa5766b2f7514942cfb66e7bb.tar.gz
buildroot-6b0fbd0020fa027aa5766b2f7514942cfb66e7bb.zip
lua: rename patches to the new convention
Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/lua/5.1.5/lua-12-fix-reader-at-eoz.patch')
-rw-r--r--package/lua/5.1.5/lua-12-fix-reader-at-eoz.patch46
1 files changed, 0 insertions, 46 deletions
diff --git a/package/lua/5.1.5/lua-12-fix-reader-at-eoz.patch b/package/lua/5.1.5/lua-12-fix-reader-at-eoz.patch
deleted file mode 100644
index 17a28ba4c3..0000000000
--- a/package/lua/5.1.5/lua-12-fix-reader-at-eoz.patch
+++ /dev/null
@@ -1,46 +0,0 @@
-When loading a file, Lua may call the reader function again after it returned end of input.
-
-Fetch from: http://www.lua.org/bugs.html#5.1.5-2
-
-Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
-
-Index: b/src/lzio.c
-===================================================================
---- a/src/lzio.c
-+++ b/src/lzio.c
-@@ -22,10 +22,14 @@
- size_t size;
- lua_State *L = z->L;
- const char *buff;
-+ if (z->eoz) return EOZ;
- lua_unlock(L);
- buff = z->reader(L, z->data, &size);
- lua_lock(L);
-- if (buff == NULL || size == 0) return EOZ;
-+ if (buff == NULL || size == 0) {
-+ z->eoz = 1; /* avoid calling reader function next time */
-+ return EOZ;
-+ }
- z->n = size - 1;
- z->p = buff;
- return char2int(*(z->p++));
-@@ -51,6 +55,7 @@
- z->data = data;
- z->n = 0;
- z->p = NULL;
-+ z->eoz = 0;
- }
-
-
-Index: b/src/lzio.h
-===================================================================
---- a/src/lzio.h
-+++ b/src/lzio.h
-@@ -59,6 +59,7 @@
- lua_Reader reader;
- void* data; /* additional data */
- lua_State *L; /* Lua state (for reader) */
-+ int eoz; /* true if reader has no more data */
- };
-
-
OpenPOWER on IntegriCloud