summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/syst-lua.lmt
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/mkiv/syst-lua.lmt')
-rw-r--r--tex/context/base/mkiv/syst-lua.lmt19
1 files changed, 5 insertions, 14 deletions
diff --git a/tex/context/base/mkiv/syst-lua.lmt b/tex/context/base/mkiv/syst-lua.lmt
index effba14d9..d74b27689 100644
--- a/tex/context/base/mkiv/syst-lua.lmt
+++ b/tex/context/base/mkiv/syst-lua.lmt
@@ -337,8 +337,7 @@ do
implement {
name = "openin",
public = true,
- -- protected = true,
- value = true,
+ usage = "value",
actions = function()
local n = scaninteger()
scankeyword("=")
@@ -359,8 +358,7 @@ do
implement {
name = "closein",
public = true,
- -- protected = true,
- value = true,
+ usage = "value",
actions = function()
local n = scaninteger()
local c = channels[n]
@@ -374,8 +372,7 @@ do
implement {
name = "read",
public = true,
- -- protected = true,
- value = true,
+ usage = "value",
actions = function(prefix)
local n = scaninteger()
scankeyword("to")
@@ -393,8 +390,7 @@ do
implement {
name = "readline",
public = true,
- -- protected = true,
- value = true,
+ usage = "value",
actions = function(prefix)
local n = scaninteger()
scankeyword("to")
@@ -409,15 +405,10 @@ do
end,
}
- -- callback.register("if_end_of_file", function(n)
- -- return not channels[n]
- -- end)
-
implement {
name = "ifeof",
public = true,
- -- protected = true,
- condition = true,
+ usage = "condition",
actions = function(prefix)
local n = scaninteger()
return tokens.values.boolean, not channels[n]