+2005-01-05 Zoltan Varga <vargaz@freemail.hu>
+
+ * metadata.c (mono_type_to_unmanaged): Improve error message for
+ invalid string marshalling.
+ * metadata.c: Fix warnings.
+
Wed Jan 5 16:17:27 CET 2005 Paolo Molaro <lupus@ximian.com>
* profiler-private.h, profiler.c, profiler.h, gc.c: sample statistical
mono_metadata_lookup_generic_class (MonoGenericClass *gclass)
{
MonoGenericClass *cached;
- int i;
cached = g_hash_table_lookup (generic_class_cache, gclass);
if (cached)
MonoGenericInst *
mono_metadata_inflate_generic_inst (MonoGenericInst *ginst, MonoGenericContext *context)
{
- MonoGenericInst *nginst, *cached;
+ MonoGenericInst *nginst;
int i;
nginst = g_new0 (MonoGenericInst, 1);
const char *ptr, const char **rptr)
{
MonoGenericClass *gclass = g_new0 (MonoGenericClass, 1);
- MonoGenericContainer *container;
MonoGenericClass *cached;
- MonoGenericInst *ginst;
MonoClass *gklass;
MonoType *gtype;
- int i, count;
+ int count;
type->data.generic_class = gclass;
*conv = MONO_MARSHAL_CONV_STR_BYVALSTR;
return MONO_NATIVE_BYVALTSTR;
default:
- g_error ("cant marshal string to native type %02x", mspec->native);
+ g_error ("Can not marshal string to native type '%02x': Invalid managed/unmanaged type combination (String fields must be paired with LPStr, LPWStr, BStr or ByValTStr).", mspec->native);
}
}
*conv = MONO_MARSHAL_CONV_STR_LPTSTR;
guint32 cols [MONO_GENERICPARAM_SIZE];
guint32 i, owner = 0, last_num, n;
MonoGenericContainer *container;
- MonoGenericClass *gclass;
MonoGenericParam *params;
if (mono_metadata_token_table (token) == MONO_TABLE_TYPEDEF)