2006-08-19 Miguel de Icaza <miguel@novell.com>
[mono.git] / eglib / ChangeLog
1 2006-08-19  Miguel de Icaza  <miguel@novell.com>
2
3         * Makefile.am: Removed MAINTAINERCLEANFILES that was too
4         aggresive, it failed make distcheck and the resulting tarball was
5         not buildable.
6
7         * src/glib.h: remove the various GPOINTER_TO_*, G*_TO_POINTER,
8         GSIZE_FORMAT macros, and move them into src/eglib-config.h
9
10         Moved also gssize and gsize to be arch specific.   This should fix
11         the 32/64 problems that Jon Chambers reported. 
12
13         * configure.in: test for pointer size, define the various values
14         depending on 32 vs 32/64 worlds, might need further porting in the
15         future. 
16
17         Change package name to eglib
18
19         * test/slist.c, test/list.c, test/hashtable.c: Update tests to use
20         FAILURE macro.
21
22         * test/string-util.c: fix leak for valgrind tests.
23
24         * test/tests.h: New size test, for testing datatypes.
25
26         * test/sizes.c: New tests.
27         
28 2006-08-19  Aaron Bockover  <abockover@novell.com>
29
30         * test/README: Added quick guide on adding new tests/groups to the 
31         driver and some examples on how to perform various tests with the driver
32
33 2006-08-18  Aaron Bockover  <abockover@novell.com>
34
35         * test/driver.c: Added getopt support and code timing, among other 
36         nice features to make testing/profiling easier
37
38         * test/test.c: Add support for suppressing output (quiet) and
39         define RESULT, FAILED, and OK
40
41         * src/glib.h:
42         * src/glist.c: Added g_list_nth_data implementation
43
44         * test/slist.c:
45         * test/string-util.c:
46         * test/ptrarray.c:
47         * test/string.c:
48         * test/hashtable.c:
49         * test/list.c: Use RESULT, FAILURE, and OK for tests
50
51 2006-08-18  Miguel de Icaza  <miguel@novell.com>
52
53         * src/gstring.c (g_string_truncate): Implement truncate. 
54         (g_string_prepend): implement. 
55
56         Fix various bugs uncovered by new tests. 
57
58         * src/glib.h: introduce gssize type, the signed one.  Important. 
59
60         * src/eglib-config.h (G_OS_): Add the G_OS_UNIX and G_OS_WIN32
61         defines that we can use to check on the host OS.
62
63 2006-08-18  Aaron Bockover  <abockover@novell.com>
64
65         * test/test.[ch]:
66         * test/driver.c: Support pass/fail logging on tests to show group report
67
68 2006-08-18  Aaron Bockover  <abockover@novell.com>
69
70         * test/test.c: 
71         * test/test.h: Added result() to be used in place of g_strdup_printf(),
72         it's shorter to write and allows the duped string to be freed safely;
73         added license header to file
74
75         * test/driver.c: Added license header to file
76
77         * test/string-util.c:
78         * test/ptrarray.c:
79         * test/string.c:
80         * test/list.c: Use result() in place of g_strdup_printf(), it's nicer
81
82 2006-08-18  Aaron Bockover  <abockover@novell.com>
83
84         * src/gptrarray.c: Implemented g_ptr_array_sort
85
86         * test/ptrarray.c: Added sort test
87         
88         * test/driver.c: Added --help; support running N iterations and allow
89         selecting which test groups to run; uses the test group table in tests.h
90         
91         * test/tests.h: Added group table
92         
93         * test/test.h:
94         * test/test.c: Using a Group structure and table, removed run_groups
95         as we only need run_group now
96
97         * test/slist.h: Removed, not needed, tests/groups defined in tests.h
98
99 2006-08-18  Miguel de Icaza  <miguel@novell.com>
100
101         * src/unicode.c: New file, to host unicode code, it will throw as
102         this code is no longer used in the Mono runtime anyways.
103         
104         * src/glib.h: Use stdint.h types, a lot of the good stuff is
105         replicated by glib.
106
107 2006-08-18  Duncan Mak  <duncan@a-chinaman.com>
108
109         * src/glist.c: Implemented. Missing remove,
110         remove_link and insert_before.
111
112         * test/list.c: Tests for GList.
113
114 2006-08-17  Aaron Bockover  <abockover@novell.com>
115
116         * src/gptrarray.c: Implemented g_ptr_array_remove and 
117         g_ptr_array_remove_index
118
119         * test/other: Removed, rewritten in Makefile.am
120
121         * test/Makefile.am: Build test-eglib against local eglib and 
122         test-glib against GLib 2.0 (replaces 'other')
123
124         * test/ptrarray.c: Added tests for g_ptr_array_remove and
125         g_ptr_array_remove_index
126
127 2006-08-17  Duncan Mak  <duncan@a-chinaman.com>
128
129         * src/gslist.c: Added MIT license.
130         (g_slist_insert_sorted): Forgot the case where the data is
131         appended to the end of the list.
132
133         * test/slist.c (test_slist_insert_sorted): Fix the test.        
134
135 2006-08-17  Aaron Bockover  <abockover@novell.com>
136
137         * src/gptrarray.c: Added g_ptr_array_set_size implementation
138
139         * test/ptrarray.c: Added test for g_ptr_array_set_size
140
141 2006-08-17  Miguel de Icaza  <miguel@novell.com>
142
143         * src/glib.h: A handful of extra macros
144
145         * configure.in, src/eglib-config.h.in: Set some system-specific
146         settings that are probed at configure time.
147
148 2006-08-17  Aaron Bockover  <abockover@novell.com>
149
150         * src/gptrarray.c: Added beginnings of GPtrArray (alloc, free, add, iterate)
151
152         * src/glib.h: Added GPtrArray signatures
153
154         * src/Makefile.am: Added gptrarray.c to build
155
156         * test/ptrarray.c:
157         * test/tests.h:
158         * test/driver.c:
159         * test/Makefile.am: Add ptrarray tests for available functionality
160
161 2006-08-17  Aaron Bockover  <abockover@novell.com>
162         
163         * test/test.h: 
164         * test/test.c: Added group iterator/test driver functionality
165         
166         * test/driver.c: Added groups to run using new test functionality
167         
168         * test/slist.h:
169         * test/hashtable.h:
170         * test/string-util.h: Test group definitions for string util/hashtable
171
172         * test/slist.c:
173         * test/str.c: 
174         * test/hash.c: Added test definition table 
175
176         * test/Makefile.am: Added -Wall -Werror -D_FORTIFY_SOURCE=2
177
178         * src/gstr.c: Added implementation for g_str_has_prefix, g_str_has_suffix
179
180         * src/glib.h: Added missing function signatures
181
182         * src/Makefile.am: added -D_FORTIFY_SOURCE=2 
183
184 2006-08-17  Duncan Mak  <duncan@a-chinaman.com>
185
186         * src/gslist.c (g_slist_remove_link): I misread the function
187         signature. Re-implemented.
188         (g_slist_delete_link): Implemented.
189         (g_slist_reverse): Implemented.
190         (g_slist_insert_sorted): Implemented.
191
192 2006-08-17  Duncan Mak  <duncan@a-chinaman.com>
193
194         * src/gslist.c (g_slist_find): 
195         (g_slist_length):
196         (g_slist_remove):
197         (g_slist_remove_link): Implemented.
198
199         * test/slist.c: Tests for GSList.
200
201 2006-08-17  Raja R Harinath  <harinath@gmail.com>
202
203         * src/gslist.c (g_slist_free_1): New.  Free a single list node.
204         (g_slist_free): Use it to free the list nodes.  Don't free the
205         data, since the list doesn't own it.
206         (g_slist_append): Convert into a one-liner.
207         (g_slist_foreach): Remove redundant null check.
208         (g_slist_last): Actually return the last node.
209         (g_slist_copy): Simplify.
210         * src/gslist.h (g_slist_free_1): Add.
211
212 2006-08-16  Duncan Mak  <duncan@a-chinaman.com>
213
214         * src/gslist.c:
215
216         * src/gslist.h: First attempt at implementing GSList, incomplete.
217
218         * src/Makefile.am (libeglib_la_SOURCES): add gslist.c
219         * src/glib.h: Add GFunc definition. #include the new gslist.h.
220
221 2006-08-16  Miguel de Icaza  <miguel@novell.com>
222
223         * src/Makefile.am: Added -Wall,-Werror, corrected lots of
224         mistakes.
225
226         * src/gstring.c: Gstring implementation.
227
228         * test/str.c (test_gstring): string tests.
229
230 2006-08-16  Aaron Bockover  <abockover@novell.com>
231
232         * src/gstr.c: Added g_strsplit implementation
233
234         * test/driver.c: Run the split test
235
236         * test/str.c: Added a test for g_strsplit
237
238         * Makefile.am:
239         * src/Makefile.am:
240         * test/Makefile.am: Added MAINTAINERCLEANFILES
241
242 2006-08-16  Miguel de Icaza  <miguel@novell.com>
243
244         * src/gouput.c: Implement some output routines, update missing
245         progress. 
246
247         * test: Add test driver, and initial tests. 
248
249 2006-08-15  Miguel de Icaza  <miguel@novell.com>
250
251         * src/ghashtable.c: Implement most of this, it is completely
252         untested at this point.
253