added UnixWrapper, FileStream and Stream Class + various fixes
[mono.git] / mono / metadata / ChangeLog
1 Sat Aug 18 12:51:28 CEST 2001 Paolo Molaro <lupus@ximian.com>
2
3         * metadata.c, metadata.h: in the signature and method header store
4         only the space required for holding the loca vars and incoming arguments.
5
6 2001-08-09  Dietmar Maurer  <dietmar@ximian.com>
7
8         * image.c (do_mono_image_open): added a cache for arrays.
9
10 Sat Aug 4 12:46:02 CEST 2001 Paolo Molaro <lupus@ximian.com>
11
12         * metadata.h, metadata.c: add mono_metadata_decode_row_col () to
13         decode a single column from a row in a metadata table and changes
14         to take advantage of it in the typedef locator (gives a nice speed up).
15         Store offset info for function params.
16
17 2001-08-02  Dietmar Maurer  <dietmar@ximian.com>
18
19         * image.h (MONO_IMAGE_IS_CORLIB): removed 
20
21 Wed Aug 1 22:54:08 CEST 2001 Paolo Molaro <lupus@ximian.com>
22
23         * assembly.c: how could mono_assembly_close () had ever worked?
24         * metadata.c, metadata.h: provide offset info for local vars.
25         Implement mono_type_size () to take care of alignment as well
26         as size (it was mono_field_type_size in cli/class.c before).
27
28 2001-08-01  Dietmar Maurer  <dietmar@ximian.com>
29
30         * image.h (MONO_IMAGE_IS_CORLIB): new macro to check root image
31
32         * assembly.h (CORLIB_NAME): set to corlib.dll
33
34         * assembly.c (mono_assembly_open): replaced strcmp() with !strcmp()
35
36 Tue Jul 31 17:54:02 CEST 2001 Paolo Molaro <lupus@ximian.com>
37
38         * metadata.h, metadata.c, Makefile.am, private.h, assembly.c, blob.h,
39         cil-coff.h, image.c, image.h, pedump.c, rawbuffer.c, rawbuffer.h, row-indexes.h,
40         tokentype.h: massive namespace cleanup.
41
42 Mon Jul 30 20:11:01 CEST 2001 Paolo Molaro <lupus@ximian.com>
43
44         * metadata.h, metadata.c: decode exception clauses when parsing method header.
45
46 2001-07-27  Dietmar Maurer  <dietmar@ximian.com>
47
48         * metadata.c (mono_metadata_free_type): added check for type !=
49         NULL (void) before calling mono_metadata_free_type()
50
51 Thu Jul 26 19:11:19 CEST 2001 Paolo Molaro <lupus@ximian.com>
52
53         * metadata.h, row_indexes.h: added header with enumerations to use
54         to index in the columns from tables in metadata and to decode coded
55         tokens: we should start using this instead of embedding magic numbers
56         all over the code.
57
58 Thu Jul 26 13:03:27 CEST 2001 Paolo Molaro <lupus@ximian.com>
59
60         * assembly.c, cil-coff.h, image.c, image.h, pedump.c, typedef.c:
61         Move metadata_t info from cli_image_info_t to MonoImage, where
62         it's easily accessible. Changed all the uses accordingly.
63         Added the method and class caches to MonoImage.
64         * metadata.c, metadata.h: Changed mono_metadata_decode_blob_size ()
65         and mono_metadata_decode_value () signature to be more consistent
66         with the other parse functions (and simplify code). Taken advantage
67         of zero-length array allocation with GCC. Removed reduntant (and
68         wrong) MonoFieldType struct and use MonoParam instead. Changed
69         mono_metadata_parse_field_type () to use common code for parsing.
70         Added mono_metadata_typedef_from_field () and
71         mono_metadata_typedef_from_method () to lookup a typedef index from a
72         field or method token.
73         Pack the MonoRetType structure more tightly (fits in 8 bytes now).
74
75 2001-07-23  Miguel de Icaza  <miguel@ximian.com>
76
77         * metadata.c (mono_metadata_parse_field_type): Implement. 
78         (do_mono_metadata_parse_type): Split engine from
79         mono_metadata_parse_type, so that we can create smaller structures
80         for things that just have one pointer to the MonoType (look at
81         the MonoFieldType)
82
83 2001-07-20  Miguel de Icaza  <miguel@ximian.com>
84
85         * metadata.c (mono_metadata_parse_mh): Correct the implementation,
86         as Jan Gray found out, it is incorrect. 
87
88 2001-07-18  Miguel de Icaza  <miguel@ximian.com>
89
90         * assembly.c: Implement asssembly loading.  This loads an image
91         and loads all the referenced assemblies.  Come to think of it, we
92         could always do lazy loading of the assemblies. 
93
94         * image.c (mono_image_open): Keep loaded images in a hashtable.
95
96         * image.h (MonoImage): Add reference count.
97
98 2001-07-17  Miguel de Icaza  <miguel@ximian.com>
99
100         * assembly.c (mono_assembly_open): Keep track of the file name in
101         case the assembly has no ASSEMBLY table.
102
103         * metadata.h: Fixed Paolo's quick hack.  Put the documnentation
104         from get.c here.
105
106 Sun Jul 15 19:39:06 CEST 2001 Paolo Molaro <lupus@ximian.com>
107
108         * metadata.c, metadata.h: decode local vars in method header
109         parse function. Change callers accordingly.
110
111 Sun Jul 15 17:40:47 CEST 2001 Paolo Molaro <lupus@ximian.com>
112
113         * metadata.h, cil-coff.h: protect against multiple inclusion.
114         Added some new structures to hold information decoded from metadata:
115         MonoType, MonoParam, MonoArray, MonoMethod, MonoMethodSignature
116         and relevant decoding/free functions.
117         * metadata.c: implement decoding functions. Add warning for out of bounds
118         index in mono_metadata_locate(). Implement mono_get_method () to retreive
119         all the info about a method signature and invocation. Remove check on
120         uninitialized local var in parse_mh() and fix memory leak.
121
122 2001-07-12  Miguel de Icaza  <miguel@ximian.com>
123
124         * metadata.h: More macros.
125
126         * tokentype.h: New file.
127
128 Fri Jul  6 11:30:53 CEST 2001 Paolo Molaro <lupus@ximian.com>
129
130         * assembly.c: added a consistency check and initialize
131         some structures with g_new0().
132         * metadata.c: fixed a couple more bugs in table size computation
133         and add other checks for out-of bound access to metadata.
134
135 Thu Jul  5 22:34:21 CEST 2001 Paolo Molaro <lupus@ximian.com>
136
137         * metatada.c: fix bugs computing table sizes. Spew a
138         warning when index in string heap is out of bounds.
139
140 2001-07-04  Miguel de Icaza  <miguel@ximian.com>
141
142         * metadata.h: Add a couple of macros to manipulate tokens. 
143
144 Tue Jul  3 18:33:32 CEST 2001 Paolo Molaro <lupus@ximian.com>
145
146         * assembly.c: g_free(ii->cli_sections) (and avoid double free of
147         cli_section_tables).
148
149 2001-07-01  Miguel de Icaza  <miguel@ximian.com>
150
151         * metadata.c (mono_metadata_user_string): New function, provides
152         access to the UserString heap. 
153
154 2001-06-27  Miguel de Icaza  <miguel@ximian.com>
155
156         * metadata.c: Add inline documentation.
157
158 2001-06-26  Miguel de Icaza  <miguel@ximian.com>
159
160         * propertyattr.h, paramattr.h, methodsem.h, methodattr.h: New
161         files. 
162
163 2001-06-22  Miguel de Icaza  <miguel@ximian.com>
164
165         * typeattr.h: New file, TypeAttribute flags. 
166
167 2001-06-21  Miguel de Icaza  <miguel@ximian.com>
168
169         * mono/metadata/assembly.c (mono_assembly_ensure_section_idx,
170         mono_assembly_ensure_section): Section loading code.
171         (load_section_tables): Load the sections.
172
173         * mono/metadata/metadata.c (mono_metadata_locate_token,
174         mono_metadata_locate): Functions to locate the information
175         definition given a token or a table and an index.
176         (mono_metadata_compute_table_bases): New.
177         (compute_size): New function to compute the sizes of the various
178         tables.
179
180         * mono/metadata/metadata.h: Finish listing the different index
181         types. 
182
183         * mono/metadata/pedump.c: Improve to dump new information.
184
185 2001-06-19  Miguel de Icaza  <miguel@ximian.com>
186
187         * mono/metadata/metadata.c: Entered all the tables matching
188         Beta2. 
189
190         * mono/metadata/assembly.c (load_metadata_ptrs): Fix for Beta2
191