… | |
… | |
8 | #include "patchlevel.h" |
8 | #include "patchlevel.h" |
9 | #if (PATCHLEVEL == 4) || ((PATCHLEVEL == 5) && (SUBVERSION < 55)) |
9 | #if (PATCHLEVEL == 4) || ((PATCHLEVEL == 5) && (SUBVERSION < 55)) |
10 | static STRLEN nolen_na; |
10 | static STRLEN nolen_na; |
11 | # define SvPV_nolen(sv) SvPV ((sv), nolen_na) |
11 | # define SvPV_nolen(sv) SvPV ((sv), nolen_na) |
12 | #endif |
12 | #endif |
|
|
13 | #if PATCHLEVEL < 6 |
|
|
14 | # define call_sv perl_call_sv |
|
|
15 | #endif |
13 | |
16 | |
14 | #include "lzf_c.c" |
17 | #include "lzf_c.c" |
15 | #include "lzf_d.c" |
18 | #include "lzf_d.c" |
16 | |
19 | |
17 | /* we re-use the storable header for our purposes */ |
20 | /* we re-use the storable header for our purposes */ |
… | |
… | |
185 | } |
188 | } |
186 | |
189 | |
187 | static void |
190 | static void |
188 | need_storable(void) |
191 | need_storable(void) |
189 | { |
192 | { |
|
|
193 | #if PATCHLEVEL < 6 |
|
|
194 | perl_eval_pv ("require Storable;", 1); |
|
|
195 | #else |
190 | load_module (PERL_LOADMOD_NOIMPORT, newSVpv ("Storable", 0), Nullsv); |
196 | load_module (PERL_LOADMOD_NOIMPORT, newSVpv ("Storable", 0), Nullsv); |
|
|
197 | #endif |
191 | |
198 | |
192 | storable_mstore = GvCV (gv_fetchpv ("Storable::mstore" , TRUE, SVt_PVCV)); |
199 | storable_mstore = GvCV (gv_fetchpv ("Storable::mstore" , TRUE, SVt_PVCV)); |
193 | storable_mretrieve = GvCV (gv_fetchpv ("Storable::mretrieve", TRUE, SVt_PVCV)); |
200 | storable_mretrieve = GvCV (gv_fetchpv ("Storable::mretrieve", TRUE, SVt_PVCV)); |
194 | } |
201 | } |
195 | |
202 | |