int *lobounds;
};
-/*
- * Generic instantiation data type encoding.
- */
-struct _MonoGenericInst {
- MonoType *generic_type;
- int type_argc;
- MonoType **type_argv;
-};
-
struct _MonoType {
union {
MonoClass *klass; /* for VALUETYPE and CLASS */
unsigned int ref_count : 23;
guint16 param_count;
guint16 sentinelpos;
- MonoGenericInst *geninst;
+ guint16 generic_param_count;
MonoType *ret;
MonoType *params [MONO_ZERO_LEN_ARRAY];
};
unsigned int init_locals : 1;
guint16 num_locals;
MonoExceptionClause *clauses;
+ MonoGenericParam *gen_params;
+ MonoGenericInst *geninst;
MonoType *locals [MONO_ZERO_LEN_ARRAY];
} MonoMethodHeader;
MONO_PARSE_FIELD
} MonoParseTypeMode;
-struct _MonoGenericParam {
- MonoClass *klass;
- const char *name;
- guint16 flags;
- guint16 num;
- MonoClass** constraints; /* NULL means end of list */
-};
-
guint32 mono_metadata_parse_typedef_or_ref (MonoImage *m,
const char *ptr,
const char **rptr);
/*
* Makes a token based on a table and an index
*/
-#define mono_metadata_make_token(table,idx) (((table) << 24)| idx)
+#define mono_metadata_make_token(table,idx) (((table) << 24)| (idx))
/*
* Returns the table index that this token encodes.
char *mono_guid_to_string (const guint8 *guid);
-MonoGenericParam *mono_metadata_load_generic_params (MonoImage *image, guint32 token, guint32 *num);
-
#endif /* __MONO_METADATA_H__ */