From 5c2d92ab25c5315ed7cf65a2318d7abaea9f6eed Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= <mpg@elzevir.fr>
Date: Mon, 18 Apr 2011 17:02:46 +0200
Subject: cctb: small adjustments

---
 luatexbase-cctb.dtx | 21 ++++++---------------
 1 file changed, 6 insertions(+), 15 deletions(-)

(limited to 'luatexbase-cctb.dtx')

diff --git a/luatexbase-cctb.dtx b/luatexbase-cctb.dtx
index c60cdc0..b3172c0 100644
--- a/luatexbase-cctb.dtx
+++ b/luatexbase-cctb.dtx
@@ -289,18 +289,8 @@ See source file '\inFileName' for details.
 %
 %    \subsubsection{Primitives needed}
 %
-%    Load \pk{luatexbase-compat}.
-%
-%    \begin{macrocode}
-\begingroup\expandafter\expandafter\expandafter\endgroup
-\expandafter\ifx\csname RequirePackage\endcsname\relax
-  \input luatexbase-compat.sty
-\else
-  \RequirePackage{luatexbase-compat}
-\fi
-%    \end{macrocode}
-%
-%    Make sure the primitives we need are available.
+%    \pk{luatexbase-compat} is already loaded; just make sure the primitives
+%    we need are available.
 %
 %    \begin{macrocode}
 \luatexbase@ensure@primitive{luaescapestring}
@@ -312,14 +302,15 @@ See source file '\inFileName' for details.
 %    \subsubsection{User macros}
 %
 %    The allocation macro. Allocate tables starting with 1, since table 0 is
-%    reserved for IniTeX catcodes by LuaTeX.
+%    the default table. Allocate only odd numbers to allow using even numbers
+%    as a stack.
 %
 %    \begin{macrocode}
 \newcount\lltxb@catcodetable@alloc
-\lltxb@catcodetable@alloc\z@
+\lltxb@catcodetable@alloc\m@ne
 \def\newluatexcatcodetable#1{%
   \ifnum\lltxb@catcodetable@alloc<65535\relax
-    \global\advance\lltxb@catcodetable@alloc\@ne
+    \global\advance\lltxb@catcodetable@alloc\tw@
     \allocationnumber\lltxb@catcodetable@alloc
     \global\chardef#1\allocationnumber
     \luatexinitcatcodetable\allocationnumber
-- 
cgit v1.2.3

