Blame SOURCES/texlive-20180414-poppler-0.63.patch

e946be
From b14146667f4cd6cbc5d5821c88e47096df3c78b5 Mon Sep 17 00:00:00 2001
e946be
From: Akira Kakuto <kakuto@fuk.kindai.ac.jp>
e946be
Date: Sat, 28 Apr 2018 07:36:22 +0000
e946be
Subject: support poppler-0.64.0
e946be
e946be
git-svn-id: svn://tug.org/texlive/trunk@47470 c570f23f-e606-0410-a88d-b1316a301751
e946be
---
e946be
 Build/source/texk/web2c/luatexdir/image/pdftoepdf.w       |  4 ++--
e946be
 Build/source/texk/web2c/luatexdir/lua/lepdflib.cc         |  4 ++--
e946be
 Build/source/texk/web2c/pdftexdir/ChangeLog               |  5 +++++
e946be
 Build/source/texk/web2c/pdftexdir/pdftoepdf-newpoppler.cc | 14 +++++++-------
e946be
 Build/source/texk/web2c/pdftexdir/pdftosrc-newpoppler.cc  |  2 +-
e946be
 5 files changed, 17 insertions(+), 12 deletions(-)
e946be
e946be
diff --git a/Build/source/texk/web2c/luatexdir/image/pdftoepdf.w b/Build/source/texk/web2c/luatexdir/image/pdftoepdf.w
e946be
index 7ba2973..d697959 100644
e946be
--- Build/source/texk/web2c/luatexdir/image/pdftoepdf.w
e946be
+++ Build/source/texk/web2c/luatexdir/image/pdftoepdf.w
e946be
@@ -472,10 +472,10 @@ static void copyObject(PDF pdf, PdfDocument * pdf_doc, Object * obj)
e946be
         break;
e946be
     */
e946be
     case objString:
e946be
-        copyString(pdf, obj->getString());
e946be
+        copyString(pdf, (GooString *)obj->getString());
e946be
         break;
e946be
     case objName:
e946be
-        copyName(pdf, obj->getName());
e946be
+        copyName(pdf, (char *)obj->getName());
e946be
         break;
e946be
     case objNull:
e946be
         pdf_add_null(pdf);
