summaryrefslogtreecommitdiff
path: root/tex/context/base/supp-fil.tex
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/supp-fil.tex')
-rw-r--r--tex/context/base/supp-fil.tex8
1 files changed, 6 insertions, 2 deletions
diff --git a/tex/context/base/supp-fil.tex b/tex/context/base/supp-fil.tex
index d1f237815..2b9acd12f 100644
--- a/tex/context/base/supp-fil.tex
+++ b/tex/context/base/supp-fil.tex
@@ -393,7 +393,7 @@
{\doiffileelse{\pathplusfile{\f!currentpath}{#1}}}
%D \macros
-%D {doonlyonce, doinputonce}
+%D {doonlyonce, doinputonce, doendinputonce}
%D
%D Especially macropackages need only be loaded once.
%D Repetitive loading not only costs time, relocating registers
@@ -403,7 +403,8 @@
%D
%D \starttypen
%D \doonlyonce{actions}
-%D \doloadonce{filename}
+%D \doinputonce{filename}
+%D \doendinputonce{filename}
%D \stoptypen
%D
%D This command obeys the standard method for locating files.
@@ -414,6 +415,9 @@
\def\doinputonce#1%
{\doonlyonce{#1}{\doiffileelse{#1}{\normalinput #1\relax}{}}}
+\def\doendinputonce#1%
+ {\doifdefined{@@@#1@@@}{\endinput}}
+
%D \macros
%D {doifparentfileelse}
%D