9ed5105a9812c7e2a676ca09a033fb377ea02c5b
[mono.git] / eglib / ChangeLog
1 2006-10-08  Miguel de Icaza  <miguel@novell.com>
2
3         * src/ghashtable.c (g_hash_table_new_alloc,
4         g_hash_table_new_full_alloc): Add new entry points that will be
5         used for GC-aware hashtables. 
6
7 2006-10-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
8
9         * test/string-util.c:
10         * TODO:
11         * src/gstr.c:
12         * src/glib.h: implemented g_strescape.
13
14 2006-10-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
15
16         * test/string-util.c:
17         * configure.ac:
18         * TODO:
19         * src/gstr.c:
20         * src/glib.h: implemented g_strlcpy.
21
22 2006-10-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23
24         * test/string-util.c:
25         * TODO:
26         * src/gstr.c:
27         * src/glib.h: implemented g_strdelimit.
28
29 2006-10-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
30
31         * test/spawn.c: add search path flag when running ls.
32         * src/gspawn.c: g_spawn_command_line_sync searches the program in the
33         PATH if it's not an absolute path.
34
35 2006-10-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
36
37         * test/string-util.c:
38         * src/glib.h: implement g_ascii_xdigit_value and tests.
39
40 2006-10-06  Miguel de Icaza  <miguel@novell.com>
41
42         * src/gstr.c (g_ascii_strdown): Implement.
43
44         * str/glib.c (g_log_set_handler): empty.
45         (g_printerr): empty.
46         (GMemVTable): define, empty, ignored.
47         (G_USEC_PER_SEC) :-)
48
49         * src/gunicode.c (g_convert): Add bytes_read, bytes_written
50         support;   Small fixes to avoid valgrind errors. 
51         
52         (g_utf8_validate): Add, based on the libxml code.
53
54         gstr.c: implement g_strdown. 
55
56 2006-10-05  Miguel de Icaza  <miguel@novell.com>
57
58         * src/gunicode.c: Some work in progress to implement g_convert
59         (which is needed by g_locale_to_utf8).    
60
61 2006-09-18  Miguel de Icaza  <miguel@novell.com>
62
63         * test/string-util.c (test_filename_from_uri): tests for new
64         methods.
65
66         * src/gstr.c (g_filename_to_uri, g_filename_from_uri): implement. 
67
68 2006-09-14  Atsushi Enomoto  <atsushi@ximian.com>
69
70         * src/gutf8.c, test/utf8.c : EOL fix.
71
72 2006-09-04  Miguel de Icaza  <miguel@novell.com>
73
74         * src/gmarkup.c: The leak fixing commit.
75         
76         * src/gmarkup.c (g_markup_parse_context_end_parse): Add missing
77         method. 
78         (g_markup_parse_context_free): Implement. 
79         (parse_attributes): Store the value, not the attribute name
80         twice. 
81         Properly check the /> section.
82         (g_markup_parse_context_parse): When checking for error, use the
83         "error!=NULL && *error != NULL" upon return from callbacks,
84         it is only then that its valid to check for *error for error
85         conditions. 
86         (g_markup_parse_context_parse): Add comment processing.
87
88         Only release one element of the list.
89
90         * test/markup.c: Incorporate the kind of code that is used in Mono
91         for domain loading;  Will test the rest later. 
92
93 2006-09-01  Miguel de Icaza  <miguel@novell.com>
94
95         * src/gmarkup.c (g_markup_parse_context_parse): Add text parsing
96         support, and end-element support; not tested yet.
97
98 2006-09-01 Atsushi Enomoto <atsushi@ximian.com>
99
100         * gutf8.c : bad allocation size. multiply sizeof gchar/gunichar2.
101
102 2006-09-01 Atsushi Enomoto <atsushi@ximian.com>
103
104         * gutf8.c : when error is null, utf8_to_utf16_len() and
105           utf16_to_utf8_len() could return -1, so return NULL for those
106           cases in g_utf8_to_utf16() and g_utf16_to_utf8().
107
108 2006-09-01  Miguel de Icaza  <miguel@novell.com>
109
110         * src/gmarkup.c: Builds and does minimal parsing.
111
112         * test/markup.c: Sample test cases I have been using
113
114 2006-08-31 Atsushi Enomoto <atsushi@ximian.com>
115
116         * src/gerror.h,
117           src/gerror.c : added g_set_error().
118         * src/gutf8.c :
119           g_utf8_to_utf16() and g_utf16_to_utf8() implementation.
120         * src/glib.h : added all above, and some dependent bits.
121         * src/Makefile.am : added gutf8.c.
122         * TODO: removed above.
123         * test/Makefile.am,
124           test/tests.h : added utf8 tests.
125         * test/utf8.c : test for g_utf8_to_utf16 and g_utf16_to_utf8.
126           It still needs more tests e.g. for multibytes.
127
128 2006-08-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
129
130         * src/gspawn.c: small touch-ups and make read/write EINTR-proof.
131
132 2006-08-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
133
134         * test/file.c: remove useless test.
135
136         * test/spawn.c: new g_spawn_async_with_pipes test.
137         * src/glib.h: Modified file.
138         * src/gspawn.c: implemented g_spawn_async_with_pipes. Needs fine tuning.
139
140 2006-08-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
141
142         * TODO: Modified file.
143         * test/tests.h:
144         * test/pattern.c:
145         * test/dir.c:
146         * test/Makefile.am:
147         * src/Makefile.am:
148         * src/glib.h:
149         * src/gdir.c:
150         * src/gfile.c: implemented g_dir_*, unix version.
151
152 2006-08-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
153
154         * src/glib.h:
155         * test/Makefile.am: Modified file.
156         * test/tests.h:
157         * src/Makefile.am: Modified file.
158         * test/pattern.c:
159         * src/gpattern.c: implemented the 3 pattern matching functions used.
160
161         * test/ptrarray.c: fix the compare function to work with qsort.
162
163         * test/file.c:
164         * test/path.c:
165         * src/gspawn.c:
166         * src/gpath.c: made valgrind happy.
167
168 2006-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
169
170         * test/file.c:
171         * src/glib.h:
172         * src/gfile.c:  implemented g_file_test. Changed the default mask to
173         .XXXXXX. Add tests.
174
175 2006-08-26  Raja R Harinath  <rharinath@novell.com>
176
177         * src/sort.frag.h (digit): Declare here based on externally
178         provided typedef 'list_node'.
179         (MAX_DIGITS): Use 'sizeof (list_node)'.
180         * src/gslist.c (list_node): Declare instead of 'digit'.
181         * src/glist.c: Likewise.
182
183         * test/slist.c (verify_sort): Verify the length of the list too.
184         (test_slist_sort): Free the correct list.
185         * test/list.c: Likewise.
186         * src/sort.frag.h (MAX_DIGITS): Rename from N_DIGITS.
187         (combine_sort): Change 'max_pos' argument to more natural
188         'n_digits'.
189         (increment): Likewise.  Use 'n_digits' to avoid reading at an
190         offset that hasn't been initialized.
191         (do_sort): Remove memset.
192
193 2006-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
194
195         * TODO:
196         * test/file.c:
197         * src/glib.h:
198         * src/gfile.c: implement g_file_open_tmp.
199
200 2006-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
201
202         * TODO:
203         * src/glib.h:
204         * src/gdate.c: New file.
205         * src/gfile.c: New file.
206         * src/Makefile.am: implemented g_file_get_contents and
207         g_get_current_time.
208
209         * test/tests.h:
210         * test/file.c: New file.
211         * test/Makefile.am: tests for the above.
212
213 2006-08-26  Raja R Harinath  <rharinath@novell.com>
214
215         * src/sort.frag.h: Add copyright notice and some explanation.
216         (increment): Remove null check.
217         (combine_digits): Add 'list' argument to seed the summation.
218         (do_sort): Use the empty or singleton tail as the seed, rather
219         than calling 'increment'.
220
221 2006-08-25  Raja R Harinath  <rharinath@novell.com>
222
223         * TODO: Remove 'List' entries.
224         * src/Makefile.am (libeglib_la_SOURCES): Add sort.frag.h.
225         * src/sort.frag.h: New.  Implements a "generic" bottom-up "counting"
226         mergesort that works both on singly- and doubly-linked lists.
227         * src/gslist.c (g_slist_sort): Use it.
228         * src/glist.c (g_list_sort): Likewise.
229         * src/glib.h (g_slist_sort, g_list_sort): Declare.
230         * test/slist.c, test/list.c: Add basic testcases.
231
232 2006-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
233
234         * src/gspawn.c: propagate errors from reads.
235         * src/gpath.c: an empty PATH is like a NULL one.
236
237 2006-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
238
239         * test/tests.h:
240         * test/timer.c:
241         * test/Makefile.am:
242         * TODO:
243         * src/glib.h:
244         * src/gtimer.c:
245         * src/Makefile.am: implemented GTimer.
246
247 2006-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
248
249         * test/tests.h:
250         * test/Makefile.am:
251         * test/spawn.c:
252         * src/gspawn.c:
253         * src/glib.h:
254         * src/Makefile.am: initial implentation of g_spawn_command_line_sync.
255         Still need better error handling, but works for the most part.
256
257 2006-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
258
259         * src/garray.c: grow faster so that the 'big' test does not crawl.
260
261 2006-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
262
263         * test/shell.c:
264         * src/gqueue.c: plugged leaks.
265
266 2006-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
267
268         * test/path.c:
269         * src/gpath.c: when PATH is not defined, the current dir is used.
270         See execvp(3).
271
272 2006-08-25  Alp Toker  <alp@atoker.com>
273
274         * src/gstr.c: g_strv_length() should return guint, not gint
275         * src/glib.h: Add g_strv_length() prototype
276         
277 2006-08-24  Miguel de Icaza  <miguel@novell.com>
278
279         * src/gpath.c (g_get_home_dir, g_get_tmp_dir, g_get_user_name,
280         g_get_prgname, g_set_prgname): implemented.
281
282         * test/ Fix leaks.
283         
284         * src/gpath.c (g_get_current_dir): Implement.
285
286         (g_find_program_in_path, g_path_is_absolute): implement.
287         
288         Add g_path_get_dirname, g_path_get_basename
289
290         * src/gpath.c: Path routines
291
292 2006-08-23  Miguel de Icaza  <miguel@novell.com>
293
294         * src/gerror.c: Implement. 
295
296         * src/glist.c (g_list_sort): Remove routine instead of hoping that
297         it wont crash when we run it.
298
299 2006-08-23  Raja R Harinath  <rharinath@novell.com>
300
301         * src/glist.c (g_list_insert_before): Avoid non-head declaration.
302
303         * test/slist.c (test_slist_insert_before): Add.
304         * src/gslist.c (g_slist_insert_before): Append if 'sibling' is null.
305
306         * test/list.c (test_list_insert_before): Add test for return value
307         of g_list_insert_before.
308         * test/Makefile.am (test_eglib_LDADD): Refer to the .la file so as
309         to rebuild test if eglib changes.
310         * src/glist.c (new_node, disconnect_node): New helpers that
311         maintain doubly-linked list invariants.
312         (g_list_prepend, g_list_append): Express in terms of new_node.
313         (g_list_insert_before): Likewise.  Fix return value when inserting
314         in the middle of the list.
315         (g_list_concat): Reorganize to make more compact.
316         (g_list_nth): Likewise.
317         (g_list_nth_data): Don't segfault if 'n' is too large.
318         (g_list_remove): Rewrite using _find and disconnect_node.
319         (g_list_remove_link): Don't traverse list: use disconnect_node.
320         (g_list_insert_sorted): Rewrite to make more compact.  Use new_node.
321         (g_list_copy): Likewise.
322         (_prepend, _concat): Remove.
323         * src/gslist.c (insert_after, find_prev, find_prev_link):
324         New helpers.
325         (g_slist_copy): Simplify slightly, using insert_after.
326         (g_slist_concat): Reorganize to make more compact.
327         (g_slist_find): Likewise.
328         (g_slist_insert_sorted): Likewise.
329         (g_slist_remove): Rewrite using find_prev.
330         (g_slist_remove_link): Rewrite using find_prev_link.
331         (g_slist_remove_all, g_slist_insert_before): New.
332
333 2006-08-21  Duncan Mak  <duncan@a-chinaman.com>
334
335         * src/gqueue.c: GQueue implementation.
336         * src/glib.h: Add prototypes.
337         * src/Makefile.am (libeglib_la_SOURCES): Include gqueue.c.
338
339         * test/queue.c:         
340         * test/Makefile.am (SOURCES):
341         * test/tests.h (DEFINE_TEST_GROUP_INIT_H): add tests for GQueue.
342
343 2006-08-21  Aaron Bockover  <abockover@novell.com>
344
345         * src/gstr.c: fixed bug/invalid read/write on malloc-only case (no
346         realloc/delimiter token not found); use memcpy instead of strncpy for
347         better performance
348
349         * test/test.c (run_group): allow running specific tests under a group;
350         added copied g_strsplit/g_strfreev from EGlib source as eg_strsplit
351         and eg_strfreev to avoid performance skews in the driver
352         
353         * test/driver.c: allow user-specified group name to contain specific
354         test to run under the group as 'group_name:test1,test2,...testN'
355
356         * test/string-util.c: Added more g_strsplit tests
357
358         * test/slist.c:
359         * test/ptrarray.c:
360         * test/fake.c:
361         * test/string.c:
362         * test/list.c:
363         * test/array.c:
364         * test/hashtable.c: make test names shorter (no need to prefix with
365         the group since it runs under the group)
366
367 2006-08-21  Miguel de Icaza  <miguel@novell.com>
368
369         * src/glib.h (g_hash_table_new_full): Add missing prototype.
370         Replace g_free(x) with plain free, so it can be used as a function
371         argument. 
372         Add ABS
373
374         * src/ghashtable.c: Add rehashing. 
375
376         * test/hashtable.c: Add a bunch of extra tests.
377
378         * src/goutput.c: Fix g_log so it actually formats the data. 
379
380         * src/ghashtable.c (g_hash_table_new): The glib test suite
381         uncovered a bunch of bugs, the g_hash_table_new should actually
382         have parameters.
383
384         (g_hash_table_remove, g_hash_table_foreach_remove): Fixed bugs
385         uncovered. 
386
387 2006-08-20  Aaron Bockover  <abockover@novell.com>
388
389         * src/gmisc.c: added g_setenv, g_getenv, g_unsetenv
390
391         * src/gstr.c: added g_snprintf, g_sprintf, g_fprintf, g_printf
392
393         * src/glib.h: added macros for above va_args printf functions
394
395         * src/Makefile.am: added gmisc.c
396
397         * test/whats-implemented: script to see what needs to be implemented
398
399 2006-08-20  Chris Toshok  <toshok@ximian.com>
400
401         * test/array.c (test_array_big): add a test from the glib
402         documentation.
403
404 2006-08-20  Chris Toshok  <toshok@ximian.com>
405
406         * test/tests.h: add array tests to the mix.
407
408         * test/array.c: a few array tests.
409
410         * src/glib.h: add array prototypes.
411
412         * src/garray.c: initial array foo.
413
414         * test/Makefile.am (SOURCES): add array.c
415
416         * src/Makefile.am (libeglib_la_SOURCES): add garray.c
417
418 2006-08-19  Aaron Bockover  <abockover@novell.com>
419
420         * src/gstring.c: optimize and generalize reallocation by providing
421         a GROW_IF_NECESSARY macro, do not use strcpy/strcat as they are 
422         very, very slow; GString is now much closer to GLib's implementation
423         in terms of performance
424
425         * test/string.c: added speed-specific tests to beat on reallocation code
426
427         * test/test-both: run make if the test drivers don't exist
428
429 2006-08-19  Jonathan Chambers  <jonathan.chambers@gmail.com>
430
431         * src/gmodule.c: Add gmodule support for windows and fix
432         windows build. Contribution is licensed as MIT/X11.
433         
434 2006-08-19  Aaron Bockover  <abockover@novell.com>
435
436         * test/driver.c: Added --debug mode that allows for testing all paths
437         of the driver without actually running real tests; runs only the 'fake'
438         test, which does nothing; useful for running the driver through valgrind
439
440         * test/Makefile.am:
441         * test/tests.h:
442         * test/fake.c: Added fake test for valgrinding the driver
443
444         * test/ptrarray.c: update sort test
445
446 2006-08-19  Aaron Bockover  <abockover@novell.com>
447
448         * test/test-both: added --help
449
450 2006-08-19  Aaron Bockover  <abockover@novell.com>
451
452         * test/driver.c: added -n mode to show only raw global run times,
453         which is useful for scripts (test-both --speed-compare)
454
455         * test/test-both: added --speed-compare mode
456
457         * test/README: updated with information on --speed-compare
458
459 2006-08-19  Aaron Bockover  <abockover@novell.com>
460
461         * test/test.c: do not print times if -t is not passed
462
463         * test/driver.c: removed use of GList from the driver to avoid skews due
464         to performance differences between GLib and EGLib
465         
466 2006-08-19  Aaron Bockover  <abockover@novell.com>
467
468         * test/test.c: Perform iterations at the test level, only output one
469         report for all iterations of tests in a group to produce more usable
470         output; add timing for the tests and group; added get_timestamp for
471         easy code timing
472
473         * test/test.h: Removed run_test as it should only be called from 
474         run_group, added get_timestamp
475
476         * test/Makefile.am: Added -DDRIVER_NAME 
477
478         * test/test-both: simple script to run both drivers with the same options
479
480         * test/driver.c: Iterations are now run at the test level, show a global
481         status (OK/FAIL) indicator
482
483         * test/README: Updated
484
485         * configure.ac: Renamed from configure.in as configure.in naming 
486         convention is deprecated in favor of configure.ac
487
488         * autogen.sh: s/configure.in/configure.ac/
489
490 2006-08-19  Miguel de Icaza  <miguel@novell.com>
491
492         * Makefile.am: Removed MAINTAINERCLEANFILES that was too
493         aggresive, it failed make distcheck and the resulting tarball was
494         not buildable.
495
496         * src/glib.h: remove the various GPOINTER_TO_*, G*_TO_POINTER,
497         GSIZE_FORMAT macros, and move them into src/eglib-config.h
498
499         Moved also gssize and gsize to be arch specific.   This should fix
500         the 32/64 problems that Jon Chambers reported. 
501
502         * configure.in: test for pointer size, define the various values
503         depending on 32 vs 32/64 worlds, might need further porting in the
504         future. 
505
506         Change package name to eglib
507
508         * test/slist.c, test/list.c, test/hashtable.c: Update tests to use
509         FAILURE macro.
510
511         * test/string-util.c: fix leak for valgrind tests.
512
513         * test/tests.h: New size test, for testing datatypes.
514
515         * test/sizes.c: New tests.
516         
517 2006-08-19  Aaron Bockover  <abockover@novell.com>
518
519         * test/README: Added quick guide on adding new tests/groups to the 
520         driver and some examples on how to perform various tests with the driver
521
522 2006-08-18  Aaron Bockover  <abockover@novell.com>
523
524         * test/driver.c: Added getopt support and code timing, among other 
525         nice features to make testing/profiling easier
526
527         * test/test.c: Add support for suppressing output (quiet) and
528         define RESULT, FAILED, and OK
529
530         * src/glib.h:
531         * src/glist.c: Added g_list_nth_data implementation
532
533         * test/slist.c:
534         * test/string-util.c:
535         * test/ptrarray.c:
536         * test/string.c:
537         * test/hashtable.c:
538         * test/list.c: Use RESULT, FAILURE, and OK for tests
539
540 2006-08-18  Miguel de Icaza  <miguel@novell.com>
541
542         * src/gstring.c (g_string_truncate): Implement truncate. 
543         (g_string_prepend): implement. 
544
545         Fix various bugs uncovered by new tests. 
546
547         * src/glib.h: introduce gssize type, the signed one.  Important. 
548
549         * src/eglib-config.h (G_OS_): Add the G_OS_UNIX and G_OS_WIN32
550         defines that we can use to check on the host OS.
551
552 2006-08-18  Aaron Bockover  <abockover@novell.com>
553
554         * test/test.[ch]:
555         * test/driver.c: Support pass/fail logging on tests to show group report
556
557 2006-08-18  Aaron Bockover  <abockover@novell.com>
558
559         * test/test.c: 
560         * test/test.h: Added result() to be used in place of g_strdup_printf(),
561         it's shorter to write and allows the duped string to be freed safely;
562         added license header to file
563
564         * test/driver.c: Added license header to file
565
566         * test/string-util.c:
567         * test/ptrarray.c:
568         * test/string.c:
569         * test/list.c: Use result() in place of g_strdup_printf(), it's nicer
570
571 2006-08-18  Aaron Bockover  <abockover@novell.com>
572
573         * src/gptrarray.c: Implemented g_ptr_array_sort
574
575         * test/ptrarray.c: Added sort test
576         
577         * test/driver.c: Added --help; support running N iterations and allow
578         selecting which test groups to run; uses the test group table in tests.h
579         
580         * test/tests.h: Added group table
581         
582         * test/test.h:
583         * test/test.c: Using a Group structure and table, removed run_groups
584         as we only need run_group now
585
586         * test/slist.h: Removed, not needed, tests/groups defined in tests.h
587
588 2006-08-18  Miguel de Icaza  <miguel@novell.com>
589
590         * src/unicode.c: New file, to host unicode code, it will throw as
591         this code is no longer used in the Mono runtime anyways.
592         
593         * src/glib.h: Use stdint.h types, a lot of the good stuff is
594         replicated by glib.
595
596 2006-08-18  Duncan Mak  <duncan@a-chinaman.com>
597
598         * src/glist.c (g_list_remove, g_list_remove_link): Implemented. 
599
600         * src/gslist.c (g_slist_remove): Remember to set the next pointer
601         to NULL when the item to remove is the first item in the list.
602         
603 2006-08-18  Duncan Mak  <duncan@a-chinaman.com>
604
605         * src/glist.c: Implemented. Missing remove,
606         remove_link and insert_before.
607
608         * test/list.c: Tests for GList.
609
610 2006-08-17  Aaron Bockover  <abockover@novell.com>
611
612         * src/gptrarray.c: Implemented g_ptr_array_remove and 
613         g_ptr_array_remove_index
614
615         * test/other: Removed, rewritten in Makefile.am
616
617         * test/Makefile.am: Build test-eglib against local eglib and 
618         test-glib against GLib 2.0 (replaces 'other')
619
620         * test/ptrarray.c: Added tests for g_ptr_array_remove and
621         g_ptr_array_remove_index
622
623 2006-08-17  Duncan Mak  <duncan@a-chinaman.com>
624
625         * src/gslist.c: Added MIT license.
626         (g_slist_insert_sorted): Forgot the case where the data is
627         appended to the end of the list.
628
629         * test/slist.c (test_slist_insert_sorted): Fix the test.        
630
631 2006-08-17  Aaron Bockover  <abockover@novell.com>
632
633         * src/gptrarray.c: Added g_ptr_array_set_size implementation
634
635         * test/ptrarray.c: Added test for g_ptr_array_set_size
636
637 2006-08-17  Miguel de Icaza  <miguel@novell.com>
638
639         * src/glib.h: A handful of extra macros
640
641         * configure.in, src/eglib-config.h.in: Set some system-specific
642         settings that are probed at configure time.
643
644 2006-08-17  Aaron Bockover  <abockover@novell.com>
645
646         * src/gptrarray.c: Added beginnings of GPtrArray (alloc, free, add, iterate)
647
648         * src/glib.h: Added GPtrArray signatures
649
650         * src/Makefile.am: Added gptrarray.c to build
651
652         * test/ptrarray.c:
653         * test/tests.h:
654         * test/driver.c:
655         * test/Makefile.am: Add ptrarray tests for available functionality
656
657 2006-08-17  Aaron Bockover  <abockover@novell.com>
658         
659         * test/test.h: 
660         * test/test.c: Added group iterator/test driver functionality
661         
662         * test/driver.c: Added groups to run using new test functionality
663         
664         * test/slist.h:
665         * test/hashtable.h:
666         * test/string-util.h: Test group definitions for string util/hashtable
667
668         * test/slist.c:
669         * test/str.c: 
670         * test/hash.c: Added test definition table 
671
672         * test/Makefile.am: Added -Wall -Werror -D_FORTIFY_SOURCE=2
673
674         * src/gstr.c: Added implementation for g_str_has_prefix, g_str_has_suffix
675
676         * src/glib.h: Added missing function signatures
677
678         * src/Makefile.am: added -D_FORTIFY_SOURCE=2 
679
680 2006-08-17  Duncan Mak  <duncan@a-chinaman.com>
681
682         * src/gslist.c (g_slist_remove_link): I misread the function
683         signature. Re-implemented.
684         (g_slist_delete_link): Implemented.
685         (g_slist_reverse): Implemented.
686         (g_slist_insert_sorted): Implemented.
687
688 2006-08-17  Duncan Mak  <duncan@a-chinaman.com>
689
690         * src/gslist.c (g_slist_find): 
691         (g_slist_length):
692         (g_slist_remove):
693         (g_slist_remove_link): Implemented.
694
695         * test/slist.c: Tests for GSList.
696
697 2006-08-17  Raja R Harinath  <harinath@gmail.com>
698
699         * src/gslist.c (g_slist_free_1): New.  Free a single list node.
700         (g_slist_free): Use it to free the list nodes.  Don't free the
701         data, since the list doesn't own it.
702         (g_slist_append): Convert into a one-liner.
703         (g_slist_foreach): Remove redundant null check.
704         (g_slist_last): Actually return the last node.
705         (g_slist_copy): Simplify.
706         * src/gslist.h (g_slist_free_1): Add.
707
708 2006-08-16  Duncan Mak  <duncan@a-chinaman.com>
709
710         * src/gslist.c:
711
712         * src/gslist.h: First attempt at implementing GSList, incomplete.
713
714         * src/Makefile.am (libeglib_la_SOURCES): add gslist.c
715         * src/glib.h: Add GFunc definition. #include the new gslist.h.
716
717 2006-08-16  Miguel de Icaza  <miguel@novell.com>
718
719         * src/Makefile.am: Added -Wall,-Werror, corrected lots of
720         mistakes.
721
722         * src/gstring.c: Gstring implementation.
723
724         * test/str.c (test_gstring): string tests.
725
726 2006-08-16  Aaron Bockover  <abockover@novell.com>
727
728         * src/gstr.c: Added g_strsplit implementation
729
730         * test/driver.c: Run the split test
731
732         * test/str.c: Added a test for g_strsplit
733
734         * Makefile.am:
735         * src/Makefile.am:
736         * test/Makefile.am: Added MAINTAINERCLEANFILES
737
738 2006-08-16  Miguel de Icaza  <miguel@novell.com>
739
740         * src/gouput.c: Implement some output routines, update missing
741         progress. 
742
743         * test: Add test driver, and initial tests. 
744
745 2006-08-15  Miguel de Icaza  <miguel@novell.com>
746
747         * src/ghashtable.c: Implement most of this, it is completely
748         untested at this point.
749