[svn:parrot] r44176 - in branches/sys_mem_reduce: config/gen/crypto src/dynpmc
bacek at svn.parrot.org
bacek at svn.parrot.org
Fri Feb 19 13:27:46 UTC 2010
Author: bacek
Date: Fri Feb 19 13:27:45 2010
New Revision: 44176
URL: https://trac.parrot.org/parrot/changeset/44176
Log:
Fix some leftovers after renaming gc_mem_foo into mem_gc_foo
Modified:
branches/sys_mem_reduce/config/gen/crypto/digest_pmc.in
branches/sys_mem_reduce/src/dynpmc/gdbmhash.pmc
branches/sys_mem_reduce/src/dynpmc/rational.pmc
Modified: branches/sys_mem_reduce/config/gen/crypto/digest_pmc.in
==============================================================================
--- branches/sys_mem_reduce/config/gen/crypto/digest_pmc.in Fri Feb 19 13:27:20 2010 (r44175)
+++ branches/sys_mem_reduce/config/gen/crypto/digest_pmc.in Fri Feb 19 13:27:45 2010 (r44176)
@@ -34,7 +34,7 @@
*/
VTABLE void init() {
@TEMP_md_guard@
- @TEMP_md_ctx@ *c = gc_mem_allocate_zeroed_typed(INTERP, @TEMP_md_ctx@);
+ @TEMP_md_ctx@ *c = mem_gc_allocate_zeroed_typed(INTERP, @TEMP_md_ctx@);
PMC_data(SELF) = c;
PObj_custom_destroy_SET(SELF);
#else
@@ -54,7 +54,7 @@
@TEMP_md_guard@
@TEMP_md_ctx@ *c = PMC_data_typed(SELF, @TEMP_md_ctx@ *);
if (c) {
- gc_mem_free(INTERP, c);
+ mem_gc_free(INTERP, c);
PMC_data(SELF) = NULL;
}
#endif
@@ -70,7 +70,7 @@
VTABLE PMC* clone() {
@TEMP_md_guard@
PMC *retval = pmc_new_noinit(INTERP, SELF->vtable->base_type);
- @TEMP_md_ctx@ *c = gc_mem_allocate_zeroed_typed(INTERP, @TEMP_md_ctx@);
+ @TEMP_md_ctx@ *c = mem_gc_allocate_zeroed_typed(INTERP, @TEMP_md_ctx@);
memcpy(c, PMC_data(SELF), sizeof (@TEMP_md_ctx@));
PMC_data(retval) = c;
Modified: branches/sys_mem_reduce/src/dynpmc/gdbmhash.pmc
==============================================================================
--- branches/sys_mem_reduce/src/dynpmc/gdbmhash.pmc Fri Feb 19 13:27:20 2010 (r44175)
+++ branches/sys_mem_reduce/src/dynpmc/gdbmhash.pmc Fri Feb 19 13:27:45 2010 (r44176)
@@ -101,13 +101,13 @@
VTABLE void init() {
Parrot_GDBMHash_attributes *attrs = PARROT_GDBMHASH(SELF);
- attrs->db_handle = gc_mem_allocate_zeroed_typed(INTERP, GDBM_FH);
+ attrs->db_handle = mem_gc_allocate_zeroed_typed(INTERP, GDBM_FH);
PObj_custom_destroy_SET(SELF);
}
VTABLE void destroy() {
Parrot_GDBMHash_attributes *attrs = PARROT_GDBMHASH(SELF);
- gc_mem_free(INTERP, attrs->db_handle);
+ mem_gc_free(INTERP, attrs->db_handle);
PMC_data(SELF) = NULL;
}
Modified: branches/sys_mem_reduce/src/dynpmc/rational.pmc
==============================================================================
--- branches/sys_mem_reduce/src/dynpmc/rational.pmc Fri Feb 19 13:27:20 2010 (r44175)
+++ branches/sys_mem_reduce/src/dynpmc/rational.pmc Fri Feb 19 13:27:45 2010 (r44176)
@@ -266,7 +266,7 @@
#ifdef PARROT_HAS_GMP
Parrot_Rational_attributes *attrs =
PARROT_RATIONAL(SELF);
- attrs->rational = gc_mem_allocate_zeroed_typed(INTERP, RATIONAL);
+ attrs->rational = mem_gc_allocate_zeroed_typed(INTERP, RATIONAL);
mpq_init(RT(SELF));
PObj_custom_destroy_SET(SELF);
#endif
@@ -299,7 +299,7 @@
VTABLE void destroy() {
#ifdef PARROT_HAS_GMP
mpq_clear(RT(SELF));
- gc_mem_free(INTERP, RT(SELF));
+ mem_gc_free(INTERP, RT(SELF));
#else
RAISE_EXCEPTION
#endif
More information about the parrot-commits
mailing list