diff options
author | Marius <mariausol@gmail.com> | 2014-01-30 23:40:15 +0200 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2014-01-30 23:40:15 +0200 |
commit | b8b8e1819a1a3e327c26b3c758bdf0dd4a5f88e0 (patch) | |
tree | 5ed13e7888a7e383d68ca08d94f385574a3dd02f /tex/context/base/syst-ini.mkiv | |
parent | bed521c2be2cfc35e739e13d03ba171417a04453 (diff) | |
download | context-b8b8e1819a1a3e327c26b3c758bdf0dd4a5f88e0.tar.gz |
beta 2014.01.30 22:19
Diffstat (limited to 'tex/context/base/syst-ini.mkiv')
-rw-r--r-- | tex/context/base/syst-ini.mkiv | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tex/context/base/syst-ini.mkiv b/tex/context/base/syst-ini.mkiv index ab1c53131..38c34556a 100644 --- a/tex/context/base/syst-ini.mkiv +++ b/tex/context/base/syst-ini.mkiv @@ -246,9 +246,10 @@ % Watch out, for the moment we disable the check for already being defined % later we will revert this but first all chardefs must be replaced. -\normalprotected\def\newconstant #1{\ifdefined#1\let#1\undefined\fi\newcount#1} -\normalprotected\def\setnewconstant#1{\ifdefined#1\let#1\undefined\fi\newcount#1#1} % just a number -\normalprotected\def\setconstant {} % dummy, no checking, so it warns +\normalprotected\def\newconstant #1{\ifdefined#1\let#1\undefined\fi\newcount#1} +\normalprotected\def\setnewconstant #1{\ifdefined#1\let#1\undefined\fi\newcount#1#1} % just a number +\normalprotected\def\setconstant {} % dummy, no checking, so it warns +\normalprotected\def\setconstantvalue#1#2{\csname#1\endcsname\numexpr#2\relax} % maybe setconstant with check @@ -744,6 +745,9 @@ \normalprotected\def\settrue #1{\let#1\conditionaltrue } \normalprotected\def\setfalse#1{\let#1\conditionalfalse} +\normalprotected\def\settruevalue #1{\expandafter\let\csname#1\endcsname\conditionaltrue } +\normalprotected\def\setfalsevalue#1{\expandafter\let\csname#1\endcsname\conditionalfalse} + \let\newconditional\setfalse \let\ifconditional \ifcase |