summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2019-02-19 12:29:38 +0000
committerDavid Mitchell <davem@iabyn.com>2019-02-19 13:29:06 +0000
commitc32805c1fdc2309bfc236013edc5490117fb28df (patch)
treed4184746862f6700319cca6fc90f9e92ca69eb32
parenta6098fe8178c5ef2e7abbc8faf4c0f62b9b197ea (diff)
downloadperl-c32805c1fdc2309bfc236013edc5490117fb28df.tar.gz
perlvars.h: remove #ifdef DEBUGGING
Under PERL_GLOBAL_STRUCT, all the "global" vars are put in a structure, which means perlvars.h needs a similar constraint to intrpvar.h: its size and alignment shouldn't change between debugging and non-debugging builds. This is because regcomp/exec.c are compiled both with and without DEBUGGING. [Fixed by Karl]
-rw-r--r--makedef.pl1
-rw-r--r--perlvars.h2
2 files changed, 0 insertions, 3 deletions
diff --git a/makedef.pl b/makedef.pl
index dbb7f7da9d..10c7d1e330 100644
--- a/makedef.pl
+++ b/makedef.pl
@@ -283,7 +283,6 @@ unless ($define{'DEBUGGING'}) {
Perl_hv_assert
PL_watchaddr
PL_watchok
- PL_watch_pvx
);
}
diff --git a/perlvars.h b/perlvars.h
index be56d5407a..edc96c46a5 100644
--- a/perlvars.h
+++ b/perlvars.h
@@ -111,9 +111,7 @@ PERLVAR(G, lc_numeric_mutex, perl_mutex) /* Mutex for switching LC_NUMERIC */
PERLVAR(G, C_locale_obj, locale_t)
#endif
-#ifdef DEBUGGING
PERLVARI(G, watch_pvx, char *, NULL)
-#endif
/*
=for apidoc AmU|Perl_check_t *|PL_check