InputStream handle
CODE:
if (handle) {
- Fpos_t pos;
#ifdef PerlIO
- ST(0) = sv_newmortal();
#if PERL_VERSION < 8
+ Fpos_t pos;
+ ST(0) = sv_newmortal();
if (PerlIO_getpos(handle, &pos) != 0) {
ST(0) = &PL_sv_undef;
}
sv_setpvn(ST(0), (char *)&pos, sizeof(Fpos_t));
}
#else
+ ST(0) = sv_newmortal();
if (PerlIO_getpos(handle, ST(0)) != 0) {
ST(0) = &PL_sv_undef;
}
break;
case INSUBP:
n = ARG(scan);
- sw = (cur_eval && (!n || cur_eval->u.eval.close_paren == n));
+ sw = (cur_eval && (!n || cur_eval->u.eval.close_paren == (U32)n));
break;
case DEFINEP:
sw = 0;
ST.min = ARG1(scan); /* min to match */
ST.max = ARG2(scan); /* max to match */
if (cur_eval && cur_eval->u.eval.close_paren &&
- cur_eval->u.eval.close_paren == ST.paren) {
+ cur_eval->u.eval.close_paren == (U32)ST.paren) {
ST.min=1;
ST.max=1;
}
PL_reginput = locinput;
CURLY_SETPAREN(ST.paren, ST.count);
if (cur_eval && cur_eval->u.eval.close_paren &&
- cur_eval->u.eval.close_paren == ST.paren) {
+ cur_eval->u.eval.close_paren == (U32)ST.paren) {
goto fake_end;
}
PUSH_STATE_GOTO(CURLY_B_min_known, ST.B);
curly_try_B_min:
CURLY_SETPAREN(ST.paren, ST.count);
if (cur_eval && cur_eval->u.eval.close_paren &&
- cur_eval->u.eval.close_paren == ST.paren) {
+ cur_eval->u.eval.close_paren == (U32)ST.paren) {
goto fake_end;
}
PUSH_STATE_GOTO(CURLY_B_min, ST.B);
curly_try_B_max:
/* a successful greedy match: now try to match B */
if (cur_eval && cur_eval->u.eval.close_paren &&
- cur_eval->u.eval.close_paren == ST.paren) {
+ cur_eval->u.eval.close_paren == (U32)ST.paren) {
goto fake_end;
}
{