texlive: update to 2018 and update poppler patches to work with 0.64
[termux-packages] / packages / texlive-bin / luatex-poppler-0.64.patch
1 --- ../pdftoepdf.w 2018-04-30 19:38:03.041290335 +0000
2 +++ ./texk/web2c/luatexdir/image/pdftoepdf.w 2018-04-30 20:27:50.631512751 +0000
3 @@ -472,10 +472,10 @@
4 break;
5 */
6 case objString:
7 - copyString(pdf, obj->getString());
8 + copyString(pdf, (GooString *)obj->getString());
9 break;
10 case objName:
11 - copyName(pdf, obj->getName());
12 + copyName(pdf, (char *)obj->getName());
13 break;
14 case objNull:
15 pdf_add_null(pdf);
16 --- ../lepdflib.cc 2018-04-30 19:37:10.553331209 +0000
17 +++ ./texk/web2c/luatexdir/lua/lepdflib.cc 2018-04-30 20:40:55.079059154 +0000
18 @@ -674,7 +674,7 @@
19 uin = (udstruct *) luaL_checkudata(L, 1, M_##in); \
20 if (uin->pd != NULL && uin->pd->pc != uin->pc) \
21 pdfdoc_changed_error(L); \
22 - gs = ((in *) uin->d)->function(); \
23 + gs = (GooString *)((in *) uin->d)->function(); \
24 if (gs != NULL) \
25 lua_pushlstring(L, gs->getCString(), gs->getLength()); \
26 else \
27 @@ -1813,7 +1813,7 @@
28 if (uin->pd != NULL && uin->pd->pc != uin->pc)
29 pdfdoc_changed_error(L);
30 if (((Object *) uin->d)->isString()) {
31 - gs = ((Object *) uin->d)->getString();
32 + gs = (GooString *)((Object *) uin->d)->getString();
33 lua_pushlstring(L, gs->getCString(), gs->getLength());
34 } else
35 lua_pushnil(L);