From af884a97dbf26163539d60199ffa2ad409d59186 Mon Sep 17 00:00:00 2001 From: Victor Ilchev <46074073+V1K1NGbg@users.noreply.github.com> Date: Fri, 26 Jul 2024 16:54:23 +0300 Subject: [PATCH] add the code output to the io.open function (#769) Updated definition for io.open function to expose the 3rd parameter containing the returning code as integer * Add the code output to the io.open function * generate the tl.lua --- tl.lua | 2 +- tl.tl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tl.lua b/tl.lua index 68b6d7a69..c0a422f9a 100644 --- a/tl.lua +++ b/tl.lua @@ -145,7 +145,7 @@ do lines: function(? string, (number | FileMode)...): (function(): ((string | number)...)) lines: function(? string, (number | string)...): (function(): (string...)) - open: function(string, ? OpenMode): FILE, string + open: function(string, ? OpenMode): FILE, string, integer output: function(? FILE): FILE popen: function(string, ? OpenMode): FILE, string diff --git a/tl.tl b/tl.tl index 8722ec297..cf7c470c1 100644 --- a/tl.tl +++ b/tl.tl @@ -145,7 +145,7 @@ do lines: function(? string, (number | FileMode)...): (function(): ((string | number)...)) lines: function(? string, (number | string)...): (function(): (string...)) - open: function(string, ? OpenMode): FILE, string + open: function(string, ? OpenMode): FILE, string, integer output: function(? FILE): FILE popen: function(string, ? OpenMode): FILE, string