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