2003-03-04 Pedro Mart�nez Juli� <yoros@wanadoo.es>
authorPedro Martínez Juliá <pedro@mono-cvs.ximian.com>
Mon, 3 Mar 2003 23:02:31 +0000 (23:02 -0000)
committerPedro Martínez Juliá <pedro@mono-cvs.ximian.com>
Mon, 3 Mar 2003 23:02:31 +0000 (23:02 -0000)
    * Double.cs: Changed ToString method. Added NumberFormatInfo support
    with DoubleFormatter class.
    * Single.cs: Changed ToString method. Added NumberFormatInfo support
    with SingleFormatter class.
    * DoubleFormatter.cs: New class with Double formatting functions.
    * SingleFormatter.cs: New class with Single formatting functions.

svn path=/trunk/mono/; revision=12162

mono/metadata/ChangeLog
mono/metadata/icall.c

index 06cb8aaa918ca37d2b359e36dc0e4eee9c3e572c..ab754d50c8966ee11b9e760a9da51fd2acc43536 100644 (file)
@@ -1,3 +1,9 @@
+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
index c277477484c461e61158ebe673d266b94cc2f97d..4d3896b30f0d955b7dae333c92f2c5314cd755ea 100644 (file)
 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
  */
@@ -88,14 +73,6 @@ mono_double_ParseImpl (char *ptr)
        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)
 {
@@ -3271,14 +3248,8 @@ static gconstpointer icall_map [] = {
        /*
         * System.Double
         */
-       "System.Double::ToStringImpl", mono_double_ToStringImpl,
        "System.Double::ParseImpl",    mono_double_ParseImpl,
 
-       /*
-        * System.Single
-        */
-       "System.Single::ToStringImpl", mono_float_ToStringImpl,
-
        /*
         * System.Decimal
         */