Skip to content

Commit

Permalink
Prefer e-type expansion
Browse files Browse the repository at this point in the history
  • Loading branch information
gusbrs committed Nov 13, 2023
1 parent 9599941 commit 98b2e53
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### Changed
- Don't use `expl3` public scratch temporary variables.
- Prefer `e-type` expansion.

## [v0.3.4](https://github.com/gusbrs/zref-check/compare/v0.3.3...v0.3.4) (2023-08-13)

Expand Down
26 changes: 13 additions & 13 deletions zref-check.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -191,14 +191,14 @@
%
% \subsection{Messages}
%
% \begin{macro}{\@@_message:nnnn, \@@_message:nnnx}
% \begin{macro}{\@@_message:nnnn, \@@_message:nnne}
% \begin{macrocode}
\cs_new_protected:Npn \@@_message:nnnn #1#2#3#4
{
\use:c { msg_ \l_@@_msglevel_tl :nnnnn }
{ zref-check } {#1} {#2} {#3} {#4}
}
\cs_generate_variant:Nn \@@_message:nnnn { nnnx }
\cs_generate_variant:Nn \@@_message:nnnn { nnne }
% \end{macrocode}
% \end{macro}
%
Expand Down Expand Up @@ -644,7 +644,7 @@
{
\bool_set_false:N \l_@@_tmpa_bool
\int_incr:N \l_@@_tmpa_int
\prop_gput:Nxx \g_@@_auxfile_lblseq_prop
\prop_gput:Nee \g_@@_auxfile_lblseq_prop
{ \l_@@_tmpb_tl }
{ \int_use:N \l_@@_tmpa_int }
}
Expand Down Expand Up @@ -801,7 +801,7 @@
{
\zref@ifrefcontainsprop {#1} {#2}
{
\tl_set:Nx #3
\tl_set:Ne #3
{ \zref@extractdefault {#1} {#2} { \c_empty_tl } }
}
{
Expand Down Expand Up @@ -947,7 +947,7 @@
% Names of the labels for this zcheck call.
% \begin{macrocode}
\int_gincr:N \g_@@_id_int
\tl_set:Nx \l_@@_checkbeg_tl
\tl_set:Ne \l_@@_checkbeg_tl
{ \@@_check_lblfmt:n { \g_@@_id_int } }
% \end{macrocode}
% Set checkbeg label.
Expand All @@ -973,7 +973,7 @@
! \l_@@_link_star_bool
}
{
\exp_args:Nx \zrefcheck_get_astl:nnn
\exp_args:Ne \zrefcheck_get_astl:nnn
{ \l_@@_link_label_tl }
{ anchor } { \l_@@_link_anchor_tl }
\hyperlink { \l_@@_link_anchor_tl } {#4}
Expand All @@ -997,7 +997,7 @@
% \end{macrocode}
% Run the checks.
% \begin{macrocode}
\@@_run_checks:nnx { \l_@@_zcheck_checks_seq }
\@@_run_checks:nne { \l_@@_zcheck_checks_seq }
{ \l_@@_zcheck_labels_seq } { \l_@@_checkbeg_tl }
\group_end:
}
Expand Down Expand Up @@ -1210,7 +1210,7 @@
}
\group_end:
}
\cs_generate_variant:Nn \@@_run_checks:nnn { nnx }
\cs_generate_variant:Nn \@@_run_checks:nnn { nne }
% \end{macrocode}
% \end{macro}
%
Expand Down Expand Up @@ -1354,15 +1354,15 @@
\l_@@_onpage_bool
}
{
\@@_message:nnnx { double-check } {#1} {#2}
\@@_message:nnne { double-check } {#1} {#2}
{ \zref@extractdefault {#3} {page} {'unknown'} }
}
}
{
\bool_if:NTF \l_@@_empty_label_bool
{ \@@_message:nnnn { empty-label } {#1} { } { } }
{
\@@_message:nnnx { check-failed } {#1} {#2}
\@@_message:nnne { check-failed } {#1} {#2}
{ \zref@extractdefault {#3} {page} {'unknown'} }
}
}
Expand Down Expand Up @@ -1952,7 +1952,7 @@
\cs_new_protected:Npn \zrefcheck_zcref_beg_label:
{
\int_gincr:N \g_@@_id_int
\tl_set:Nx \l_@@_checkbeg_tl
\tl_set:Ne \l_@@_checkbeg_tl
{ \@@_check_lblfmt:n { \g_@@_id_int } }
\zref@labelbylist { \l_@@_checkbeg_tl } { zrefcheck-check }
}
Expand All @@ -1967,7 +1967,7 @@
}
\cs_new_protected:Npn \zrefcheck_zcref_run_checks_on_labels:n #1
{
\@@_run_checks:nnx
\@@_run_checks:nne
{ \l_@@_zcheck_checks_seq } {#1} { \l_@@_checkbeg_tl }
}
% \end{macrocode}
Expand All @@ -1987,7 +1987,7 @@
\cs_new_protected:Npn \zrefcheck_zrefvario_label:
{
\int_gincr:N \g_@@_id_int
\tl_set:Nx \l_@@_checkbeg_tl
\tl_set:Ne \l_@@_checkbeg_tl
{ \@@_check_lblfmt:n { \g_@@_id_int } }
\zref@labelbylist { \l_@@_checkbeg_tl } { zrefcheck-zrefvario }
}
Expand Down

0 comments on commit 98b2e53

Please sign in to comment.