diff options
Diffstat (limited to 'tex/context/base/file-ini.mkvi')
-rw-r--r-- | tex/context/base/file-ini.mkvi | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/tex/context/base/file-ini.mkvi b/tex/context/base/file-ini.mkvi index 989241dd1..b0f6244aa 100644 --- a/tex/context/base/file-ini.mkvi +++ b/tex/context/base/file-ini.mkvi @@ -73,17 +73,15 @@ %D \popendofline %D \stoptyping -\installsystemnamespace{eolstack} - \newcount\c_system_files_eol_level \unexpanded\def\pushendofline {\advance\c_system_files_eol_level\plusone - \expandafter\chardef\csname\??eolstack\number\c_system_files_eol_level\endcsname\catcode\endoflineasciicode + \expandafter\chardef\csname\??fi:eol:\number\c_system_files_eol_level\endcsname\catcode\endoflineasciicode \catcode\endoflineasciicode\commentcatcode} \unexpanded\def\popendofline - {\catcode\endoflineasciicode\csname\??eolstack\number\c_system_files_eol_level\endcsname + {\catcode\endoflineasciicode\csname\??fi:eol:\number\c_system_files_eol_level\endcsname \advance\c_system_files_eol_level\minusone} \unexpanded\def\restoreendofline @@ -103,11 +101,11 @@ \the\everystartreadingfile \pushcatcodetable % saveguard \setcatcodetable\ctxcatcodes - \ctxcommand{pushregime()}}% temporarily this way + \ctxlua{regimes.push()}}% temporarily this way \unexpanded\def\stopreadingfile {\popcatcodetable % saveguard - \ctxcommand{popregime()}% temporarily this way + \ctxlua{regimes.pop()}% temporarily this way \the\everystopreadingfile \global\advance\readingfilelevel\minusone} @@ -205,13 +203,11 @@ %D This command obeys the standard method for locating files. We could %D move this function to the \LUA\ end. -\installsystemnamespace {fileonce} - \unexpanded\def\doonlyonce#whatever% - {\ifcsname\??fileonce#whatever\endcsname + {\ifcsname\??fi:#whatever\endcsname \expandafter\gobbleoneargument \else - \letgvalue{\??fileonce#whatever}\relax + \letgvalue{\??fi:#whatever}\relax \expandafter\firstofoneargument \fi} @@ -219,11 +215,11 @@ {\doonlyonce{#name}{\doiffileelse{#name}{\inputgivenfile{#name}}\donothing}} \unexpanded\def\doendinputonce#name% - {\ifcsname\??fileonce#name\endcsname + {\ifcsname\??fi:#name\endcsname \expandafter\endinput \fi} \unexpanded\def\forgetdoingonce#whatever% - {\global\letbeundefined{\??fileonce#whatever}} + {\global\letbeundefined{\??fi:#whatever}} \protect \endinput |