mirror of
https://github.com/neovim/neovim.git
synced 2024-12-31 17:13:26 -07:00
unittest: Fix linter errors
This commit is contained in:
parent
b38e725428
commit
937b6fac8f
@ -68,7 +68,7 @@ local function cimport(...)
|
||||
return libnvim
|
||||
end
|
||||
|
||||
local body = nil
|
||||
local body
|
||||
body, previous_defines = Preprocess.preprocess(previous_defines, unpack(paths))
|
||||
|
||||
-- format it (so that the lines are "unique" statements), also filter out
|
||||
|
@ -1,12 +1,8 @@
|
||||
-- helps managing loading different headers into the LuaJIT ffi. Untested on
|
||||
-- windows, will probably need quite a bit of adjustment to run there.
|
||||
|
||||
local global_helpers = require('test.helpers')
|
||||
|
||||
local ffi = require("ffi")
|
||||
|
||||
local tmpname = global_helpers.tmpname
|
||||
|
||||
local ccs = {}
|
||||
|
||||
local env_cc = os.getenv("CC")
|
||||
@ -83,7 +79,7 @@ local function headerize(headers, global)
|
||||
end
|
||||
|
||||
local formatted = {}
|
||||
for i, hdr in ipairs(headers) do
|
||||
for _, hdr in ipairs(headers) do
|
||||
formatted[#formatted + 1] = "#include " ..
|
||||
tostring(pre) ..
|
||||
tostring(hdr) ..
|
||||
@ -101,7 +97,6 @@ local Gcc = {
|
||||
|
||||
function Gcc:define(name, args, val)
|
||||
local define = '-D' .. name
|
||||
local quoted_define = ''
|
||||
if args ~= nil then
|
||||
define = define .. '(' .. table.concat(args, ',') .. ')'
|
||||
end
|
||||
@ -116,7 +111,7 @@ function Gcc:undefine(name)
|
||||
'-U' .. name)
|
||||
end
|
||||
|
||||
function Gcc:init_defines(name)
|
||||
function Gcc:init_defines()
|
||||
-- preprocessor flags that will hopefully make the compiler produce C
|
||||
-- declarations that the LuaJIT ffi understands.
|
||||
self:define('aligned', {'ARGS'}, '')
|
||||
|
Loading…
Reference in New Issue
Block a user