perlvars.h: remove #ifdef DEBUGGING
authorDavid Mitchell <davem@iabyn.com>
Tue, 19 Feb 2019 12:29:38 +0000 (12:29 +0000)
committerDavid Mitchell <davem@iabyn.com>
Tue, 19 Feb 2019 13:29:06 +0000 (13:29 +0000)
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]

makedef.pl
perlvars.h

index dbb7f7d..10c7d1e 100644 (file)
@@ -283,7 +283,6 @@ unless ($define{'DEBUGGING'}) {
                    Perl_hv_assert
                    PL_watchaddr
                    PL_watchok
-                   PL_watch_pvx
                         );
 }
 
index be56d54..edc96c4 100644 (file)
@@ -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