1 2006-08-19 Miguel de Icaza <miguel@novell.com>
3 * Makefile.am: Removed MAINTAINERCLEANFILES that was too
4 aggresive, it failed make distcheck and the resulting tarball was
7 * src/glib.h: remove the various GPOINTER_TO_*, G*_TO_POINTER,
8 GSIZE_FORMAT macros, and move them into src/eglib-config.h
10 Moved also gssize and gsize to be arch specific. This should fix
11 the 32/64 problems that Jon Chambers reported.
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
17 Change package name to eglib
19 * test/slist.c, test/list.c, test/hashtable.c: Update tests to use
22 * test/string-util.c: fix leak for valgrind tests.
24 * test/tests.h: New size test, for testing datatypes.
26 * test/sizes.c: New tests.
28 2006-08-19 Aaron Bockover <abockover@novell.com>
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
33 2006-08-18 Aaron Bockover <abockover@novell.com>
35 * test/driver.c: Added getopt support and code timing, among other
36 nice features to make testing/profiling easier
38 * test/test.c: Add support for suppressing output (quiet) and
39 define RESULT, FAILED, and OK
42 * src/glist.c: Added g_list_nth_data implementation
49 * test/list.c: Use RESULT, FAILURE, and OK for tests
51 2006-08-18 Miguel de Icaza <miguel@novell.com>
53 * src/gstring.c (g_string_truncate): Implement truncate.
54 (g_string_prepend): implement.
56 Fix various bugs uncovered by new tests.
58 * src/glib.h: introduce gssize type, the signed one. Important.
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.
63 2006-08-18 Aaron Bockover <abockover@novell.com>
66 * test/driver.c: Support pass/fail logging on tests to show group report
68 2006-08-18 Aaron Bockover <abockover@novell.com>
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
75 * test/driver.c: Added license header to file
80 * test/list.c: Use result() in place of g_strdup_printf(), it's nicer
82 2006-08-18 Aaron Bockover <abockover@novell.com>
84 * src/gptrarray.c: Implemented g_ptr_array_sort
86 * test/ptrarray.c: Added sort test
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
91 * test/tests.h: Added group table
94 * test/test.c: Using a Group structure and table, removed run_groups
95 as we only need run_group now
97 * test/slist.h: Removed, not needed, tests/groups defined in tests.h
99 2006-08-18 Miguel de Icaza <miguel@novell.com>
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.
104 * src/glib.h: Use stdint.h types, a lot of the good stuff is
107 2006-08-18 Duncan Mak <duncan@a-chinaman.com>
109 * src/glist.c: Implemented. Missing remove,
110 remove_link and insert_before.
112 * test/list.c: Tests for GList.
114 2006-08-17 Aaron Bockover <abockover@novell.com>
116 * src/gptrarray.c: Implemented g_ptr_array_remove and
117 g_ptr_array_remove_index
119 * test/other: Removed, rewritten in Makefile.am
121 * test/Makefile.am: Build test-eglib against local eglib and
122 test-glib against GLib 2.0 (replaces 'other')
124 * test/ptrarray.c: Added tests for g_ptr_array_remove and
125 g_ptr_array_remove_index
127 2006-08-17 Duncan Mak <duncan@a-chinaman.com>
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.
133 * test/slist.c (test_slist_insert_sorted): Fix the test.
135 2006-08-17 Aaron Bockover <abockover@novell.com>
137 * src/gptrarray.c: Added g_ptr_array_set_size implementation
139 * test/ptrarray.c: Added test for g_ptr_array_set_size
141 2006-08-17 Miguel de Icaza <miguel@novell.com>
143 * src/glib.h: A handful of extra macros
145 * configure.in, src/eglib-config.h.in: Set some system-specific
146 settings that are probed at configure time.
148 2006-08-17 Aaron Bockover <abockover@novell.com>
150 * src/gptrarray.c: Added beginnings of GPtrArray (alloc, free, add, iterate)
152 * src/glib.h: Added GPtrArray signatures
154 * src/Makefile.am: Added gptrarray.c to build
159 * test/Makefile.am: Add ptrarray tests for available functionality
161 2006-08-17 Aaron Bockover <abockover@novell.com>
164 * test/test.c: Added group iterator/test driver functionality
166 * test/driver.c: Added groups to run using new test functionality
170 * test/string-util.h: Test group definitions for string util/hashtable
174 * test/hash.c: Added test definition table
176 * test/Makefile.am: Added -Wall -Werror -D_FORTIFY_SOURCE=2
178 * src/gstr.c: Added implementation for g_str_has_prefix, g_str_has_suffix
180 * src/glib.h: Added missing function signatures
182 * src/Makefile.am: added -D_FORTIFY_SOURCE=2
184 2006-08-17 Duncan Mak <duncan@a-chinaman.com>
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.
192 2006-08-17 Duncan Mak <duncan@a-chinaman.com>
194 * src/gslist.c (g_slist_find):
197 (g_slist_remove_link): Implemented.
199 * test/slist.c: Tests for GSList.
201 2006-08-17 Raja R Harinath <harinath@gmail.com>
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.
212 2006-08-16 Duncan Mak <duncan@a-chinaman.com>
216 * src/gslist.h: First attempt at implementing GSList, incomplete.
218 * src/Makefile.am (libeglib_la_SOURCES): add gslist.c
219 * src/glib.h: Add GFunc definition. #include the new gslist.h.
221 2006-08-16 Miguel de Icaza <miguel@novell.com>
223 * src/Makefile.am: Added -Wall,-Werror, corrected lots of
226 * src/gstring.c: Gstring implementation.
228 * test/str.c (test_gstring): string tests.
230 2006-08-16 Aaron Bockover <abockover@novell.com>
232 * src/gstr.c: Added g_strsplit implementation
234 * test/driver.c: Run the split test
236 * test/str.c: Added a test for g_strsplit
240 * test/Makefile.am: Added MAINTAINERCLEANFILES
242 2006-08-16 Miguel de Icaza <miguel@novell.com>
244 * src/gouput.c: Implement some output routines, update missing
247 * test: Add test driver, and initial tests.
249 2006-08-15 Miguel de Icaza <miguel@novell.com>
251 * src/ghashtable.c: Implement most of this, it is completely
252 untested at this point.