diff options
| author | Michael Forney <mforney@mforney.org> | 2017-12-30 22:38:12 -0800 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2017-12-30 22:38:12 -0800 |
| commit | b5d6c2aaedeb6f1dd760da9461739328666e18b7 (patch) | |
| tree | b86c9fbe5f7804a0181d30ab2bedc54da3f0e081 /ninja.lua | |
| parent | 174d33399a114b42f5745f0e32873f046de077e9 (diff) | |
Make a couple functions local
Diffstat (limited to 'ninja.lua')
| -rw-r--r-- | ninja.lua | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |
