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