summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipdfm-x/pdfparse.c
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2013-09-26 12:47:55 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2013-09-26 12:47:55 +0000
commitfbcbe9b36240e101914f4b687e609ef5e03b3747 (patch)
tree91f8770ddd48fbceea91bc905b18e1b3c3b4804f /Build/source/texk/dvipdfm-x/pdfparse.c
parent8dc34f4a2fe697d0f38addfc64b096d3f864c0e8 (diff)
dvipdfm-x: Reduced dvipdfmx/xdvipdfmx diffs
git-svn-id: svn://tug.org/texlive/trunk@31776 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipdfm-x/pdfparse.c')
-rw-r--r--Build/source/texk/dvipdfm-x/pdfparse.c50
1 files changed, 0 insertions, 50 deletions
diff --git a/Build/source/texk/dvipdfm-x/pdfparse.c b/Build/source/texk/dvipdfm-x/pdfparse.c
index ff08adb9b0c..c05d37ed454 100644
--- a/Build/source/texk/dvipdfm-x/pdfparse.c
+++ b/Build/source/texk/dvipdfm-x/pdfparse.c
@@ -812,19 +812,6 @@ parse_pdf_stream (const char **pp, const char *endptr, pdf_obj *dict, pdf_file *
(p[0] == '\r' && p[1] == '\n')) {
p += 2;
}
-#ifdef XETEX
-#ifndef PDF_PARSE_STRICT
- else {
- /* TeX translate end-of-line marker to a single space. */
- if (parser_state.tainted) {
- if (p < endptr && p[0] == ' ') {
- p++;
- }
- }
- }
- /* The end-of-line marker not mandatory? */
-#endif /* !PDF_PARSE_STRICT */
-#endif
/* Stream length */
{
@@ -841,33 +828,6 @@ parse_pdf_stream (const char **pp, const char *endptr, pdf_obj *dict, pdf_file *
}
pdf_release_obj(tmp2);
}
-#ifdef XETEX
-#ifndef PDF_PARSE_STRICT
- else if (p + 9 <= endptr)
- {
- /*
- * This was added to allow TeX users to write PDF stream object
- * directly in their TeX source. This violates PDF spec.
- */
- const char *q;
-
- stream_length = -1;
- for (q = endptr - 1; q >= p + 8; q--) {
- if (q[0] != 'm')
- continue;
- else {
- if (!memcmp(q - 8, "endstrea", 8)) {
- /* The end-of-line marker is not skipped here. There are
- * no way to decide if it is a part of the stream or not.
- */
- stream_length = ((long) (q - p)) - 8;
- break;
- }
- }
- }
- }
-#endif /* !PDF_PARSE_STRICT */
-#endif
else {
return NULL;
}
@@ -905,20 +865,10 @@ parse_pdf_stream (const char **pp, const char *endptr, pdf_obj *dict, pdf_file *
* after the data and before endstream; this marker is not included
* in the stream length.
* [PDF Reference, 6th ed., version 1.7, pp. 61] */
-#if defined (PDF_PARSE_STRICT) || !defined (XETEX)
if (p < endptr && p[0] == '\r')
p++;
if (p < endptr && p[0] == '\n')
p++;
-#else /* !PDF_PARSE_STRICT && XETEX */
- /*
- * This may skip data starting with '%' and terminated by a
- * '\r' or '\n' or '\r\n'. The PDF syntax rule should not be
- * applied to the content of the stream data.
- * TeX may have converted end-of-line to single white space.
- */
- skip_white(&p, endptr);
-#endif /* !PDF_PARSE_STRICT && XETEX */
if (p + 9 > endptr ||
memcmp(p, "endstream", 9)) {