[svn:parrot] r41862 - branches/pcc_reapply/src/pmc

allison at svn.parrot.org allison at svn.parrot.org
Wed Oct 14 22:13:11 UTC 2009


Author: allison
Date: Wed Oct 14 22:13:01 2009
New Revision: 41862
URL: https://trac.parrot.org/parrot/changeset/41862

Log:
[pcc] Add a missing vtable function to CallSignature and reclaim the one extra
failing test.

Modified:
   branches/pcc_reapply/src/pmc/callsignature.pmc

Modified: branches/pcc_reapply/src/pmc/callsignature.pmc
==============================================================================
--- branches/pcc_reapply/src/pmc/callsignature.pmc	Wed Oct 14 22:05:35 2009	(r41861)
+++ branches/pcc_reapply/src/pmc/callsignature.pmc	Wed Oct 14 22:13:01 2009	(r41862)
@@ -1035,6 +1035,20 @@
         return NULL;
     }
 
+    VTABLE STRING * get_string_keyed_str(STRING *key) {
+        Hash *hash = get_hash(interp, SELF);
+
+        if (hash) {
+            void     *k    = hash_key_from_string(interp, hash, key);
+            Pcc_cell *cell = (Pcc_cell *)parrot_hash_get(interp, hash, k);
+
+            if (cell)
+                return autobox_string(interp, cell);
+        }
+
+        return NULL;
+    }
+
     VTABLE PMC * get_pmc_keyed(PMC *key) {
         Hash *hash = get_hash(interp, SELF);
 


More information about the parrot-commits mailing list