patch 9.1.0970: VMS: build errors on VMS architecture
Problem: VMS: build errors on VMS architecture
Solution: define cellsize struct, use C89 to initialize lval_root_S
struct (Zoltan Arpadffy)
* define struct cellsize for VMS
* ensures the code adheres to the C89 standard
closes: #16328
Signed-off-by: Zoltan Arpadffy <zoltan.arpadffy@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
diff --git a/src/vim9execute.c b/src/vim9execute.c
index de49aaa..de12d8e 100644
--- a/src/vim9execute.c
+++ b/src/vim9execute.c
@@ -4425,9 +4425,10 @@
// Stack has the local variable, argument the whole :lock
// or :unlock command, like ISN_EXEC.
--ectx->ec_stack.ga_len;
- lval_root_T root = { .lr_tv = STACK_TV_BOT(0),
- .lr_cl_exec = iptr->isn_arg.lockunlock.lu_cl_exec,
- .lr_is_arg = iptr->isn_arg.lockunlock.lu_is_arg };
+ lval_root_T root;
+ root.lr_tv = STACK_TV_BOT(0);
+ root.lr_cl_exec = iptr->isn_arg.lockunlock.lu_cl_exec;
+ root.lr_is_arg = iptr->isn_arg.lockunlock.lu_is_arg;
lval_root = &root;
int res = exec_command(iptr,
iptr->isn_arg.lockunlock.lu_string);