Skip to content
This repository has been archived by the owner on Jun 9, 2018. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
update PMC freeze/thaw after merge branch pmc_freeze_cleanup
  • Loading branch information
fperrad committed Jan 13, 2010
1 parent f12129e commit 8b826f5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 15 deletions.
7 changes: 2 additions & 5 deletions dynext/pmc/luaboolean.pmc
Expand Up @@ -167,9 +167,8 @@ Used to archive the boolean.

*/
VTABLE void freeze(visit_info *info) {
IMAGE_IO * const io = info->image_io;
SUPER(info);
VTABLE_push_integer(INTERP, io, SELF.get_integer());
VTABLE_push_integer(INTERP, info, SELF.get_integer());
}

/*
Expand All @@ -182,10 +181,8 @@ Used to unarchive the boolean.

*/
VTABLE void thaw(visit_info *info) {
IMAGE_IO * const io = info->image_io;
SUPER(info);
if (info->extra_flags == EXTRA_IS_NULL)
SELF.set_integer_native(VTABLE_shift_integer(INTERP, io));
SET_ATTR_iv(INTERP, SELF, VTABLE_shift_integer(INTERP, info));
}

/*
Expand Down
7 changes: 2 additions & 5 deletions dynext/pmc/luanumber.pmc
Expand Up @@ -237,9 +237,8 @@ Used to archive the number.

*/
VTABLE void freeze(visit_info *info) {
IMAGE_IO * const io = info->image_io;
SUPER(info);
VTABLE_push_float(INTERP, io, SELF.get_number());
VTABLE_push_float(INTERP, info, SELF.get_number());
}

/*
Expand All @@ -252,10 +251,8 @@ Used to unarchive the number.

*/
VTABLE void thaw(visit_info *info) {
IMAGE_IO * const io = info->image_io;
SUPER(info);
if (info->extra_flags == EXTRA_IS_NULL)
SET_ATTR_fv(INTERP, SELF, VTABLE_shift_float(INTERP, io));
SET_ATTR_fv(INTERP, SELF, VTABLE_shift_float(INTERP, info));
}
/*

Expand Down
7 changes: 2 additions & 5 deletions dynext/pmc/luastring.pmc
Expand Up @@ -236,9 +236,8 @@ Used to archive the string.

*/
VTABLE void freeze(visit_info *info) {
IMAGE_IO * const io = info->image_io;
SUPER(info);
VTABLE_push_string(INTERP, io, SELF.get_string());
VTABLE_push_string(INTERP, info, SELF.get_string());
}

/*
Expand All @@ -251,10 +250,8 @@ Used to unarchive the string.

*/
VTABLE void thaw(visit_info *info) {
IMAGE_IO * const io = info->image_io;
SUPER(info);
if (info->extra_flags == EXTRA_IS_NULL)
SELF.set_string_native(VTABLE_shift_string(INTERP, io));
SET_ATTR_str_val(INTERP, SELF, VTABLE_shift_string(INTERP, info));
}

/*
Expand Down

0 comments on commit 8b826f5

Please sign in to comment.