Commit Graph

2681 Commits

Author SHA1 Message Date
Matthias Clasen
b09c2ff4cd 2.13.7
svn path=/trunk/; revision=5634
2007-07-12 17:53:42 +00:00
Matthias Clasen
6b3b223646 Updates
svn path=/trunk/; revision=5633
2007-07-12 17:26:20 +00:00
Tim Janik
f2fa3c8593 beautified output somewhat. fixed long sleeps by reducing sleep
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.



svn path=/trunk/; revision=5631
2007-07-12 15:35:26 +00:00
Tim Janik
223754f627 added GSLice test from Stefan Westerfeld, bug #433314.
Thu Jul 12 17:26:05 2007  Tim Janik  <timj@imendio.com>

        * tests/slice-concurrent.c: added GSLice test from Stefan Westerfeld,
        bug #433314.



svn path=/trunk/; revision=5630
2007-07-12 15:26:47 +00:00
Tim Janik
964d75ebe3 migrate per-thread magazine caches from single-thread scenario to first
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.



svn path=/trunk/; revision=5629
2007-07-12 15:07:52 +00:00
Matthias Clasen
8edc846918 Fix 'make check'
svn path=/trunk/; revision=5622
2007-07-10 17:49:46 +00:00
Tim Janik
c9ccc828f1 implemented g_once_init_enter(), g_once_init_enter_impl() and
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].



svn path=/trunk/; revision=5616
2007-07-10 10:30:36 +00:00
Matthias Clasen
b8ecfeeb65 Updates
svn path=/trunk/; revision=5613
2007-07-09 23:04:54 +00:00
Loïc Minier
e9e1d9d45f Output newlines after thousand iterations of the inner-loop of the
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).

svn path=/trunk/; revision=5609
2007-07-09 07:42:30 +00:00
Ryan Lortie
702549ddc1 save errno to prevent it being clobbered by call to
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.


