summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
authorNick Ing-Simmons <nik@tiuk.ti.com>1998-07-26 14:31:01 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>1998-07-26 14:31:01 +0000
commitc485e6072d15e92c314a8b9cb6957c3edf13f985 (patch)
tree91936656aa4b557fe9c7bb4b88a47b3e3591df64 /regexec.c
parentf13d8a8ffd56f8f5e7431d8bef692aaa336d55a8 (diff)
downloadperl-c485e6072d15e92c314a8b9cb6957c3edf13f985.tar.gz
Add dTHR so that it compiles miniperl in threaded mode
p4raw-id: //depot/perl@1667
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/regexec.c b/regexec.c
index 400843bfe7..0ac9173129 100644
--- a/regexec.c
+++ b/regexec.c
@@ -2456,7 +2456,8 @@ reginclass(register char *p, register I32 c)
STATIC bool
reginclassutf8(regnode *f, U8 *p)
-{
+{
+ dTHR;
char flags = ARG1(f);
bool match = FALSE;
SV *sv = (SV*)PL_regdata->data[ARG2(f)];
@@ -2493,7 +2494,8 @@ reginclassutf8(regnode *f, U8 *p)
STATIC char *
reghop(unsigned char *s, I32 off)
-{
+{
+ dTHR;
if (off >= 0) {
while (off-- && s < (U8*)PL_regeol)
s += UTF8SKIP(s);
@@ -2515,6 +2517,7 @@ reghop(unsigned char *s, I32 off)
STATIC char *
reghopmaybe(unsigned char *s, I32 off)
{
+ dTHR;
if (off >= 0) {
while (off-- && s < (U8*)PL_regeol)
s += UTF8SKIP(s);