2008-02-15 Miguel de Icaza <miguel@novell.com>
[mono.git] / eglib / ChangeLog
index f5f992d3a1608061b81dd3e7e6309983ba3ac6df..20d584e7bbe546fa33d795e977375d4aabeb35b4 100644 (file)
@@ -1,3 +1,389 @@
+2008-01-15  Andreas Faerber  <andreas.faerber@web.de>
+
+       * configure.ac: Add default G_BREAKPOINT implementation.
+       Fix typo in breakpoint CPU output.
+
+2007-12-23  Zoltan Varga  <vargaz@gmail.com>
+
+       * src/glib.h: Include <limits.h>. Fixes #350482.
+
+2007-11-21  Dick Porter  <dick@ximian.com>
+
+       * src/gslist.c (g_slist_find_custom): Implement
+
+       * src/glist.c (g_list_find_custom): Implement
+
+       * test/list.c: Test g_list_find_custom()
+
+       * test/slist.c: Test g_slist_find_custom()
+
+2007-11-20  Dick Porter  <dick@ximian.com>
+
+       * src/gstr.c: Implement g_strsplit_set() and re-implement
+       g_strsplit() so it passes the additional tests. (g_strsplit()
+       should treat multi-char delimiters as just a single token, rather
+       than a set of delimiters.)
+
+       * src/gslist.c: Implement g_slist_index(), g_slist_nth() and
+       g_slist_nth_data().
+
+       * test/string-util.c: Test g_strsplit_set() and more tests for
+       g_strsplit().
+
+       * test/slist.c: Test g_slist_nth() and
+       g_slist_index().
+
+2007-11-06  Geoff Norton  <gnorton@novell.com>
+
+       * configure.ac: Check for libiconv_open as the previous check was failing against 
+       some versions of libiconv.
+
+2007-11-06  Andreas Faerber  <andreas.faerber@web.de>
+
+       * test/Makefile.am: Fix noinst_PROGRAMS for automake 1.6.3
+                           Add support for VPATH
+
+2007-11-06  Geoff Norton  <gnorton@novell.com>
+
+       * configure.ac: Determing if glib-2.0 is installed and set HAVE_GLIB appropriately
+       * test/Makefile.am: Only build test-glib if glib-2.0 is available
+
+2007-11-05  Geoff Norton  <gnorton@novell.com>
+
+       * configure.ac: Check for getpwent_r and wether libiconv is needed to be linked.
+       Also look to see if we can use export-dynamic in the test suite.
+       * test/Makefile.am: Get LDFLAGS from configure instead of setting them.
+       * src/gerror.c: Implement g_clear_error.
+       * src/glib.h: Only use the format, ... convention is HAVE_C99_SUPPORT is available.
+       * src/gpath.c: Only use the getpwent_r codepath if getpwent_r is available.
+       * src/gspawn.c: Define environ to call _NSGetEnviron() on Apple.
+       * src/Makefile.am: Remove -Werror so we dont fail on different function declarations.
+               Portions of all of the above are from Andreas Faerber & Jonathan Chambers
+       
+2007-10-31  Jonathan Chambers <joncham@gmail.com>
+       
+       * src/ghashtable.c: Add g_hash_table_foreach_steal.
+       * src/garray.c: Add g_array_remove_index_fast.
+       * src/gpath.c (g_path_is_absolute): Handle windows paths.
+       * src/glib.h: Add g_hash_table_foreach_steal and g_array_remove_index_fast
+       
+       Contribution is licensed as MIT/X11.
+
+2007-06-13  Jonathan Chambers <joncham@gmail.com>
+       
+       * src/gunicode.c: Add g_unichar_isxdigit and g_unichar_xdigit_value.
+       * src/gmisc.c: Add g_win32_getlocale stub.
+       * src/glib.h: Add declarations of above functions,
+       GFreeFunc typedef, and CLAMP, GUINT_TO_LE, and threading
+       macros.
+       
+       * test/string-util.c: Fix warning.
+       * test/utf8.c: Add test for g_unichar_xdigit_value.
+       
+       Contribution is licensed as MIT/X11.
+
+2007-05-05  Aaron Bockover  <abockover@novell.com>
+
+       * src/gstr.c:
+       * src/glib.h: Added g_ascii_tolower implementation; make g_ascii_strdown
+       use it to do the transformation
+
+       * test/string-util.c: Added a test for g_ascii_strdown
+
+2007-04-27  Jonathan Chambers <joncham@gmail.com>
+       
+       * src/gstr.c: Fix off by one error in g_strdup allocation.
+
+2007-04-27  Jonathan Chambers <joncham@gmail.com>
+       
+       * src/eglib-config.hw: Forgot to add for msvc build.
+       * src/vasprintf: Forgot to add for msvc build.
+
+2007-04-27  Jonathan Chambers <joncham@gmail.com>
+       
+       * src/gstr.c: Fix off by one error for NULL terminator.
+
+2007-04-27  Jonathan Chambers <joncham@gmail.com>
+       
+       Combined patch from Michael Jerris <mike@jerris.com> and me.
+       * winconfig.h: Config file for msvc builds.
+       * configure.ac: Add AC_CHECK_HEADERS for getopt.h,  sys/time.h,
+       sys/wait.h, and pwd.h.
+       
+       * src/gspawn.c: Include config.h and use HAVE_* macros.
+       * src/eglib-config.h.in: Add inclusion guards.
+       * src/ghashtable.c: Fix warnings.
+       * src/gmisc.c: Windows implementation of g_getenv, g_setenv,
+       and g_unsetenv.
+       * src/gpath.c: Include config.h and use HAVE_* macros.
+       * src/gmarkup.c: Fix warnings.
+       * src/gptrarray.c: Fix warnings.
+       * src/gstr.c: Fix warnings and use HAVE_* macros.
+       * src/glib.h: Move macros to eglib-config.h and include it.
+       * src/gdate.c: Implement g_get_current_time on windows.
+       * src/gpattern.c: Fix warnings.
+       * src/gdir.c: Implement g_dir on windows.
+       * src/gfile.c: Implement mkstemp and g_file_test on windows.
+       * src/gtimer.c: Implement g_timer on windows.
+       * src/gmodule.c: Fix warnings.
+       * src/gunicode.c: Fix warnings.
+       * src/gutf8.c: Fix warnings.
+       
+       * test/ptrarray.c: Fix warnings.
+       * test/string.c: Fix warnings.
+       * test/list.c: Fix warnings.
+       * test/pattern.c: Use HAVE_* macros.
+       * test/dir.c: Use HAVE_* macros.
+       * test/file.c: Use HAVE_* macros and use system specific files for tests.
+       * test/test.c: Fix warnings and use HAVE_* macros.
+       * test/timer.c: Use HAVE_* macros.
+       * test/string-util.c: Fix warnings.
+       * test/test.h: Supress warnings on msvc.
+       * test/module.c: Use HAVE_* macros.
+       * test/utf8.c: Fix warnings.
+       * test/spawn.c: Use HAVE_* macros.
+       * test/driver.c: Fix warnings and use HAVE_* macros.
+       * test/path.c: Use HAVE_* macros and use system specific files for tests.
+       * test/sizes.c: Fix warnings.
+
+2007-04-24  Jonathan Chambers <joncham@gmail.com>
+       
+       Patch from Michael Jerris <mike@jerris.com>
+       * src/gspawn.c: Start msvc build.
+       * src/gpath.c: Start msvc build.
+       * src/gmarkup.c: Start msvc build.
+       * src/gshell.c: Start msvc build.
+       * src/gstr.c: Start msvc build.
+       * src/glist.c: Start msvc build.
+       * src/glib.h: Start msvc build.
+       * src/gdate.c: Start msvc build.
+       * src/gpattern.c: Start msvc build.
+       * src/gdir.c: Start msvc build.
+       * src/gfile.c: Start msvc build.
+       * src/gtimer.c: Start msvc build.
+       * src/gmodule.c: Start msvc build.
+       * src/gunicode.c: Start msvc build.
+
+2007-01-27  Robert Jordan  <robertj@gmx.net>
+
+       * test/Makefile.am: Add linker option to be able to
+       load symbols from the main program.
+       * test/module.c: Clean-ups.
+
+2007-01-26  Robert Jordan  <robertj@gmx.net>
+
+       * configure.ac: Add PLATFORM_WIN32 conditional.
+       * src/Makefile.ac: Use PLATFORM_WIN32 conditional for psapi, iconv
+       * test/module.c, test/tests.h, test/Makefile.am: New test for gmodule.
+       * src/gmodule.h: Add G_MODULE_{IMPORT|EXPORT} defines.
+       * src/gmodule.c (g_module_symbol): Implement in-proc symbol lookup
+       for Win32.
+       * src/gmodule.c: Add GModule.main_module, consider it in
+       g_module_close ().
+       * src/gpath.c (g_get_home_dir): Add dummy Win32 implementation to
+       fix the build.
+
+2006-11-03  Miguel de Icaza  <miguel@novell.com>
+
+       * src/gpath.c (g_path_get_dirname): If the pathname starts with a
+       "/", return the "/".
+
+       * test/string-util.c (test_strlcpy): Add new test.
+
+       * src/gunicode.c (g_filename_from_utf8): g_strlcpy needs the full
+       size, with the extra zero at the end;  Fixes the stack trace
+       issue. 
+
+2006-10-30  Miguel de Icaza  <miguel@novell.com>
+
+       * test/utf8.c (test_utf8_seq): Add new failing test.
+
+2006-10-30  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * src/gutf8.c : several fixes:
+         - fixed incorrect mb_size clear and mb_remain computation.
+         - initialize items_written to 0 for error case.
+         - in utf8_to_utf16_len differentiate error messages completely.
+         - in g_utf8_to_utf16 use guchar instead of gchar.
+       * test/utf8.c : added test case string in test_utf8_seq() to
+         both test_utf8_to_utf16() and test_utf16_to_utf8().
+
+2006-10-21  Miguel de Icaza  <miguel@novell.com>
+
+       * src/gunicode.c (g_filename_from_utf8): Use g_strlcpy here. 
+
+       * src/gmarkup.c (g_markup_parse_context_parse): Do not dereference
+       null values here.   This gets things a little bit further in
+       corlib, but not too far.
+
+       * src/gdir.c (g_dir_read_name): Do not return . or ..
+
+       * src/gstr.c (g_ascii_xdigit_value): Make this into a function,
+       thanks to Paolo for pointing the problem with the double macro
+       expansion. 
+
+       * src/gmodule.c (g_module_open): Actually return NULL if we fail
+       to load the module (was hiding the real bug in the pinvoke tests).
+
+       (g_module_build_path): Do not prepend "lib" if the "lib" is part
+       of the call.
+
+       * src/gstr.c (g_strsplit): this routine has some non-expected
+       behavior, if the string begins with the delimiter, it will return
+       an empty first string, unlike strtok
+
+       * src/gpath.c (g_path_get_dirname): Return "." as a dirname for
+       paths that do not contain a directory.
+
+2006-10-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * test/array.c: new test for insertion in the middle of other values.
+       * src/garray.c: fixed destination index.
+
+2006-10-18  Miguel de Icaza  <miguel@novell.com>
+
+       * src/gpath.c (g_build_path): Do not append terminator if the next
+       string is empty.
+
+       * src/gutf8.c (g_utf8_to_utf16): Include trailing zero as
+       documented.
+       (g_utf16_to_utf8): Include trailing zero as documented.
+
+2006-10-17  Miguel de Icaza  <miguel@novell.com>
+
+       * src/gstr.c (g_strdown): Actually move.
+
+       * src/gmarkup.c (g_markup_parse_context_parse): Accept dots in the
+       sequence, reset the state after a closing element.
+
+       * src/garray.c (g_array_insert_vals): Shift the elements the
+       correct amount.
+
+       (g_array_insert_vals): Should actually use the
+       number of elements to insert.
+
+       * test/array.c: Add new test case, this was happening in the JIT. 
+
+       * Add _GNU_SOURCE at configure time, remove from sources.
+       
+       * src/gstr.c (g_strsplit): Empty strings return a 0 value vector.
+
+       * src/glib.h (G_MAXINT64, G_MININT64): Add another set of macros
+       for the support stuff.
+       
+       Move private prototypes elsewhere
+
+       * src/glib.h (g_thread_init): Adding missing brace
+       (g_list_next): remove ; from the macro definition.
+
+2006-10-17  Miguel de Icaza  <miguel@novell.com>
+
+       * src/gutf8.c: internal methods
+
+       * src/ghashtable.c: internal methods.
+
+2006-10-16  Miguel de Icaza  <miguel@novell.com>
+
+       * src/gerror.c (g_propagate_error): Implement.
+
+       * src/gstr.c (g_strjoinv, g_ascii_strncasecmp): implement.
+
+       * test/string-util.c (test_ascii_strncasecmp): test
+
+2006-10-15  Miguel de Icaza  <miguel@novell.com>
+
+       * configure.in: Fix detection of platforms the [3456] stuff does
+       not work inside autoconf.
+
+       * src/eglib-config.h.in: Make G_BREAKPOINT into a function-macro
+
+       * src/glib.h (offsetof): Mono sources depend on this, bring this
+       from the standard definition.  Redefine G_STRUCT_OFFSET in terms
+       of this. 
+       
+       * src/glib.h (G_STRUCT_OFFSET): fix macro definition. 
+       fix typo.
+
+       * src/sizes.c: Add test.
+
+       * src/gshell.c: Make it build
+       
+2006-10-14  Miguel de Icaza  <miguel@novell.com>
+
+       * src/glib.h: add various _TO_LE and _FROM_LE macros.
+
+       * test/endian.c: tests for endian conversion macros.
+
+2006-10-09  Miguel de Icaza  <miguel@novell.com>
+
+       * src/gmodule.h: Move definitions of gmodule to gmodule.h because
+       Mono expects it there.
+
+Mon Oct 9 12:59:16 CEST 2006 Paolo Molaro <lupus@ximian.com>
+
+       * src/ghashtable.c: s/to_prime/g_spaced_primes_closest/g
+       and put the array in readonly memory.
+       * src/gstr.c: fixed the build and made array const.
+       * src/gmodule.c: fixed thinko.
+
+2006-10-08  Miguel de Icaza  <miguel@novell.com>
+
+       * src/gstr.c (g_strdup): should allow NULL as an argument.
+
+2006-10-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * test/string-util.c:
+       * TODO:
+       * src/gstr.c:
+       * src/glib.h: implemented g_strescape.
+
+2006-10-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * test/string-util.c:
+       * configure.ac:
+       * TODO:
+       * src/gstr.c:
+       * src/glib.h: implemented g_strlcpy.
+
+2006-10-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * test/string-util.c:
+       * TODO:
+       * src/gstr.c:
+       * src/glib.h: implemented g_strdelimit.
+
+2006-10-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * test/spawn.c: add search path flag when running ls.
+       * src/gspawn.c: g_spawn_command_line_sync searches the program in the
+       PATH if it's not an absolute path.
+
+2006-10-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * test/string-util.c:
+       * src/glib.h: implement g_ascii_xdigit_value and tests.
+
+2006-10-06  Miguel de Icaza  <miguel@novell.com>
+
+       * src/gstr.c (g_ascii_strdown): Implement.
+
+       * str/glib.c (g_log_set_handler): empty.
+       (g_printerr): empty.
+       (GMemVTable): define, empty, ignored.
+       (G_USEC_PER_SEC) :-)
+
+       * src/gunicode.c (g_convert): Add bytes_read, bytes_written
+       support;   Small fixes to avoid valgrind errors. 
+       
+       (g_utf8_validate): Add, based on the libxml code.
+
+       gstr.c: implement g_strdown. 
+
+2006-10-05  Miguel de Icaza  <miguel@novell.com>
+
+       * src/gunicode.c: Some work in progress to implement g_convert
+       (which is needed by g_locale_to_utf8).    
+
 2006-09-18  Miguel de Icaza  <miguel@novell.com>
 
        * test/string-util.c (test_filename_from_uri): tests for new