[svn:parrot] r37624 - trunk/src/pmc
cotto at svn.parrot.org
cotto at svn.parrot.org
Sat Mar 21 19:34:04 UTC 2009
Author: cotto
Date: Sat Mar 21 19:34:03 2009
New Revision: 37624
URL: https://trac.parrot.org/parrot/changeset/37624
Log:
[PMC] use PMC inheritance instead of calling Hash PMC functions directly (AddrRegistry)
Modified:
trunk/src/pmc/addrregistry.pmc
Modified: trunk/src/pmc/addrregistry.pmc
==============================================================================
--- trunk/src/pmc/addrregistry.pmc Sat Mar 21 19:22:33 2009 (r37623)
+++ trunk/src/pmc/addrregistry.pmc Sat Mar 21 19:34:03 2009 (r37624)
@@ -31,7 +31,7 @@
#include "parrot/hash.h"
#include "pmc_hash.h"
-pmclass AddrRegistry need_ext provides hash {
+pmclass AddrRegistry extends Hash need_ext provides hash {
ATTR Hash *hash; /* a PMC Hash */
/*
@@ -180,10 +180,6 @@
/*
-=item C<PMC *get_iter ()>
-
-Return a new iterator for the PMC.
-
=item C<PMC *get_pmc_keyed(PMC *key)>
If called from iteration, return the key PMC, else PMCNULL is returned.
@@ -192,10 +188,6 @@
*/
- VTABLE PMC *get_iter() {
- return Parrot_Hash_get_iter(INTERP, SELF);
- }
-
VTABLE PMC *get_pmc_keyed(PMC *key) {
Hash * const hash = PARROT_ADDRREGISTRY(SELF)->hash;
More information about the parrot-commits
mailing list