logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git
commit: b5d6c2aaedeb6f1dd760da9461739328666e18b7
parent 174d33399a114b42f5745f0e32873f046de077e9
Author: Michael Forney <mforney@mforney.org>
Date:   Sat, 30 Dec 2017 22:38:12 -0800

Make a couple functions local

Diffstat:

Mninja.lua4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ninja.lua b/ninja.lua @@ -71,7 +71,7 @@ function expand(t) end -- yields expanded paths from the given path specification string -function pathsgen(s, i) +local function pathsgen(s, i) local results = {} local first = not i while true do @@ -130,7 +130,7 @@ function paths(s) end -- yields non-empty non-comment lines in a file -function linesgen(file) +local function linesgen(file) table.insert(pkg.inputs.gen, '$dir/'..file) for line in io.lines(pkg.dir..'/'..file) do if #line > 0 and not line:hasprefix('#') then