aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/generators
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2017-05-10 10:29:43 +0200
committerBjörn Linse <bjorn.linse@gmail.com>2017-05-10 17:37:34 +0200
commit2d5920ae1ada751811e04bcc8d3a8fe4f890617a (patch)
tree294effe35254d53766dfe2358415f26e8dd61cb9 /src/nvim/generators
parent3adcc0c50bd40e80928f1c96a908ce65def16fe9 (diff)
downloadrneovim-2d5920ae1ada751811e04bcc8d3a8fe4f890617a.tar.gz
rneovim-2d5920ae1ada751811e04bcc8d3a8fe4f890617a.tar.bz2
rneovim-2d5920ae1ada751811e04bcc8d3a8fe4f890617a.zip
api: always use prefix FUNC_API, also change NOEVAL to REMOTE_ONLY
Diffstat (limited to 'src/nvim/generators')
-rw-r--r--src/nvim/generators/c_grammar.lua7
-rw-r--r--src/nvim/generators/gen_api_dispatch.lua6
-rw-r--r--src/nvim/generators/gen_eval.lua2
3 files changed, 7 insertions, 8 deletions
diff --git a/src/nvim/generators/c_grammar.lua b/src/nvim/generators/c_grammar.lua
index 5c52ec5930..d3047e1a9c 100644
--- a/src/nvim/generators/c_grammar.lua
+++ b/src/nvim/generators/c_grammar.lua
@@ -40,10 +40,9 @@ local c_proto = Ct(
'deprecated_since') ^ -1) *
(fill * Cg((P('FUNC_API_ASYNC') * Cc(true)), 'async') ^ -1) *
(fill * Cg((P('FUNC_API_NOEXPORT') * Cc(true)), 'noexport') ^ -1) *
- (fill * Cg((P('FUNC_API_NOEVAL') * Cc(true)), 'noeval') ^ -1) *
- (fill * Cg((P('REMOTE_ONLY') * Cc(true)), 'remote_only') ^ -1) *
- (fill * Cg((P('REMOTE_IMPL') * Cc(true)), 'remote_impl') ^ -1) *
- (fill * Cg((P('BRIDGE_IMPL') * Cc(true)), 'bridge_impl') ^ -1) *
+ (fill * Cg((P('FUNC_API_REMOTE_ONLY') * Cc(true)), 'remote_only') ^ -1) *
+ (fill * Cg((P('FUNC_API_REMOTE_IMPL') * Cc(true)), 'remote_impl') ^ -1) *
+ (fill * Cg((P('FUNC_API_BRIDGE_IMPL') * Cc(true)), 'bridge_impl') ^ -1) *
fill * P(';')
)
diff --git a/src/nvim/generators/gen_api_dispatch.lua b/src/nvim/generators/gen_api_dispatch.lua
index 7adefbfc15..b01321e713 100644
--- a/src/nvim/generators/gen_api_dispatch.lua
+++ b/src/nvim/generators/gen_api_dispatch.lua
@@ -105,7 +105,7 @@ for i,f in ipairs(shallowcopy(functions)) do
ismethod = true
end
else
- f.noeval = true
+ f.remote_only = true
f.since = 0
f.deprecated_since = 1
end
@@ -127,7 +127,7 @@ for i,f in ipairs(shallowcopy(functions)) do
newf.return_type = "Object"
end
newf.impl_name = f.name
- newf.noeval = true
+ newf.remote_only = true
newf.since = 0
newf.deprecated_since = 1
functions[#functions+1] = newf
@@ -432,7 +432,7 @@ local function process_function(fn)
end
for _, fn in ipairs(functions) do
- if not fn.noeval or fn.name:sub(1, 4) == '_vim' then
+ if not fn.remote_only or fn.name:sub(1, 4) == '_vim' then
process_function(fn)
end
end
diff --git a/src/nvim/generators/gen_eval.lua b/src/nvim/generators/gen_eval.lua
index b17ecb1a0c..23435a1d0b 100644
--- a/src/nvim/generators/gen_eval.lua
+++ b/src/nvim/generators/gen_eval.lua
@@ -25,7 +25,7 @@ local gperfpipe = io.open(funcsfname .. '.gperf', 'wb')
local funcs = require('eval').funcs
local metadata = mpack.unpack(io.open(arg[3], 'rb'):read("*all"))
for i,fun in ipairs(metadata) do
- if not fun.noeval then
+ if not fun.remote_only then
funcs[fun.name] = {
args=#fun.parameters,
func='api_wrapper',