[svn:parrot] r36893 - trunk/src
cotto at svn.parrot.org
cotto at svn.parrot.org
Thu Feb 19 22:17:26 UTC 2009
Author: cotto
Date: Thu Feb 19 22:17:25 2009
New Revision: 36893
URL: https://trac.parrot.org/parrot/changeset/36893
Log:
[PMC] avoid creating uninitialized String PMCs during interp init
This enables ATTR conversion of the String PMC.
Modified:
trunk/src/hll.c
Modified: trunk/src/hll.c
==============================================================================
--- trunk/src/hll.c Thu Feb 19 22:08:03 2009 (r36892)
+++ trunk/src/hll.c Thu Feb 19 22:17:25 2009 (r36893)
@@ -177,7 +177,7 @@
entry = new_hll_entry(interp, hll_name);
/* register HLL name */
- name = constant_pmc_new_noinit(interp, enum_class_String);
+ name = constant_pmc_new(interp, enum_class_String);
VTABLE_set_string_native(interp, name, hll_name);
VTABLE_set_pmc_keyed_int(interp, entry, e_HLL_name, name);
@@ -251,7 +251,7 @@
VTABLE_set_pmc_keyed_int(interp, entry, e_HLL_name, PMCNULL);
/* register dynlib */
- name = constant_pmc_new_noinit(interp, enum_class_String);
+ name = constant_pmc_new(interp, enum_class_String);
VTABLE_set_string_native(interp, name, hll_lib);
VTABLE_set_pmc_keyed_int(interp, entry, e_HLL_lib, name);
More information about the parrot-commits
mailing list