+2003-03-04 Pedro Martínez Juliá <yoros@wanadoo.es>
+
+ * icall.c: Erased ToString helper functions for Double and Single.
+ Now, that implementations ar all in managed code (Double and Single
+ Formatters).
+
2003-03-03 Lluis Sanchez Gual <lluis@ideary.com>
* appdomain.c: Added method for initializing the default context of
static MonoReflectionAssembly* ves_icall_System_Reflection_Assembly_GetCallingAssembly (void);
-static MonoString *
-mono_double_ToStringImpl (double value)
-{
- /* FIXME: Handle formats, etc. */
- MonoString *s;
- gchar *retVal;
-
- MONO_ARCH_SAVE_REGS;
-
- retVal = g_strdup_printf ("%.15g", value);
- s = mono_string_new (mono_domain_get (), retVal);
- g_free (retVal);
- return s;
-}
-
/*
* We expect a pointer to a char, not a string
*/
return result;
}
-static MonoString *
-mono_float_ToStringImpl (float value)
-{
- MONO_ARCH_SAVE_REGS;
-
- return mono_double_ToStringImpl (value);
-}
-
static MonoObject *
ves_icall_System_Array_GetValueImpl (MonoObject *this, guint32 pos)
{
/*
* System.Double
*/
- "System.Double::ToStringImpl", mono_double_ToStringImpl,
"System.Double::ParseImpl", mono_double_ParseImpl,
- /*
- * System.Single
- */
- "System.Single::ToStringImpl", mono_float_ToStringImpl,
-
/*
* System.Decimal
*/