summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/syst-ini.mkxl
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2020-11-06 20:46:53 +0100
committerContext Git Mirror Bot <phg@phi-gamma.net>2020-11-06 20:46:53 +0100
commitd8b32263856c2f951bedec7f89adad3a412b7499 (patch)
treec95527f9a0d47bd44e498ae6b1c632fd956b6f07 /tex/context/base/mkiv/syst-ini.mkxl
parentc8e4762108bce6354ba48c34fe0b4c6f2ff6dcee (diff)
downloadcontext-d8b32263856c2f951bedec7f89adad3a412b7499.tar.gz
2020-11-06 20:26:00
Diffstat (limited to 'tex/context/base/mkiv/syst-ini.mkxl')
-rw-r--r--tex/context/base/mkiv/syst-ini.mkxl16
1 files changed, 12 insertions, 4 deletions
diff --git a/tex/context/base/mkiv/syst-ini.mkxl b/tex/context/base/mkiv/syst-ini.mkxl
index 202bc62f7..02202063c 100644
--- a/tex/context/base/mkiv/syst-ini.mkxl
+++ b/tex/context/base/mkiv/syst-ini.mkxl
@@ -751,11 +751,19 @@
\aliased\let\conditionalfalse\plusone % maybe we will have a dedicated count/chardef
\aliased\let\conditionaltrue \zerocount % maybe we will have a dedicated count/chardef
-\permanent\protected\def\settrue #1{\integerdef#1\conditionaltrue }
-\permanent\protected\def\setfalse#1{\integerdef#1\conditionalfalse}
+% \permanent\protected\def\settrue #1{\integerdef#1\conditionaltrue }
+% \permanent\protected\def\setfalse#1{\integerdef#1\conditionalfalse}
+%
+% \permanent\protected\def\settruevalue #1{\expandafter\integerdef\csname#1\endcsname\conditionaltrue }
+% \permanent\protected\def\setfalsevalue#1{\expandafter\integerdef\csname#1\endcsname\conditionalfalse}
+
+\permanent\protected\def\settrue #1{\enforced\let#1\conditionaltrue }
+\permanent\protected\def\setfalse #1{\enforced\let#1\conditionalfalse}
+\permanent\protected\def\setconditional#1{\enforced\let#1}
+
+\permanent\protected\def\settruevalue #1{\enforced\letcsname#1\endcsname\conditionaltrue }
+\permanent\protected\def\setfalsevalue#1{\enforced\letcsname#1\endcsname\conditionalfalse}
-\permanent\protected\def\settruevalue #1{\expandafter\integerdef\csname#1\endcsname\conditionaltrue }
-\permanent\protected\def\setfalsevalue#1{\expandafter\integerdef\csname#1\endcsname\conditionalfalse}
\aliased\let\newconditional\setfalse
\aliased\let\ifconditional \ifcase