From b62c75955ffec65eda858d6f397fd02d3d1f275c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 17 Dec 2018 18:45:28 +0800 Subject: =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/libs/lua53/io.lni | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) (limited to 'server/libs/lua53') diff --git a/server/libs/lua53/io.lni b/server/libs/lua53/io.lni index a5325cd4..d34b78b9 100644 --- a/server/libs/lua53/io.lni +++ b/server/libs/lua53/io.lni @@ -32,7 +32,7 @@ optional = 'self' [[.returns]] name = 'suc' type = 'boolean' -default = 'true' +default = true optional = 'after' [[.returns]] name = 'type' @@ -55,6 +55,7 @@ type = {'string', 'FILE*'} optional = 'self' [[.returns]] type = 'FILE*' +optional = 'self' [lines] [[.args]] @@ -64,7 +65,6 @@ optional = 'after' [[.args]] name = 'mode' type = '...' -default = 'l' [[.returns]] type = 'function' returns = { @@ -78,16 +78,11 @@ name = 'mode' enum = 'n' [[.enums]] name = 'mode' -enum = 'n' -[[.enums]] -name = 'mode' -enum = 'i' -[[.enums]] -name = 'mode' enum = 'a' [[.enums]] name = 'mode' enum = 'l' +default = true [[.enums]] name = 'mode' enum = 'L' @@ -109,6 +104,7 @@ type = 'FILE*' [[.enums]] name = 'mode' enum = 'r' +default = true [[.enums]] name = 'mode' enum = 'w' @@ -136,9 +132,13 @@ name = 'mode' type = 'string' optional = 'self' default = 'r' +[[.returns]] +name = 'file' +type = 'FILE*' [[.enums]] name = 'mode' enum = 'r' +default = true [[.enums]] name = 'mode' enum = 'w' @@ -147,7 +147,6 @@ enum = 'w' [[.args]] name = 'mode' type = '...' -default = 'l' [[.returns]] type = {'string', 'number'} [[.enums]] @@ -155,16 +154,11 @@ name = 'mode' enum = 'n' [[.enums]] name = 'mode' -enum = 'n' -[[.enums]] -name = 'mode' -enum = 'i' -[[.enums]] -name = 'mode' enum = 'a' [[.enums]] name = 'mode' enum = 'l' +default = true [[.enums]] name = 'mode' enum = 'L' -- cgit v1.2.3