Subject: | Cover.xs(389) : error C2275: 'SV' : illegal use of this type as an expression |
0.48, microsoft has a problem with this one
Cover.c
Cover.xs(389) : error C2275: 'SV' : illegal use of this type as an expression
C:\Perl\lib\CORE\perl.h(1774) : see declaration of 'SV'
Cover.xs(389) : error C2065: 'pc' : undeclared identifier
Cover.xs(389) : error C2100: illegal indirection
Cover.xs(391) : error C2100: illegal indirection
Cover.xs(391) : error C2223: left of '->sv_flags' must point to struct/union
Cover.xs(394) : error C2100: illegal indirection
Cover.xs(394) : warning C4047: 'function' : 'struct sv *' differs in levels of indirection from 'int '
Cover.xs(394) : warning C4024: 'add_condition' : different types for formal and actual parameter 2
Cover.xs(399) : error C2100: illegal indirection
NMAKE : fatal error U1077: 'cl' : return code '0x2'
the solution, first declare variables
change
dMY_CXT;
MUTEX_LOCK(&DC_mutex);
SV **pc = hv_fetch(Pending_conditionals, get_key(PL_op), CH_SZ, 0);
to
SV **pc;
dMY_CXT;
MUTEX_LOCK(&DC_mutex);
pc = hv_fetch(Pending_conditionals, get_key(PL_op), CH_SZ, 0);