Split the boolean class into an outer module

This commit is contained in:
gfx
2010-09-17 13:25:23 +09:00
parent 5e602fb575
commit d2962d8676
5 changed files with 87 additions and 25 deletions

View File

@@ -83,8 +83,7 @@ MGVTBL pref_int_vtbl = {
#endif
};
void boot_Data__MessagePack_pack(void) {
dTHX;
void init_Data__MessagePack_pack(pTHX_ bool const cloning) {
SV* var = get_sv("Data::MessagePack::PreferInteger", 0);
sv_magicext(var, NULL, PERL_MAGIC_ext, &pref_int_vtbl, NULL, 0);
SvSETMAGIC(var);