aboutsummaryrefslogtreecommitdiff
path: root/scripts/gendispatch.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-04-30 14:27:21 +0200
committerJustin M. Keyes <justinkz@gmail.com>2017-04-30 14:27:21 +0200
commit26a479ae41135a6efc6a77bb72ccb5a3c092fce9 (patch)
tree8d1089104b7fa11da8031f208e456e4e76ed262e /scripts/gendispatch.lua
parent0df1b6655be5385c9cbb70dca1c042c6447ec50b (diff)
parent97126bfa020f714d78e5e6f82b59c697ce7dd467 (diff)
downloadrneovim-26a479ae41135a6efc6a77bb72ccb5a3c092fce9.tar.gz
rneovim-26a479ae41135a6efc6a77bb72ccb5a3c092fce9.tar.bz2
rneovim-26a479ae41135a6efc6a77bb72ccb5a3c092fce9.zip
Merge #6622 'api: Deprecate nvim_buf_get_number'
Diffstat (limited to 'scripts/gendispatch.lua')
-rw-r--r--scripts/gendispatch.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/gendispatch.lua b/scripts/gendispatch.lua
index 0ee3ae6475..c0291c55d3 100644
--- a/scripts/gendispatch.lua
+++ b/scripts/gendispatch.lua
@@ -37,6 +37,8 @@ c_proto = Ct(
fill * P('(') * fill * Cg(c_params, 'parameters') * fill * P(')') *
Cg(Cc(false), 'async') *
(fill * Cg((P('FUNC_API_SINCE(') * C(num ^ 1)) * P(')'), 'since') ^ -1) *
+ (fill * Cg((P('FUNC_API_DEPRECATED_SINCE(') * C(num ^ 1)) * P(')'),
+ '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) *
@@ -122,6 +124,10 @@ for i,f in ipairs(shallowcopy(functions)) do
os.exit(1)
end
f.since = tonumber(f.since)
+ if f.deprecated_since ~= nil then
+ f.deprecated_since = tonumber(f.deprecated_since)
+ end
+
if startswith(f.name, "nvim_buf_") then
ismethod = true
elseif startswith(f.name, "nvim_win_") then