# (If trying to create a new port and having problems with the configpm script,
# try 'make minitest' and/or commenting out the tests at the end of configpm.)
lib/Config.pm: config.sh miniperl$(EXE_EXT) configpm
- $(LDLIBPTH) ./miniperl configpm configpm.tmp
+ $(LDLIBPTH) ./miniperl -Ilib configpm configpm.tmp
sh mv-if-diff configpm.tmp $@
lib/ExtUtils/Miniperl.pm: miniperlmain.c miniperl$(EXE_EXT) minimod.pl lib/Config.pm
else {
U8 *r = reghop3((U8*)s, -1, (U8*)startpos);
- if (s > (char*)r)
- tmp = (I32)utf8n_to_uvchr(r, s - (char*)r, 0, 0);
+ tmp = s > (char*)r ?
+ utf8n_to_uvchr(r, s - (char*)r, 0, 0) :
+ utf8n_to_uvchr(s, UTF8SKIP(s), 0, 0);
}
tmp = ((OP(c) == BOUND ?
isALNUM_uni(tmp) : isALNUM_LC_uvchr(UNI_TO_NATIVE(tmp))) != 0);
else {
U8 *r = reghop3((U8*)s, -1, (U8*)startpos);
- if (s > (char*)r)
- tmp = (I32)utf8n_to_uvchr(r, s - (char*)r, 0, 0);
+ tmp = s > (char*)r ?
+ utf8n_to_uvchr(r, s - (char*)r, 0, 0) :
+ utf8n_to_uvchr(s, UTF8SKIP(s), 0, 0);
}
tmp = ((OP(c) == NBOUND ?
isALNUM_uni(tmp) : isALNUM_LC_uvchr(UNI_TO_NATIVE(tmp))) != 0);
if (locinput == PL_bostr)
ln = '\n';
else {
- U8 *r = reghop((U8*)locinput, -1);
+ U8 *r = reghop3((U8*)locinput, -1, (U8*)PL_reg_starttry);
- ln = utf8n_to_uvchr(r, s - (char*)r, 0, 0);
+ ln = locinput > (char*)r ?
+ utf8n_to_uvchr(r, locinput - (char*)r, 0, 0) :
+ utf8n_to_uvchr(locinput, UTF8SKIP(locinput), 0, 0);
}
if (OP(scan) == BOUND || OP(scan) == NBOUND) {
ln = isALNUM_uni(ln);