diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/l3kernel/l3int.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/l3kernel/l3int.dtx | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/Master/texmf-dist/source/latex/l3kernel/l3int.dtx b/Master/texmf-dist/source/latex/l3kernel/l3int.dtx index 85da3a199e1..54f36dbab51 100644 --- a/Master/texmf-dist/source/latex/l3kernel/l3int.dtx +++ b/Master/texmf-dist/source/latex/l3kernel/l3int.dtx @@ -43,7 +43,7 @@ % }^^A % } % -% \date{Released 2021-02-18} +% \date{Released 2021-05-07} % % \maketitle % @@ -891,15 +891,15 @@ % literal numbers. % \end{variable} % -% \begin{variable}{\c_max_int} +% \begin{variable}[module = int]{\c_max_int} % The maximum value that can be stored as an integer. % \end{variable} % -% \begin{variable}{\c_max_register_int} +% \begin{variable}[module = int]{\c_max_register_int} % Maximum number of registers. % \end{variable} % -% \begin{variable}{\c_max_char_int} +% \begin{variable}[module = int]{\c_max_char_int} % Maximum character code completely supported by the engine. % \end{variable} % @@ -1282,6 +1282,7 @@ % \end{macro} % % \begin{macro}{\int_const:Nn, \int_const:cn} +% \begin{macro}{\@@_const:nN} % \begin{macro}{\@@_constdef:Nw} % \begin{variable}{\c_@@_max_constdef_int} % \UnitTested @@ -1293,24 +1294,26 @@ % enabled) this runs some checks that constants would fail. % \begin{macrocode} \cs_new_protected:Npn \int_const:Nn #1#2 + { \exp_args:Ne \@@_const:nN { \int_eval:n {#2} } #1 } +\cs_new_protected:Npn \@@_const:nN #1#2 { - \int_compare:nNnTF {#2} < \c_zero_int + \int_compare:nNnTF {#1} < \c_zero_int { - \int_new:N #1 + \int_new:N #2 \tex_global:D } { - \int_compare:nNnTF {#2} > \c_@@_max_constdef_int + \int_compare:nNnTF {#1} > \c_@@_max_constdef_int { - \int_new:N #1 + \int_new:N #2 \tex_global:D } { - \__kernel_chk_if_free_cs:N #1 + \__kernel_chk_if_free_cs:N #2 \tex_global:D \@@_constdef:Nw } } - #1 = \@@_eval:w #2 \@@_eval_end: + #2 = \@@_eval:w #1 \@@_eval_end: } \cs_generate_variant:Nn \int_const:Nn { c } \if_int_odd:w 0 @@ -1329,6 +1332,7 @@ % \end{variable} % \end{macro} % \end{macro} +% \end{macro} % % \begin{macro}{\int_zero:N, \int_zero:c} % \UnitTested @@ -1671,7 +1675,7 @@ % \begin{macro}{\@@_case:nw, \@@_case_end:nw} % For integer cases, the first task to fully expand the check % condition. The over all idea is then much the same as for -% \cs{tl_case:nn(TF)} as described in \pkg{l3tl}. +% \cs{tl_case:nnTF} as described in \pkg{l3tl}. % \begin{macrocode} \cs_new:Npn \int_case:nnTF #1 { |