| 1 | package ByteLoader; | ||||||||||||||||||||||||||||
| 2 | |||||||||||||||||||||||||||||
| 3 | 1 | ▶ | use XSLoader (); | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 4 | 1 | our $VERSION = '0.12'; | |||||||||||||||||||||||||||
| 5 | # XSLoader problem: | ||||||||||||||||||||||||||||
| 6 | # ByteLoader version 0.0601 required--this is only version 0.06_01 at ./bytecode2.plc line 2. | ||||||||||||||||||||||||||||
| 7 | # on use ByteLoader $ByteLoader::VERSION; | ||||||||||||||||||||||||||||
| 8 | # Fixed with use ByteLoader '$ByteLoader::VERSION'; | ||||||||||||||||||||||||||||
| 9 | # Next problem on perl-5.8.3: invalid floating constant suffix _03" | ||||||||||||||||||||||||||||
| 10 | |||||||||||||||||||||||||||||
| 11 | 1 | ▶ | if ($] < 5.009004) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 12 | # Need to check if ByteLoader is not already linked statically. | ||||||||||||||||||||||||||||
| 13 | # Before 5.6 byterun was in CORE, so we have no name clash. | ||||||||||||||||||||||||||||
| 14 | 0 | require Config; Config->import(); | |||||||||||||||||||||||||||
| 15 | 0 | ▶ | if ($Config{static_ext} =~ /\bByteLoader\b/) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 16 | # We overrode the static module with our site_perl version. Which version? | ||||||||||||||||||||||||||||
| 17 | # We can only check the perl version and guess from that. From Module::CoreList | ||||||||||||||||||||||||||||
| 18 | 0 | ▶ | $VERSION = '0.03' if $] >= 5.006; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 19 | 0 | ▶ | $VERSION = '0.04' if $] >= 5.006001; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 20 | 0 | ▶ | $VERSION = '0.05' if $] >= 5.008001; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 21 | 0 | ▶ | $VERSION = '0.06' if $] >= 5.009003; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 22 | 0 | ▶ | $VERSION = '0.06' if $] >= 5.008008 and $] < 5.009; | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$] >= "5.008008" and $] < "5.009"
MC/DC0%0/2
$] >= "5.008008" and $] < "5.009"
$] >= "5.008008"
$] < "5.009"
Truth table0%0/3
A and B
A= $] >= "5.008008"B= $] < "5.009"
| |||||||||||||||||||||||||||||
| 23 | } else { | ||||||||||||||||||||||||||||
| 24 | 0 | XSLoader::load 'ByteLoader'; # fake the old backwards compatible version | |||||||||||||||||||||||||||
| 25 | } | ||||||||||||||||||||||||||||
| 26 | } else { | ||||||||||||||||||||||||||||
| 27 | 1 | XSLoader::load 'ByteLoader', $VERSION; | |||||||||||||||||||||||||||
| 28 | } | ||||||||||||||||||||||||||||
| 29 | |||||||||||||||||||||||||||||
| 30 | 1 | 1; | |||||||||||||||||||||||||||
| 31 | __END__ | ||||||||||||||||||||||||||||