Problem: Compilation error with some compilers.
Solution: Avoid using "class" as member name.
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1358,
/**/
1357,
/**/
ISN_PUSHCHANNEL, // push NULL channel
ISN_PUSHJOB, // push NULL job
ISN_PUSHOBJ, // push NULL object
- ISN_PUSHCLASS, // push class, uses isn_arg.class
+ ISN_PUSHCLASS, // push class, uses isn_arg.classarg
ISN_NEWLIST, // push list from stack items, size is isn_arg.number
// -1 for null_list
ISN_NEWDICT, // push dict from stack items, size is isn_arg.number
channel_T *channel;
job_T *job;
partial_T *partial;
- class_T *class;
+ class_T *classarg;
jump_T jump;
jumparg_T jumparg;
forloop_T forloop;
break;
case ISN_PUSHCLASS:
tv->v_type = VAR_CLASS;
- tv->vval.v_class = iptr->isn_arg.class;
+ tv->vval.v_class = iptr->isn_arg.classarg;
break;
default:
tv->v_type = VAR_STRING;
break;
case ISN_PUSHCLASS:
smsg("%s%4d PUSHCLASS %s", pfx, current,
- iptr->isn_arg.class == NULL ? "null"
- : (char *)iptr->isn_arg.class->class_name);
+ iptr->isn_arg.classarg == NULL ? "null"
+ : (char *)iptr->isn_arg.classarg->class_name);
break;
case ISN_PUSHEXC:
smsg("%s%4d PUSH v:exception", pfx, current);
class == NULL ? &t_any : &class->class_type);
if (isn == NULL)
return FAIL;
- isn->isn_arg.class = class;
+ isn->isn_arg.classarg = class;
if (class != NULL)
++class->class_refcount;
return OK;
break;
case ISN_PUSHCLASS:
- class_unref(isn->isn_arg.class);
+ class_unref(isn->isn_arg.classarg);
break;
case ISN_UCALL: