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