summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Harris <bjh21@bjh21.me.uk>2006-12-03 13:23:55 +0000
committerBen Harris <bjh21@bjh21.me.uk>2006-12-03 13:23:55 +0000
commit853d3cc2ef94d4f29fe724a60e21a03e87393338 (patch)
tree30a254defd1ddeba12424bbe2da79a53d57f8126
parentd44e392ccd1fa91c1bd8453c5d4ac375dc9abd70 (diff)
downloadhalibut-853d3cc2ef94d4f29fe724a60e21a03e87393338.zip
halibut-853d3cc2ef94d4f29fe724a60e21a03e87393338.tar.gz
halibut-853d3cc2ef94d4f29fe724a60e21a03e87393338.tar.bz2
halibut-853d3cc2ef94d4f29fe724a60e21a03e87393338.tar.xz
Tweak prologue so that it works correctly on interpreters that don't support
pdfmark, specifically by having the dummy versions of "p", "x", and "u" pop their arguments rather than leaving them on the stack to cause trouble. [originally from svn r6956]
-rw-r--r--bk_ps.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/bk_ps.c b/bk_ps.c
index 35fe582..261a22c 100644
--- a/bk_ps.c
+++ b/bk_ps.c
@@ -114,7 +114,9 @@ void ps_backend(paragraph *sourceform, keywordlist *keywords,
" [ /Action 3 -1 roll /Rect 5 -1 roll /Border [0 0 0 0]\n"
" /Subtype /Link /ANN pdfmark } bind def\n"
"} {\n"
- " [/p /x /u] { null cvx def } forall\n"
+ " /p { pop } bind def\n"
+ " /x { pop pop } bind def\n"
+ " /u /x load def\n"
"} ifelse\n");
fprintf(fp, "%%%%EndResource\n");