diff options
author | Norbert Preining <norbert@preining.info> | 2023-08-30 03:01:17 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2023-08-30 03:01:17 +0000 |
commit | 4fee29360f7566a474b6143951b0744fa151edc9 (patch) | |
tree | 1af77d3ca21368f054b09f30dd60e8028a91be62 /macros/latex/contrib/l3kernel/l3file.dtx | |
parent | 64e26532c685fd24d6983508c6239e3c268b810b (diff) |
CTAN sync 202308300301
Diffstat (limited to 'macros/latex/contrib/l3kernel/l3file.dtx')
-rw-r--r-- | macros/latex/contrib/l3kernel/l3file.dtx | 32 |
1 files changed, 20 insertions, 12 deletions
diff --git a/macros/latex/contrib/l3kernel/l3file.dtx b/macros/latex/contrib/l3kernel/l3file.dtx index 8ef7950afa..1c1401e392 100644 --- a/macros/latex/contrib/l3kernel/l3file.dtx +++ b/macros/latex/contrib/l3kernel/l3file.dtx @@ -44,7 +44,7 @@ % }^^A % } % -% \date{Released 2023-08-11} +% \date{Released 2023-08-29} % % \maketitle % @@ -126,7 +126,8 @@ % the \meta{false code} is inserted into the input stream. % \end{function} % -% \begin{function}[updated = 2012-02-09]{\iow_open:Nn, \iow_open:cn} +% \begin{function}[updated = 2012-02-09] +% {\iow_open:Nn, \iow_open:NV, \iow_open:cn, \iow_open:cV} % \begin{syntax} % \cs{iow_open:Nn} \meta{stream} \Arg{file name} % \end{syntax} @@ -446,7 +447,8 @@ % % \subsection{Writing to files} % -% \begin{function}[updated = 2012-06-05]{\iow_now:Nn, \iow_now:Nx, \iow_now:cn, \iow_now:cx} +% \begin{function}[updated = 2012-06-05] +% {\iow_now:Nn, \iow_now:NV, \iow_now:Nx, \iow_now:cn, \iow_now:cV, \iow_now:cx} % \begin{syntax} % \cs{iow_now:Nn} \meta{stream} \Arg{tokens} % \end{syntax} @@ -703,7 +705,7 @@ % \end{texnote} % \end{variable} % -% \begin{function}[TF, updated = 2012-02-10]{\file_if_exist:n} +% \begin{function}[TF, updated = 2012-02-10]{\file_if_exist:n, \file_if_exist:V} % \begin{syntax} % \cs{file_if_exist:nTF} \Arg{file name} \Arg{true code} \Arg{false code} % \end{syntax} @@ -922,7 +924,7 @@ % \end{function} % % -% \begin{function}[updated = 2017-06-26]{\file_input:n} +% \begin{function}[updated = 2017-06-26]{\file_input:n, \file_input:V} % \begin{syntax} % \cs{file_input:n} \Arg{file name} % \end{syntax} @@ -1634,7 +1636,7 @@ % \end{macrocode} % \end{variable} % -% \begin{macro}{\iow_open:Nn, \iow_open:cn} +% \begin{macro}{\iow_open:Nn, \iow_open:NV, \iow_open:cn, \iow_open:cV} % \begin{macro}{\@@_open_stream:Nn, \@@_open_stream:NV} % The same idea as for reading, but without the path and without the need % to allow for a conditional version. @@ -1652,7 +1654,7 @@ \@@_open_stream:NV #1 \l_@@_file_name_tl } } -\cs_generate_variant:Nn \iow_open:Nn { c } +\cs_generate_variant:Nn \iow_open:Nn { NV , c , cV } \cs_new_protected:Npn \@@_open_stream:Nn #1#2 { \tex_global:D \tex_chardef:D #1 = \l_@@_stream_tl \scan_stop: @@ -1798,7 +1800,11 @@ % \end{macro} % \end{macro} % -% \begin{macro}{\iow_now:Nn, \iow_now:Nx, \iow_now:cn, \iow_now:cx} +% \begin{macro} +% { +% \iow_now:Nn, \iow_now:NV, \iow_now:Nx, +% \iow_now:cn, \iow_now:cV, \iow_now:cx +% } % This routine writes the second argument onto the output stream without % expansion. If this stream isn't open, the output goes to the terminal % instead. If the first argument is no output stream at all, we get an @@ -1816,7 +1822,7 @@ \__kernel_iow_with:Nnn \tex_newlinechar:D { `\^^J } { \tex_immediate:D \tex_write:D #1 { \exp_not:n {#2} } } } -\cs_generate_variant:Nn \iow_now:Nn { c, Nx, cx } +\cs_generate_variant:Nn \iow_now:Nn { NV , Nx , c , cV , cx } % \end{macrocode} % \end{macro} % @@ -3308,7 +3314,7 @@ % \end{macro} % \end{macro} % -% \begin{macro}[TF]{\file_if_exist:n} +% \begin{macro}[TF]{\file_if_exist:n, \file_if_exist:V} % The test for the existence of a file is a wrapper around the function to % add a path to a file. If the file was found, the path contains % something, whereas if the file was not located then the return value @@ -3320,6 +3326,7 @@ { \prg_return_true: } { \prg_return_false: } } +\prg_generate_conditional_variant:Nnn \file_if_exist:n { V } { T , F , TF } % \end{macrocode} % \end{macro} % @@ -3360,7 +3367,7 @@ % \end{macrocode} % \end{macro} % -% \begin{macro}{\file_input:n} +% \begin{macro}{\file_input:n, \file_input:V} % \begin{macro}{\@@_input:n, \@@_input:V} % \begin{macro}{\@@_input_push:n, \__kernel_file_input_push:n} % \begin{macro}{\@@_input_pop:, \__kernel_file_input_pop:} @@ -3376,6 +3383,7 @@ { \@@_input:V \l_@@_full_name_tl } { \__kernel_file_missing:n {#1} } } +\cs_generate_variant:Nn \file_input:n { V } \cs_new_protected:Npx \@@_input:n #1 { \exp_not:N \clist_if_exist:NTF \exp_not:N \@filelist @@ -3751,7 +3759,7 @@ % \begin{macrocode} \tex_endinput:D } -% \begin{macrocode} +% \end{macrocode} % % Now define the actual error message: % \begin{macrocode} |