patch 8.2.0073: initializing globals with COMMA is clumsy
Problem: Initializing globals with COMMA is clumsy.
Solution: Use INIT2(), INIT3(), etc.
diff --git a/src/vim.h b/src/vim.h
index d69272e..1fd24ad 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -1775,11 +1775,18 @@
#ifndef EXTERN
# define EXTERN extern
# define INIT(x)
+# define INIT2(a, b)
+# define INIT3(a, b, c)
+# define INIT4(a, b, c, d)
+# define INIT5(a, b, c, d, e)
#else
# ifndef INIT
# define INIT(x) x
+# define INIT2(a, b) = {a, b}
+# define INIT3(a, b, c) = {a, b, c}
+# define INIT4(a, b, c, d) = {a, b, c, d}
+# define INIT5(a, b, c, d, e) = {a, b, c, d, e}
# define DO_INIT
-# define COMMA ,
# endif
#endif