From 1ada2ea4bbd94ac0c58e3e2cc918194140090a75 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Wed, 15 Jan 2025 23:47:08 -0300 Subject: update generated code --- src/luarocks/build.lua | 2 +- src/luarocks/build/cmake.lua | 2 +- src/luarocks/build/command.lua | 2 +- src/luarocks/build/make.lua | 2 +- src/luarocks/cmd.lua | 2 +- src/luarocks/cmd/list.lua | 2 +- src/luarocks/cmd/show.lua | 2 +- src/luarocks/cmd/upload.lua | 2 +- src/luarocks/core/types/query.lua | 2 +- src/luarocks/core/types/result.lua | 2 +- src/luarocks/core/types/rockspec.lua | 2 +- src/luarocks/fetch.lua | 2 +- src/luarocks/repos.lua | 2 +- src/luarocks/tools/patch.lua | 2 +- src/luarocks/tools/tar.lua | 2 +- src/luarocks/tools/zip.lua | 2 +- src/luarocks/type_check.lua | 2 +- src/luarocks/upload/api.lua | 2 +- src/luarocks/upload/multipart.lua | 2 +- src/luarocks/util.lua | 2 +- 20 files changed, 20 insertions(+), 20 deletions(-) (limited to 'src') diff --git a/src/luarocks/build.lua b/src/luarocks/build.lua index 1201cdef..c43e8fdc 100644 --- a/src/luarocks/build.lua +++ b/src/luarocks/build.lua @@ -1,5 +1,5 @@ local _tl_compat; if (tonumber((_VERSION or ''):match('[%d.]*$')) or 0) < 5.3 then local p, m = pcall(require, 'compat53.module'); if p then _tl_compat = m end end; local io = _tl_compat and _tl_compat.io or io; local ipairs = _tl_compat and _tl_compat.ipairs or ipairs; local pairs = _tl_compat and _tl_compat.pairs or pairs; local pcall = _tl_compat and _tl_compat.pcall or pcall; local string = _tl_compat and _tl_compat.string or string; local type = type -local build = {Builder = {}, } +local build = { Builder = {} } diff --git a/src/luarocks/build/cmake.lua b/src/luarocks/build/cmake.lua index 3f86fe9e..ea132a3e 100644 --- a/src/luarocks/build/cmake.lua +++ b/src/luarocks/build/cmake.lua @@ -2,7 +2,7 @@ local _tl_compat; if (tonumber((_VERSION or ''):match('[%d.]*$')) or 0) < 5.3 th -local cmake = {CMakeBuild = {Install = {}, }, } +local cmake = { CMakeBuild = {} } diff --git a/src/luarocks/build/command.lua b/src/luarocks/build/command.lua index f795321b..a4eddb87 100644 --- a/src/luarocks/build/command.lua +++ b/src/luarocks/build/command.lua @@ -2,7 +2,7 @@ -local command = {CommandBuild = {Install = {}, }, } +local command = { CommandBuild = {} } diff --git a/src/luarocks/build/make.lua b/src/luarocks/build/make.lua index 3110198c..7cf4505b 100644 --- a/src/luarocks/build/make.lua +++ b/src/luarocks/build/make.lua @@ -2,7 +2,7 @@ local _tl_compat; if (tonumber((_VERSION or ''):match('[%d.]*$')) or 0) < 5.3 th -local make = {MakeBuild = {Install = {}, }, } +local make = { MakeBuild = {} } diff --git a/src/luarocks/cmd.lua b/src/luarocks/cmd.lua index 92b31857..4890593d 100644 --- a/src/luarocks/cmd.lua +++ b/src/luarocks/cmd.lua @@ -1,6 +1,6 @@ local _tl_compat; if (tonumber((_VERSION or ''):match('[%d.]*$')) or 0) < 5.3 then local p, m = pcall(require, 'compat53.module'); if p then _tl_compat = m end end; local assert = _tl_compat and _tl_compat.assert or assert; local debug = _tl_compat and _tl_compat.debug or debug; local io = _tl_compat and _tl_compat.io or io; local ipairs = _tl_compat and _tl_compat.ipairs or ipairs; local loadfile = _tl_compat and _tl_compat.loadfile or loadfile; local os = _tl_compat and _tl_compat.os or os; local package = _tl_compat and _tl_compat.package or package; local pairs = _tl_compat and _tl_compat.pairs or pairs; local pcall = _tl_compat and _tl_compat.pcall or pcall; local string = _tl_compat and _tl_compat.string or string; local table = _tl_compat and _tl_compat.table or table; local _tl_table_pack = table.pack or function(...) return { n = select("#", ...), ... } end; local _tl_table_unpack = unpack or table.unpack; local type = type; local xpcall = _tl_compat and _tl_compat.xpcall or xpcall -local cmd = {Module = {}, } +local cmd = { Module = {} } diff --git a/src/luarocks/cmd/list.lua b/src/luarocks/cmd/list.lua index 84fb6588..1af8e481 100644 --- a/src/luarocks/cmd/list.lua +++ b/src/luarocks/cmd/list.lua @@ -1,7 +1,7 @@ local _tl_compat; if (tonumber((_VERSION or ''):match('[%d.]*$')) or 0) < 5.3 then local p, m = pcall(require, 'compat53.module'); if p then _tl_compat = m end end; local ipairs = _tl_compat and _tl_compat.ipairs or ipairs; local string = _tl_compat and _tl_compat.string or string; local table = _tl_compat and _tl_compat.table or table -local list = {Outdated = {}, } +local list = { Outdated = {} } diff --git a/src/luarocks/cmd/show.lua b/src/luarocks/cmd/show.lua index d9552197..087defb2 100644 --- a/src/luarocks/cmd/show.lua +++ b/src/luarocks/cmd/show.lua @@ -1,6 +1,6 @@ local _tl_compat; if (tonumber((_VERSION or ''):match('[%d.]*$')) or 0) < 5.3 then local p, m = pcall(require, 'compat53.module'); if p then _tl_compat = m end end; local ipairs = _tl_compat and _tl_compat.ipairs or ipairs; local math = _tl_compat and _tl_compat.math or math; local os = _tl_compat and _tl_compat.os or os; local string = _tl_compat and _tl_compat.string or string; local table = _tl_compat and _tl_compat.table or table; local type = type -local show = {Return = {}, } +local show = { Return = {} } diff --git a/src/luarocks/cmd/upload.lua b/src/luarocks/cmd/upload.lua index 6a3ef3d2..755dd4e7 100644 --- a/src/luarocks/cmd/upload.lua +++ b/src/luarocks/cmd/upload.lua @@ -1,5 +1,5 @@ local _tl_compat; if (tonumber((_VERSION or ''):match('[%d.]*$')) or 0) < 5.3 then local p, m = pcall(require, 'compat53.module'); if p then _tl_compat = m end end; local string = _tl_compat and _tl_compat.string or string -local upload = {Response = {version = {}, }, } +local upload = { Response = { version = {} } } diff --git a/src/luarocks/core/types/query.lua b/src/luarocks/core/types/query.lua index e8f318fe..55c3b197 100644 --- a/src/luarocks/core/types/query.lua +++ b/src/luarocks/core/types/query.lua @@ -1,6 +1,6 @@ -local query = {Query = {}, } +local query = { Query = {} } diff --git a/src/luarocks/core/types/result.lua b/src/luarocks/core/types/result.lua index 974bd23a..4a564278 100644 --- a/src/luarocks/core/types/result.lua +++ b/src/luarocks/core/types/result.lua @@ -1,6 +1,6 @@ -local result = {Result = {}, } +local result = { Result = {} } diff --git a/src/luarocks/core/types/rockspec.lua b/src/luarocks/core/types/rockspec.lua index 5d90fbf1..f23baf9b 100644 --- a/src/luarocks/core/types/rockspec.lua +++ b/src/luarocks/core/types/rockspec.lua @@ -2,7 +2,7 @@ -local rockspec = {Description = {}, Source = {}, Test = {}, Dependencies = {}, Hooks = {}, Deploy = {}, Rockspec = {}, } +local rockspec = { Description = {}, Source = {}, Test = {}, Dependencies = {}, Hooks = {}, Deploy = {}, Rockspec = {} } diff --git a/src/luarocks/fetch.lua b/src/luarocks/fetch.lua index be0cbcb7..07c4bf94 100644 --- a/src/luarocks/fetch.lua +++ b/src/luarocks/fetch.lua @@ -1,6 +1,6 @@ local _tl_compat; if (tonumber((_VERSION or ''):match('[%d.]*$')) or 0) < 5.3 then local p, m = pcall(require, 'compat53.module'); if p then _tl_compat = m end end; local assert = _tl_compat and _tl_compat.assert or assert; local io = _tl_compat and _tl_compat.io or io; local ipairs = _tl_compat and _tl_compat.ipairs or ipairs; local pcall = _tl_compat and _tl_compat.pcall or pcall; local string = _tl_compat and _tl_compat.string or string; local table = _tl_compat and _tl_compat.table or table; local type = type -local fetch = {Fetch = {}, } +local fetch = { Fetch = {} } diff --git a/src/luarocks/repos.lua b/src/luarocks/repos.lua index 32cb9aa3..e283301c 100644 --- a/src/luarocks/repos.lua +++ b/src/luarocks/repos.lua @@ -1,6 +1,6 @@ local _tl_compat; if (tonumber((_VERSION or ''):match('[%d.]*$')) or 0) < 5.3 then local p, m = pcall(require, 'compat53.module'); if p then _tl_compat = m end end; local assert = _tl_compat and _tl_compat.assert or assert; local ipairs = _tl_compat and _tl_compat.ipairs or ipairs; local os = _tl_compat and _tl_compat.os or os; local pairs = _tl_compat and _tl_compat.pairs or pairs; local string = _tl_compat and _tl_compat.string or string; local table = _tl_compat and _tl_compat.table or table; local type = type -local repos = {Op = {}, Paths = {}, } +local repos = { Op = {}, Paths = {} } diff --git a/src/luarocks/tools/patch.lua b/src/luarocks/tools/patch.lua index 4bf27e31..8dc188a6 100644 --- a/src/luarocks/tools/patch.lua +++ b/src/luarocks/tools/patch.lua @@ -8,7 +8,7 @@ local _tl_compat; if (tonumber((_VERSION or ''):match('[%d.]*$')) or 0) < 5.3 th -local patch = {Lineends = {}, Hunk = {}, File = {}, Files = {}, } +local patch = { Lineends = {}, Hunk = {}, File = {}, Files = {} } diff --git a/src/luarocks/tools/tar.lua b/src/luarocks/tools/tar.lua index 6db1334a..26090d24 100644 --- a/src/luarocks/tools/tar.lua +++ b/src/luarocks/tools/tar.lua @@ -1,6 +1,6 @@ local _tl_compat; if (tonumber((_VERSION or ''):match('[%d.]*$')) or 0) < 5.3 then local p, m = pcall(require, 'compat53.module'); if p then _tl_compat = m end end; local io = _tl_compat and _tl_compat.io or io; local math = _tl_compat and _tl_compat.math or math; local string = _tl_compat and _tl_compat.string or string -local tar = {Header = {}, } +local tar = { Header = {} } diff --git a/src/luarocks/tools/zip.lua b/src/luarocks/tools/zip.lua index 6ff368d0..169a3004 100644 --- a/src/luarocks/tools/zip.lua +++ b/src/luarocks/tools/zip.lua @@ -1,7 +1,7 @@ local _tl_compat; if (tonumber((_VERSION or ''):match('[%d.]*$')) or 0) < 5.3 then local p, m = pcall(require, 'compat53.module'); if p then _tl_compat = m end end; local io = _tl_compat and _tl_compat.io or io; local ipairs = _tl_compat and _tl_compat.ipairs or ipairs; local math = _tl_compat and _tl_compat.math or math; local os = _tl_compat and _tl_compat.os or os; local string = _tl_compat and _tl_compat.string or string; local table = _tl_compat and _tl_compat.table or table; local _tl_table_pack = table.pack or function(...) return { n = select("#", ...), ... } end; local type = type -local zip = {ZipHandle = {}, LocalFileHeader = {}, Zip = {}, } +local zip = { ZipHandle = {}, LocalFileHeader = {}, Zip = {} } diff --git a/src/luarocks/type_check.lua b/src/luarocks/type_check.lua index 6ca49fc7..cf37462c 100644 --- a/src/luarocks/type_check.lua +++ b/src/luarocks/type_check.lua @@ -1,5 +1,5 @@ local _tl_compat; if (tonumber((_VERSION or ''):match('[%d.]*$')) or 0) < 5.3 then local p, m = pcall(require, 'compat53.module'); if p then _tl_compat = m end end; local ipairs = _tl_compat and _tl_compat.ipairs or ipairs; local pairs = _tl_compat and _tl_compat.pairs or pairs; local string = _tl_compat and _tl_compat.string or string; local table = _tl_compat and _tl_compat.table or table; local type = type -local type_check = {TableSchema = {}, } +local type_check = { TableSchema = {} } diff --git a/src/luarocks/upload/api.lua b/src/luarocks/upload/api.lua index 48a657eb..e6762d76 100644 --- a/src/luarocks/upload/api.lua +++ b/src/luarocks/upload/api.lua @@ -1,4 +1,4 @@ -local _tl_compat; if (tonumber((_VERSION or ''):match('[%d.]*$')) or 0) < 5.3 then local p, m = pcall(require, 'compat53.module'); if p then _tl_compat = m end end; local io = _tl_compat and _tl_compat.io or io; local os = _tl_compat and _tl_compat.os or os; local package = _tl_compat and _tl_compat.package or package; local pairs = _tl_compat and _tl_compat.pairs or pairs; local pcall = _tl_compat and _tl_compat.pcall or pcall; local string = _tl_compat and _tl_compat.string or string; local table = _tl_compat and _tl_compat.table or table; local type = type; local api = {Configuration = {}, Api = {}, } +local _tl_compat; if (tonumber((_VERSION or ''):match('[%d.]*$')) or 0) < 5.3 then local p, m = pcall(require, 'compat53.module'); if p then _tl_compat = m end end; local io = _tl_compat and _tl_compat.io or io; local os = _tl_compat and _tl_compat.os or os; local package = _tl_compat and _tl_compat.package or package; local pairs = _tl_compat and _tl_compat.pairs or pairs; local pcall = _tl_compat and _tl_compat.pcall or pcall; local string = _tl_compat and _tl_compat.string or string; local table = _tl_compat and _tl_compat.table or table; local type = type; local api = { Configuration = {}, Api = {} } diff --git a/src/luarocks/upload/multipart.lua b/src/luarocks/upload/multipart.lua index 4867aa3d..48da065b 100644 --- a/src/luarocks/upload/multipart.lua +++ b/src/luarocks/upload/multipart.lua @@ -1,5 +1,5 @@ local _tl_compat; if (tonumber((_VERSION or ''):match('[%d.]*$')) or 0) < 5.3 then local p, m = pcall(require, 'compat53.module'); if p then _tl_compat = m end end; local io = _tl_compat and _tl_compat.io or io; local ipairs = _tl_compat and _tl_compat.ipairs or ipairs; local math = _tl_compat and _tl_compat.math or math; local pairs = _tl_compat and _tl_compat.pairs or pairs; local pcall = _tl_compat and _tl_compat.pcall or pcall; local string = _tl_compat and _tl_compat.string or string; local table = _tl_compat and _tl_compat.table or table; local _tl_table_unpack = unpack or table.unpack; local type = type -local multipart = {File = {}, } +local multipart = { File = {} } diff --git a/src/luarocks/util.lua b/src/luarocks/util.lua index e9c92a8f..ffa53b09 100644 --- a/src/luarocks/util.lua +++ b/src/luarocks/util.lua @@ -10,7 +10,7 @@ local cfg = require("luarocks.core.cfg") -local util = {Fn = {}, } +local util = { Fn = {} } -- cgit v1.2.3-55-g6feb