aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/msgpack_rpc/helpers.c
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2017-01-28 03:47:15 +0300
committerZyX <kp-pav@yandex.ru>2017-03-27 00:12:23 +0300
commitae4adcc70735a89bffb110bcf9d5a993b0786c4d (patch)
treeee10336f3c50e3a69f9a1660d5a7cb8735912391 /src/nvim/msgpack_rpc/helpers.c
parent52c7066f4b546419a1838b41e68a5d1650ac498e (diff)
downloadrneovim-ae4adcc70735a89bffb110bcf9d5a993b0786c4d.tar.gz
rneovim-ae4adcc70735a89bffb110bcf9d5a993b0786c4d.tar.bz2
rneovim-ae4adcc70735a89bffb110bcf9d5a993b0786c4d.zip
gendeclarations: Make declarations generator work with macros funcs
Now it checks functions also after every semicolon and closing figure brace, possibly preceded by whitespaces (tabs and spaces). This should make messing with declarations in macros not needed.
Diffstat (limited to 'src/nvim/msgpack_rpc/helpers.c')
-rw-r--r--src/nvim/msgpack_rpc/helpers.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/nvim/msgpack_rpc/helpers.c b/src/nvim/msgpack_rpc/helpers.c
index 94a4f5ce3e..ec35d56978 100644
--- a/src/nvim/msgpack_rpc/helpers.c
+++ b/src/nvim/msgpack_rpc/helpers.c
@@ -30,9 +30,7 @@ static msgpack_sbuffer sbuffer;
#define HANDLE_TYPE_CONVERSION_IMPL(t, lt) \
static bool msgpack_rpc_to_##lt(const msgpack_object *const obj, \
Integer *const arg) \
- REAL_FATTR_NONNULL_ALL REAL_FATTR_WARN_UNUSED_RESULT; \
- static bool msgpack_rpc_to_##lt(const msgpack_object *const obj, \
- Integer *const arg) \
+ FUNC_ATTR_NONNULL_ALL FUNC_ATTR_WARN_UNUSED_RESULT \
{ \
if (obj->type != MSGPACK_OBJECT_EXT \
|| obj->via.ext.type + EXT_OBJECT_TYPE_SHIFT != kObjectType##t) { \
@@ -55,8 +53,7 @@ static msgpack_sbuffer sbuffer;
} \
\
static void msgpack_rpc_from_##lt(Integer o, msgpack_packer *res) \
- REAL_FATTR_NONNULL_ARG(2); \
- static void msgpack_rpc_from_##lt(Integer o, msgpack_packer *res) \
+ FUNC_ATTR_NONNULL_ARG(2) \
{ \
msgpack_packer pac; \
msgpack_packer_init(&pac, &sbuffer, msgpack_sbuffer_write); \