p4raw-id: //depot/perl@1667
{
STRLEN len;
char *s;
+ dTHR;
if (SvTYPE(sv) == SVt_PVAV) {
register I32 i;
SSize_t pos;
STRLEN len;
STRLEN ulen;
+ dTHR;
mg = 0;
}
len = SvPOK(lsv) ? SvCUR(lsv) : sv_len(lsv);
- WITH_THR(pos = SvIV(sv) - PL_curcop->cop_arybase);
+ pos = SvIV(sv) - PL_curcop->cop_arybase;
if (IN_UTF8) {
ulen = sv_len_utf8(lsv);
STATIC void
scan_commit(scan_data_t *data)
{
+ dTHR;
STRLEN l = CHR_SVLEN(data->last_found);
STRLEN old_l = CHR_SVLEN(*data->longest);
I32 n;
SV *listsv;
U8 flags = 0;
+ dTHR;
if (*PL_regcomp_parse == '^') { /* Complement of range. */
PL_regnaughty++;
STATIC void
reguni(UV uv, char* s, I32* lenp)
{
+ dTHR;
if (SIZE_ONLY) {
char tmpbuf[10];
*lenp = uv_to_utf8(tmpbuf, uv) - tmpbuf;
void
save_re_context(void)
-{
+{
+ dTHR;
SAVEPPTR(PL_bostr);
SAVEPPTR(PL_regprecomp); /* uncompiled string. */
SAVEI32(PL_regnpar); /* () count. */
STATIC bool
reginclassutf8(regnode *f, U8 *p)
-{
+{
+ dTHR;
char flags = ARG1(f);
bool match = FALSE;
SV *sv = (SV*)PL_regdata->data[ARG2(f)];
STATIC char *
reghop(unsigned char *s, I32 off)
-{
+{
+ dTHR;
if (off >= 0) {
while (off-- && s < (U8*)PL_regeol)
s += UTF8SKIP(s);
STATIC char *
reghopmaybe(unsigned char *s, I32 off)
{
+ dTHR;
if (off >= 0) {
while (off-- && s < (U8*)PL_regeol)
s += UTF8SKIP(s);