[latex3-commits] [git/LaTeX3-latex3-latex3] master: Use \ior_map_break: rather than ad-hoc \use_none:nn...n to end a loop (5ddab7e)
Bruno Le Floch
bruno at le-floch.fr
Sun Jan 13 23:19:14 CET 2019
Repository : https://github.com/latex3/latex3
On branch : master
Link : https://github.com/latex3/latex3/commit/5ddab7ea6255fbe2c9cb198c10ec43e4db60cfc5
>---------------------------------------------------------------
commit 5ddab7ea6255fbe2c9cb198c10ec43e4db60cfc5
Author: Bruno Le Floch <bruno at le-floch.fr>
Date: Sun Jan 13 23:19:14 2019 +0100
Use \ior_map_break: rather than ad-hoc \use_none:nn...n to end a loop
>---------------------------------------------------------------
5ddab7ea6255fbe2c9cb198c10ec43e4db60cfc5
l3kernel/l3file.dtx | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/l3kernel/l3file.dtx b/l3kernel/l3file.dtx
index 6b8d3f6..75130a1 100644
--- a/l3kernel/l3file.dtx
+++ b/l3kernel/l3file.dtx
@@ -978,7 +978,8 @@
% \begin{macro}{\@@_map_inline_loop:NNN}
% Mapping to an input stream can be done on either a token or a string
% basis, hence the set up. Within that, there is a check to avoid reading
-% past the end of a file, hence the two applications of \cs{ior_if_eof:N}.
+% past the end of a file, hence the two applications of \cs{ior_if_eof:N}
+% and its lower-level analogue \cs{if_eof:w}.
% This mapping cannot be nested with twice the same stream, as the
% stream has only one \enquote{current line}.
% \begin{macrocode}
@@ -1003,10 +1004,10 @@
{
#2 #3 \l_@@_internal_tl
\if_eof:w #3
- \exp_after:wN \use_none:nnnnnnn
+ \exp_after:wN \ior_map_break:
\fi:
- \exp_args:No #1 \l_@@_internal_tl
- \@@_map_inline_loop:NNN #1#2#3
+ \exp_args:No #1 \l_@@_internal_tl
+ \@@_map_inline_loop:NNN #1#2#3
}
% \end{macrocode}
% \end{macro}
More information about the latex3-commits
mailing list