Author: lupus
Date: 2005-03-16 10:12:30 -0500 (Wed, 16 Mar 2005)
New Revision: 41908
Removed:
trunk/mono/mono/metadata/private.h
Modified:
trunk/mono/mono/metadata/ChangeLog
trunk/mono/mono/metadata/Makefile.am
trunk/mono/mono/metadata/image.c
trunk/mono/mono/metadata/metadata-internals.h
trunk/mono/mono/metadata/metadata.c
trunk/mono/mono/metadata/pedump.c
trunk/mono/mono/metadata/reflection.c
Log:
Wed Mar 16 16:34:38 CET 2005 Paolo Molaro <[EMAIL PROTECTED]>
* *.c, private.h: cleanup, removing old private.h header file.
Modified: trunk/mono/mono/metadata/ChangeLog
===================================================================
--- trunk/mono/mono/metadata/ChangeLog 2005-03-16 15:00:59 UTC (rev 41907)
+++ trunk/mono/mono/metadata/ChangeLog 2005-03-16 15:12:30 UTC (rev 41908)
@@ -1,3 +1,8 @@
+
+Wed Mar 16 16:34:38 CET 2005 Paolo Molaro <[EMAIL PROTECTED]>
+
+ * *.c, private.h: cleanup, removing old private.h header file.
+
2005-03-16 Zoltan Varga <[EMAIL PROTECTED]>
* reflection.c (mono_image_get_method_info): Encode best_fit_mapping
Modified: trunk/mono/mono/metadata/Makefile.am
===================================================================
--- trunk/mono/mono/metadata/Makefile.am 2005-03-16 15:00:59 UTC (rev
41907)
+++ trunk/mono/mono/metadata/Makefile.am 2005-03-16 15:12:30 UTC (rev
41908)
@@ -104,7 +104,6 @@
mono-endian.h \
mono-config.c \
mono-config.h \
- private.h \
rawbuffer.c \
rawbuffer.h \
loader.c \
Modified: trunk/mono/mono/metadata/image.c
===================================================================
--- trunk/mono/mono/metadata/image.c 2005-03-16 15:00:59 UTC (rev 41907)
+++ trunk/mono/mono/metadata/image.c 2005-03-16 15:12:30 UTC (rev 41908)
@@ -19,7 +19,6 @@
#include "cil-coff.h"
#include "rawbuffer.h"
#include "mono-endian.h"
-#include "private.h"
#include "tabledefs.h"
#include "tokentype.h"
#include "metadata-internals.h"
Modified: trunk/mono/mono/metadata/metadata-internals.h
===================================================================
--- trunk/mono/mono/metadata/metadata-internals.h 2005-03-16 15:00:59 UTC
(rev 41907)
+++ trunk/mono/mono/metadata/metadata-internals.h 2005-03-16 15:12:30 UTC
(rev 41908)
@@ -236,6 +236,9 @@
/* for use with allocated memory blocks (assumes alignment is to 8 bytes) */
guint mono_aligned_addr_hash (gconstpointer ptr);
+const char * mono_meta_table_name (int table);
+void mono_metadata_compute_table_bases (MonoImage *meta);
+
MonoClass**
mono_metadata_interfaces_from_typedef_full (MonoImage *image,
guint32 table_index,
Modified: trunk/mono/mono/metadata/metadata.c
===================================================================
--- trunk/mono/mono/metadata/metadata.c 2005-03-16 15:00:59 UTC (rev 41907)
+++ trunk/mono/mono/metadata/metadata.c 2005-03-16 15:12:30 UTC (rev 41908)
@@ -20,7 +20,6 @@
#include "tokentype.h"
#include "metadata-internals.h"
#include "class-internals.h"
-#include "private.h"
#include "class.h"
static void do_mono_metadata_parse_type (MonoType *type, MonoImage *m,
MonoGenericContext *generic_context,
@@ -31,6 +30,67 @@
static gboolean _mono_metadata_generic_class_equal (const MonoGenericClass
*g1, const MonoGenericClass *g2,
gboolean signature_only);
+/*
+ * This enumeration is used to describe the data types in the metadata
+ * tables
+ */
+enum {
+ MONO_MT_END,
+
+ /* Sized elements */
+ MONO_MT_UINT32,
+ MONO_MT_UINT16,
+ MONO_MT_UINT8,
+
+ /* Index into Blob heap */
+ MONO_MT_BLOB_IDX,
+
+ /* Index into String heap */
+ MONO_MT_STRING_IDX,
+
+ /* GUID index */
+ MONO_MT_GUID_IDX,
+
+ /* Pointer into a table */
+ MONO_MT_TABLE_IDX,
+
+ /* HasConstant:Parent pointer (Param, Field or Property) */
+ MONO_MT_CONST_IDX,
+
+ /* HasCustomAttribute index. Indexes any table except CustomAttribute
*/
+ MONO_MT_HASCAT_IDX,
+
+ /* CustomAttributeType encoded index */
+ MONO_MT_CAT_IDX,
+
+ /* HasDeclSecurity index: TypeDef Method or Assembly */
+ MONO_MT_HASDEC_IDX,
+
+ /* Implementation coded index: File, Export AssemblyRef */
+ MONO_MT_IMPL_IDX,
+
+ /* HasFieldMarshal coded index: Field or Param table */
+ MONO_MT_HFM_IDX,
+
+ /* MemberForwardedIndex: Field or Method */
+ MONO_MT_MF_IDX,
+
+ /* TypeDefOrRef coded index: typedef, typeref, typespec */
+ MONO_MT_TDOR_IDX,
+
+ /* MemberRefParent coded index: typeref, moduleref, method, memberref,
typesepc, typedef */
+ MONO_MT_MRP_IDX,
+
+ /* MethodDefOrRef coded index: Method or Member Ref table */
+ MONO_MT_MDOR_IDX,
+
+ /* HasSemantic coded index: Event or Property */
+ MONO_MT_HS_IDX,
+
+ /* ResolutionScope coded index: Module, ModuleRef, AssemblytRef,
TypeRef */
+ MONO_MT_RS_IDX
+};
+
const static unsigned char AssemblySchema [] = {
MONO_MT_UINT32, /* "HashId" }, */
MONO_MT_UINT16, /* "Major" }, */
@@ -509,9 +569,6 @@
default:
g_assert_not_reached ();
}
- if (tableindex != MONO_TABLE_EXPORTEDTYPE && field_size
!= idx_size (tableindex))
- g_warning ("size changed (%d to %d)", idx_size
(tableindex), field_size);
-
break;
/*
Modified: trunk/mono/mono/metadata/pedump.c
===================================================================
--- trunk/mono/mono/metadata/pedump.c 2005-03-16 15:00:59 UTC (rev 41907)
+++ trunk/mono/mono/metadata/pedump.c 2005-03-16 15:12:30 UTC (rev 41908)
@@ -13,7 +13,6 @@
#include "image.h"
#include <glib.h>
#include "cil-coff.h"
-#include "private.h"
#include "mono-endian.h"
#include "verify.h"
#include <mono/metadata/class.h>
Deleted: trunk/mono/mono/metadata/private.h
===================================================================
--- trunk/mono/mono/metadata/private.h 2005-03-16 15:00:59 UTC (rev 41907)
+++ trunk/mono/mono/metadata/private.h 2005-03-16 15:12:30 UTC (rev 41908)
@@ -1,71 +0,0 @@
-#ifndef __MONO_METADATA_PRIVATE_H__
-#define __MONO_METADATA_PRIVATE_H__
-
-/*
- * This enumeration is used to describe the data types in the metadata
- * tables
- */
-enum {
- MONO_MT_END,
-
- /* Sized elements */
- MONO_MT_UINT32,
- MONO_MT_UINT16,
- MONO_MT_UINT8,
-
- /* Index into Blob heap */
- MONO_MT_BLOB_IDX,
-
- /* Index into String heap */
- MONO_MT_STRING_IDX,
-
- /* GUID index */
- MONO_MT_GUID_IDX,
-
- /* Pointer into a table */
- MONO_MT_TABLE_IDX,
-
- /* HasConstant:Parent pointer (Param, Field or Property) */
- MONO_MT_CONST_IDX,
-
- /* HasCustomAttribute index. Indexes any table except CustomAttribute
*/
- MONO_MT_HASCAT_IDX,
-
- /* CustomAttributeType encoded index */
- MONO_MT_CAT_IDX,
-
- /* HasDeclSecurity index: TypeDef Method or Assembly */
- MONO_MT_HASDEC_IDX,
-
- /* Implementation coded index: File, Export AssemblyRef */
- MONO_MT_IMPL_IDX,
-
- /* HasFieldMarshal coded index: Field or Param table */
- MONO_MT_HFM_IDX,
-
- /* MemberForwardedIndex: Field or Method */
- MONO_MT_MF_IDX,
-
- /* TypeDefOrRef coded index: typedef, typeref, typespec */
- MONO_MT_TDOR_IDX,
-
- /* MemberRefParent coded index: typeref, moduleref, method, memberref,
typesepc, typedef */
- MONO_MT_MRP_IDX,
-
- /* MethodDefOrRef coded index: Method or Member Ref table */
- MONO_MT_MDOR_IDX,
-
- /* HasSemantic coded index: Event or Property */
- MONO_MT_HS_IDX,
-
- /* ResolutionScope coded index: Module, ModuleRef, AssemblytRef,
TypeRef */
- MONO_MT_RS_IDX
-};
-
-const char *mono_meta_table_name (int table);
-
-/* Internal functions */
-void mono_metadata_compute_table_bases (MonoImage *meta);
-
-#endif /* __MONO_METADATA_PRIVATE_H__ */
-
Modified: trunk/mono/mono/metadata/reflection.c
===================================================================
--- trunk/mono/mono/metadata/reflection.c 2005-03-16 15:00:59 UTC (rev
41907)
+++ trunk/mono/mono/metadata/reflection.c 2005-03-16 15:12:30 UTC (rev
41908)
@@ -30,7 +30,6 @@
#include "cil-coff.h"
#include "rawbuffer.h"
#include "mono-endian.h"
-#include "private.h"
#include <mono/os/gc_wrapper.h>
#define TEXT_OFFSET 512
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches