Skip to content

Commit 69e4a5f

Browse files
atoomictoddr
authored andcommitted
B::SV::save
1 parent 519a705 commit 69e4a5f

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

lib/B/C.pm

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4129,15 +4129,6 @@ sub B::IO::save {
41294129
return $sym;
41304130
}
41314131

4132-
sub B::SV::save {
4133-
my $sv = shift;
4134-
4135-
# This is where we catch an honest-to-goodness Nullsv (which gets
4136-
# blessed into B::SV explicitly) and any stray erroneous SVs.
4137-
return 0 unless $$sv;
4138-
warn sprintf( "cannot save that type of SV: %s (0x%x)\n", class($sv), $$sv );
4139-
}
4140-
41414132
sub output_all {
41424133
my $init_name = shift;
41434134
my $section;

lib/B/C/Save/SV.pm

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package SV;
2+
3+
sub save {
4+
my $sv = shift;
5+
6+
# This is where we catch an honest-to-goodness Nullsv (which gets
7+
# blessed into B::SV explicitly) and any stray erroneous SVs.
8+
return 0 unless $$sv;
9+
warn sprintf( "cannot save that type of SV: %s (0x%x)\n", class($sv), $$sv );
10+
}
11+
12+
1;

0 commit comments

Comments
 (0)