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