[latex3-commits] [git/latex2e] master: further luatex optimisation from Bruno (82b49f5)

David Carlisle d.p.carlisle at gmail.com
Sun Jan 7 02:18:28 CET 2018


Repository : https://github.com/latex3/latex2e
On branch  : master
Link       : https://github.com/latex3/latex2e/commit/82b49f596543e183885c90d207b3765a7094b356

>---------------------------------------------------------------

commit 82b49f596543e183885c90d207b3765a7094b356
Author: David Carlisle <d.p.carlisle at gmail.com>
Date:   Sun Jan 7 01:18:28 2018 +0000

    further luatex optimisation from Bruno


>---------------------------------------------------------------

82b49f596543e183885c90d207b3765a7094b356
 base/ltdefns.dtx |   11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/base/ltdefns.dtx b/base/ltdefns.dtx
index 730fefc..76be419 100644
--- a/base/ltdefns.dtx
+++ b/base/ltdefns.dtx
@@ -32,7 +32,7 @@
 %<*driver>
 % \fi
 \ProvidesFile{ltdefns.dtx}
-             [2017/12/03 v1.5b LaTeX Kernel (definition commands)]
+             [2018/01/06 v1.5c LaTeX Kernel (definition commands)]
 % \iffalse
 \documentclass{ltxdoc}
 \GetFileInfo{ltdefns.dtx}
@@ -1219,7 +1219,7 @@
 % \changes{LaTeX2e}{1993/11/23}{Redefined to remove a trailing \cs{fi}}
 %    Check if first arg is undefined or \cs{relax} and execute second or
 %    third arg depending,
-% \changes{LaTeX2e}{2018/01/06}{Avoid defining undefined commands to \cs{relax}}
+% \changes{1.5c}{2018/01/06}{Avoid defining undefined commands to \cs{relax}}
 %    \begin{macrocode}
 %</2ekernel>
 %<latexrelease>\IncludeInRelease{2018/02/01}{\@ifundefined}
@@ -1264,13 +1264,14 @@
 %    \begin{macrocode}
 \def\@ifundefined#1{%
   \ifcsname#1\endcsname
-  \expandafter\ifx\lastnamedcs\relax\else
-  \expandafter\expandafter\expandafter\@thirdofthree
-  \fi
+    \expandafter\ifx\lastnamedcs\relax\else\@ifundefin at d@i\fi
   \fi
   \@firstoftwo}
 %    \end{macrocode}
 %    \begin{macrocode}
+\long\def\@ifundefin at d@i#1#2#3#4#5{#1#2#5}
+%    \end{macrocode}
+%    \begin{macrocode}
 \fi
 \fi
 %</2ekernel|latexrelease>





More information about the latex3-commits mailing list