summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/expl3/l3tl.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/expl3/l3tl.dtx')
-rw-r--r--Master/texmf-dist/source/latex/expl3/l3tl.dtx136
1 files changed, 3 insertions, 133 deletions
diff --git a/Master/texmf-dist/source/latex/expl3/l3tl.dtx b/Master/texmf-dist/source/latex/expl3/l3tl.dtx
index fe6ecd271f1..487578939f1 100644
--- a/Master/texmf-dist/source/latex/expl3/l3tl.dtx
+++ b/Master/texmf-dist/source/latex/expl3/l3tl.dtx
@@ -36,7 +36,7 @@
\RequirePackage{l3names}
%</driver|package>
%\fi
-\GetIdInfo$Id: l3tl.dtx 2184 2011-03-07 18:07:12Z joseph $
+\GetIdInfo$Id: l3tl.dtx 2223 2011-04-09 12:57:14Z will $
{L3 Experimental Token Lists}
%\iffalse
%<*driver>
@@ -828,13 +828,13 @@
% \end{macrocode}
% Otherwise any variable type is allowed.
% \begin{macrocode}
- \cs_gset_nopar:Npn #1{#2}
+ \tl_gset:Nn #1 {#2}
}
\cs_generate_variant:Nn \tl_new:Nn {cn}
\cs_new_protected:Npn \tl_new:Nx #1#2{
\chk_if_free_cs:N #1
%<check> \chk_var_or_const:N #1
- \cs_gset_nopar:Npx #1{#2}
+ \tl_gset:Nx #1 {#2}
}
\cs_new_protected_nopar:Npn \tl_new:N #1{\tl_new:Nn #1{}}
\cs_new_protected_nopar:Npn \tl_new:c #1{\tl_new:cn {#1}{}}
@@ -2134,137 +2134,7 @@
% \end{macro}
% \end{macro}
% \end{macro}
-%
-%\begin{macro}{\_tl_check_exists:N}
-% When used as a package, there is an option to be picky and to
-% check definitions exist. The message text for this is created later,
-% as the mechanism is not yet in place.
-% \begin{macrocode}
-%<*package>
-\tex_ifodd:D \@l@expl@check@declarations@bool \scan_stop:
- \cs_set_protected:Npn \_tl_check_exists:N #1
- {
- \cs_if_exist:NF #1
- {
- \msg_kernel_error:nnx { check } { non-declared-variable }
- { \token_to_str:N #1 }
- }
- }
- \cs_set_protected:Npn \tl_set:Nn #1#2
- {
- \_tl_check_exists:N #1
- \cs_set_nopar:Npx #1 { \exp_not:n {#2} }
- }
- \cs_set_protected:Npn \tl_set:Nx #1#2
- {
- \_tl_check_exists:N #1
- \cs_set_nopar:Npx #1 {#2}
- }
- \cs_set_protected:Npn \tl_gset:Nn #1#2
- {
- \_tl_check_exists:N #1
- \cs_gset_nopar:Npx #1 { \exp_not:n {#2} }
- }
- \cs_set_protected:Npn \tl_gset:Nx #1#2
- {
- \_tl_check_exists:N #1
- \cs_gset_nopar:Npx #1 {#2}
- }
- \cs_set_protected:Npn \tl_set_eq:NN #1#2
- {
- \_tl_check_exists:N #1
- \_tl_check_exists:N #2
- \cs_set_eq:NN #1 #2
- }
- \cs_set_protected:Npn \tl_gset_eq:NN #1#2
- {
- \_tl_check_exists:N #1
- \_tl_check_exists:N #2
- \cs_gset_eq:NN #1 #2
- }
- \cs_set_protected:Npn \tl_put_right:Nn #1#2 {
- \_tl_check_exists:N #1
- \cs_set_nopar:Npx #1 { \exp_not:o #1 \exp_not:n {#2} }
- }
- \cs_set_protected:Npn \tl_put_right:NV #1#2 {
- \_tl_check_exists:N #1
- \cs_set_nopar:Npx #1 { \exp_not:o #1 \exp_not:V #2 }
- }
- \cs_set_protected:Npn \tl_put_right:Nv #1#2 {
- \_tl_check_exists:N #1
- \cs_set_nopar:Npx #1 { \exp_not:o #1 \exp_not:v {#2} }
- }
- \cs_set_protected:Npn \tl_put_right:No #1#2 {
- \_tl_check_exists:N #1
- \cs_set_nopar:Npx #1 { \exp_not:o #1 \exp_not:o {#2} }
- }
- \cs_set_protected:Npn \tl_put_right:Nx #1#2 {
- \_tl_check_exists:N #1
- \cs_set_nopar:Npx #1 { \exp_not:o #1 #2 }
- }
- \cs_set_protected:Npn \tl_gput_right:Nn #1#2 {
- \_tl_check_exists:N #1
- \cs_gset_nopar:Npx #1 { \exp_not:o #1 \exp_not:n {#2} }
- }
- \cs_set_protected:Npn \tl_gput_right:NV #1#2 {
- \_tl_check_exists:N #1
- \cs_gset_nopar:Npx #1 { \exp_not:o #1 \exp_not:V #2 }
- }
- \cs_set_protected:Npn \tl_gput_right:Nv #1#2 {
- \_tl_check_exists:N #1
- \cs_gset_nopar:Npx #1 { \exp_not:o #1 \exp_not:v {#2} }
- }
- \cs_set_protected:Npn \tl_gput_right:Nx #1#2 {
- \_tl_check_exists:N #1
- \cs_gset_nopar:Npx #1 { \exp_not:o #1 #2 }
- }
- \cs_set_protected:Npn \tl_put_left:Nn #1#2 {
- \_tl_check_exists:N #1
- \cs_set_nopar:Npx #1 { \exp_not:n {#2} \exp_not:o #1 }
- }
- \cs_set_protected:Npn \tl_put_left:NV #1#2 {
- \_tl_check_exists:N #1
- \cs_set_nopar:Npx #1 { \exp_not:V #2 \exp_not:o #1 }
- }
- \cs_set_protected:Npn \tl_put_left:Nv #1#2 {
- \_tl_check_exists:N #1
- \cs_set_nopar:Npx #1 { \exp_not:v {#2} \exp_not:o #1 }
- }
- \cs_set_protected:Npn \tl_put_left:No #1#2 {
- \_tl_check_exists:N #1
- \cs_set_nopar:Npx #1 { \exp_not:o {#2} \exp_not:o #1 }
- }
- \cs_set_protected:Npn \tl_put_left:Nx #1#2 {
- \_tl_check_exists:N #1
- \cs_set_nopar:Npx #1 { #2 \exp_not:o #1 }
- }
- \cs_set_protected:Npn \tl_gput_left:Nn #1#2 {
- \_tl_check_exists:N #1
- \cs_gset_nopar:Npx #1 { \exp_not:n {#2} \exp_not:o #1 }
- }
- \cs_set_protected:Npn \tl_gput_left:NV #1#2 {
- \_tl_check_exists:N #1
- \cs_gset_nopar:Npx #1 { \exp_not:V #2 \exp_not:o #1 }
- }
- \cs_set_protected:Npn \tl_gput_left:Nv #1#2 {
- \_tl_check_exists:N #1
- \cs_gset_nopar:Npx #1 { \exp_not:v {#2} \exp_not:o #1 }
- }
- \cs_set_protected:Npn \tl_gput_left:Nx #1#2 {
- \_tl_check_exists:N #1
- \cs_gset_nopar:Npx #1 { #2 \exp_not:o #1 }
- }
-\tex_fi:D
-%</package>
-% \end{macrocode}
-%\end{macro}
%
-% Show token usage:
-% \begin{macrocode}
-%<*showmemory>
-\showMemUsage
-%</showmemory>
-% \end{macrocode}
%
% \end{implementation}
% \PrintIndex