diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-12-02 13:10:30 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-02 13:10:30 +0800 |
commit | 86f9e29c86af9a7f6eb30a7d8ff529898a8b20ec (patch) | |
tree | dd1074a4e2b2d53b7e76f60856f7111c5b0a5450 | |
parent | dcc686a208677a173430ace5e8a1ac73da9651d0 (diff) | |
download | rneovim-86f9e29c86af9a7f6eb30a7d8ff529898a8b20ec.tar.gz rneovim-86f9e29c86af9a7f6eb30a7d8ff529898a8b20ec.tar.bz2 rneovim-86f9e29c86af9a7f6eb30a7d8ff529898a8b20ec.zip |
refactor: remove COMMA (#21260)
It is not needed in Nvim. Ref #6068
-rw-r--r-- | src/nvim/globals.h | 2 | ||||
-rw-r--r-- | src/nvim/macros.h | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/nvim/globals.h b/src/nvim/globals.h index 9b4ef66b14..9fcde4f17a 100644 --- a/src/nvim/globals.h +++ b/src/nvim/globals.h @@ -320,7 +320,7 @@ EXTERN int garbage_collect_at_exit INIT(= false); #define SID_STR (-10) // for sourcing a string with no script item // Script CTX being sourced or was sourced to define the current function. -EXTERN sctx_T current_sctx INIT(= { 0 COMMA 0 COMMA 0 }); +EXTERN sctx_T current_sctx INIT(= { 0, 0, 0 }); // ID of the current channel making a client API call EXTERN uint64_t current_channel_id INIT(= 0); diff --git a/src/nvim/macros.h b/src/nvim/macros.h index 9b7562e86f..242e3c381a 100644 --- a/src/nvim/macros.h +++ b/src/nvim/macros.h @@ -11,7 +11,6 @@ #else # ifndef INIT # define INIT(...) __VA_ARGS__ -# define COMMA , # endif #endif |