From ec9d2665e95c90f27f2529072a0616f7156ea13f Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Thu, 2 May 2013 14:46:54 +0200 Subject: drop calls to deprecated `module()` --- luatexbase-cctb.dtx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'luatexbase-cctb.dtx') diff --git a/luatexbase-cctb.dtx b/luatexbase-cctb.dtx index f869c5b..8958f20 100644 --- a/luatexbase-cctb.dtx +++ b/luatexbase-cctb.dtx @@ -649,7 +649,8 @@ See the aforementioned source file(s) for copyright and licensing information. % % \begin{macrocode} %<*luamodule> -module('luatexbase', package.seeall) +luatexbase = luatexbase or { } +local luatexbase = { } % \end{macrocode} % % The number associated to a CS name is remembered in the |catcodetables| @@ -657,9 +658,10 @@ module('luatexbase', package.seeall) % % \begin{macrocode} catcodetables = {} -function catcodetabledef_from_tex(name, number) +local function catcodetabledef_from_tex(name, number) catcodetables[name] = tonumber(number) end +luatexbase.catcodetabledef_from_tex = catcodetabledef_from_tex % \end{macrocode} % % The next function creates some shortcuts for better readability in lua @@ -667,7 +669,7 @@ end % |luatexbase.catcodetables.CatcodeTableLaTeX|. % % \begin{macrocode} -function catcodetable_do_shortcuts() +local function catcodetable_do_shortcuts() local cat = catcodetables cat['latex'] = cat.CatcodeTableLaTeX cat['latex-package'] = cat.CatcodeTableLaTeXAtLetter @@ -678,6 +680,7 @@ function catcodetable_do_shortcuts() cat['string'] = cat.CatcodeTableString cat['other'] = cat.CatcodeTableOther end +luatexbase.catcodetable_do_shortcuts = catcodetable_do_shortcuts % \end{macrocode} % % \begin{macrocode} -- cgit v1.2.3