Skip to content

Commit

Permalink
Make plug definitions non-protected in ltsockets
Browse files Browse the repository at this point in the history
  • Loading branch information
zauguin committed Oct 27, 2024
1 parent 6240430 commit 4851708
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion base/changes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ not part of the distribution.
Adapt two argument tagging sockets to preserve second argument when the socket is disabled.
Add expandable versions of tagging socket use commands.
* ltsocket.dtx
Add expandable versions of \socket_use_expandable:n
Add expandable versions of \socket_use_expandable:n.
Make internal plug definitions non-protected to allow expandable use.

2024-10-26 Yukai Chou <muzimuzhi@gmail.com>
* ltcounts.dtx (subsection{Environment Counter Macros}):
Expand Down
5 changes: 3 additions & 2 deletions base/ltsockets.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -836,6 +836,7 @@
%
%
% \begin{macro}{\socket_new_plug:nnn,\socket_set_plug:nnn}
% \changes{v0.9b}{2024/10/27}{Make plug definition non-protected}
%
% Declaring a code for a socket is just making a definition, taking
% the number of arguments from the saved int.
Expand All @@ -850,7 +851,7 @@
{
\cs_generate_from_arg_count:cNnn
{ @@_#1_plug_#2:w }
\cs_new_protected:Npn
\cs_new:Npn
{ \int_use:c { c_@@_#1_args_int } }
{#3}
% \end{macrocode}
Expand Down Expand Up @@ -878,7 +879,7 @@
{
\cs_generate_from_arg_count:cNnn
{ @@_#1_plug_#2:w }
\cs_set_protected:Npn
\cs_set:Npn
{ \int_use:c { c_@@_#1_args_int } }
{#3}
\@@_debug_term:n
Expand Down

0 comments on commit 4851708

Please sign in to comment.