summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/ptexdir
diff options
context:
space:
mode:
authorHironobu Yamashita <h.y.acetaminophen@gmail.com>2022-11-03 10:50:32 +0000
committerHironobu Yamashita <h.y.acetaminophen@gmail.com>2022-11-03 10:50:32 +0000
commit9ab6071e267edf5835883cc795f9c6398c0f0318 (patch)
tree6f40b37b80d1496acef720220a1a62de92f218f0 /Build/source/texk/web2c/ptexdir
parentaf2ba887dde8f8b25d8217a875faf7347b7f8a9b (diff)
pTeX also has max_quarterword 0xFFFF
git-svn-id: svn://tug.org/texlive/trunk@64914 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/ptexdir')
-rw-r--r--Build/source/texk/web2c/ptexdir/ChangeLog7
-rw-r--r--Build/source/texk/web2c/ptexdir/ptex-base.ch17
2 files changed, 24 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/ptexdir/ChangeLog b/Build/source/texk/web2c/ptexdir/ChangeLog
index 18bf30fed40..59d436bcf18 100644
--- a/Build/source/texk/web2c/ptexdir/ChangeLog
+++ b/Build/source/texk/web2c/ptexdir/ChangeLog
@@ -1,3 +1,10 @@
+2022-11-03 Hironobu Yamashita <h.y.acetaminophen@gmail.com>
+
+ * ptex-base.ch: Increase max_quarterword to 0xFFFF on pTeX.
+ This is safe (and also necessary) as texmfmem.h already has
+ similar memory structure as upTeX, epTeX and eupTeX.
+ (Bug introduced on commit 2022-01-22)
+
2022-10-24 Hironobu Yamashita <h.y.acetaminophen@gmail.com>
* ptex-base.ch: Add a new syntax \font [in jis/ucs].
diff --git a/Build/source/texk/web2c/ptexdir/ptex-base.ch b/Build/source/texk/web2c/ptexdir/ptex-base.ch
index b15710a3871..3ce286b3ed5 100644
--- a/Build/source/texk/web2c/ptexdir/ptex-base.ch
+++ b/Build/source/texk/web2c/ptexdir/ptex-base.ch
@@ -458,6 +458,12 @@ if last<>first then print_unread_buffer_with_ptenc(first,last);
@z
@x
+@d max_quarterword=255 {largest allowable value in a |quarterword|}
+@y
+@d max_quarterword=@"FFFF {largest allowable value in a |quarterword|}
+@z
+
+@x
@d max_halfword==@"FFFFFFF {largest allowable value in a |halfword|}
@y
@d max_halfword==@"FFFFFFF {largest allowable value in a |halfword|}
@@ -4590,6 +4596,17 @@ inhibit_glue_flag:=false;
u:=hpack(link(head),natural); w:=width(u);
@z
+@x [37.???] l.????? - increased max_quarterword
+if n>max_quarterword then confusion("256 spans"); {this can happen, but won't}
+@^system dependencies@>
+@:this can't happen 256 spans}{\quad 256 spans@>
+@y
+if n>max_quarterword then confusion("too many spans");
+ {this can happen, but won't}
+@^system dependencies@>
+@:this can't happen too many spans}{\quad too many spans@>
+@z
+
@x [37.799] l.16331 - fin_row: pTeX: call adjust_hlist
begin p:=hpack(link(head),natural);
@y