e946be
diff --git a/Build/source/texk/web2c/luatexdir/lua/lepdflib.cc b/Build/source/texk/web2c/luatexdir/lua/lepdflib.cc
e946be
index a16bf3b..32bcdab 100644
e946be
--- Build/source/texk/web2c/luatexdir/lua/lepdflib.cc
e946be
+++ Build/source/texk/web2c/luatexdir/lua/lepdflib.cc
e946be
@@ -674,7 +674,7 @@ static int m_##in##_##function(lua_State * L)                  \
e946be
     uin = (udstruct *) luaL_checkudata(L, 1, M_##in);          \
e946be
     if (uin->pd != NULL && uin->pd->pc != uin->pc)             \
e946be
         pdfdoc_changed_error(L);                               \
e946be
-    gs = ((in *) uin->d)->function();                          \
e946be
+    gs = (GooString *)((in *) uin->d)->function();             \
e946be
     if (gs != NULL)                                            \
e946be
         lua_pushlstring(L, gs->getCString(), gs->getLength()); \
e946be
     else                                                       \
e946be
@@ -1813,7 +1813,7 @@ static int m_Object_getString(lua_State * L)
e946be
     if (uin->pd != NULL && uin->pd->pc != uin->pc)
e946be
         pdfdoc_changed_error(L);
e946be
     if (((Object *) uin->d)->isString()) {
e946be
-        gs = ((Object *) uin->d)->getString();
e946be
+        gs = (GooString *)((Object *) uin->d)->getString();
e946be
         lua_pushlstring(L, gs->getCString(), gs->getLength());
e946be
     } else
e946be
         lua_pushnil(L);
e946be
diff --git a/Build/source/texk/web2c/pdftexdir/ChangeLog b/Build/source/texk/web2c/pdftexdir/ChangeLog
e946be
index c022bc2..f4af035 100644
e946be
--- Build/source/texk/web2c/pdftexdir/ChangeLog
e946be
+++ Build/source/texk/web2c/pdftexdir/ChangeLog
e946be
@@ -1,3 +1,8 @@
e946be
+2018-04-28  Akira Kakuto  <kakuto@fuk.kindai.ac.jp>
e946be
+
e946be
+	* pdftoepdf-newpoppler.cc, pdftosrc-newpoppler.cc:
e946be
+	Support poppler 0.64.0.
e946be
+
e946be
 2018-04-14  Karl Berry  <karl@tug.org>
e946be
 
e946be
 	* TeX Live 2018 release, pdftex 1.40.19.
e946be
diff --git a/Build/source/texk/web2c/pdftexdir/pdftoepdf-newpoppler.cc b/Build/source/texk/web2c/pdftexdir/pdftoepdf-newpoppler.cc
e946be
index 10fea29..750579d 100644
e946be
--- Build/source/texk/web2c/pdftexdir/pdftoepdf-newpoppler.cc
e946be
+++ Build/source/texk/web2c/pdftexdir/pdftoepdf-newpoppler.cc
e946be
@@ -290,7 +290,7 @@ static void copyName(char *s)
e946be
 static void copyDictEntry(Object * obj, int i)
e946be
 {
e946be
     Object obj1;
e946be
-    copyName(obj->dictGetKey(i));
e946be
+    copyName((char *)obj->dictGetKey(i));
e946be
     pdf_puts(" ");
e946be
     obj1 = obj->dictGetValNF(i);
e946be
     copyObject(&obj1);
e946be
@@ -355,7 +355,7 @@ static void copyProcSet(Object * obj)
e946be
         if (!procset.isName())
e946be
             pdftex_fail("PDF inclusion: invalid ProcSet entry type <%s>",
e946be
                         procset.getTypeName());
e946be
-        copyName(procset.getName());
e946be
+        copyName((char *)procset.getName());
e946be
         pdf_puts(" ");
e946be
     }
e946be
     pdf_puts("]\n");
e946be
@@ -418,7 +418,7 @@ static void copyFont(char *tag, Object * fontRef)
e946be
         && fontdescRef.isRef()
e946be
         && fontdesc.isDict()
e946be
         && embeddableFont(&fontdesc)
e946be
-        && (fontmap = lookup_fontmap(basefont.getName())) != NULL) {
e946be
+        && (fontmap = lookup_fontmap((char *)basefont.getName())) != NULL) {
e946be
         // round /StemV value, since the PDF input is a float
e946be
         // (see Font Descriptors in PDF reference), but we only store an
e946be
         // integer, since we don't want to change the struct.
e946be
@@ -427,7 +427,7 @@ static void copyFont(char *tag, Object * fontRef)
e946be
         charset = fontdesc.dictLookup("CharSet");
e946be
         if (!charset.isNull() &&
e946be
             charset.isString() && is_subsetable(fontmap))
e946be
-            epdf_mark_glyphs(fd, charset.getString()->getCString());
e946be
+            epdf_mark_glyphs(fd, (char *)charset.getString()->getCString());
e946be
         else
e946be
             embed_whole_font(fd);
e946be
         addFontDesc(fontdescRef.getRef(), fd);
e946be
@@ -456,7 +456,7 @@ static void copyFontResources(Object * obj)
e946be
         if (fontRef.isRef())
e946be
             copyFont(obj->dictGetKey(i), &fontRef);
e946be
         else if (fontRef.isDict()) {   // some programs generate pdf with embedded font object
e946be
-            copyName(obj->dictGetKey(i));
e946be
+            copyName((char *)obj->dictGetKey(i));
e946be
             pdf_puts(" ");
e946be
             copyObject(&fontRef);
e946be
         }
e946be
@@ -565,7 +565,7 @@ static void copyObject(Object * obj)
e946be
     } else if (obj->isNum()) {
e946be
         pdf_printf("%s", convertNumToPDF(obj->getNum()));
e946be
     } else if (obj->isString()) {
e946be
-        s = obj->getString();
e946be
+        s = (GooString *)obj->getString();
e946be
         p = s->getCString();
e946be
         l = s->getLength();
e946be
         if (strlen(p) == (unsigned int) l) {
e946be
@@ -589,7 +589,7 @@ static void copyObject(Object * obj)
e946be
             pdf_puts(">");
e946be
         }
e946be
     } else if (obj->isName()) {
e946be
-        copyName(obj->getName());
e946be
+        copyName((char *)obj->getName());
e946be
     } else if (obj->isNull()) {
e946be
         pdf_puts("null");
e946be
     } else if (obj->isArray()) {
e946be
diff --git a/Build/source/texk/web2c/pdftexdir/pdftosrc-newpoppler.cc b/Build/source/texk/web2c/pdftexdir/pdftosrc-newpoppler.cc
e946be
index 4e2bcad..0db154b 100644
e946be
--- Build/source/texk/web2c/pdftexdir/pdftosrc-newpoppler.cc
e946be
+++ Build/source/texk/web2c/pdftexdir/pdftosrc-newpoppler.cc
e946be
@@ -109,7 +109,7 @@ int main(int argc, char *argv[])
e946be
             fprintf(stderr, "No SourceName found\n");
e946be
             exit(1);
e946be
         }
