more atomic ops pointer cast fixes. this time it'll work with atomic op
[platform/upstream/glib.git] / ChangeLog
index 59b4c16..837d14d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,508 @@
+Fri Jul 13 01:01:46 2007  Tim Janik  <timj@imendio.com>
+
+       * glib/gthread.[hc]: more atomic ops pointer cast fixes. this time it'll
+       work with atomic op macros *and* atomic op functions.
+
+Fri Jul 13 00:50:40 2007  Tim Janik  <timj@imendio.com>
+
+       * glib/gthread.[hc]: fixed missing pointer casts when using atomic ops.
+
+2007-07-12  Matthias Clasen  <mclasen@redhat.com>
+
+       * configure.in: Bump version
+
+       * === Released 2.13.7 ===
+
+       * NEWS: Updates
+
+Thu Jul 12 17:31:08 2007  Tim Janik  <timj@imendio.com>
+
+       * tests/slice-concurrent.c: beautified output somewhat. fixed long
+       sleeps by reducing sleep accumulating and using randomized re-scheduling
+       (which works on UP and SMP). increased possible blocksizes.
+
+Thu Jul 12 17:26:05 2007  Tim Janik  <timj@imendio.com>
+
+       * tests/slice-concurrent.c: added GSLice test from Stefan Westerfeld,
+       bug #433314.
+
+Thu Jul 12 15:46:40 2007  Tim Janik  <timj@imendio.com>
+
+       * glib/gslice.c: migrate per-thread magazine caches from single-thread
+       scenario to first thread using GSlice after g_thread_init(); based on
+       a patch by Tor Lillqvist, fixes #331853.
+       removed warning about g_thread_init() being called after other glib
+       functions (in particular g_slice* calls), because GSlice can cope
+       with this now and the rest of glib is believed to cope as well.
+
+       * tests/slice-threadinit.c: new test program which tests GSlice working
+       across g_thread_init() calls.
+
+2007-07-10  Matthias Clasen  <mclasen@redhat.com>
+
+       * glib/pltcheck.sh: Add g_once_init_enter to the whitelist of
+       symbols allowed to have a local PLT entry, to fix 'make check'.
+
+Tue Jul 10 12:24:35 2007  Tim Janik  <timj@imendio.com>
+
+       * glib/gthread.[hc]: implemented g_once_init_enter(),
+       g_once_init_enter_impl() and g_once_init_leave(), based on a patch by
+       Antoine Tremblay, fixes #65041.
+       adapted exported inline function mechanism from gutils.[hc] for inlining
+       g_once_init_enter_impl() in gthread.[hc].
+
+2007-07-09  Matthias Clasen  <mclasen@redhat.com>
+
+       * NEWS: Updates
+
+2007-07-09  Loïc Minier  <lool@dooz.org>
+
+       * tests/refcount/closures.c: (main): Output newlines after thousand
+       iterations of the inner-loop of the closures test; this helps having
+       smaller lines and continuously outputting new lines.  (#447048).
+
+2007-07-09  Ryan Lortie  <desrt@desrt.ca>
+
+       * glib/gfileutils.c (write_to_temp_file): save errno to prevent it
+       being clobbered by call to g_filename_display_name().  Bug #453796.
+
+2007-07-09  Matthias Clasen  <mclasen@redhat.com>
+
+       * m4macros/glib-gettext.m4: Fix a small problem with
+       msgfmt -c detection.  (#341988, Laszlo Peter)
+
+2007-07-07  Matthias Clasen  <mclasen@redhat.com>
+
+       * glib/gmarkup.c (g_markup_parse_context_end_parse): Handle
+       all states.  (#454473)
+
+2007-07-06  Tor Lillqvist  <tml@novell.com>
+
+       * glib/giowin32.c (g_io_win32_check): When WSAEnumNetworkEvents()
+       signals FD_CONNECT that means that the connection attempt
+       finished, either successfully or failed. Test explicitly whether
+       the connnection succeeded and set either G_IO_OUT if it did,
+       G_IO_ERR|G_IO_HUP if it failed.
+
+       Make sure we never set both G_IO_OUT and G_IO_HUP simultaneously
+       because in Unix poll(2) POLLOUT and POLLHUP are mutually
+       exclusive.
+
+       Ignore whether the caller wants to watch G_IO_HUP or not. Always
+       select for FD_CLOSE because Unix poll(2) also ignores whether
+       POLLHUP in set the requested events bitmask or not.
+
+Fri Jun 29 2007  Matthias Clasen  <mclasen@redhat.com>
+
+       * configure.in: Bump version
+
+       * === Released 2.13.6 ===
+
+       * NEWS: Updates
+
+Mon Jun 25 16:43:13 2007  Tim Janik  <timj@gtk.org>
+
+       * glib/ghash.c: g_hash_table_find(), g_hash_table_foreach():
+       document performance caveats for linear order searches.
+
+2007-06-22  Mathias Hasselmann  <mathias.hasselmann@gmx.de>
+
+       * glib/gstring.c: Use memcpy in g_string_append_vprintf (#57693).
+
+2007-06-18  Mathias Hasselmann  <mathias.hasselmann@gmx.de>
+
+       * glib/gstring.c: Restore old behaviour of 
+       g_string_append_vprintf: g_vasprintf seems to be faster
+       than g_printf_string_upper_bound (#57693).
+
+2007-06-18  Matthias Clasen  <mclasen@redhat.com>
+
+       * glib/gutils.c (g_get_home_dir): Add some motivation.
+
+2007-06-18  Matthias Clasen  <mclasen@redhat.com>
+
+       * configure.in: Bump version
+
+       * === Released 2.13.5 ===
+
+       * NEWS: Updates
+
+2007-06-18  Emmanuele Bassi  <ebassi@gnome.org>
+
+       * glib/gmain.h:
+       * glib/gmain.c:
+       * glib/glib.symbols: Add g_timeout_add_seconds_full() variant
+       to g_timeout_add_seconds(), accepting a destroy notification
+       function and a priority. (#448819)
+
+2007-06-17  Matthias Clasen  <mclasen@redhat.com>
+
+       * glib/gutils (g_get_current_dir): Prevent segfaults on
+       long paths.  (#447935, Robby Griffin)
+
+2007-06-17  Behdad Esfahbod  <behdad@gnome.org>
+
+       * glib/gdataset.c (g_quark_from_string),
+       (g_quark_from_static_string): Accept NULL and return GQuark
+       value of zero. (#446859)
+
+2007-06-16  Mathias Hasselmann  <mathias.hasselmann@gmx.de>
+
+       * glib/gstring.c: Correctly use g_printf_string_upper_bound
+       in g_string_append_vprintf. Fixes #447933.
+
+2007-06-15  Sebastian Wilhelmi  <wilhelmi@google.com>
+
+       * docs/reference/glib/tmpl/threads.sgml: Extended the comments on
+       those functions, that are NOOPs, before g_thread_init() has been
+       called. (#447583)
+
+       * glib/gthread.c (g_static_mutex_free): Clarified comment to
+       remind myself, that calling g_static_mutex_free() before
+       g_thread_init() is safe.
+
+2007-06-15  Cody Russell  <bratsche@gnome.org>
+
+       * docs/reference/gobject/tmpl/gboxed.sgml:
+       * docs/reference/gobject/gobject-sections.txt:
+       * glib/gregex.c:
+       * gobject/gboxed.[ch]:
+       * gobject/gobject.symbols: Added GRegex boxed type.
+       (#445065, Carlos Garnacho)
+
+2007-06-15  Sebastian Wilhelmi  <wilhelmi@google.com>
+
+       * glib/gregex.c: Replaced & by &amp; in <programlisting> to make
+       gtk-doc happy.
+
+2007-06-14  Ryan Lortie  <desrt@desrt.ca>
+
+       * docs/reference/glib/glib-sections.txt:
+       * glib/glib/symbols:
+       * glib/gstring.[ch] (g_string_printf_internal): Improve
+       performance by removing the use of an intermediate g_malloc'd
+       buffer.  Rename to g_string_append_vprintf, document, and expose
+       along with g_string_vprintf as new public API (#57693).
+
+2007-06-15  Mathias Hasselmann  <mathias.hasselmann@gmx.de>
+
+       * build, tests/string-test.c, glib/glib.symbols, 
+       glib/gstring.c, glib/gstring.h: Introduce g_string_overwrite(_len)?
+       for overwriting parts of strings (#368686, Samuel Cormier-Iijima)
+
+2007-06-14  Cody Russell  <bratsche@gnome.org>
+
+       * gobject/gtype.c (g_type_class_add_private): Check for 0-sized
+       private data. (#443869)
+
+2007-06-14  Matthias Clasen  <mclasen@redhat.com>
+       
+       * glib/gmain.c (g_timeout_add_seconds): Fix doc typos.  (#447534,
+       Vincent Untz)
+
+2007-06-13  Behdad Esfahbod  <behdad@gnome.org>
+
+       * glib/pltcheck.sh: Whitelist g_atomic_{int,pointer}_[gs]et() as
+       we don't alias them intentionally. (#354522)
+
+2007-06-13  Sven Neumann  <sven@gimp.org>
+
+       * glib/gslice.[ch] added g_slice_copy() and g_slice_dup() (#442029).
+
+       * glib/glib.symbols: updated.
+
+2007-06-12  Behdad Esfahbod  <behdad@gnome.org>
+
+       * glib/gunicode.h: Add more G_GNUC_CONST and G_GNUC_PURE.
+
+2007-06-11  Emmanuele Bassi  <ebassi@gnome.org>
+
+       * glib/gutils.c (maybe_expire_user_special_dirs),
+       (g_get_user_special_dir): Remove the cache expiration logic: it
+       makes g_get_user_special_dir() not thread-safe. Document the fact
+       that on some platform the value might be changed by the user and
+       that GLib won't be able to reflect the change.
+
+2007-06-11  Tor Lillqvist  <tml@novell.com>
+
+       * glib/gwin32.c (g_win32_get_package_installation_directory)
+       (g_win32_get_package_installation_subdirectory): Update doc
+       comments. Mention that it is not recommeded to use the Registry
+       features.
+
+2007-06-06  Tor Lillqvist  <tml@novell.com>
+
+       * glib/gutils.c: Add definitions for more CSIDL_* constants in
+       case missing from headers. Use CSIDL_PERSONAL instead of
+       CSIDL_MYDOCUMENTS as CSIDL_MYDOCUMENTS seems to be a new thing
+       that doesn't work in XP SP2 even.
+
+2007-06-06  Matthias Clasen  <mclasen@redhat.com>
+
+       * glib/gutils.c (g_get_user_special_dir): Fall back to
+       $HOME/Desktop for the DESKTOP directory, like 
+       xdg_user_dir_lookup() does.
+
+2007-06-05  Matthias Clasen  <mclasen@redhat.com>
+
+       * configure.in: Bump version
+
+       * === Released 2.13.4 ===
+
+       * NEWS: Updates
+
+2007-06-05  Matthias Clasen  <mclasen@redhat.com>
+
+       * glib/gkeyfile.c (g_key_file_is_key_name):
+       (g_key_file_is_group_name): Don't assume the string is
+       valid UTF-8, since it may be user data.  (#444161, Ben Combee)
+
+2007-06-05  Behdad Esfahbod  <behdad@gnome.org>
+
+       * glib/gutf8.c: Add not to g_utf8_get_char_validated() about
+       nul-terminated strings.
+
+2007-06-05  Matthias Clasen  <mclasen@redhat.com>
+
+       * glib/gutils.c (g_get_user_special_dir): Don't deadlock
+       when running with threads.  (#444121, Christian Persch)
+
+2007-06-05  Vincent Untz  <vuntz@gnome.org>
+
+       * glib/goption.c: (g_option_context_get_help): don't replace the usage
+       line with the description for optional parameters, but append the
+       description. (#444130)
+
+2007-06-04  Matthias Clasen  <mclasen@redhat.com>
+
+       * configure.in: Bump version
+       
+       * === Released 2.13.3 ===
+
+       * NEWS: Updates
+
+2007-06-04  Matthias Clasen  <mclasen@redhat.com>
+       
+       Add support for a number of special directories, as 
+       defined by the xdg-user-dirs specification.  (#432651,
+       Bastien Nocera, Emmanuele Bassi, Michael Natterer)
+
+       * glib/glib.symbols:
+       * glib/gutils.[hc]: Add the GUserDirectory enum and
+       g_get_user_special_dir(), with implementations based
+       on the xdg-user-dirs spec and on native interfaces
+       for Win32 and Carbon.
+       
+       * configure.in: Add Carbon checks.
+
+       * tests/tetsglib.c: Test g_get_user_special_dir().
+       
+2007-06-03  Yevgen Muntyan  <muntyan@tamu.edu>
+
+       * glib/gregex.c: fixed g_regex_fetch_named* for cases when (?J)
+       is used inside a pattern (#442265, comment #12).
+       * tests/regex-test.c: Test it.
+
+2007-06-03  Matthias Clasen <mclasen@redhat.com>
+
+       * NEWS: Updates
+
+2007-06-03  Yevgen Muntyan  <muntyan@tamu.edu>
+
+       Some API additions and changes (#442265).
+
+       * glib/gregex.c:
+       * glib/gregex.h: new functions: g_regex_ref(), g_regex_unref() which
+       replaces g_regex_free(); g_match_info_get_regex(), g_match_info_get_string();
+       g_regex_check_replacement().
+       Made g_match_info_expand_references() accept NULL; changed GRegexEvalCallback
+       to take only arguments which are likely to be actualy used.
+
+       * docs/reference/glib/glib-sections.txt:
+       * glib/glib.symbols: Added new functions.
+
+       * tests/regex-test.c: Test them.
+
+       * docs/reference/glib/tmpl/gregex.sgml: Updated GRegexEvalCallback docs.
+
+2007-05-31  Matthias Clasen <mclasen@redhat.com>
+
+       * README.win32: Fix a typo.  (#423708, Olivier Delhomme)
+
+2007-05-30  Dan Winship  <danw@novell.com>
+
+       * glib/gkeyfile.h: add defines for desktop file handling. #339225,
+       original patch from Vincent Untz.
+
+2007-05-29  Cody Russell  <bratsche@gnome.org>
+
+       * configure.in: Fix a sed script that doesn't correctly detect
+       i586-mingw32-gcc-3.4 compiler, and was causing -Wno-pointer-sign
+       errors when building with that compiler. (#440896, Yevgen Muntyan)
+
+2007-05-29  Marco Barisione <marco@barisione.org>
+
+       * glib/gregex.c: Fix g_regex_fetch_named() and
+       g_regex_fetch_named_pos() when G_REGEX_DUPNAMES is used  (#434358,
+       Yevgen Muntyan and #419376, Marco Barisione, patch by Yevgen Muntyan)
+
+2007-05-25  Behdad Esfahbod  <behdad@gnome.org>
+
+       * glib/guniprop.c (g_unichar_iswide), (g_unichar_iswide_cjk):
+       Update to Markus Kuhn's updated wcwidth for Unicode 5.0.
+
+2007-05-22  Matthias Clasen  <mclasen@redhat.com>
+
+       * configure.in: Bump version
+
+       * === Released 2.13.2 ===
+
+       * README.in:
+       * NEWS: Updates
+
+2007-05-18  Matthias Clasen  <mclasen@redhat.com>
+
+       * configure.in: Try again to move the compiler-dependency
+       of G_GNUC_INTERNAL to runtime.
+
+2007-05-18  Matthias Clasen  <mclasen@redhat.com>
+
+       * configure.in: Don't let PERL_PATH be ''.  (#356769, Joseph Sacco)
+
+2007-05-17  Michael Natterer  <mitch@imendio.com>
+
+       * configure.in: hotfix: revert last change to fix the build on OS X.
+
+2007-05-17  Matthias Clasen  <mclasen@redhat.com>
+
+       * glib/goption.c (g_option_context_set_translate_func): Fix
+       a doc typo.  (#439232, Vincent Untz)
+
+2007-05-17  Matthias Clasen  <mclasen@redhat.com>
+
+       * configure.in: Move the compiler-dependency in the G_GNUC_INTERNAL
+       definition from configure-time to runtime (of the compiler).
+       (#438869, Damien Carbery)
+
+       * glib/gdebug.h:
+       * glib/gmessages.h:
+       * glib/gunicodeprivate.h:
+       * glib/gthreadprivate.h: Move G_GNUC_INTERNAL before function
+       declarations to fix compilation with sun studio.  (#438873,
+       Damien Carbery)
+
+2007-05-14  Matthias Clasen  <mclasen@redhat.com>
+
+       * glib/gslice.h:
+       * glib/gslice.c:
+       * glib/glib.symbols: Make g_slice_debug_tree_statistics() 
+       debug-only functionality again.
+
+2007-05-14  Christian Persch  <chpe@gnome.org>
+
+       * docs/reference/glib/tmpl/string_utils.sgml: Improve g_strerror and
+       g_strsignal docs. Bug #438293.
+
+2007-05-13  Tor Lillqvist  <tml@novell.com>
+
+       * glib/gwin32.h: Drop the pipe() macro. Defining macros outside of
+       its namespace that look like POSIX functions is not GLib's
+       business in my opinion. This means pipe()-using code that has
+       relied on this definition will need changing to call _pipe() on
+       Windows, and make the decision itself on what size pipe buffer to
+       use, and whether to use text or binary mode, and whether the pipe
+       handles should be inheritable or not.
+
+       * glib/gspawn-win32.c (make_pipe): Use _pipe() instead of pipe().
+
+2007-05-11  Matthias Clasen  <mclasen@redhat.com>
+
+       * glib/goption.c: Allow G_OPTION_ARG_CALLBACK for 
+       G_OPTION_REMAINING.  (#437297, Dave Benson)
+
+       * tests/option-test.c: Add a test for this.
+
+2007-05-04  Dan Winship  <danw@novell.com>
+
+       * glib/gkeyfile.c (g_key_file_get_boolean)
+       (g_key_file_get_boolean_list, g_key_file_get_integer)
+       (g_key_file_get_integer_list, g_key_file_get_double)
+       (g_key_file_get_double_list): Document the error return values
+       rather than calling them undefined. #435885.
+
+2007-05-03  Behdad Esfahbod  <behdad@gnome.org>
+
+       * glib/glib.symbols:
+       * glib/gunicode.h:
+       * glib/guniprop.c (g_unichar_ismark):
+       Add g_unichar_ismark(). Patch from Yevgen Muntyan. Fixes #339991.
+
+2007-05-03  Matthias Clasen <mclasen@redhat.com>
+
+       * configure.in: Bump version
+
+       * === Released 2.13.1 ===
+
+2007-05-02  Matthias Clasen <mclasen@redhat.com>
+
+       * tests/threadpool-test.c:  Stop unused threads before
+       the last test, to make the test terminate reliably.
+
+       * NEWS: Updates
+
+2007-05-02  Marco Barisione <marco@barisione.org>
+
+       * glib/gregex.c: Made more clear that the string passed to the match
+       functions cannot be freed before using g_match_info_fetch() and
+       similar functions, and fixed a typo.
+
+2007-04-30  Matthias Clasen  <mclasen@redhat.com>
+
+       * glib/glib.symbols:
+       * glib/gregex.[hc]: Add g_regex_get_max_backref() and
+       g_regex_get_capture_count().  (#419371, Marco Barisione)
+       
+2007-04-30  Matthias Clasen  <mclasen@redhat.com>
+
+       * glib/glib.symbols:
+       * glib/gregex.[hc]: Split GRegex into GRegex and GMatchInfo.
+       (#419368, Marco Barisione)
+
+       * tests/regex-test.c: Adapt.
+
+2007-04-30  Chris Wilson  <chris@chris-wilson.co.uk>
+
+       * glib/gbookmarkfile.c (g_bookmark_file_get_app_info):
+       Include the gshell.h header file (to define g_shell_[un]quote)
+       and correct the order of the arguments to g_propagate_error(), as
+       spotted by gcc.
+
+2007-04-29  Emmanuele Bassi  <ebassi@gnome.org>
+
+       * glib/gbookmarkfile.c:
+       (g_bookmark_file_set_app_info): Quote the passed command line...
+       
+       (g_bookmark_file_get_app_info): ... and unquote it when giving it
+       back. (#432274)
+
+2007-04-27  Matthias Clasen <mclasen@redhat.com>
+
+       * glib/gstrfuncs.c: small coding style cleanups.
+
+2007-04-27  Chris Wilson  <chris@chris-wilson.co.uk>
+
+       * glib/gregex.h: Remove trailing comma at end of enumerator list.
+
+2007-04-27  Tor Lillqvist  <tml@novell.com>
+
+       * glib/gstdio.c (g_mkdir): Document that the mode argument is
+       ignored on Windows
+       (g_stat): Document that st_mode is mostly useless on Windows.
+
+2007-04-25  Paolo Borelli  <pborelli@katamail.com>
+
+       * glib/gstrfuncs.c (g_strsplit): small cleanup. (#433387)
+
 2007-04-24  Matthias Clasen  <mclasen@redhat.com>
 
        * glib/glib.symbols:
 
 2007-04-24  Michael Natterer  <mitch@imendio.com>
 
-       * gobject/gparamspecs.c (param_string_validate): don't free or
-       modify static strings, dup them when needed and clear the
-       G_VALUE_NOCOPY_CONTENTS flag. Fixes bug #432895.
-
        * tests/gobject/paramspec-test.c: test all GParamSpecString
        validations with static and allocated strings.