summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipdfmx
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2009-05-15 13:07:46 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2009-05-15 13:07:46 +0000
commit3c2e5049151ba3df2d947ccf3b05cf35a8c16e0b (patch)
tree254f96768fd806e91a9677a9a89433cea538ed46 /Build/source/texk/dvipdfmx
parent8b1f5cca2d634e49806f63b38fb638f3448c591d (diff)
build fixes: avoid C99isms (declaration after statement), from Vladimir
git-svn-id: svn://tug.org/texlive/trunk@13098 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipdfmx')
-rw-r--r--Build/source/texk/dvipdfmx/ChangeLog.TL7
-rw-r--r--Build/source/texk/dvipdfmx/src/pdfdoc.c3
2 files changed, 9 insertions, 1 deletions
diff --git a/Build/source/texk/dvipdfmx/ChangeLog.TL b/Build/source/texk/dvipdfmx/ChangeLog.TL
index d974b842c8b..fba4c767ca7 100644
--- a/Build/source/texk/dvipdfmx/ChangeLog.TL
+++ b/Build/source/texk/dvipdfmx/ChangeLog.TL
@@ -1,6 +1,13 @@
ChangeLog.TL: Changes for dvipdfmx (teTeX / TeX Live)
=====================================================
+2009-05-15 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * pdfdoc.c (pdf_doc_get_page): Avoid C99isms
+ (variable declaration not at the beginning of a block).
+
+ From Vladimir Volovich <vvv@vsu.ru>
+
2009-03-16 Peter Breitenlohner <peb@mppmu.mpg.de>
* src/cff.c, src/dpxutil.c, src/mem.c, src/pdfencoding.c,
src/pdfencrypt.c: Must include Kpathsea headers (via `system.h')
diff --git a/Build/source/texk/dvipdfmx/src/pdfdoc.c b/Build/source/texk/dvipdfmx/src/pdfdoc.c
index 38f33fb5a43..6b226ed08d6 100644
--- a/Build/source/texk/dvipdfmx/src/pdfdoc.c
+++ b/Build/source/texk/dvipdfmx/src/pdfdoc.c
@@ -965,12 +965,13 @@ pdf_doc_get_page (pdf_obj *trailer, long *page_p, long *count_p,
*/
{
pdf_obj *tmp = pdf_deref_obj(pdf_lookup_dict(page_tree, "Count"));
+ long count;
if (!PDF_OBJ_NUMBERTYPE(tmp)) {
if (tmp)
pdf_release_obj(tmp);
goto error;
}
- long count = pdf_number_value(tmp);
+ count = pdf_number_value(tmp);
pdf_release_obj(tmp);
page_idx = page_no + (page_no >= 0 ? -1 : count);
if (page_idx < 0 || page_idx >= count) {