[latex3-commits] [latex3/latex3] main: Add `protected` to functions (11e41ae9e)

github at latex-project.org github at latex-project.org
Sun Oct 29 11:39:17 CET 2023


Repository : https://github.com/latex3/latex3
On branch  : main
Link       : https://github.com/latex3/latex3/commit/11e41ae9e20e95215cc347979856110c4d2067a5

>---------------------------------------------------------------

commit 11e41ae9e20e95215cc347979856110c4d2067a5
Author: Yukai Chou <muzimuzhi at gmail.com>
Date:   Sat Oct 28 08:26:57 2023 +0800

    Add `protected` to functions


>---------------------------------------------------------------

11e41ae9e20e95215cc347979856110c4d2067a5
 l3kernel/l3fp-functions.dtx | 4 ++--
 l3kernel/l3fp-symbolic.dtx  | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/l3kernel/l3fp-functions.dtx b/l3kernel/l3fp-functions.dtx
index 7578bf7c7..914d60539 100644
--- a/l3kernel/l3fp-functions.dtx
+++ b/l3kernel/l3fp-functions.dtx
@@ -91,12 +91,12 @@
 % \begin{macro}
 %   {\@@_function_set_parsing:Nn, \@@_function_set_parsing_aux:NNn}
 %    \begin{macrocode}
-\cs_new:Npn \@@_function_set_parsing:Nn #1#2
+\cs_new_protected:Npn \@@_function_set_parsing:Nn #1#2
   {
     \exp_args:NNc \@@_function_set_parsing_aux:NNn #1
       { @@_parse_word_#2:N } {#2}
   }
-\cs_new:Npn \@@_function_set_parsing_aux:NNn #1#2#3
+\cs_new_protected:Npn \@@_function_set_parsing_aux:NNn #1#2#3
   {
     \cs_set:Npe \@@_tmp:w
       {
diff --git a/l3kernel/l3fp-symbolic.dtx b/l3kernel/l3fp-symbolic.dtx
index 3cd91a48c..1897df841 100644
--- a/l3kernel/l3fp-symbolic.dtx
+++ b/l3kernel/l3fp-symbolic.dtx
@@ -255,7 +255,7 @@
 %     \@@_&_symbolic_o:ww,
 %   }
 %    \begin{macrocode}
-\cs_set:Npn \@@_tmp:w #1#2
+\cs_set_protected:Npn \@@_tmp:w #1#2
   {
     \cs_new:cpn
       { @@_symbolic_#2_symbolic_o:ww }
@@ -512,7 +512,7 @@
 % \begin{macro}
 %   {\@@_variable_set_parsing:Nn, \@@_variable_set_parsing_aux:NNn}
 %    \begin{macrocode}
-\cs_new:Npn \@@_variable_set_parsing:Nn #1#2
+\cs_new_protected:Npn \@@_variable_set_parsing:Nn #1#2
   {
     \cs_set:Npn \@@_tmp:w
       {
@@ -523,7 +523,7 @@
     \exp_args:NNc \@@_variable_set_parsing_aux:NNn #1
       { @@_parse_word_#2:N } {#2}
   }
-\cs_new:Npn \@@_variable_set_parsing_aux:NNn #1#2#3
+\cs_new_protected:Npn \@@_variable_set_parsing_aux:NNn #1#2#3
   {
     \cs_if_eq:NNF #2 \@@_tmp:w
       {





More information about the latex3-commits mailing list.