summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Pégourié-Gonnard <mpg@elzevir.fr>2010-03-29 18:24:04 +0200
committerManuel Pégourié-Gonnard <mpg@elzevir.fr>2010-03-29 18:24:04 +0200
commit4ebd1bb559f0e74db3704617dc3b4b6d149f24d1 (patch)
treea2017f212727cd6bb29b8ee427ed328ee8a84a55
parente4a0575aa7854548b4f881925f7477f12f3bc696 (diff)
downloadluatexbase-4ebd1bb559f0e74db3704617dc3b4b6d149f24d1.tar.gz
mcb now compatible with luatex 0.25.4
-rw-r--r--TODO3
-rw-r--r--luatexbase-mcb.dtx5
2 files changed, 4 insertions, 4 deletions
diff --git a/TODO b/TODO
index 6c43e1a..b0d0901 100644
--- a/TODO
+++ b/TODO
@@ -15,11 +15,10 @@ modutils
mcallbacks
----------
-- Compatibility : tex.luaversion not available in 0.25.4 :'(
-- Incorporate remaining bits from luatextra?
- Make more Lua objects local.
- Stop creating functions in the callback table ?!
- Make a decision about names of public functions.
+- Incorporate remaining bits from luatextra?
- General review of code and comments.
- Update user documentation.
diff --git a/luatexbase-mcb.dtx b/luatexbase-mcb.dtx
index 4abe6db..7897822 100644
--- a/luatexbase-mcb.dtx
+++ b/luatexbase-mcb.dtx
@@ -397,10 +397,11 @@ callbacktypes = callbacktypes or {
% \end{macrocode}
%
% In Lua\TeX\ version 0.43, a new callback called |process_output_buffer|
-% appeared, so we enable it.
+% appeared, so we enable it. Test the version using the compat package for,
+% well, compatibility.
%
% \begin{macrocode}
-if tex.luatexversion > 42 then
+if luatexbase.luatexversion > 42 then
callbacktypes["process_output_buffer"] = data
end
% \end{macrocode}