revert-B-load-BEGIN-514.patch 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. --- ext/B/B.pm.orig 2011-06-16 19:06:09.000000000 -0500
  2. +++ ext/B/B.pm 2011-06-21 18:21:13.000000000 -0500
  3. @@ -6,26 +6,16 @@
  4. # License or the Artistic License, as specified in the README file.
  5. #
  6. package B;
  7. -use strict;
  8. +require XSLoader;
  9. require Exporter;
  10. -@B::ISA = qw(Exporter);
  11. +@ISA = qw(Exporter);
  12. # walkoptree_slow comes from B.pm (you are there),
  13. # walkoptree comes from B.xs
  14. -BEGIN {
  15. - $B::VERSION = '1.29';
  16. - @B::EXPORT_OK = ();
  17. -
  18. - # Our BOOT code needs $VERSION set, and will append to @EXPORT_OK.
  19. - # Want our constants loaded before the compiler meets OPf_KIDS below, as
  20. - # the combination of having the constant stay a Proxy Constant Subroutine
  21. - # and its value being inlined saves a little over .5K
  22. -
  23. - require XSLoader;
  24. - XSLoader::load();
  25. -}
  26. +$B::VERSION = '1.29_01';
  27. +@EXPORT_OK = ();
  28. push @B::EXPORT_OK, (qw(minus_c ppname save_BEGINs
  29. class peekop cast_I32 cstring cchar hash threadsv_names
  30. @@ -38,6 +28,9 @@
  31. @specialsv_name
  32. ), $] > 5.009 && 'unitcheck_av');
  33. +sub OPf_KIDS ();
  34. +use strict;
  35. +
  36. @B::SV::ISA = 'B::OBJECT';
  37. @B::NULL::ISA = 'B::SV';
  38. @B::PV::ISA = 'B::SV';
  39. @@ -332,6 +325,8 @@
  40. }
  41. }
  42. +XSLoader::load();
  43. +
  44. 1;
  45. __END__