summaryrefslogtreecommitdiff
path: root/dev-tex/luatex/files/poppler020.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-tex/luatex/files/poppler020.patch')
-rw-r--r--dev-tex/luatex/files/poppler020.patch75
1 files changed, 0 insertions, 75 deletions
diff --git a/dev-tex/luatex/files/poppler020.patch b/dev-tex/luatex/files/poppler020.patch
deleted file mode 100644
index d3db830d3430..000000000000
--- a/dev-tex/luatex/files/poppler020.patch
+++ /dev/null
@@ -1,75 +0,0 @@
-https://bugs.gentoo.org/show_bug.cgi?id=416545
-build with poppler-0.20 by Rafał Mużyło
-
---- source/texk/web2c/luatexdir/lua/lepdflib.cc 2012-05-18 16:23:53.000000000 +0200
-+++ source/texk/web2c/luatexdir/lua/lepdflib.cc 2012-05-18 17:43:12.959843483 +0200
-@@ -151,7 +151,7 @@ static int l_new_Annot(lua_State * L)
- pdfdoc_changed_error(L);
- uout = new_Annot_userdata(L);
- uout->d =
-- new Annot((XRef *) uxref->d, (Dict *) udict->d, (Catalog *) ucatalog->d,
-+ new Annot(udict->pd->doc, (Dict *) udict->d,
- (Object *) uref->d);
- uout->atype = ALLOC_LEPDF;
- uout->pc = uxref->pc;
-@@ -173,7 +173,7 @@ static int l_new_Annots(lua_State * L)
- pdfdoc_changed_error(L);
- uout = new_Annots_userdata(L);
- uout->d =
-- new Annots((XRef *) uxref->d, (Catalog *) ucatalog->d,
-+ new Annots(uannotsobj->pd->doc,
- (Object *) uannotsobj->d);
- uout->atype = ALLOC_LEPDF;
- uout->pc = uxref->pc;
-@@ -363,7 +363,7 @@ static int m_##type##__tostring(lua_Stat
- // Annot
-
- m_poppler_get_BOOL(Annot, isOk);
--m_poppler_get_OBJECT(Annot, getAppearance);
-+m_poppler_get_OBJECT(Annot, getAppearanceResDict);
- m_poppler_get_poppler(Annot, AnnotBorder, getBorder);
-
- static int m_Annot_match(lua_State * L)
-@@ -398,7 +398,7 @@ static int m_Annot__gc(lua_State * L)
-
- static const struct luaL_Reg Annot_m[] = {
- {"isOk", m_Annot_isOk},
-- {"getAppearance", m_Annot_getAppearance},
-+ {"getAppearanceResDict", m_Annot_getAppearanceResDict},
- {"getBorder", m_Annot_getBorder},
- {"match", m_Annot_match},
- {"__tostring", m_Annot__tostring},
-@@ -1249,7 +1249,7 @@ static int m_Object_getType(lua_State *
-
- static int m_Object_getTypeName(lua_State * L)
- {
-- char *s;
-+ const char *s;
- udstruct *uin;
- uin = (udstruct *) luaL_checkudata(L, 1, M_Object);
- if (uin->pd != NULL && uin->pd->pc != uin->pc)
-@@ -1936,7 +1936,7 @@ static int m_Page_getLinks(lua_State * L
- if ((uin->pd != NULL && uin->pd->pc != uin->pc)
- || (ucat->pd != NULL && ucat->pd->pc != ucat->pd->pc))
- pdfdoc_changed_error(L);
-- links = ((Page *) uin->d)->getLinks((Catalog *) ucat->d);
-+ links = ((Page *) uin->d)->getLinks();
- if (links != NULL) {
- uout = new_Links_userdata(L);
- uout->d = links;
-@@ -2531,7 +2531,6 @@ m_poppler_get_INT(XRef, getNumObjects);
- m_poppler_get_INT(XRef, getRootNum);
- m_poppler_get_INT(XRef, getRootGen);
- // getStreamEnd
--m_poppler_get_INT(XRef, getSize);
- // getEntry
- m_poppler_get_poppler(XRef, Object, getTrailerDict);
-
-@@ -2558,7 +2557,6 @@ static const struct luaL_Reg XRef_m[] =
- {"getRootNum", m_XRef_getRootNum},
- {"getRootGen", m_XRef_getRootGen},
- //
-- {"getSize", m_XRef_getSize},
- {"getTrailerDict", m_XRef_getTrailerDict},
- {"__tostring", m_XRef__tostring},
- {NULL, NULL} // sentinel