texlive[72951] Build/source/texk/web2c: from drf: initialize
Andreas Scherer
andreas_tex at freenet.de
Mon Nov 25 18:58:29 CET 2024
Hello, Karl,
The recent change in tex.ch for section 331 suggested a quick code
review, and alas, the 'repeat..until' loop in section 331 appears to be
the only 'straight' loop in tex.web with a start value, a single-step
decrease, and an end value.
I suggest a simplification by using a simple 'for'-loop instead.
Attached is a small patch for tex.ch and ptex-base.ch.
Even derived C codes in hitex.w and luatex's inputstack.c can safely be
modified accordingly, because just a few ops later 'first=1' is set
explicitly.
What do you think?
Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tex-loop.diff
Type: text/x-patch
Size: 1135 bytes
Desc: not available
URL: <https://tug.org/pipermail/tex-live-commits/attachments/20241125/d7318a4c/attachment.bin>
More information about the tex-live-commits
mailing list.