aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/ptex/files
diff options
context:
space:
mode:
Diffstat (limited to 'japanese/ptex/files')
-rw-r--r--japanese/ptex/files/patch-texk-ps2pkm-type1.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/japanese/ptex/files/patch-texk-ps2pkm-type1.c b/japanese/ptex/files/patch-texk-ps2pkm-type1.c
new file mode 100644
index 000000000000..64e106d40c58
--- /dev/null
+++ b/japanese/ptex/files/patch-texk-ps2pkm-type1.c
@@ -0,0 +1,22 @@
+--- texk/ps2pkm/type1.c.orig 2013-08-27 19:21:53.000000000 +0900
++++ texk/ps2pkm/type1.c 2013-08-27 19:34:37.000000000 +0900
+@@ -125,8 +125,10 @@
+ #define CC IfTrace1(TRUE, "'%03o ", currentchar)
+
+ #define Error {errflag = TRUE; return;}
++#define Errord {errflag = TRUE; return 0.0;}
+
+ #define Error0(errmsg) { CC; IfTrace0(TRUE, errmsg); Error;}
++#define Error0d(errmsg) { CC; IfTrace0(TRUE, errmsg); Errord;}
+
+ #define Error1(errmsg,arg) { CC; IfTrace1(TRUE, errmsg, arg); Error;}
+
+@@ -800,7 +802,7 @@
+ static DOUBLE PSFakePop ()
+ {
+ if (PSFakeTop >= 0) return(PSFakeStack[PSFakeTop--]);
+- else Error0("PSFakePop : Stack empty\n");
++ else Error0d("PSFakePop : Stack empty\n");
+ /*NOTREACHED*/
+ }
+