summaryrefslogtreecommitdiff
path: root/regcomp.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 /regcomp.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 'regcomp.c')
-rw-r--r--regcomp.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/regcomp.c b/regcomp.c
index d1f29d9994..f256c4e4d7 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -206,6 +206,7 @@ static scan_data_t zero_scan_data = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
STATIC void
scan_commit(scan_data_t *data)
{
+ dTHR;
STRLEN l = CHR_SVLEN(data->last_found);
STRLEN old_l = CHR_SVLEN(*data->longest);
@@ -2245,6 +2246,7 @@ regclassutf8(void)
I32 n;
SV *listsv;
U8 flags = 0;
+ dTHR;
if (*PL_regcomp_parse == '^') { /* Complement of range. */
PL_regnaughty++;
@@ -2543,6 +2545,7 @@ reganode(U8 op, U32 arg)
STATIC void
reguni(UV uv, char* s, I32* lenp)
{
+ dTHR;
if (SIZE_ONLY) {
char tmpbuf[10];
*lenp = uv_to_utf8(tmpbuf, uv) - tmpbuf;
@@ -3104,7 +3107,8 @@ re_croak2(const char* pat1,const char* pat2,...)
void
save_re_context(void)
-{
+{
+ dTHR;
SAVEPPTR(PL_bostr);
SAVEPPTR(PL_regprecomp); /* uncompiled string. */
SAVEI32(PL_regnpar); /* () count. */