From 86f9e29c86af9a7f6eb30a7d8ff529898a8b20ec Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Fri, 2 Dec 2022 13:10:30 +0800 Subject: [PATCH] refactor: remove COMMA (#21260) It is not needed in Nvim. Ref #6068 --- src/nvim/globals.h | 2 +- src/nvim/macros.h | 1 - 2 files changed, 1 insertion(+), 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