diff options
Diffstat (limited to 'dev-lua/luaexpat/files/luaexpat-1.3.3_getcurrentbytecount.patch')
| -rw-r--r-- | dev-lua/luaexpat/files/luaexpat-1.3.3_getcurrentbytecount.patch | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/dev-lua/luaexpat/files/luaexpat-1.3.3_getcurrentbytecount.patch b/dev-lua/luaexpat/files/luaexpat-1.3.3_getcurrentbytecount.patch deleted file mode 100644 index 7366163d9d82..000000000000 --- a/dev-lua/luaexpat/files/luaexpat-1.3.3_getcurrentbytecount.patch +++ /dev/null @@ -1,33 +0,0 @@ -From 0926f2d705109b7d35b721344264b39c1169e0de Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Fran=C3=A7ois=20Perrad?= <francois.perrad@gadz.org> -Date: Sat, 16 Feb 2019 16:08:25 +0100 -Subject: [PATCH] restore method getcurrentbytecount - -fix #3 ---- - src/lxplib.c | 7 +++++++ - 1 file changed, 7 insertions(+) - -diff --git a/src/lxplib.c b/src/lxplib.c -index 7726913..35bec3c 100644 ---- a/src/lxplib.c -+++ b/src/lxplib.c -@@ -538,11 +538,18 @@ static int lxp_stop (lua_State *L) { - return 1; - } - -+static int lxp_getcurrentbytecount (lua_State* L) { -+ lxp_userdata *xpu = checkparser(L, 1); -+ lua_pushinteger(L, XML_GetCurrentByteCount(xpu->parser)); -+ return 1; -+} -+ - static const luaL_Reg lxp_meths[] = { - {"parse", lxp_parse}, - {"close", lxp_close}, - {"__gc", parser_gc}, - {"pos", lxp_pos}, -+ {"getcurrentbytecount", lxp_getcurrentbytecount}, - {"setencoding", lxp_setencoding}, - {"getcallbacks", getcallbacks}, - {"getbase", getbase}, |
