Author: calberto
Date: 2005-11-14 15:35:03 -0500 (Mon, 14 Nov 2005)
New Revision: 53030
Modified:
trunk/mono/mono/metadata/ChangeLog
trunk/mono/mono/metadata/appdomain.c
trunk/mono/mono/metadata/icall.c
Log:
2005-11-14 Carlos Alberto Cortez <[EMAIL PROTECTED]>
* appdomain.c: Update MONO_CORLIB_VERSION to 42, since
we changed the signature of an icall.
* icall.c: Modify to mono_double_ParseImpl return true/false
depending on the success, instead of throwing the exception. This will
help us in Double.TryParse methods.
Modified: trunk/mono/mono/metadata/ChangeLog
===================================================================
--- trunk/mono/mono/metadata/ChangeLog 2005-11-14 19:39:57 UTC (rev 53029)
+++ trunk/mono/mono/metadata/ChangeLog 2005-11-14 20:35:03 UTC (rev 53030)
@@ -1,3 +1,11 @@
+2005-11-14 Carlos Alberto Cortez <[EMAIL PROTECTED]>
+
+ * appdomain.c: Update MONO_CORLIB_VERSION to 42, since
+ we changed the signature of an icall.
+ * icall.c: Modify to mono_double_ParseImpl return true/false
+ depending on the success, instead of throwing the exception. This will
+ help us in Double.TryParse methods.
+
2005-11-14 Zoltan Varga <[EMAIL PROTECTED]>
* marshal.c (emit_marshal_object): Throw an exception when
Modified: trunk/mono/mono/metadata/appdomain.c
===================================================================
--- trunk/mono/mono/metadata/appdomain.c 2005-11-14 19:39:57 UTC (rev
53029)
+++ trunk/mono/mono/metadata/appdomain.c 2005-11-14 20:35:03 UTC (rev
53030)
@@ -30,7 +30,7 @@
#include <mono/metadata/threadpool.h>
#include <mono/utils/mono-uri.h>
-#define MONO_CORLIB_VERSION 41
+#define MONO_CORLIB_VERSION 42
CRITICAL_SECTION mono_delegate_section;
Modified: trunk/mono/mono/metadata/icall.c
===================================================================
--- trunk/mono/mono/metadata/icall.c 2005-11-14 19:39:57 UTC (rev 53029)
+++ trunk/mono/mono/metadata/icall.c 2005-11-14 20:35:03 UTC (rev 53030)
@@ -70,28 +70,26 @@
/*
* We expect a pointer to a char, not a string
*/
-static double
-mono_double_ParseImpl (char *ptr)
+static gboolean
+mono_double_ParseImpl (char *ptr, double *result)
{
gchar *endptr = NULL;
- gdouble result = 0.0;
+ *result = 0.0;
MONO_ARCH_SAVE_REGS;
#ifdef __arm__
if (*ptr)
- result = strtod (ptr, &endptr);
+ *result = strtod (ptr, &endptr);
#else
if (*ptr)
- result = bsd_strtod (ptr, &endptr);
+ *result = bsd_strtod (ptr, &endptr);
#endif
if (!*ptr || (endptr && *endptr))
- mono_raise_exception (mono_exception_from_name (mono_get_corlib
(),
- "System",
-
"FormatException"));
+ return FALSE;
- return result;
+ return TRUE;
}
static void
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches