[svn:parrot] r49077 - trunk/src/pmc
fperrad at svn.parrot.org
fperrad at svn.parrot.org
Fri Sep 17 09:35:50 UTC 2010
Author: fperrad
Date: Fri Sep 17 09:35:49 2010
New Revision: 49077
URL: https://trac.parrot.org/parrot/changeset/49077
Log:
[pmc] honors HLL type
Modified:
trunk/src/pmc/float.pmc
trunk/src/pmc/integer.pmc
Modified: trunk/src/pmc/float.pmc
==============================================================================
--- trunk/src/pmc/float.pmc Fri Sep 17 09:01:46 2010 (r49076)
+++ trunk/src/pmc/float.pmc Fri Sep 17 09:35:49 2010 (r49077)
@@ -139,12 +139,14 @@
*/
VTABLE void set_integer_native(INTVAL value) {
- Parrot_pmc_reuse(INTERP, SELF, enum_class_Integer, 0);
+ Parrot_pmc_reuse(INTERP, SELF,
+ Parrot_get_ctx_HLL_type(INTERP, enum_class_Integer), 0);
SELF.set_integer_native(value);
}
VTABLE void set_bool(INTVAL value) {
- Parrot_pmc_reuse(INTERP, SELF, enum_class_Boolean, 0);
+ Parrot_pmc_reuse(INTERP, SELF,
+ Parrot_get_ctx_HLL_type(INTERP, enum_class_Boolean), 0);
SELF.set_bool(value);
}
@@ -175,7 +177,8 @@
*/
VTABLE void set_string_native(STRING *value) {
- Parrot_pmc_reuse(INTERP, SELF, enum_class_String, 0);
+ Parrot_pmc_reuse(INTERP, SELF,
+ Parrot_get_ctx_HLL_type(INTERP, enum_class_String), 0);
SELF.set_string_native(value);
}
Modified: trunk/src/pmc/integer.pmc
==============================================================================
--- trunk/src/pmc/integer.pmc Fri Sep 17 09:01:46 2010 (r49076)
+++ trunk/src/pmc/integer.pmc Fri Sep 17 09:35:49 2010 (r49077)
@@ -286,20 +286,23 @@
*/
VTABLE void set_number_native(FLOATVAL value) {
- Parrot_pmc_reuse(INTERP, SELF, enum_class_Float, 0);
+ Parrot_pmc_reuse(INTERP, SELF,
+ Parrot_get_ctx_HLL_type(INTERP, enum_class_Float), 0);
SELF.set_number_native(value);
}
VTABLE void set_bool(INTVAL value) {
- Parrot_pmc_reuse(INTERP, SELF, enum_class_Boolean, 0);
+ Parrot_pmc_reuse(INTERP, SELF,
+ Parrot_get_ctx_HLL_type(INTERP, enum_class_Boolean), 0);
SELF.set_bool(value);
}
VTABLE void set_string_native(STRING *value) {
- Parrot_pmc_reuse(INTERP, SELF, enum_class_String, 0);
+ Parrot_pmc_reuse(INTERP, SELF,
+ Parrot_get_ctx_HLL_type(INTERP, enum_class_String), 0);
SELF.set_string_native(value);
}
More information about the parrot-commits
mailing list