e946be
-        outname = srcName.getString()->getCString();
e946be
+        outname = (char *)srcName.getString()->getCString();
e946be
         // We cannot free srcName, as objname shares its string.
e946be
         // srcName.free();
e946be
     } else if (objnum > 0) {
e946be
--- Build/source/texk/web2c/pdftexdir/pdftosrc.cc
e946be
+++ Build/source/texk/web2c/pdftexdir/pdftosrc.cc
e946be
@@ -109,7 +109,7 @@ int main(int argc, char *argv[])
e946be
             fprintf(stderr, "No SourceName found\n");
e946be
             exit(1);
e946be
         }
e946be
-        outname = srcName.getString()->getCString();
e946be
+        outname = (char *)srcName.getString()->getCString();
e946be
         // We cannot free srcName, as objname shares its string.
e946be
         // srcName.free();
e946be
     } else if (objnum > 0) {
e946be
--- Build/source/texk/web2c/pdftexdir/pdftoepdf.cc
e946be
+++ Build/source/texk/web2c/pdftexdir/pdftoepdf.cc
e946be
@@ -290,7 +290,7 @@ static void copyName(char *s)
e946be
 static void copyDictEntry(Object * obj, int i)
e946be
 {
e946be
     Object obj1;
e946be
-    copyName(obj->dictGetKey(i));
e946be
+    copyName((char *)obj->dictGetKey(i));
e946be
     pdf_puts(" ");
e946be
     obj1 = obj->dictGetValNF(i);
e946be
     copyObject(&obj1);
e946be
@@ -355,7 +355,7 @@ static void copyProcSet(Object * obj)
e946be
         if (!procset.isName())
e946be
             pdftex_fail("PDF inclusion: invalid ProcSet entry type <%s>",
e946be
                         procset.getTypeName());
e946be
-        copyName(procset.getName());
e946be
+        copyName((char *)procset.getName());
e946be
         pdf_puts(" ");
e946be
     }
e946be
     pdf_puts("]\n");
e946be
@@ -418,7 +418,7 @@ static void copyFont(char *tag, Object * fontRef)
e946be
         && fontdescRef.isRef()
e946be
         && fontdesc.isDict()
e946be
         && embeddableFont(&fontdesc)
e946be
-        && (fontmap = lookup_fontmap(basefont.getName())) != NULL) {
e946be
+        && (fontmap = lookup_fontmap((char *)basefont.getName())) != NULL) {
e946be
         // round /StemV value, since the PDF input is a float
e946be
         // (see Font Descriptors in PDF reference), but we only store an
e946be
         // integer, since we don't want to change the struct.
e946be
@@ -427,7 +427,7 @@ static void copyFont(char *tag, Object * fontRef)
e946be
         charset = fontdesc.dictLookup("CharSet");
e946be
         if (!charset.isNull() &&
e946be
             charset.isString() && is_subsetable(fontmap))
e946be
-            epdf_mark_glyphs(fd, charset.getString()->getCString());
e946be
+            epdf_mark_glyphs(fd, (char *)charset.getString()->getCString());
e946be
         else
e946be
             embed_whole_font(fd);
e946be
         addFontDesc(fontdescRef.getRef(), fd);
e946be
@@ -456,7 +456,7 @@ static void copyFontResources(Object * obj)
e946be
         if (fontRef.isRef())
e946be
             copyFont(obj->dictGetKey(i), &fontRef);
e946be
         else if (fontRef.isDict()) {   // some programs generate pdf with embedded font object
e946be
-            copyName(obj->dictGetKey(i));
e946be
+            copyName((char *)obj->dictGetKey(i));
e946be
             pdf_puts(" ");
e946be
             copyObject(&fontRef);
e946be
         }
e946be
@@ -565,7 +565,7 @@ static void copyObject(Object * obj)
e946be
     } else if (obj->isNum()) {
e946be
         pdf_printf("%s", convertNumToPDF(obj->getNum()));
e946be
     } else if (obj->isString()) {
e946be
-        s = obj->getString();
e946be
+        s = (GooString *)obj->getString();
e946be
         p = s->getCString();
e946be
         l = s->getLength();
e946be
         if (strlen(p) == (unsigned int) l) {
e946be
@@ -589,7 +589,7 @@ static void copyObject(Object * obj)
e946be
             pdf_puts(">");
e946be
         }
e946be
     } else if (obj->isName()) {
e946be
-        copyName(obj->getName());
e946be
+        copyName((char *)obj->getName());
e946be
     } else if (obj->isNull()) {
e946be
         pdf_puts("null");
e946be
     } else if (obj->isArray()) {
e946be
-- 
e946be
cgit v1.1
e946be