- Need to focus on rbutton mouse down. And redraw selection when
[mono.git] / eglib / ChangeLog
index 3872a7c2aac812a8e3085265026b9f895756e342..f87eeb4132ec0fa82394844245ca804e821a8933 100644 (file)
@@ -1,3 +1,230 @@
+2006-08-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * TODO: Modified file.
+       * test/tests.h:
+       * test/pattern.c:
+       * test/dir.c:
+       * test/Makefile.am:
+       * src/Makefile.am:
+       * src/glib.h:
+       * src/gdir.c:
+       * src/gfile.c: implemented g_dir_*, unix version.
+
+2006-08-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * src/glib.h:
+       * test/Makefile.am: Modified file.
+       * test/tests.h:
+       * src/Makefile.am: Modified file.
+       * test/pattern.c:
+       * src/gpattern.c: implemented the 3 pattern matching functions used.
+
+       * test/ptrarray.c: fix the compare function to work with qsort.
+
+       * test/file.c:
+       * test/path.c:
+       * src/gspawn.c:
+       * src/gpath.c: made valgrind happy.
+
+2006-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * test/file.c:
+       * src/glib.h:
+       * src/gfile.c:  implemented g_file_test. Changed the default mask to
+       .XXXXXX. Add tests.
+
+2006-08-26  Raja R Harinath  <rharinath@novell.com>
+
+       * src/sort.frag.h (digit): Declare here based on externally
+       provided typedef 'list_node'.
+       (MAX_DIGITS): Use 'sizeof (list_node)'.
+       * src/gslist.c (list_node): Declare instead of 'digit'.
+       * src/glist.c: Likewise.
+
+       * test/slist.c (verify_sort): Verify the length of the list too.
+       (test_slist_sort): Free the correct list.
+       * test/list.c: Likewise.
+       * src/sort.frag.h (MAX_DIGITS): Rename from N_DIGITS.
+       (combine_sort): Change 'max_pos' argument to more natural
+       'n_digits'.
+       (increment): Likewise.  Use 'n_digits' to avoid reading at an
+       offset that hasn't been initialized.
+       (do_sort): Remove memset.
+
+2006-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * TODO:
+       * test/file.c:
+       * src/glib.h:
+       * src/gfile.c: implement g_file_open_tmp.
+
+2006-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * TODO:
+       * src/glib.h:
+       * src/gdate.c: New file.
+       * src/gfile.c: New file.
+       * src/Makefile.am: implemented g_file_get_contents and
+       g_get_current_time.
+
+       * test/tests.h:
+       * test/file.c: New file.
+       * test/Makefile.am: tests for the above.
+
+2006-08-26  Raja R Harinath  <rharinath@novell.com>
+
+       * src/sort.frag.h: Add copyright notice and some explanation.
+       (increment): Remove null check.
+       (combine_digits): Add 'list' argument to seed the summation.
+       (do_sort): Use the empty or singleton tail as the seed, rather
+       than calling 'increment'.
+
+2006-08-25  Raja R Harinath  <rharinath@novell.com>
+
+       * TODO: Remove 'List' entries.
+       * src/Makefile.am (libeglib_la_SOURCES): Add sort.frag.h.
+       * src/sort.frag.h: New.  Implements a "generic" bottom-up "counting"
+       mergesort that works both on singly- and doubly-linked lists.
+       * src/gslist.c (g_slist_sort): Use it.
+       * src/glist.c (g_list_sort): Likewise.
+       * src/glib.h (g_slist_sort, g_list_sort): Declare.
+       * test/slist.c, test/list.c: Add basic testcases.
+
+2006-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * src/gspawn.c: propagate errors from reads.
+       * src/gpath.c: an empty PATH is like a NULL one.
+
+2006-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * test/tests.h:
+       * test/timer.c:
+       * test/Makefile.am:
+       * TODO:
+       * src/glib.h:
+       * src/gtimer.c:
+       * src/Makefile.am: implemented GTimer.
+
+2006-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * test/tests.h:
+       * test/Makefile.am:
+       * test/spawn.c:
+       * src/gspawn.c:
+       * src/glib.h:
+       * src/Makefile.am: initial implentation of g_spawn_command_line_sync.
+       Still need better error handling, but works for the most part.
+
+2006-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * src/garray.c: grow faster so that the 'big' test does not crawl.
+
+2006-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * test/shell.c:
+       * src/gqueue.c: plugged leaks.
+
+2006-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * test/path.c:
+       * src/gpath.c: when PATH is not defined, the current dir is used.
+       See execvp(3).
+
+2006-08-25  Alp Toker  <alp@atoker.com>
+
+       * src/gstr.c: g_strv_length() should return guint, not gint
+       * src/glib.h: Add g_strv_length() prototype
+       
+2006-08-24  Miguel de Icaza  <miguel@novell.com>
+
+       * src/gpath.c (g_get_home_dir, g_get_tmp_dir, g_get_user_name,
+       g_get_prgname, g_set_prgname): implemented.
+
+       * test/ Fix leaks.
+       
+       * src/gpath.c (g_get_current_dir): Implement.
+
+       (g_find_program_in_path, g_path_is_absolute): implement.
+       
+       Add g_path_get_dirname, g_path_get_basename
+
+       * src/gpath.c: Path routines
+
+2006-08-23  Miguel de Icaza  <miguel@novell.com>
+
+       * src/gerror.c: Implement. 
+
+       * src/glist.c (g_list_sort): Remove routine instead of hoping that
+       it wont crash when we run it.
+
+2006-08-23  Raja R Harinath  <rharinath@novell.com>
+
+       * src/glist.c (g_list_insert_before): Avoid non-head declaration.
+
+       * test/slist.c (test_slist_insert_before): Add.
+       * src/gslist.c (g_slist_insert_before): Append if 'sibling' is null.
+
+       * test/list.c (test_list_insert_before): Add test for return value
+       of g_list_insert_before.
+       * test/Makefile.am (test_eglib_LDADD): Refer to the .la file so as
+       to rebuild test if eglib changes.
+       * src/glist.c (new_node, disconnect_node): New helpers that
+       maintain doubly-linked list invariants.
+       (g_list_prepend, g_list_append): Express in terms of new_node.
+       (g_list_insert_before): Likewise.  Fix return value when inserting
+       in the middle of the list.
+       (g_list_concat): Reorganize to make more compact.
+       (g_list_nth): Likewise.
+       (g_list_nth_data): Don't segfault if 'n' is too large.
+       (g_list_remove): Rewrite using _find and disconnect_node.
+       (g_list_remove_link): Don't traverse list: use disconnect_node.
+       (g_list_insert_sorted): Rewrite to make more compact.  Use new_node.
+       (g_list_copy): Likewise.
+       (_prepend, _concat): Remove.
+       * src/gslist.c (insert_after, find_prev, find_prev_link):
+       New helpers.
+       (g_slist_copy): Simplify slightly, using insert_after.
+       (g_slist_concat): Reorganize to make more compact.
+       (g_slist_find): Likewise.
+       (g_slist_insert_sorted): Likewise.
+       (g_slist_remove): Rewrite using find_prev.
+       (g_slist_remove_link): Rewrite using find_prev_link.
+       (g_slist_remove_all, g_slist_insert_before): New.
+
+2006-08-21  Duncan Mak  <duncan@a-chinaman.com>
+
+       * src/gqueue.c: GQueue implementation.
+       * src/glib.h: Add prototypes.
+       * src/Makefile.am (libeglib_la_SOURCES): Include gqueue.c.
+
+       * test/queue.c:         
+       * test/Makefile.am (SOURCES):
+       * test/tests.h (DEFINE_TEST_GROUP_INIT_H): add tests for GQueue.
+
+2006-08-21  Aaron Bockover  <abockover@novell.com>
+
+       * src/gstr.c: fixed bug/invalid read/write on malloc-only case (no
+       realloc/delimiter token not found); use memcpy instead of strncpy for
+       better performance
+
+       * test/test.c (run_group): allow running specific tests under a group;
+       added copied g_strsplit/g_strfreev from EGlib source as eg_strsplit
+       and eg_strfreev to avoid performance skews in the driver
+       
+       * test/driver.c: allow user-specified group name to contain specific
+       test to run under the group as 'group_name:test1,test2,...testN'
+
+       * test/string-util.c: Added more g_strsplit tests
+
+       * test/slist.c:
+       * test/ptrarray.c:
+       * test/fake.c:
+       * test/string.c:
+       * test/list.c:
+       * test/array.c:
+       * test/hashtable.c: make test names shorter (no need to prefix with
+       the group since it runs under the group)
+
 2006-08-21  Miguel de Icaza  <miguel@novell.com>
 
        * src/glib.h (g_hash_table_new_full): Add missing prototype.