summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2011-05-02 15:02:57 +0100
committerNicholas Clark <nick@ccl4.org>2011-06-12 16:15:22 +0200
commitaf2f0da9b8621f5cc241f5664bcecd0fbd8865b2 (patch)
treee05689bfd8d8ef2202b400060568eb2cca0c0821 /perl.h
parent724cf8d623675450a9b7be794b6b3917972e83f8 (diff)
downloadperl-af2f0da9b8621f5cc241f5664bcecd0fbd8865b2.tar.gz
Move PL_runops_{std,dbg} to perl.h, and make them const.
They exist solely to ensure that Perl_runops_standard and Perl_runops_debug are linked in - nothing assigns to either variable, and nothing reads them.
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/perl.h b/perl.h
index fa86c7f854..b96cdcdefd 100644
--- a/perl.h
+++ b/perl.h
@@ -5049,6 +5049,14 @@ END_EXTERN_C
START_EXTERN_C
+/* dummy variables that hold pointers to both runops functions, thus forcing
+ * them *both* to get linked in (useful for Peek.xs, debugging etc) */
+
+EXTCONST runops_proc_t PL_runops_std
+ INIT(Perl_runops_standard);
+EXTCONST runops_proc_t PL_runops_dbg
+ INIT(Perl_runops_debug);
+
/* PERL_GLOBAL_STRUCT_PRIVATE wants to keep global data like the
* magic vtables const, but this is incompatible with SWIG which
* does want to modify the vtables. */