diff options
Diffstat (limited to 'Master/texmf-dist/tex/context/base/mkiv/file-mod.mkvi')
-rw-r--r-- | Master/texmf-dist/tex/context/base/mkiv/file-mod.mkvi | 32 |
1 files changed, 14 insertions, 18 deletions
diff --git a/Master/texmf-dist/tex/context/base/mkiv/file-mod.mkvi b/Master/texmf-dist/tex/context/base/mkiv/file-mod.mkvi index a06770e24d1..a2a3b77933e 100644 --- a/Master/texmf-dist/tex/context/base/mkiv/file-mod.mkvi +++ b/Master/texmf-dist/tex/context/base/mkiv/file-mod.mkvi @@ -36,9 +36,9 @@ \let\usetexmodule\usemodules \def\strc_modules_use[#category][#name][#parameters]% category=t|m|x|p|... - {\push_macro_currentmodule - \push_macro_currentmodulecategory - \push_macro_currentmoduleparameters + {\pushmacro\currentmodule + \pushmacro\currentmodulecategory + \pushmacro\currentmoduleparameters \ifthirdargument \edef\currentmodulecategory {#category}% \edef\currentmodule {#name}% @@ -57,9 +57,9 @@ \let \currentmoduleparameters\empty \fi\fi \processcommacommand[\currentmodule]{\strc_modules_use_indeed\currentmodulecategory}% - \pop_macro_currentmoduleparameters - \pop_macro_currentmodulecategory - \pop_macro_currentmodule} + \popmacro\currentmoduleparameters + \popmacro\currentmodulecategory + \popmacro\currentmodule} \def\strc_modules_use_indeed#category#name% {\ifx\currentmoduleparameters\empty\else @@ -70,24 +70,20 @@ \installcorenamespace{module} -\let\currentmodule \s!unknown -\let\currentmodulecategory \empty \let\currentmoduleparameters\empty +\let\currentmodule \s!unknown -\installmacrostack\currentmodule -\installmacrostack\currentmodulecategory -\installmacrostack\currentmoduleparameters +\newcount \c_syst_modules_nesting -\newcount\c_syst_modules_nesting -\newtoks \everysetupmodule +\newtoks\everysetupmodule \unexpanded\def\startmodule {\doifelsenextoptionalcs\syst_modules_start_yes\syst_modules_start_nop} \def\syst_modules_start_yes[#name]% {\global\advance\c_syst_modules_nesting\plusone - \push_macro_currentmodule - \push_macro_currentmoduleparameters + \pushmacro\currentmodule + \pushmacro\currentmoduleparameters \def\currentmodule{#name}} \def\syst_modules_start_nop#name % @@ -97,8 +93,8 @@ {\ifcase\c_syst_modules_nesting \writestatus\m!system{module wrapping error in '\currentmodule'}% \else - \pop_macro_currentmoduleparameters - \pop_macro_currentmodule + \popmacro\currentmoduleparameters + \popmacro\currentmodule \global\advance\c_syst_modules_nesting\minusone \fi} @@ -207,7 +203,7 @@ {\ifcsname\??runtimeloaded#2\endcsname % already loaded \else - \glet#1\undefined + \global\let#1\undefined \startreadingfile \startnointerference % \bgroup \cleanupfeatures % better \setnormalcatcodes / test first |