summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-04-11 23:06:32 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2013-04-11 23:06:32 +0200
commit2617aa3572939fa4585640f85e3b2b8835827b97 (patch)
tree436519e64c45d7c92d4c84cffd42cfd9a4a4985d
parente1235674abdd5cf891f169e30683fddbfcb87af1 (diff)
downloadluatexbase-2617aa3572939fa4585640f85e3b2b8835827b97.tar.gz
update mcb.lua for 5.2
-rw-r--r--Makefile2
-rw-r--r--luatexbase-mcb.dtx2
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 0f65bf1..188d1e4 100644
--- a/Makefile
+++ b/Makefile
@@ -84,7 +84,7 @@ luatexbase.%.lua: %.lua
$(UNPACKED_MCB): luatexbase-mcb.dtx
$(DO_TEX)
- echo \\\\relax > $(TEST_MCB)
+ echo \\relax > $(TEST_MCB)
$(UNPACKED_REGS): luatexbase-regs.dtx
$(DO_TEX)
diff --git a/luatexbase-mcb.dtx b/luatexbase-mcb.dtx
index b26f56f..e292b50 100644
--- a/luatexbase-mcb.dtx
+++ b/luatexbase-mcb.dtx
@@ -733,7 +733,7 @@ function remove_from_callback (name, description)
end
table.remove(l, index)
info("removing '%s'\nfrom '%s'", description, name)
- if table.maxn(l) == 0 then
+ if #l == 0 then
callbacklist[name] = nil
if not lua_callbacks_defaults[name] then
register_callback(name, nil)