[svn:parrot] r41103 - trunk/src/pmc
chromatic at svn.parrot.org
chromatic at svn.parrot.org
Mon Sep 7 08:39:05 UTC 2009
Author: chromatic
Date: Mon Sep 7 08:39:05 2009
New Revision: 41103
URL: https://trac.parrot.org/parrot/changeset/41103
Log:
[PMC] Tidied FixedPMCArray a minor amount; no functional changes.
Modified:
trunk/src/pmc/fixedpmcarray.pmc
Modified: trunk/src/pmc/fixedpmcarray.pmc
==============================================================================
--- trunk/src/pmc/fixedpmcarray.pmc Mon Sep 7 08:39:00 2009 (r41102)
+++ trunk/src/pmc/fixedpmcarray.pmc Mon Sep 7 08:39:05 2009 (r41103)
@@ -65,8 +65,6 @@
*/
VTABLE void init() {
- Parrot_FixedPMCArray_attributes *attrs =
- (Parrot_FixedPMCArray_attributes *) PMC_data(SELF);
PObj_custom_mark_destroy_SETALL(SELF);
}
@@ -81,9 +79,8 @@
*/
VTABLE void destroy() {
- if (PMC_array(SELF)) {
+ if (PMC_array(SELF))
mem_sys_free(PMC_array(SELF));
- }
}
/*
@@ -101,8 +98,8 @@
const INTVAL size = PMC_size(SELF);
if (size) {
- PMC_size(dest) = size;
- PMC_array(dest) = mem_allocate_n_typed(size, PMC *);
+ PMC_size(dest) = size;
+ PMC_array(dest) = mem_allocate_n_typed(size, PMC *);
mem_copy_n_typed(PMC_array(dest), PMC_array(SELF), size, PMC *);
PObj_custom_mark_destroy_SETALL(dest);
}
More information about the parrot-commits
mailing list