diff options
author | Nicholas Clark <nick@ccl4.org> | 2011-05-02 15:02:57 +0100 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2011-06-12 16:15:22 +0200 |
commit | af2f0da9b8621f5cc241f5664bcecd0fbd8865b2 (patch) | |
tree | e05689bfd8d8ef2202b400060568eb2cca0c0821 /perl.h | |
parent | 724cf8d623675450a9b7be794b6b3917972e83f8 (diff) | |
download | perl-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.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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. */ |