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

Commit

Permalink
fix PMC after merge of branch pmc_freeze_with_pmcs
Browse files Browse the repository at this point in the history
  • Loading branch information
fperrad committed Feb 3, 2010
1 parent b520b4c commit 2e0135a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions dynext/pmc/luaboolean.pmc
Expand Up @@ -159,28 +159,28 @@ Sets the value of the boolean to the value in C<*value>.

/*

=item C<void freeze(visit_info *info)>
=item C<void freeze(PMC *info)>

Used to archive the boolean.

=cut

*/
VTABLE void freeze(visit_info *info) {
VTABLE void freeze(PMC *info) {
SUPER(info);
VTABLE_push_integer(INTERP, info, SELF.get_integer());
}

/*

=item C<void thaw(visit_info *info)>
=item C<void thaw(PMC *info)>

Used to unarchive the boolean.

=cut

*/
VTABLE void thaw(visit_info *info) {
VTABLE void thaw(PMC *info) {
SUPER(info);
SET_ATTR_iv(INTERP, SELF, VTABLE_shift_integer(INTERP, info));
}
Expand Down
8 changes: 4 additions & 4 deletions dynext/pmc/luanumber.pmc
Expand Up @@ -229,28 +229,28 @@ Decrements the number.

/*

=item C<void freeze(visit_info *info)>
=item C<void freeze(PMC *info)>

Used to archive the number.

=cut

*/
VTABLE void freeze(visit_info *info) {
VTABLE void freeze(PMC *info) {
SUPER(info);
VTABLE_push_float(INTERP, info, SELF.get_number());
}

/*

=item C<void thaw(visit_info *info)>
=item C<void thaw(PMC *info)>

Used to unarchive the number.

=cut

*/
VTABLE void thaw(visit_info *info) {
VTABLE void thaw(PMC *info) {
SUPER(info);
SET_ATTR_fv(INTERP, SELF, VTABLE_shift_float(INTERP, info));
}
Expand Down
8 changes: 4 additions & 4 deletions dynext/pmc/luastring.pmc
Expand Up @@ -228,28 +228,28 @@ Return length of the string.

/*

=item C<void freeze(visit_info *info)>
=item C<void freeze(PMC *info)>

Used to archive the string.

=cut

*/
VTABLE void freeze(visit_info *info) {
VTABLE void freeze(PMC *info) {
SUPER(info);
VTABLE_push_string(INTERP, info, SELF.get_string());
}

/*

=item C<void thaw(visit_info *info)>
=item C<void thaw(PMC *info)>

Used to unarchive the string.

=cut

*/
VTABLE void thaw(visit_info *info) {
VTABLE void thaw(PMC *info) {
SUPER(info);
SET_ATTR_str_val(INTERP, SELF, VTABLE_shift_string(INTERP, info));
}
Expand Down

0 comments on commit 2e0135a

Please sign in to comment.