diff options
author | Philipp Gesang <phg42.2a@gmail.com> | 2013-05-02 14:46:54 +0200 |
---|---|---|
committer | Philipp Gesang <phg42.2a@gmail.com> | 2013-05-02 14:46:54 +0200 |
commit | ec9d2665e95c90f27f2529072a0616f7156ea13f (patch) | |
tree | 1438d96ab8cee8619aa542a34531dd9429f9e4bd /luatexbase-cctb.dtx | |
parent | 3f94f09e4111c64e6a4e3495db8ce3ebd195a1c4 (diff) | |
download | luatexbase-ec9d2665e95c90f27f2529072a0616f7156ea13f.tar.gz |
drop calls to deprecated `module()`
Diffstat (limited to 'luatexbase-cctb.dtx')
-rw-r--r-- | luatexbase-cctb.dtx | 9 |
1 files changed, 6 insertions, 3 deletions
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} |