Author: leo
Date: Wed Mar 8 10:18:42 2006
New Revision: 11829
Modified:
trunk/src/pmc/namespace.pmc
Log:
Namespaces 11 - implement NameSpace.mark
* mark hash and other data
Modified: trunk/src/pmc/namespace.pmc
==============================================================================
--- trunk/src/pmc/namespace.pmc (original)
+++ trunk/src/pmc/namespace.pmc Wed Mar 8 10:18:42 2006
@@ -49,6 +49,23 @@
/*
+=item C<void mark()>
+
+Marks the namespace as live.
+
+=cut
+
+*/
+ void mark() {
+ SUPER();
+ if (PMC_pmc_val(SELF))
+ pobject_lives(INTERP, (PObj*)PMC_pmc_val(SELF));
+ if (PMC_data(SELF))
+ pobject_lives(INTERP, (PObj*)PMC_data(SELF));
+ }
+
+/*
+
=item C<void set_pmc_keyed_str(STRING *key, PMC *value)>
Sets C<*value> as the namespace item for C<*key>. This is part of the