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