summaryrefslogtreecommitdiff
path: root/ninja.lua
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2017-12-30 22:38:12 -0800
committerMichael Forney <mforney@mforney.org>2017-12-30 22:38:12 -0800
commitb5d6c2aaedeb6f1dd760da9461739328666e18b7 (patch)
treeb86c9fbe5f7804a0181d30ab2bedc54da3f0e081 /ninja.lua
parent174d33399a114b42f5745f0e32873f046de077e9 (diff)
Make a couple functions local
Diffstat (limited to 'ninja.lua')
-rw-r--r--ninja.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/ninja.lua b/ninja.lua
index 7be36a0b..92194d90 100644
--- 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