Problem: A recent commit introduced a member variable named `class` in
the `exarg` structure, which conflicts with the C++ keyword
`class`. This causes compilation issues on Windows when VIM
is compiled with OLE enabled, as "if_ole.cpp" cannot compile
due to the keyword conflict (after v9.1.2012).
Solution: Rename the member variable of `exarg` from `class` to `ea_class`.
(Wei Tang)
related: #18949
closes: #19016
Signed-off-by: Wei Tang <gauchyler@uestc.edu.cn>
Signed-off-by: Christian Brabandt <cb@256bit.org>
evalarg->eval_getline = eap->ea_getline;
evalarg->eval_cookie = eap->cookie;
}
- evalarg->eval_class = eap->class;
+ evalarg->eval_class = eap->ea_class;
}
/*
void *cookie; // argument for getline()
#ifdef FEAT_EVAL
cstack_T *cstack; // condition stack for ":if" etc.
- class_T *class; // Name of class being defined. Used by :class
+ class_T *ea_class; // Name of class being defined. Used by :class
// and :enum commands.
#endif
};
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 2022,
/**/
2021,
/**/
cl->class_object_type.tt_type = VAR_OBJECT;
cl->class_object_type.tt_class = cl;
- eap->class = cl;
+ eap->ea_class = cl;
// Add the class to the script-local variables.
// TODO: handle other context, e.g. in a function