summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
authorLarry Wall <larry@netlabs.com>1993-11-10 00:00:00 +0000
committerLarry Wall <larry@netlabs.com>1993-11-10 00:00:00 +0000
commit463ee0b2acbd047c27e8b5393cdd8398881824c5 (patch)
treeae17d9179fc861ae5fc5a86da9139631530cb6fe /regexec.c
parent93a17b20b6d176db3f04f51a63b0a781e5ffd11c (diff)
downloadperl-463ee0b2acbd047c27e8b5393cdd8398881824c5.tar.gz
perl 5.0 alpha 4
[editor's note: the sparc executables have not been included, and emacs backup files have been removed. This was reconstructed from a tarball found on the September 1994 InfoMagic CD; the date of this is approximate]
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/regexec.c b/regexec.c
index f431cccefc..9bfcfba12f 100644
--- a/regexec.c
+++ b/regexec.c
@@ -110,7 +110,7 @@ I32 safebase; /* no need to remember string in subbase */
/* Be paranoid... */
if (prog == NULL || string == NULL) {
- fatal("NULL regexp parameter");
+ croak("NULL regexp parameter");
return(0);
}
@@ -228,7 +228,7 @@ I32 safebase; /* no need to remember string in subbase */
if (prog->regstart) {
if (prog->reganch & ROPT_SKIP) { /* we have /x+whatever/ */
/* it must be a one character string */
- i = SvPV(prog->regstart)[0];
+ i = SvPVX(prog->regstart)[0];
while (s < strend) {
if (*s == i) {
if (regtry(prog, s))
@@ -255,7 +255,7 @@ I32 safebase; /* no need to remember string in subbase */
}
}
else {
- c = SvPV(prog->regstart);
+ c = SvPVX(prog->regstart);
while ((s = ninstr(s, strend,
c, c + SvCUR(prog->regstart) )) != NULL) {
if (regtry(prog, s))