0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

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>
This commit is contained in:
Zoltan Arpadffy
2024-12-29 09:50:20 +01:00
committed by Christian Brabandt
parent f2e08a1e54
commit 7b12ac3ad8
3 changed files with 7 additions and 4 deletions

View File

@@ -5101,7 +5101,7 @@ typedef struct
#define KEYVALUE_ENTRY(k, v) \ #define KEYVALUE_ENTRY(k, v) \
{(k), {((char_u *)v), STRLEN_LITERAL(v)}} {(k), {((char_u *)v), STRLEN_LITERAL(v)}}
#if defined(UNIX) || defined(MSWIN) #if defined(UNIX) || defined(MSWIN) || defined(VMS)
// Defined as signed, to return -1 on error // Defined as signed, to return -1 on error
struct cellsize { struct cellsize {
int cs_xpixel; int cs_xpixel;

View File

@@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
970,
/**/ /**/
969, 969,
/**/ /**/

View File

@@ -4425,9 +4425,10 @@ exec_instructions(ectx_T *ectx)
// Stack has the local variable, argument the whole :lock // Stack has the local variable, argument the whole :lock
// or :unlock command, like ISN_EXEC. // or :unlock command, like ISN_EXEC.
--ectx->ec_stack.ga_len; --ectx->ec_stack.ga_len;
lval_root_T root = { .lr_tv = STACK_TV_BOT(0), lval_root_T root;
.lr_cl_exec = iptr->isn_arg.lockunlock.lu_cl_exec, root.lr_tv = STACK_TV_BOT(0);
.lr_is_arg = iptr->isn_arg.lockunlock.lu_is_arg }; 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; lval_root = &root;
int res = exec_command(iptr, int res = exec_command(iptr,
iptr->isn_arg.lockunlock.lu_string); iptr->isn_arg.lockunlock.lu_string);