svn path=/trunk/; revision=5608
2007-07-09 05:32:15 +00:00
Matthias Clasen
7a55a55fdc Fix a small problem with msgfmt -c detection
svn path=/trunk/; revision=5606
2007-07-09 05:21:05 +00:00
Matthias Clasen
77363936cc Handle all states. (#454473)
2007-07-07  Matthias Clasen  <mclasen@redhat.com>

        * glib/gmarkup.c (g_markup_parse_context_end_parse): Handle
        all states.  (#454473)



svn path=/trunk/; revision=5604
2007-07-08 00:18:38 +00:00
Tor Lillqvist
09d6197943 When WSAEnumNetworkEvents() signals FD_CONNECT that means that the
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.


svn path=/trunk/; revision=5600
2007-07-06 01:22:53 +00:00
Matthias Clasen
5bd418c5e5 Bump version
svn path=/trunk/; revision=5593
2007-06-29 17:52:18 +00:00
Matthias Clasen
c4a98c9265 2.13.6
svn path=/trunk/; revision=5591
2007-06-29 17:50:00 +00:00
Matthias Clasen
894556b79f Updates
svn path=/trunk/; revision=5590
2007-06-29 17:36:10 +00:00
Tim Janik
2ef43de2af g_hash_table_find(), g_hash_table_foreach(): document performance caveats
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.                                                                                               
                                                                                                                                                              


svn path=/trunk/; revision=5587
2007-06-25 14:44:41 +00:00
Mathias Hasselmann
c36ffea807 Use memcpy in g_string_append_vprintf (#57693).
2007-06-22  Mathias Hasselmann  <mathias.hasselmann@gmx.de>

	* glib/gstring.c: Use memcpy in g_string_append_vprintf (#57693).

svn path=/trunk/; revision=5584
2007-06-22 17:04:07 +00:00
Mathias Hasselmann
90240bf12d Restore old behaviour of g_string_append_vprintf: g_vasprintf seems to be
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).

svn path=/trunk/; revision=5581
2007-06-18 21:14:49 +00:00
Matthias Clasen
c03ddad312 More docs
svn path=/trunk/; revision=5580
2007-06-18 19:12:10 +00:00
Matthias Clasen
7bb6a8eebe Bump version
svn path=/trunk/; revision=5579
2007-06-18 17:33:45 +00:00
Matthias Clasen
fc0a52ca3a 2.13.5
svn path=/trunk/; revision=5577
2007-06-18 17:31:49 +00:00
Matthias Clasen
3d2d4c2771 Updates
svn path=/trunk/; revision=5576
2007-06-18 17:03:16 +00:00
Emmanuele Bassi
00ab83b8e8 Add full variant to the approximate timeout functiont
The g_timeout_add_seconds() API lacks a _full() counterpart, allowing the
setting of a destroy notification function to be invoked when the timeout
source is removed.

This patch adds g_timeout_add_seconds_full() to the public API and
reimplements g_timeout_add_seconds() as a call to g_timeout_add_seconds_full().

svn path=/trunk/; revision=5575
2007-06-18 16:55:50 +00:00
Matthias Clasen
7a6d2233e4 Prevent segfaults on long paths. (#447935, Robby Griffin)
2007-06-17  Matthias Clasen  <mclasen@redhat.com>

        * glib/gutils (g_get_current_dir): Prevent segfaults on
        long paths.  (#447935, Robby Griffin)


svn path=/trunk/; revision=5574
2007-06-18 16:35:41 +00:00
Behdad Esfahbod
f50d64c6ad Accept NULL and return GQuark value of zero. (#446859)
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)


svn path=/trunk/; revision=5572
2007-06-17 07:43:34 +00:00
Mathias Hasselmann
506fd2d2e1 Correctly use g_printf_string_upper_bound in g_string_append_vprintf.
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.


svn path=/trunk/; revision=5570
2007-06-16 12:04:25 +00:00
Sebastian Wilhelmi
16b4963816 Extended the comments on those functions, that are NOOPs, before
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, tha calling g_static_mutex_free() before
	g_thread_init() is safe.


svn path=/trunk/; revision=5567
2007-06-15 17:03:13 +00:00
Cody Russell
49f802b83e Added GRegex boxed type. (#445065, Carlos Garnacho)
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)


svn path=/trunk/; revision=5566
2007-06-15 16:31:21 +00:00
Sebastian Wilhelmi
e674f5fe77 Replaced & by &amp; in <programlisting> to make gtk-doc happy.
2007-06-15  Sebastian Wilhelmi  <wilhelmi@google.com>

	* glib/gregex.c: Replaced & by &amp; in <programlisting> to make
	gtk-doc happy.


svn path=/trunk/; revision=5565
2007-06-15 15:55:37 +00:00
Ryan Lortie
020af9f1dc Improve performance by removing the use of an intermediate g_malloc'd
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).


svn path=/trunk/; revision=5564
2007-06-15 12:43:54 +00:00
Mathias Hasselmann
ed4d216d2b Introduce g_string_overwrite(_len)? for overwriting parts of strings (#368686, Samuel Cormier-Iijima)
svn path=/trunk/; revision=5563
2007-06-15 11:54:21 +00:00
Cody Russell
19086497ab Check for 0-sized private data. (#443869)
2007-06-14  Cody Russell  <bratsche@gnome.org>

        * gobject/gtype.c (g_type_class_add_private): Check for 0-sized
        private data. (#443869)


svn path=/trunk/; revision=5561
2007-06-15 03:50:27 +00:00
Matthias Clasen
b2d6494a5e Fix typos
svn path=/trunk/; revision=5558
2007-06-14 13:52:01 +00:00
Behdad Esfahbod
50cf599eb3 Add bug number.
svn path=/trunk/; revision=5557
2007-06-13 22:21:54 +00:00
Behdad Esfahbod
157abb2da4 Whitelist g_atomic_{int,pointer}_[gs]et() as we don't alias them
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.


svn path=/trunk/; revision=5556
2007-06-13 22:21:06 +00:00
Sven Neumann
57336cec3f glib/gslice.[ch] added g_slice_copy() and g_slice_dup() (#442029).
2007-06-13  Sven Neumann  <sven@gimp.org>

	* glib/gslice.[ch] added g_slice_copy() and g_slice_dup() 
(#442029).

	* glib/glib.symbols: updated.


svn path=/trunk/; revision=5554
2007-06-13 18:56:51 +00:00
Behdad Esfahbod
ae2830688d Add more G_GNUC_CONST and G_GNUC_PURE.
2007-06-12  Behdad Esfahbod  <behdad@gnome.org>

        * glib/gunicode.h: Add more G_GNUC_CONST and G_GNUC_PURE.


svn path=/trunk/; revision=5551
2007-06-12 04:58:07 +00:00
Emmanuele Bassi
72024709cc Remove the cache expiration logic: it makes g_get_user_special_dir() not
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.

svn path=/trunk/; revision=5550
2007-06-11 15:31:29 +00:00
Tor Lillqvist
e55e867793 Update doc comments. Mention that it is not recommeded to use the Registry
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.


svn path=/trunk/; revision=5547
2007-06-11 07:59:33 +00:00
Tor Lillqvist
e087f8c43c Add definitions for more CSIDL_* constants in case missing from headers.
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.


svn path=/trunk/; revision=5544
2007-06-06 19:13:45 +00:00
Matthias Clasen
f6f9877b50 Fall back to $HOME/Desktop for the DESKTOP directory, like
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.


svn path=/trunk/; revision=5543
2007-06-06 19:05:53 +00:00
Matthias Clasen
9d1be184c1 Bump version
svn path=/trunk/; revision=5542
2007-06-06 04:58:21 +00:00
Matthias Clasen
9bb331cf6c 2.13.4
svn path=/trunk/; revision=5540
2007-06-06 04:57:11 +00:00
Matthias Clasen
789254f522 Updates
svn path=/trunk/; revision=5538
2007-06-06 04:05:42 +00:00
Matthias Clasen
0911f2e907 Don't assume the string is valid UTF-8, since it may be user data.
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)



svn path=/trunk/; revision=5537
2007-06-05 19:14:46 +00:00
Behdad Esfahbod
ed6b059bc2 Add not to g_utf8_get_char_validated() about nul-terminated strings.
2007-06-05  Behdad Esfahbod  <behdad@gnome.org>

        * glib/gutf8.c: Add not to g_utf8_get_char_validated() about
        nul-terminated strings.


svn path=/trunk/; revision=5536
2007-06-05 17:52:04 +00:00
Matthias Clasen
bcc342b81b Don't deadlock when running with threads. (#444121, Christian Persch)
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)


svn path=/trunk/; revision=5535
2007-06-05 17:36:17 +00:00
Vincent Untz
cc4b0a5452 don't replace the usage line with the description for optional parameters,
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)

svn path=/trunk/; revision=5534
2007-06-05 08:44:20 +00:00
Matthias Clasen
8c2f0b709f Bump version
svn path=/trunk/; revision=5533
2007-06-04 15:42:44 +00:00