summaryrefslogtreecommitdiff
path: root/xmake/core/base/interpreter.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2016-03-18 13:52:32 +0800
committerruki <[email protected]>2016-03-18 13:52:32 +0800
commit34d77b966b9640673b4a6d23758b3d9f51cb1169 (patch)
tree70c1e09a27dd09bc1b6825d227fb8ee10ff04a58 /xmake/core/base/interpreter.lua
parent8f5125ae1329d24b5265c4cb45b1890c3f175e60 (diff)
rename utils.wrap and unique
Diffstat (limited to 'xmake/core/base/interpreter.lua')
-rw-r--r--xmake/core/base/interpreter.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/core/base/interpreter.lua b/xmake/core/base/interpreter.lua
index 2d3b7a7c0..590041555 100644
--- a/xmake/core/base/interpreter.lua
+++ b/xmake/core/base/interpreter.lua
@@ -282,7 +282,7 @@ function interpreter._filter(self, values)
end
end
else
- for _, value in ipairs(utils.wrap(values)) do
+ for _, value in ipairs(table.wrap(values)) do
-- string?
if type(value) == "string" then
@@ -326,7 +326,7 @@ function interpreter._handle(self, scope, remove_repeat, enable_filter)
-- remove repeat first
if remove_repeat and not table.is_dictionary(values) then
- values = utils.unique(values)
+ values = table.unique(values)
end
-- filter values
@@ -335,7 +335,7 @@ function interpreter._handle(self, scope, remove_repeat, enable_filter)
end
-- unwrap it if be only one
- values = utils.unwrap(values)
+ values = table.unwrap(values)
-- update it
results[name] = values