From ae7d6509749944564b939bd36cf6ab895dcff0af Mon Sep 17 00:00:00 2001 From: OpportunityLiu Date: Tue, 23 Jul 2019 22:18:36 +0800 Subject: remove local --- xmake/core/_xmake_main.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xmake/core/_xmake_main.lua b/xmake/core/_xmake_main.lua index 3ccc70cc9..25c251b20 100644 --- a/xmake/core/_xmake_main.lua +++ b/xmake/core/_xmake_main.lua @@ -31,7 +31,7 @@ xmake._PROJECT_DIR = _PROJECT_DIR xmake._PROJECT_FILE = "xmake.lua" xmake._WORKING_DIR = os.curdir() -local function loadfileimpl(filepath, mode) +function _loadfileimpl(filepath, mode) -- init displaypath local binary = false @@ -79,7 +79,7 @@ function loadfile(filepath, mode) end -- load file - local script, errors = loadfileimpl(filepath, mode) + local script, errors = _loadfileimpl(filepath, mode) if script then _loadcache[filepath] = {script = script, mtime = mtime or os.mtime(filepath)} end @@ -89,7 +89,7 @@ end -- init package path table.insert(package.loaders, 2, function(v) local filepath = xmake._PROGRAM_DIR .. "/core/" .. v .. ".lua" - local script, serr = loadfileimpl(filepath) + local script, serr = _loadfileimpl(filepath) if not script then return "\n\tfailed to load " .. filepath .. " : " .. serr end -- cgit v1.3.1