summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/pdftexdir/utils.c
diff options
context:
space:
mode:
authorHan The Thanh <hanthethanh@gmail.com>2010-03-24 13:08:02 +0000
committerHan The Thanh <hanthethanh@gmail.com>2010-03-24 13:08:02 +0000
commitb43a81e1ba916e7daaf0559ae06791e720533e7e (patch)
tree57bab2b37d7272724b32bb0054fc3a8afdff1583 /Build/source/texk/web2c/pdftexdir/utils.c
parent0d4e8decfdf61900e814c436111d0f576519213a (diff)
minor fixes for pdftex
git-svn-id: svn://tug.org/texlive/trunk@17547 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/pdftexdir/utils.c')
-rw-r--r--Build/source/texk/web2c/pdftexdir/utils.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/Build/source/texk/web2c/pdftexdir/utils.c b/Build/source/texk/web2c/pdftexdir/utils.c
index 1253e8d07ab..14d00a68549 100644
--- a/Build/source/texk/web2c/pdftexdir/utils.c
+++ b/Build/source/texk/web2c/pdftexdir/utils.c
@@ -1691,19 +1691,18 @@ void pdfshipoutend(boolean shipping_page)
*/
-void pdfsetmatrix(poolpointer in, scaled cur_h, scaled cur_v)
+integer pdfsetmatrix(poolpointer in, scaled cur_h, scaled cur_v)
{
/* Argument of \pdfsetmatrix starts with strpool[in] and ends
before strpool[poolptr]. */
matrix_entry x, *y, *z;
+ char dummy;
if (page_mode) {
- if (sscanf((const char *) &strpool[in], " %lf %lf %lf %lf ",
- &x.a, &x.b, &x.c, &x.d) != 4) {
- pdftex_warn("Unrecognized format of \\pdfsetmatrix{%s}",
- &strpool[poolptr]);
- return;
+ if (sscanf((const char *) &strpool[in], " %lf %lf %lf %lf %c",
+ &x.a, &x.b, &x.c, &x.d, &dummy) != 4) {
+ return 0; /* failure */
}
/* calculate this transformation matrix */
x.e = (double) cur_h *(1.0 - x.a) - (double) cur_v *x.c;
@@ -1728,6 +1727,7 @@ void pdfsetmatrix(poolpointer in, scaled cur_h, scaled cur_v)
}
matrix_stack_used++;
}
+ return 1; /* success */
}
/* Apply matrix to point (x,y)