This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
B::Bytecode tweaks (from Simon Cozens <simon@brecon.co.uk>)
authorGurusamy Sarathy <gsar@cpan.org>
Fri, 28 Apr 2000 07:53:09 +0000 (07:53 +0000)
committerGurusamy Sarathy <gsar@cpan.org>
Fri, 28 Apr 2000 07:53:09 +0000 (07:53 +0000)
p4raw-id: //depot/perl@5987

ext/B/B/Bytecode.pm
ext/B/B/Disassembler.pm

index 27003b6..941a818 100644 (file)
@@ -654,8 +654,8 @@ sub bytecompile_main {
     warn "done main program, now walking symbol table\n" if $debug_bc;
     my ($pack, %exclude);
     foreach $pack (qw(B O AutoLoader DynaLoader XSLoader Config DB VMS strict vars
-                     FileHandle Exporter Carp UNIVERSAL IO Fcntl Symbol
-                     SelectSaver blib Cwd))
+                     FileHandle Exporter Carp UNIVERSAL IO Fcntl Symbol warnings
+                     attributes File::Spec SelectSaver blib Cwd))
     {
        $exclude{$pack."::"} = 1;
     }
index d054a2d..212532b 100644 (file)
@@ -31,6 +31,13 @@ sub GET_U16 {
     return unpack("n", $str);
 }
 
+sub GET_NV {
+    my $fh = shift;
+    my $str = $fh->readn(8);
+    croak "reached EOF while reading NV" unless length($str) == 8;
+    return unpack("N", $str);
+}
+
 sub GET_U32 {
     my $fh = shift;
     my $str = $fh->readn(4);