Commit Graph

2948 Commits

Author SHA1 Message Date
Matthias Clasen
62df696da1 Updates
svn path=/trunk/; revision=5801
2007-11-07 05:12:13 +00:00
Matthias Clasen
5b81acfae2 Update the internal copy of PCRE to 7.4
2007-11-06  Matthias Clasen <mclasen@redhat.com>

        * glib/pcre/*: Update the internal copy of PCRE to 7.4



svn path=/trunk/; revision=5800
2007-11-07 04:57:22 +00:00
Tor Lillqvist
43c16432fc Plug small one-time leak on Windows. (#488068, Daniel Atallah)
2007-10-22  Tor Lillqvist  <tml@novell.com>

	* glib/gutils.c (_glib_gettext): Plug small one-time leak on
	Windows. (#488068, Daniel Atallah)


svn path=/trunk/; revision=5795
2007-10-22 20:13:55 +00:00
Behdad Esfahbod
9df1f4fcc7 Fix warnings from sparse. (#487491, Kjartan Maraas)
2007-10-21  Behdad Esfahbod  <behdad@gnome.org>

        * glib/gdate.c (g_date_strftime):
        * glib/gmain.c (g_main_context_check):
        * glib/gregex.c (g_match_info_fetch_all), (g_regex_split_full):
        * glib/gthread.c (g_once_init_enter_impl), (g_once_init_leave):
        * glib/gthread.h:
        * glib/gutf8.c (g_utf16_to_utf8), (g_utf16_to_ucs4):
        * tests/errorcheck-mutex-test.c (lock_locked_mutex),
        (trylock_locked_mutex), (unlock_unlocked_mutex),
        (free_locked_mutex), (wait_on_unlocked_mutex),
        (wait_on_otherwise_locked_mutex), (timed_wait_on_unlocked_mutex),
        (timed_wait_on_otherwise_locked_mutex):
        Fix warnings from sparse. (#487491, Kjartan Maraas)


svn path=/trunk/; revision=5792
2007-10-21 17:01:29 +00:00
Matthias Clasen
e1b7097247 Bump version
svn path=/trunk/; revision=5789
2007-10-17 05:11:06 +00:00
Matthias Clasen
83684e4b03 2.14.2
svn path=/trunk/; revision=5786
2007-10-16 06:33:50 +00:00
Matthias Clasen
2cc03c7fe7 Updates
svn path=/trunk/; revision=5785
2007-10-16 05:42:16 +00:00
Matthias Clasen
a57cf3893c Check for sys/resource.h
2007-10-16  Matthias Clasen  <mclasen@redhat.com>

        * configure.in: Check for sys/resource.h

        * glib/gspawn.c: Improve the fdwalk implementation on Linux
        to only walk over actually open file descriptors. (#469231,
        Lennart Poettering)


svn path=/trunk/; revision=5783
2007-10-16 05:28:10 +00:00
Sven Herzberg
63c721b6d0 Reviewed by Tim Janik.
2007-10-13  Sven Herzberg  <herzi@gnome-de.org>

	Reviewed by Tim Janik.

	Created marshallers that don't throw gcc warnings when compiling with
	-WUnused (fixes #359165).

	* gobject/glib-genmarshal.c: decorate return_value and invocation_hint
	with G_GNUC_UNUSED


svn path=/trunk/; revision=5781
2007-10-13 10:51:04 +00:00
Tor Lillqvist
64312b72c9 Always define G_CAN_INLINE. Even MSVC6 is capable of inlining. (#483337,
2007-10-04  Tor Lillqvist  <tml@novell.com>

	* glibconfig.h.win32.in: Always define G_CAN_INLINE. Even MSVC6 is
	capable of inlining. (#483337, Steve Lhomme)


svn path=/trunk/; revision=5780
2007-10-05 17:01:13 +00:00
Behdad Esfahbod
5fa8c6ef89 Check for NULL finalizer. (#476849, Areg Beketovski)
2007-09-19  Behdad Esfahbod  <behdad@gnome.org>

        * glib/ghook.c (g_hook_free): Check for NULL finalizer. (#476849, Areg
        Beketovski)


svn path=/trunk/; revision=5776
2007-09-19 20:36:53 +00:00
Matthias Clasen
dc61469e8b Bump version
svn path=/trunk/; revision=5772
2007-09-16 19:51:16 +00:00
Matthias Clasen
ae35ce1aa6 2.14.1
svn path=/trunk/; revision=5770
2007-09-16 19:49:44 +00:00
Matthias Clasen
97850735fa Fix doc formatting
svn path=/trunk/; revision=5769
2007-09-16 18:32:51 +00:00
Matthias Clasen
34a9878985 Fix a doc formatting problem
svn path=/trunk/; revision=5766
2007-09-16 17:30:57 +00:00
Matthias Clasen
4732600578 Replace -pthread by -lpthread for Freebsd, too. (#475619, Roy Marples)
2007-09-16  Matthias Clasen  <mclasen@redhat.com>

        * configure.in: Replace -pthread by -lpthread for
        Freebsd, too.  (#475619, Roy Marples)



svn path=/trunk/; revision=5763
2007-09-16 16:15:34 +00:00
Matthias Clasen
6972901388 Fix static build against system pcre
svn path=/trunk/; revision=5762
2007-09-16 15:48:11 +00:00
Matthias Clasen
9bb58ae9d2 Updates
svn path=/trunk/; revision=5759
2007-09-16 06:04:36 +00:00
15:07:28 Tim Janik
63828ea746 applied fix for bug #476840.
2007-09-14 15:07:28  Tim Janik  <timj@gtk.org>

        * glib/gutf8.c (g_utf8_strreverse): applied fix for bug #476840.

        * tests/utf8-pointer.c (test_misc): added test for g_utf8_strreverse().



svn path=/trunk/; revision=5757
2007-09-14 13:28:07 +00:00
Marco Barisione
324ee4c07c fix a typo in the previous commit. (#475854, comment #4)
2007-09-11  Marco Barisione <marco@barisione.org>
	* configure.in: fix a typo in the previous commit. (#475854, comment
	#4)

svn path=/trunk/; revision=5750
2007-09-11 20:22:18 +00:00
Marco Barisione
3c4e0759d6 propagate the pcre flags to libglib and not to all parts of glib.
2007-09-11  Marco Barisione <marco@barisione.org>

	* glib/Makefile.am:
	* configure.in: propagate the pcre flags to libglib and not to all
	parts of glib. (#475854, dmacks@netspace.org)

svn path=/trunk/; revision=5749
2007-09-11 20:10:31 +00:00
Matthias Clasen
f4a8a220b5 Add arm atomic operations
svn path=/trunk/; revision=5748
2007-09-11 04:16:59 +00:00
Marco Barisione
6273407af6 change the type of ref_count from guint to gint, so we can remove some
2007-09-10  Marco Barisione <marco@barisione.org>

	* glib/gregex.c: change the type of ref_count from guint to gint, so
	we can remove some ugly casts.

svn path=/trunk/; revision=5746
2007-09-10 16:27:38 +00:00
Marco Barisione
4356f18a3d use pcre_get_stringnumber() in get_matched_substring_number() if
2007-09-10  Marco Barisione <marco@barisione.org>

	* glib/gregex.c: use pcre_get_stringnumber() in
	get_matched_substring_number() if G_REGEX_DUPNAMES was not set.
	(#444765, Yevgen Muntyan)

svn path=/trunk/; revision=5745
2007-09-10 16:20:51 +00:00
Marco Barisione
963a7572c0 bump PCRE requirement to version 7.2.
2007-09-10  Marco Barisione <marco@barisione.org>

	* configure.in: bump PCRE requirement to version 7.2.

svn path=/trunk/; revision=5743
2007-09-10 15:30:00 +00:00
Marco Barisione
eb5d1e18b1 define PCRE_ERROR_NULLWSLIMIT if it's not defined by PCRE, has PCRE 7.3
2007-09-10  Marco Barisione <marco@barisione.org>

	* glib/gregex.c: define PCRE_ERROR_NULLWSLIMIT if it's not defined by
	PCRE, has PCRE 7.3 removed this definition. (#475474)

svn path=/trunk/; revision=5742
2007-09-10 15:17:19 +00:00
Behdad Esfahbod
2f14244e24 Fix header inclusion. (#473879, Peter Kjellerstedt)
2007-09-05  Behdad Esfahbod  <behdad@gnome.org>

        * glib/gregex.c: Fix header inclusion. (#473879, Peter Kjellerstedt)


svn path=/trunk/; revision=5735
2007-09-05 15:44:52 +00:00
Tim Janik
37dbc09080 fixed compiler warning about loosing volatile qualifier, bug #457641.
Wed Aug 29 12:08:40 2007  Tim Janik  <timj@imendio.com>

        * glib/gthread.h (g_once_init_enter): fixed compiler warning about
        loosing volatile qualifier, bug #457641.



svn path=/trunk/; revision=5725
2007-08-29 10:09:30 +00:00
Michael Natterer
8a442ede82 make g_slice_copy() take a gconstpointer instead of a gpointer.
2007-08-24  Michael Natterer  <mitch@imendio.com>

	* glib/gslice.[ch]: make g_slice_copy() take a gconstpointer
	instead of a gpointer.


svn path=/trunk/; revision=5720
2007-08-24 14:40:14 +00:00
Cody Russell
0a4b663771 Fixing my changelog
svn path=/trunk/; revision=5719
2007-08-22 20:42:57 +00:00
Cody Russell
609931a1d7 Fixing my changelog
svn path=/trunk/; revision=5718
2007-08-22 20:42:15 +00:00
Cody Russell
2ffcf767a2 Update fix for #469051
svn path=/trunk/; revision=5717
2007-08-22 19:31:27 +00:00
Cody Russell
ae70a4e5af Document g_snprintf to return "bytes" rather than "characters".
2007-08-22  Cody Russell  <bratsche@gnome.org>

        * glib/gprintf.c: Document g_snprintf to return "bytes" rather
        than "characters".


svn path=/trunk/; revision=5716
2007-08-22 17:25:59 +00:00
Behdad Esfahbod
9d6ace02aa Document that GUnicodeScript is interchangeable with PangoScript.
2007-08-20  Behdad Esfahbod  <behdad@gnome.org>

        * glib/tmpl/unicode.sgml: Document that GUnicodeScript is
        interchangeable with PangoScript.

2007-08-20  Behdad Esfahbod  <behdad@gnome.org>

        * glib/guniprop.c: Document that g_unichar_get_script() is
        equivalent to pango_script_for_unichar().


svn path=/trunk/; revision=5713
2007-08-21 02:51:11 +00:00
Behdad Esfahbod
bf04380d3c Fix typos
svn path=/trunk/; revision=5712
2007-08-20 23:34:35 +00:00
Cody Russell
edf4c17165 g_type_default_interface_ref() was not ensuring working g_signal_list_ids.
2007-08-14  Cody Russell  <bratsche@gnome.org>

        * gobject/gsignal.c: g_type_default_interface_ref() was not
        ensuring working g_signal_list_ids.  Added checks for
        !G_TYPE_IS_INTERFACE (itype).                          
        (#465625, by some guy who calls himself Yeti)


svn path=/trunk/; revision=5704
2007-08-14 22:55:23 +00:00
Tim Janik
d5c4370813 prevent race covered by g_once_init_enter(), by checking for previous
Tue Aug 14 02:06:10 2007  Tim Janik  <timj@imendio.com>

        * glib/gthread.c (g_once_init_enter_impl): prevent race covered
        by g_once_init_enter(), by checking for previous initializations
        before entering initialisation branch.

        * tests/onceinit.c: added multi-thread/multi-initializer stress test
        using unoptimized g_once_init_enter_impl().



svn path=/trunk/; revision=5701
2007-08-14 00:05:52 +00:00
Tim Janik
e0dffd03fb fixed array size typo.
Mon Aug 13 14:30:15 2007  Tim Janik  <timj@imendio.com>

        * tests/onceinit.c (main): fixed array size typo.



svn path=/trunk/; revision=5699
2007-08-13 12:30:08 +00:00
Tim Janik
1ce6d47e3a test g_once_init_*() before and after g_thread_init() and test concurrency
Mon Aug 13 14:21:44 2007  Tim Janik  <timj@imendio.com>

        * tests/onceinit.c: test g_once_init_*() before and after
        g_thread_init() and test concurrency resolution.



svn path=/trunk/; revision=5698
2007-08-13 12:25:21 +00:00
Tim Janik
8aa559d72f prevent linking a freed GThread structure into global thread list in error
Mon Aug 13 14:18:22 2007  Tim Janik  <timj@imendio.com>

       * glib/gthread.c (g_thread_create_full): prevent linking a freed
       GThread structure into global thread list in error cases.



svn path=/trunk/; revision=5697
2007-08-13 12:18:55 +00:00
Matthias Clasen
28f781501e Handle restricted characters by converting them to numeric character
2007-08-08  Matthias Clasen  <mclasen@redhat.com>

        * glib/gmarkup.c (append_escaped_text): Handle restricted
        characters by converting them to numeric character
        entities.  (#464145, Andreas Monitzer)

        * tests/markup-escape-test.c: Add tests for restricted
        characters and numeric character entities.


svn path=/trunk/; revision=5684
2007-08-09 02:06:04 +00:00
Matthias Clasen
c4b9053e16 Make it work regardless of --enable-debug
svn path=/trunk/; revision=5683
2007-08-08 22:06:47 +00:00
Tristan Van Berkom
24e24fed8b fixed a typo in docs.
svn path=/trunk/; revision=5682
2007-08-08 18:02:57 +00:00
Matthias Clasen
9fe29ccbca Update file format
svn path=/trunk/; revision=5681
2007-08-08 03:13:55 +00:00
Tor Lillqvist
6b5e23435a Revert my earlier change, see #440544.
svn path=/trunk/; revision=5680
2007-08-06 15:40:48 +00:00
Tor Lillqvist
faaaa24885 Move the G_ENABLE_DEBUG ifdef inside g_slice_debug_tree_statistics() so
2007-08-06  Tor Lillqvist  <tml@novell.com>

	* glib/gslice.c: Move the G_ENABLE_DEBUG ifdef inside
	g_slice_debug_tree_statistics() so that the function exists (but
	doesn't do anything) also in a non-debug build. (#440544)


svn path=/trunk/; revision=5679
2007-08-06 14:23:54 +00:00
Matthias Clasen
39ed0c0264 bump version
svn path=/trunk/; revision=5676
2007-08-04 03:07:44 +00:00
Matthias Clasen
0b434a3cbd 2.14.0
svn path=/trunk/; revision=5674
2007-08-04 03:03:02 +00:00
Matthias Clasen
35247b9711 Updates
svn path=/trunk/; revision=5673
2007-08-04 01:52:27 +00:00
Matthias Clasen
3e21d19bdf Bump version to 2.14.0
svn path=/trunk/; revision=5672
2007-08-04 01:09:05 +00:00
Matthias Clasen
1331663939 Revert the J handling change
svn path=/trunk/; revision=5671
2007-08-04 00:38:12 +00:00
Matthias Clasen
daa4a93583 Fix a C99ism
svn path=/trunk/; revision=5670
2007-08-03 18:13:56 +00:00
Matthias Clasen
d9ef72e4e9 Handle J changes in the pattern correctly. (#444765, Yevgen Muntyan)
2007-08-03  Matthias Clasen  <mclasen@redhat.com>

        * glib/gregex.c: Handle J changes in the pattern
        correctly.  (#444765, Yevgen Muntyan)



svn path=/trunk/; revision=5669
2007-08-03 18:07:55 +00:00
Pramod Raghavendra
ab1cb9b309 Added Kannada (kn) to ALL_LINGUAS
svn path=/trunk/; revision=5667
2007-08-03 08:35:02 +00:00
Tor Lillqvist
8c5493f019 Update so it applies again.
2007-08-01  Tor Lillqvist  <tml@novell.com>

	* glib/update-pcre/notdll.patch: Update so it applies again.

	* glib/pcre/pcre.h: Corresponding change.


svn path=/trunk/; revision=5662
2007-08-01 09:57:17 +00:00
Tor Lillqvist
75f974d1d9 Drop leftover use of a union.
2007-08-01  Tor Lillqvist  <tml@novell.com>

	* glib/gutils.c (get_special_folder): Drop leftover use of a
	union.


svn path=/trunk/; revision=5661
2007-08-01 09:49:02 +00:00
Tor Lillqvist
164f21f66e Update to match what configure produces.
2007-08-01  Tor Lillqvist  <tml@novell.com>

	* glibconfig.h.win32.in: Update to match what configure produces.


svn path=/trunk/; revision=5660
2007-08-01 09:46:08 +00:00
Matthias Clasen
d966e93faf Update to PCRE 7.2
svn path=/trunk/; revision=5659
2007-07-31 17:22:56 +00:00
Matthias Clasen
4067475919 Fix some glitches
svn path=/trunk/; revision=5658
2007-07-31 17:14:12 +00:00
Matthias Clasen
9b4f6314dd remove debug spew
svn path=/trunk/; revision=5657
2007-07-31 17:04:10 +00:00
Matthias Clasen
bda8d80b6d Documentation cleanups
svn path=/trunk/; revision=5652
2007-07-22 04:14:54 +00:00
Alexander Larsson
018edf5e0f Add goffset type (64bit file size) Add G_MAXSSIZE and G_MINSSIZE
2007-07-20  Alexander Larsson  <alexl@redhat.com>

        * configure.in:
	Add goffset type (64bit file size)
	Add G_MAXSSIZE and G_MINSSIZE


svn path=/trunk/; revision=5647
2007-07-20 16:41:47 +00:00
Matthias Clasen
6031eed482 Fix the build
svn path=/trunk/; revision=5645
2007-07-20 16:37:57 +00:00
Behdad Esfahbod
613b489b6b Make g_unichar_combining_class() public. (#453998)
2007-07-19  Behdad Esfahbod  <behdad@gnome.org>

        * glib/glib.symbols:
        * glib/gunicode.h:
        * glib/gunicodeprivate.h:
        * glib/gunidecomp.c (g_unichar_combining_class):
        * glib/guniprop.c (has_more_above):
        Make g_unichar_combining_class() public. (#453998)


svn path=/trunk/; revision=5644
2007-07-19 13:46:05 +00:00
Tim Janik
95e5ffb695 more atomic ops pointer cast fixes. this time it'll work with atomic op
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.



svn path=/trunk/; revision=5638
2007-07-12 23:03:06 +00:00
Tim Janik
b1e888b60e fixed missing pointer casts when using atomic ops.
Fri Jul 13 00:50:40 2007  Tim Janik  <timj@imendio.com>

        * glib/gthread.[hc]: fixed missing pointer casts when using atomic ops.



svn path=/trunk/; revision=5637
2007-07-12 22:51:56 +00:00
Matthias Clasen
7bfc2b8a92 Bump version
svn path=/trunk/; revision=5636
2007-07-12 17:55:02 +00:00
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
Matthias Clasen
f69d1b7439 2.13.3
svn path=/trunk/; revision=5531
2007-06-04 15:40:33 +00:00
Matthias Clasen
29e8e7850e Updates
svn path=/trunk/; revision=5529
2007-06-04 15:02:29 +00:00
Matthias Clasen
d154485bc7 Add support for a number of special directories, as defined by the
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().


svn path=/trunk/; revision=5528
2007-06-04 14:54:49 +00:00
Yevgen Muntyan
1db61c07d2 fixed g_regex_fetch_named* for cases when (?J) is used inside a pattern
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.


svn path=/trunk/; revision=5526
2007-06-03 06:05:23 +00:00
Matthias Clasen
318b4ce486 Updates
svn path=/trunk/; revision=5525
2007-06-03 05:52:51 +00:00
Yevgen Muntyan
904c42896f New functions: g_regex_ref(), g_regex_unref() which replaces
2007-06-03  Yevgen Muntyan  <muntyan@tamu.edu>

	* 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.


svn path=/trunk/; revision=5524
2007-06-03 05:48:17 +00:00
Matthias Clasen
458c58ae43 Fix a typo
svn path=/trunk/; revision=5523
2007-05-31 23:23:37 +00:00
Dan Winship
90320fba4f add defines for desktop file handling. #339225, original patch from
* glib/gkeyfile.h: add defines for desktop file handling. #339225,
	original patch from Vincent Untz.

svn path=/trunk/; revision=5521
2007-05-30 14:25:34 +00:00
Cody Russell
92ebd4eac0 Fix a sed script that doesn't correctly detect i586-mingw32-gcc-3.4
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)


svn path=/trunk/; revision=5520
2007-05-30 02:45:22 +00:00
Marco Barisione
0fc6c7288a Fix g_regex_fetch_named() and g_regex_fetch_named_pos() when
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)

svn path=/trunk/; revision=5518
2007-05-29 09:32:34 +00:00
Behdad Esfahbod
a2f7c5d631 Update to Markus Kuhn's updated wcwidth for Unicode 5.0.
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.


svn path=/trunk/; revision=5515
2007-05-25 17:15:28 +00:00
Matthias Clasen
325a6df834 Bump version
svn path=/trunk/; revision=5513
2007-05-23 04:35:14 +00:00
Matthias Clasen
aa088c4072 2.13.2
svn path=/trunk/; revision=5511
2007-05-23 04:30:07 +00:00
Matthias Clasen
afdc9e98e0 Updates
svn path=/trunk/; revision=5510
2007-05-23 02:30:05 +00:00
Matthias Clasen
d4622da675 Updates
svn path=/trunk/; revision=5509
2007-05-23 02:26:39 +00:00
Matthias Clasen
8ab346fc86 Fix visibility checks
svn path=/trunk/; revision=5504
2007-05-18 14:04:27 +00:00
Matthias Clasen
4ebbb74b98 Fix attribution
svn path=/trunk/; revision=5503
2007-05-18 13:30:42 +00:00
Michael Natterer
47e96a0c58 Don't let PERL_PATH be ''. (#356769, Joseph Sacco)
2007-05-18  Michael Natterer  <mitch@imendio.com>

        * configure.in: Don't let PERL_PATH be ''.  (#356769, Joseph Sacco)



svn path=/trunk/; revision=5502
2007-05-18 04:22:46 +00:00
Michael Natterer
1f9e7cf36b hotfix: revert last change to fix the build on OS X.
2007-05-17  Michael Natterer  <mitch@imendio.com>

	* configure.in: hotfix: revert last change to fix the build on OS X.


svn path=/trunk/; revision=5501
2007-05-17 19:29:57 +00:00
Matthias Clasen
d5b622fcc4 Fix a doc typo. (#439232, Vincent Untz)
2007-05-17  Matthias Clasen  <mclasen@redhat.com>

        * glib/goption.c (g_option_context_set_translate_func): Fix
        a doc typo.  (#439232, Vincent Untz)


svn path=/trunk/; revision=5500
2007-05-17 17:43:07 +00:00
Matthias Clasen
793da74d00 Move the compiler-dependency in the G_GNUC_INTERNAL definition from
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)


svn path=/trunk/; revision=5497
2007-05-17 16:36:53 +00:00
Matthias Clasen
a061009f52 Make g_slice_debug_tree_statistics() debug-only functionality again.
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.


svn path=/trunk/; revision=5492
2007-05-15 03:32:29 +00:00
Christian Persch
15d995bc79 Improve g_strerror and g_strsignal docs. Bug #438293.
2007-05-14  Christian Persch  <chpe@gnome.org>

	* docs/reference/glib/tmpl/string_utils.sgml: Improve g_strerror and
	g_strsignal docs. Bug #438293.

svn path=/trunk/; revision=5491
2007-05-14 17:14:11 +00:00
Tor Lillqvist
20d47d6f9b Drop the pipe() macro. Defining macros outside of its namespace that look
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().


svn path=/trunk/; revision=5490
2007-05-13 20:46:59 +00:00
Matthias Clasen
8f88ba6ffa Allow G_OPTION_ARG_CALLBACK for G_OPTION_REMAINING. (#437297, Dave Benson)
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.



svn path=/trunk/; revision=5487
2007-05-11 18:53:57 +00:00
Dan Winship
4b6a5ee2e0 Document the error return values rather than calling them undefined.
* 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.

svn path=/trunk/; revision=5484
2007-05-04 19:14:47 +00:00
Behdad Esfahbod
f2cfe19d15 Oops.
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.


svn path=/trunk/; revision=5483
2007-05-03 23:42:41 +00:00
Matthias Clasen
1650fd46c0 Bump version
svn path=/trunk/; revision=5480
2007-05-03 05:11:38 +00:00
Matthias Clasen
4d996274a3 2.13.1
svn path=/trunk/; revision=5478
2007-05-03 05:09:20 +00:00
Matthias Clasen
9d3c408fbe Stop unused threads before the last test, to make the test terminate
* tests/threadpool-test.c: Stop unused threads before
        the last test, to make the test terminate reliably.



svn path=/trunk/; revision=5477
2007-05-03 04:48:10 +00:00
Matthias Clasen
36917dbee3 Updates
svn path=/trunk/; revision=5476
2007-05-03 02:45:02 +00:00
Marco Barisione
850ad7e494 Made more clear that the string passed to the match functions cannot be
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.

svn path=/trunk/; revision=5474
2007-05-02 10:39:23 +00:00
Matthias Clasen
88651f758b Add g_regex_get_max_backref() and g_regex_get_capture_count(). (#419371,
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)


svn path=/trunk/; revision=5469
2007-04-30 16:37:38 +00:00
Matthias Clasen
a793051fda Split GRegex into GRegex and GMatchInfo. (#419368, 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.


svn path=/trunk/; revision=5468
2007-04-30 16:02:26 +00:00
Chris Wilson
3dd3293d87 Include the gshell.h header file (to define g_shell_[un]quote) and correct
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.


svn path=/trunk/; revision=5467
2007-04-30 11:30:47 +00:00
Emmanuele Bassi
788b109b39 Quote the passed command line...
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)

svn path=/trunk/; revision=5466
2007-04-29 11:48:40 +00:00
Matthias Clasen
94b419c3e0 small cleanup
svn path=/trunk/; revision=5465
2007-04-27 22:37:49 +00:00
Chris Wilson
7919d52cd6 Remove trailing comma at end of enumerator list.
2007-04-27  Chris Wilson  <chris@chris-wilson.co.uk>

    * glib/gregex.h: Remove trailing comma at end of enumerator list.


svn path=/trunk/; revision=5464
2007-04-27 17:43:01 +00:00
Tor Lillqvist
5153ea94b0 Document that the mode argument is ignored on Windows (g_stat): Document
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.


svn path=/trunk/; revision=5463
2007-04-26 23:24:06 +00:00
Paolo Borelli
b20bb4bb68 typo
svn path=/trunk/; revision=5461
2007-04-25 18:44:53 +00:00
Paolo Borellki
ab1a2d5d65 small cleanup. (#433387)
2007-04-25  Paolo Borellki  <pborelli@katamail.com>

	* glib/gstrfuncs.c (g_strsplit): small cleanup. (#433387)


svn path=/trunk/; revision=5460
2007-04-25 18:43:44 +00:00
Michael Natterer
a5aebabd2d also clear the NOCOPY_CONTENTS flag when replacing NULL with the empty
2007-04-25  Michael Natterer  <mitch@imendio.com>

	* gparamspecs.c (param_string_validate): also clear the
	NOCOPY_CONTENTS flag when replacing NULL with the empty string.


svn path=/trunk/; revision=5458
2007-04-25 08:48:46 +00:00
Matthias Clasen
ba2dc0c2b2 New function to get the formatted help string. (#336089, Dom Lachowicz)
2007-04-24  Matthias Clasen  <mclasen@redhat.com>

        * glib/glib.symbols:
        * glib/goption.h:
        * glib/goption.c (g_option_context_get_help): New function to
        get the formatted help string.  (#336089, Dom Lachowicz)



svn path=/trunk/; revision=5456
2007-04-25 03:53:30 +00:00
Michael Natterer
325bd373d4 don't free or modify static strings, dup them when needed and clear the
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.


svn path=/trunk/; revision=5454
2007-04-24 13:36:58 +00:00
William Jon McCann
fc161a7058 Add g_key_file_load_from_dirs for looking through a search path for a
2007-04-19  William Jon McCann  <mccann@jhu.edu>

	* glib/gkeyfile.[ch]: (find_file_in_data_dirs),
	(g_key_file_load_from_dirs), (g_key_file_load_from_data_dirs):
	Add g_key_file_load_from_dirs for looking through a search
	path for a key-file. (#355334)


svn path=/trunk/; revision=5453
2007-04-19 20:48:22 +00:00
Tor Lillqvist
420262f515 Makefile.am Add the references to build back.
2007-04-15  Tor Lillqvist  <tml@novell.com>

	* Makefile.am
	* configure: Add the references to build back.


svn path=/trunk/; revision=5451
2007-04-15 11:44:41 +00:00
Tor Lillqvist
a227b85b73 Include the build module using the svn:externals mechanism.
2007-04-15  Tor Lillqvist  <tml@novell.com>

	* build: Include the build module using the svn:externals
	mechanism.


svn path=/trunk/; revision=5450
2007-04-15 11:30:43 +00:00
Matthias Clasen
613d81bcce Fix a doc typo. (#427285, Jochen Baier)
2007-04-11  Matthias Clasen  <mclasen@redhat.com>

        * glib/gspawn.c (g_spawn_async): Fix a doc typo.  (#427285,
        Jochen Baier)



svn path=/trunk/; revision=5446
2007-04-11 13:54:45 +00:00
Emmanuele Bassi
db8642a56c Add g_hash_table_get_keys() and g_hash_table_get_values(), API to retrieve
2007-04-11  Emmanuele Bassi  <ebassi@gnome.org>

	* glib/ghash.[ch]: Add g_hash_table_get_keys() and
	g_hash_table_get_values(), API to retrieve the keys
	and values inside an hash table in list form. (#413133)

	* glib/glib.symbols: Update symbols.

	* tests/hash-test.c: Exercise newly added functions.

svn path=/trunk/; revision=5444
2007-04-11 13:09:38 +00:00
Matthias Clasen
e542f521ef Use CFLAGS/LDFLAGS in addition to PCRE_CFLAGS/PCRE_LIBS when checking
2007-04-11  Matthias Clasen  <mclasen@redhat.com>

        * configure.in: Use CFLAGS/LDFLAGS in addition to
        PCRE_CFLAGS/PCRE_LIBS when checking system PCRE.  (#421607,
        Paul Jarc)



svn path=/trunk/; revision=5443
2007-04-11 12:39:05 +00:00
Emmanuele Bassi
9591e90b0a Remove old comment and forward declaration of struct tm: gdate.h includes
2007-03-27  Emmanuele Bassi  <ebassi@gnome.org>

	* glib/gdate.h: Remove old comment and forward declaration of
	struct tm: gdate.h includes time.h now.

svn path=/trunk/; revision=5438
2007-03-27 15:16:18 +00:00
Matthias Clasen
ab74710386 Handle missing $RANDOM
svn path=/trunk/; revision=5435
2007-03-23 06:27:58 +00:00
Matthias Clasen
7296a34571 Fix corner-cases of upper/lowercase conversion. (#418217, Denis Jacquerye)
2007-03-22  Matthias Clasen  <mclasen@redhat.com> 

        * glib/guniprop.c: Fix corner-cases of upper/lowercase conversion.
        (#418217, Denis Jacquerye)



svn path=/trunk/; revision=5433
2007-03-23 00:17:10 +00:00
Chris Wilson
033e54e8a4 Track whether the last key=value pair in a group is a blank line and
2007-03-22  Chris Wilson  <chris@chris-wilson.co.uk>

	* glib/gkeyfile.c: Track whether the last key=value pair in a group
	is a blank line and during to_data() only insert a new blank line
	betweens group in its absence. This allows the beautification of the
	GKeyFile and prevents newlines being inserted indefinitely. (#420686)

	* tests/keyfile-test.c (test_reload_idempotency): Test that after a 
	single beautification pass, g_key_file_to_data() does not alter its
	input data.


svn path=/trunk/; revision=5431
2007-03-22 08:58:59 +00:00
Matthias Clasen
50abe4cb2e Fix #419900
svn path=/trunk/; revision=5430
2007-03-21 16:49:35 +00:00
Paolo Borelli
e51854dd5d remove unneeded checks.
2007-03-19  Paolo Borelli  <pborelli@katamail.com>

	* glib/gutf8.c (fast_validate_len): remove unneeded checks.


svn path=/trunk/; revision=5427
2007-03-18 23:20:35 +00:00
Matthias Clasen
c1025d6be4 Cosmetic fixes
svn path=/trunk/; revision=5426
2007-03-18 05:18:12 +00:00
Marco Barisione
e0bdb6a073 Add forgotten files
2007-03-17  Marco Barisione <marco@barisione.org>

	* glib/update-pcre/table-reduction.patch:
	* glib/update-pcre/make_utt.py:
	* glib/update-pcre/utt.patch: Add forgotten files

	* glib/update-pcre/update.sh: Call python directly instead of relying
	on shebang. Also copy the changes from glib/pcre/makefile.msc to this
	file

svn path=/trunk/; revision=5425
2007-03-17 14:25:14 +00:00
Marco Barisione
2920c533b8 Removed a conflict delimiter (">>>>>>> .r5422")
svn path=/trunk/; revision=5424
2007-03-17 14:01:24 +00:00
Hans Breuer
770b29bad2 define PCRE_STATIC to reflect the inclusion of pcre as LIB, not
2007-03-17  Hans Breuer  <hans@breuer.org>

	* glib/makefile.msc.in glib/pcre/makefile.msc 
	  glib/update-pcre/update.sh : define PCRE_STATIC to reflect the 
	inclusion of pcre as LIB, not stand-alone DLL. Also set NEWLINE=-1
	to match any newline by default, use of ../../build/win32/make.msc

	* glib/gregex.h : minimal includes of <glib/*.H> instead of <glib.h>

	* glib/gnulib/makefile.msc : make use of ../../build/win32/make.msc

	* tests/regex-test.c(verbose): don't pass a string containing '%' 
	as first parameter to g_print ()
	(test_match) : for the unexpected case output pattern and string
	escaped

	* tests/child-test.c tests/slice-color.c : fix c99ism
	* tests/slice-test.c : fix c99ism and gccism
	* tests/mapping-test.c tests/base-64-tests.c : don't 
	#include <unistd.h> unconditionally
	* tests/option-test.c : use G_GINT64_CONSTANT() instead of direct LL

	* tests/makefile.msc.in : more tests build


svn path=/trunk/; revision=5423
2007-03-17 09:49:09 +00:00
Matthias Clasen
45b2988d05 Don't export the consistency check function
svn path=/trunk/; revision=5422
2007-03-17 04:25:40 +00:00
Matthias Clasen
3dd8e2daa1 Bump version
svn path=/trunk/; revision=5421
2007-03-16 22:15:03 +00:00
Matthias Clasen
1cb4af3e96 2.13.0
svn path=/trunk/; revision=5419
2007-03-16 22:11:15 +00:00
Matthias Clasen
c182fecfa1 Warn if the input is too short. (#418862, Halton Huo)
2007-03-16  Matthias Clasen  <mclasen@redhat.com>

        * glib/gbase64.c (g_base64_decode): Warn if the input
        is too short.  (#418862, Halton Huo)



svn path=/trunk/; revision=5417
2007-03-16 19:50:14 +00:00
Tim Janik
bcb496ee58 reverted premature commit which broke GScanner ABI and API, #415323.
Fri Mar 16 11:24:51 2007  Tim Janik  <timj@imendio.com>

        * glib/gscanner.[hc]: reverted premature commit which broke
        GScanner ABI and API, #415323.



svn path=/trunk/; revision=5415
2007-03-16 10:28:13 +00:00
Chris Wilson
003dbec6c8 Convert to GSlice and check for redundant clears. (#418637)
2007-03-16  Chris Wilson  <chris@chris-wilson.co.uk>

	* glib/gkeyfile.c: Convert to GSlice and check for redundant
	clears. (#418637)


svn path=/trunk/; revision=5413
2007-03-16 01:16:56 +00:00
Matthias Clasen
a071ec0404 Fix a typo in the last commit. (#415323, Richard Hult)
2007-03-15  Matthias Clasen  <mclasen@redhat.com>

        * glib/gscanner.c (g_scanner_get_token_ll): Fix a typo
        in the last commit.  (#415323, Richard Hult)



svn path=/trunk/; revision=5412
2007-03-15 20:41:12 +00:00
Matthias Clasen
b0d8ba010f fix typo
svn path=/trunk/; revision=5411
2007-03-15 18:18:08 +00:00
Tor Lillqvist
b91d083561 Add -I$(top_srcdir)/glib so that gregex.h finds <glib.h>.
2007-03-15  Tor Lillqvist  <tml@novell.com>

	* glib/gnulib/Makefile.am (INCLUDES): Add -I$(top_srcdir)/glib so
	that gregex.h finds <glib.h>.

	* glib/update-pcre/Makefille.am-1: Add -DGLIB_COMPILATION so that
	we don't think g_ascii_table is dllimport.

	* glib/pcre/Makefile.am: Corresponding change.

	* glib/update-pcre/notdll.patch: New file. Drop
	dllimport/dllexport magic for the pcre symbols.

	* glib/update-pcre/Makefile.am: Dist it.

	* glib/update-pcre/update.sh: Apply notdll.patch.

	* glib/pcre/pcre.h: Corresponding change.

2007-03-15  Tor Lillqvist  <tml@novell.com>

	* glib/gtypes.h: Add comment to avoid misleading people with the
	large number of digits in G_PI etc. (#404338)


svn path=/trunk/; revision=5410
2007-03-15 15:17:17 +00:00
Tor Lillqvist
851c7067aa Update to match what configure produces.
2007-03-15  Tor Lillqvist  <tml@novell.com>

	* config.h.win32.in: Update to match what configure produces.


svn path=/trunk/; revision=5409
2007-03-15 14:41:24 +00:00
Marco Barisione
0196d63975 Add GRegex for regular expression matching. (#50075)
2007-03-15  Marco Barisione <marco@barisione.org>

	Add GRegex for regular expression matching.  (#50075)

	* configure.in: Handle GRegex compilation.

	* glib/gregex.c:
	* glib/gregex.h: Code for GRegex.

	* glib/Makefile.am:
	* glib/makefile.msc.in: Updated makefiles.

	* glib/pcre/*: Internal copy of PCRE.

	* glib/update-pcre/*: Stuff to automatically update the internal PCRE
	to a newer version.

	* tests/regex-test.c:
	* tests/Makefile.am:
	* tests/makefile.msc.in: Add tests for GRegex.

svn path=/trunk/; revision=5408
2007-03-15 13:01:31 +00:00
Chris Wilson
af8671792d Replace a g_slist_prepend/g_slist_remove pair with an on-stack link and
2007-03-15  Chris Wilson  <chris@chris-wilson.co.uk>

	* glib/gmain.c (g_main_dispatch): Replace a
	g_slist_prepend/g_slist_remove pair with an on-stack link
	and open coding. (#416094)


svn path=/trunk/; revision=5407
2007-03-15 08:47:28 +00:00
Matthias Clasen
57c2e6f751 Some optimizations, use a lookup table for character classes, pre-allocate
2007-03-15  Matthias Clasen  <mclasen@redhat.com>

        * glib/gscanner.[hc]: Some optimizations, use a lookup
        table for character classes, pre-allocate GStrings with
        reasonable sizes.  (#415323, Charlie Brej)



svn path=/trunk/; revision=5405
2007-03-15 04:54:03 +00:00
Matthias Clasen
b2eed3f16c Fix a small typo. (#417947, Bobby Jack)
2007-03-14  Matthias Clasen  <mclasen@redhat.com>

        * glib/gkeyfile.c (g_key_file_get_double): Fix a
        small typo.  (#417947, Bobby Jack)



svn path=/trunk/; revision=5404
2007-03-15 03:08:08 +00:00
Matthias Clasen
2a867b1fca Return negative values. (#416062)
2007-03-08  Matthias Clasen  <mclasen@redhat.com>

        * glib/gstrfuncs.c (g_strtoll): Return negative values.
        (#416062)

        * tests/strtoll-test.c: Add more testcases.



svn path=/trunk/; revision=5390
2007-03-09 03:40:43 +00:00
Matthias Clasen
836cac1512 Clarify docs. (#364026, Bastian Nocera)
2007-03-06  Matthias Clasen  <mclasen@redhat.com>

        * glib/gstring.c (g_str_equal): Clarify docs.  (#364026,
        Bastian Nocera)



svn path=/trunk/; revision=5379
2007-03-06 19:27:20 +00:00
Matthew Barnes
cc3e80c26a Add G_QUEUE_INIT, g_queue_init(), and g_queue_clear() to better support
2007-03-06  Matthew Barnes  <mbarnes@redhat.com>

	* glib/gqueue.h:
	* glib/gqueue.c: Add G_QUEUE_INIT, g_queue_init(), and
	g_queue_clear() to better support statically allocated
	queues.  (#413244)


svn path=/trunk/; revision=5378
2007-03-06 18:43:10 +00:00
Matthias Clasen
2a6150bc06 Remove a NULL check that didn't do any good. (#360904, Paolo Borelli)
2007-03-06  Matthias Clasen  <mclasen@redhat.com>

        * glib/gkeyfile.c (g_key_file_parse_value_as_boolean):
        Remove a NULL check that didn't do any good.  (#360904,
        Paolo Borelli)



svn path=/trunk/; revision=5375
2007-03-06 07:22:04 +00:00
Matthias Clasen
5eaddd21bb Report more accurate position for invalid UTF-8. (#350802, Simon Budig)
2007-03-06  Matthias Clasen  <mclasen@redhat.com>

        * glib/gmarkup.c (g_markup_parse_context_parse): Report
        more accurate position for invalid UTF-8.  (#350802,
        Simon Budig)



svn path=/trunk/; revision=5373
2007-03-06 07:12:50 +00:00
Matthias Clasen
5ae803a47f Add NULL checks to the base64 functions that take pointers. (#399611,
2007-03-06  Matthias Clasen  <mclasen@redhat.com>

        * glib/gbase64.c: Add NULL checks to the base64
        functions that take pointers.  (#399611, Martyn Russell)


svn path=/trunk/; revision=5371
2007-03-06 05:36:57 +00:00
Matthias Clasen
04b0520e09 Work with Solaris gettext (#341988, Laszlo Peter)
2007-03-06  Matthias Clasen  <mclasen@redhat.com>

        Work with Solaris gettext (#341988, Laszlo Peter)

        * m4macros/glib-gettext.m4: Make GLIB_WITH_NLS define
        MSGFMT_OPTS if msgfmt supports -c.

        * po/Makefile.in.in: Use MSGFMT_OPTS when calling
        msgfmt.


svn path=/trunk/; revision=5369
2007-03-06 05:23:26 +00:00
Matthias Clasen
085042c6d7 Apply a patch by Loïc Minier to fix building with -Wl,-z,defs. (#149144)
2007-03-06  Matthias Clasen  <mclasen@Redhat.com>

        * tests/Makefile.am: Apply a patch by Loïc Minier
        to fix building with -Wl,-z,defs.  (#149144)



svn path=/trunk/; revision=5367
2007-03-06 05:01:45 +00:00
Thierry Randrianiriana
addaf829f8 Added Malagasy translation. Added Malagasy 'mg' to ALL_LINGUAS
* po/mg.po: Added Malagasy translation.
 * configure.in: Added Malagasy 'mg' to ALL_LINGUAS

svn path=/trunk/; revision=5362
2007-03-04 05:36:20 +00:00
Ihar Hrachyshka
3591ad23e2 Added Belarusian Latin transtaion.
svn path=/trunk/; revision=5353
2007-03-01 19:31:16 +00:00
Tor Lillqvist
13e2070a9a New Win32-only function. Use the wide character Win32 API to do the work
2007-02-17  Tor Lillqvist  <tml@novell.com>

	* glib/gdate.c (win32_strftime_helper): New Win32-only
	function. Use the wide character Win32 API to do the work of
	strftime(): GetThreadLocale(), GetLocaleInfoW(), GetDateFormatW()
	and GetTimeFormatW().
	(g_date_strftime): On Windows use win32_strftime_helper()
	instead of strftime() to avoid codepage issues with strftime().
	Unfortunately using wcsftime() would not help either. (#404832)


svn path=/trunk/; revision=5339
2007-02-17 08:51:12 +00:00
Soren Sandmann
f13d070e20 For move, test moving between two sequences. Add test for swap.
2007-02-16  Soren Sandmann <sandmann@redhat.com>

	* tests/sequence-test.c: For move, test moving between two
	sequences. Add test for swap.

	* glib/gsequence.c: Replace splay tree with a treap.
	(check_node): Add checks for the treap invariants.


svn path=/trunk/; revision=5337
2007-02-16 06:00:08 +00:00
Hans Breuer
bdca945da3 added gsequence.obj
2007-02-10  Hans Breuer  <hans@breuer.org>

	* glib/makefile.msc.in : added gsequence.obj


svn path=/trunk/; revision=5333
2007-02-10 18:30:40 +00:00
Søren Sandmann
49eaf7a69b Remove assertion. Return TRUE if the iter doesn't have a parent. Fix
Fri Feb  9 17:46:18 2007  Søren Sandmann  <sandmann@redhat.com>

       * glib/gsequence.c (g_sequence_get_end_iter): Remove assertion.
       * glib/gsequence.c (is_end): Return TRUE if the iter doesn't have
       a parent.
       * glib/gsequence.c: Fix grammar of comment. 
       * glib/gsequence.c (node_update_fields): Use a temporary variable
       for the n_nodes.



svn path=/trunk/; revision=5331
2007-02-09 22:53:42 +00:00
Soren Sandmann
5fa8f600f5 Force an arbitrary order on otherwise identical items.
2007-02-07  Soren Sandmann <sandmann@daimi.au.dk>

	* tests/sequence-test.c (compare_items): Force an arbitrary order
	on otherwise identical items. 

	* glib/gsequence.c: Add comment discussing splay trees vs. other trees. 
	* glib/gsequence.c (is_end): Add fast path for the common case
	when the node is not actually the end node.


svn path=/trunk/; revision=5328
2007-02-08 02:22:52 +00:00
Soren Sandmann
840d9bab26 Don't prohibit access until after the g_sequence_move_range() call. Bug
2007-02-05  Soren Sandmann <sandmann@daimi.au.dk>

	* glib/gsequence.c (g_sequence_sort_iter): Don't prohibit access
	until after the g_sequence_move_range() call.  Bug 404759,
	Christian Persch.

       * tests/sequence-test.c: Formatting fix.


svn path=/trunk/; revision=5325
2007-02-06 04:49:41 +00:00
Soren Sandmann
576a5d4127 Add a new 'real_sequence' field. (g_sequence_new): Initialize
2007-02-03  Soren Sandmann <sandmann@daimi.au.dk>

        * glib/gsequence.c (struct _GSequence): Add a new 'real_sequence'
        field.
        (g_sequence_new): Initialize real_sequence to the sequence
        (g_sequence_sort_iter): Set real_sequence of the temporary
        sequence to the real sequence.
        (g_sequence_sort_changed_iter): Same
        (g_sequence_insert_sorted_iter): Same
        (g_sequence_search_iter): Same
        (g_sequence_iter_get_sequence): Return real_sequence

        * tests/sequence-test.c (compare_iters): Insert assertions that
        the iters point to the sequence being manipulated.


svn path=/trunk/; revision=5323
2007-02-04 03:39:57 +00:00
Soren Sandmann
674c4df418 New files implementing GSequence, a list implemented using a binary tree.
2007-02-03  Soren Sandmann <sandmann@daimi.au.dk>

	* glib/gsequence.[ch]: New files implementing GSequence, a list
	implemented using a binary tree.
	* glib/glib.h, glib/glib.symbols: Update for GSequence.
	* docs/reference: Add documentation for GSequence
	* tests: Add sequence-test.c, a thorough test of all of 
	the GSequence API.


svn path=/trunk/; revision=5322
2007-02-03 23:24:50 +00:00
Matthias Clasen
6a6d92a218 Don't make ABI depend on G_ENABLE_DEBUG, just add an empty
2007-01-30  Matthias Clasen <mclasen@redhat.com>

        * glib/glib.symbols:
        * glib/gslice.h:
        * glib/gslice.c: Don't make ABI depend on G_ENABLE_DEBUG,
        just add an empty g_slice_debug_tree_statistics () implementation
        in the !G_ENABLE_DEBUG case.



svn path=/trunk/; revision=5318
2007-01-30 18:12:28 +00:00
Matthias Clasen
df3dd538e5 Define G_GNUC_INTERNAL for Sun Studio as __hidden. (#342981, Brian
2007-01-26  Matthias Clasen <mclasen@redhat.com>

        * configure.in: Define G_GNUC_INTERNAL for Sun Studio
        as __hidden.  (#342981, Brian Cameron)

        * glib/gconvert.c:
        * glib/gutf8.c: Move G_GNUC_INTERNAL uses to the right
        spot.

2

svn path=/trunk/; revision=5317
2007-01-27 03:34:48 +00:00
Matthias Clasen
f90d6d821d Make some structs which are used only once non-static.
2007-01-26  Matthias Clasen <mclasen@redhat.com>

        * gmem.c:
        * gslice.c:
        * gmessages.c:
        * gutils.c: Make some structs which are used only once
        non-static.

svn path=/trunk/; revision=5316
2007-01-26 20:59:54 +00:00
Benjamin Otte
aa8150599d Clarify the documentation + regarding overflows (wording by Jan Schmidt)
* glib/gprintf.c (g_sprintf): Clarify the documentation
+       regarding overflows (wording by Jan Schmidt)

svn path=/trunk/; revision=5315
2007-01-24 16:23:23 +00:00
Roozbeh Pournader
16531a5fbd Remove mention of no-longer-existing PATCH keyword in bugzilla. (#396899)
2007-01-23  Roozbeh Pournader  <roozbeh@farsiweb.info>

	* README: Remove mention of no-longer-existing PATCH
	keyword in bugzilla. (#396899)

svn path=/trunk/; revision=5313
2007-01-24 12:55:34 +00:00
Matthias Clasen
ffabd954ee Clarify the behaviour is max_len is zero. (#400044, Benjamin Dauvergne)
2007-01-23  Matthias Clasen  <mclasen@redhat.com>

        * glib/gutf8.c (g_utf8_get_char_validated): Clarify
        the behaviour is max_len is zero.  (#400044,
        Benjamin Dauvergne)



svn path=/trunk/; revision=5311
2007-01-24 04:38:57 +00:00
Matthias Clasen
3ecf6f3506 Use bitwise & when operating on flags. (#399971, Jon Oberheide)
2007-01-23  Matthias Clasen  <mclasen@redhat.com>

        * glib/goption.c (print_help): Use bitwise &
        when operating on flags.  (#399971, Jon Oberheide)



svn path=/trunk/; revision=5308
2007-01-24 04:02:33 +00:00
Matthias Clasen
912027f0df Some file list updates (#398069, Owen Taylor)
2007-01-19  Matthias Clasen  <mclasen@redhat.com>

        Some file list updates (#398069, Owen Taylor)

        * docs/Changes-2.0.txt
        * docs/reference/README.cvs-commits
        * glib.spec.in: Remove obsolete files

        * tests/Makefile.am:
        * glib/libcharset/Makefile.am:
        * gobject/Makefile.am:
        * Makefile.am: Add some missing files to EXTRA_DIST

        * tests/timeloop-basic.c: Make it build
        * HACKING: Small updates


svn path=/trunk/; revision=5302
2007-01-19 15:50:30 +00:00
Matthias Clasen
28dc240ebf Revert accidental commit
svn path=/trunk/; revision=5301
2007-01-19 14:54:57 +00:00
Matthias Clasen
5eacb58af5 Fix a typo. (#398203, Owen Taylor)
2007-01-18  Matthias Clasen  <mclasen@redhat.com>

        * glib/gdate.c (g_date_set_time): Fix a typo.  (#398203,
        Owen Taylor)



svn path=/trunk/; revision=5297
2007-01-19 04:10:42 +00:00
Tor Lillqvist
98a5ddc4c8 config.h.win32.in glib/galloca.h glib/gbacktrace.h glib/gwin32.c
2007-01-17  Tor Lillqvist  <tml@novell.com>

	* config.h.win32.in
	* glib/galloca.h
	* glib/gbacktrace.h
	* glib/gwin32.c
	* glibconfig.h.win32.in
	* README.win32: More minor tweaks for Digital Mars
	compiler. (#346808, Serhat Sevki Dincer)


svn path=/trunk/; revision=5294
2007-01-18 19:05:21 +00:00
Tor Lillqvist
9ed02dd4f7 DLLs are always installed in "bin" with current libtool, drop unnecessary
2007-01-17  Tor Lillqvist  <tml@novell.com>

	* glib-zip.in: DLLs are always installed in "bin" with current
	libtool, drop unnecessary logic to check where they are. Include
	also the COPYING file.


svn path=/trunk/; revision=5287
2007-01-17 13:27:31 +00:00
Tor Lillqvist
21157c4d88 Use <malloc.h> also with Digital Mars compiler on Win32. (#346808, Serhat
2007-01-17  Tor Lillqvist  <tml@novell.com>

	* glib/galloca.h: Use <malloc.h> also with Digital Mars compiler
	on Win32. (#346808, Serhat Sevki Dincer)


svn path=/trunk/; revision=5285
2007-01-17 02:28:13 +00:00
Matthias Clasen
4bbde50716 Revert an accidental ABI break by moving gettime out of the
2007-01-16  Matthias Clasen  <mclasen@redhat.com>

        * glib/gthread.h:
        * glib/gthread.c:
        * glib/glib.symbols: Revert an accidental ABI break by
        moving gettime out of the GThreadFunctions struct and making
        it a separate variable.  (#397139, Joe Marcus Clarke)

        * gthread/*.c: Adapt.



svn path=/trunk/; revision=5279
2007-01-16 21:25:03 +00:00
Tor Lillqvist
098d17a4fc glib/gthread.c (gettime) GetSystemTimeAsFileTime() returns 100s of
2007-01-16  Tor Lillqvist  <tml@novell.com>

	* glib/gthread.c (gettime)
	* gthread-win32.c (g_gettime_win32_impl):
	GetSystemTimeAsFileTime() returns 100s of nanoseconds since 1601,
	so offset to Unix epoch (1970) and multiply by 100 to get
	nanoseconds which is what we want.


svn path=/trunk/; revision=5277
2007-01-16 13:57:05 +00:00
Tor Lillqvist
5d65767801 glib/gthread.c (gettime) GetSystemTimeAsFileTime() returns 100s of
2007-01-16  Tor Lillqvist  <tml@novell.com>

	* glib/gthread.c (gettime)
	* gthread-win32.c (g_gettime_win32_impl):
	GetSystemTimeAsFileTime() returns 100s of nanoseconds, so multiply
	by 100 to get nanoseconds which is what we want.


svn path=/trunk/; revision=5276
2007-01-16 10:45:58 +00:00
Tor Lillqvist
5172929d0c Fix typo.
svn path=/trunk/; revision=5272
2007-01-15 13:43:23 +00:00
Tor Lillqvist
74ab9212a0 Fix mistake in my last commit.
2007-01-15  Tor Lillqvist  <tml@novell.com>

	* glib/gmain.h (struct _GPollFD): Fix mistake in my last commit.


svn path=/trunk/; revision=5271
2007-01-15 13:41:51 +00:00
Matthias Clasen
0b11148fa3 Remove redundant NULL checks
svn path=/trunk/; revision=5264
2007-01-15 03:49:43 +00:00
Matthias Clasen
a74d6b9582 Correct the gettime calculations once more. (#395203, Chris Wilson)
2005-01-15  Matthias Clasen  <mclasen@redhat.com>

        * glib/gthread.c:
        * gthread/gthread-posix.c: Correct the gettime calculations
        once more.  (#395203, Chris Wilson)



svn path=/trunk/; revision=5262
2007-01-15 03:34:42 +00:00
Tor Lillqvist
8d9150647c Prepare for potential Win64 build: Use gint64 for the fd field on Win64,
2007-01-15  Tor Lillqvist  <tml@novell.com>

	* glib/gmain.h (struct _GPollFD): Prepare for potential Win64
	build: Use gint64 for the fd field on Win64, as we want to be able
	to store a HANDLE in it. (#395422) (Other changes will surely also
	be necessary when building on Win64, at least in gwin32.c.)


svn path=/trunk/; revision=5260
2007-01-15 02:28:01 +00:00
Tor Lillqvist
12706811c2 Mention that my last change to gwin32.c also fixes #395419.
svn path=/trunk/; revision=5258
2007-01-15 02:06:30 +00:00
Tor Lillqvist
1535446885 Simplify greatly. Instead of hardcoding a large switch statement, just ask
2007-01-15  Tor Lillqvist  <tml@novell.com>

	* glib/gwin32.c (g_win32_getlocale): Simplify greatly. Instead of
	hardcoding a large switch statement, just ask Windows for the
	ISO639 and ISO3166 codes. Tack on @Latn or @Cyrl for those
	languages which can alternatively be written in Latin or Cyrillic.


svn path=/trunk/; revision=5257
2007-01-15 01:13:57 +00:00
Matthias Clasen
38b9221961 Rework the handling of invalid keys/groups again. We are back to being
2007-01-12  Matthias Clasen  <mclasen@redhat.com>

        * glib/gkeyfile.c: Rework the handling of invalid
        keys/groups again. We are back to being liberal about
        what we accept, and only reject things that would lead
        to non-rereadable keyfiles.

        * tests/keyfile-test.c: Adapt tests.



svn path=/trunk/; revision=5254
2007-01-12 20:25:57 +00:00
Matthias Clasen
8187230ab4 Improve docs
svn path=/trunk/; revision=5251
2007-01-12 17:54:13 +00:00
Matthias Clasen
6ac483bae4 Include windows.h and fix include order. (#394258, Kazuki Iwamoto)
2007-01-12  Matthias Clasen  <mclasen@redhat.com>

        * glib/gthread.c: Include windows.h and fix
        include order. (#394258, Kazuki Iwamoto)



svn path=/trunk/; revision=5249
2007-01-12 17:31:31 +00:00
Matthias Clasen
247997afed Make G_GNUC_INTERNAL a no-op for gcc 2.95. (#329031, David Schleef, Marc
2007-01-12  Matthias Clasen  <mclasen@redhat.com>

        * configure.in: Make G_GNUC_INTERNAL a no-op for
        gcc 2.95.    (#329031, David Schleef, Marc Brockschmidt)



svn path=/trunk/; revision=5245
2007-01-12 15:17:00 +00:00
Matthias Clasen
2c7dbe9c73 Fix errors in the recently moved time calculations. (#395203, Chris
2007-01-12  Matthias Clasen  <mclasen@redhat.com>

        * gthread/gthread-posix.c:
        * glib/gtimer.c:
        * glib/gthread.c: Fix errors in the recently moved
        time calculations.  (#395203, Chris Wilson)



svn path=/trunk/; revision=5244
2007-01-12 05:55:16 +00:00
Matthias Clasen
a0c1c3b14e Actually link gthread against librt. (#394641, Marco Pesenti Gritti)
2007-01-10  Matthias Clasen  <mclasen@redhat.com>

        * configure.in: Actually link gthread against librt.
        (#394641, Marco Pesenti Gritti)



svn path=/trunk/; revision=5241
2007-01-10 13:52:04 +00:00
Matthias Clasen
b021642caf Grr, allow '*' in keys, too. (#394262)
2007-01-10  Matthias Clasen  <mclasen@redhat.com>

        * glib/gkeyfile.c (g_key_file_is_key_name): Grr, allow '*' in keys,
        too.  (#394262)



svn path=/trunk/; revision=5239
2007-01-10 13:46:45 +00:00
Behdad Esfahbod
6b6fd9bac8 Use a more optimized g_bit_storage() when gcc is available. (#371670,
2007-01-09  Behdad Esfahbod  <behdad@gnome.org>

        * glib/gutils.h: Use a more optimized g_bit_storage() when gcc is
        available.  (#371670, Daniel Elstner)


svn path=/trunk/; revision=5234
2007-01-09 19:05:36 +00:00
Matthias Clasen
cf7dcc4f38 Don't use _SC_MONOTONIC_CLOCK unless USE_CLOCK_GETTIME is defined.
2007-01-08  Matthias Clasen  <mclasen@redhat.com>

        * gthread/gthread-posix.c (g_thread_impl_init): Don't
        use _SC_MONOTONIC_CLOCK unless USE_CLOCK_GETTIME is
        defined.  (#394150)



svn path=/trunk/; revision=5230
2007-01-08 12:59:05 +00:00
Matthias Clasen
541462ab1e Don't link glib against libpthread. (#393812)
2007-01-07  Matthias Clasen  <mclasen@redhat.com>

	Don't link glib against libpthread.  (#393812)
	
	* configure.in: Link gthread against librt, not glib itself.

	* glib/gthread.h:
	* glib/gthread.c: Add a new thread function, gettime.

	* glib/gtimer.c: Use gettime instead of directly working with
	the various system interfaces.

	* gthread/gthread-impl.c:
	* gthread/gthread-posix.c:
	* gthread/gthread-win32.c: Implement gettime.
	

svn path=/trunk/; revision=5227
2007-01-08 05:13:15 +00:00
Matthias Clasen
8a688f12f0 Use PKG_PROG_PKG_CONFIG. (#392636, Yevgen Muntyan)
2007-01-07  Matthias Clasen  <mclasen@redhat.com>

        * m4macros/glib-2.0.m4: Use PKG_PROG_PKG_CONFIG.  (#392636,
        Yevgen Muntyan)



svn path=/trunk/; revision=5225
2007-01-08 04:42:31 +00:00
Tor Lillqvist
e5ef75596e Handle GIOChannels for file descriptors connected to the console
2007-01-07  Tor Lillqvist  <tml@novell.com>

	* glib/giowin32.c: Handle GIOChannels for file descriptors
	connected to the console separately. This would typically be the
	fd 0, 1, or 2 (if not redirected) in a console application. For
	such fds we don't need a separate thread, as console HANDLEs are
	waitable objects. (#359202, Michiel de Hoon)


svn path=/trunk/; revision=5222
2007-01-07 03:02:28 +00:00
Behdad Esfahbod
46dae95f4a Fix tests on x86_64.
2007-01-04  Behdad Esfahbod  <behdad@gnome.org>

        * tests/bit-test.c (builtin_bit_nth_lsf1), (builtin_bit_nth_lsf2),
        (builtin_bit_nth_msf): Fix tests on x86_64.


svn path=/trunk/; revision=5216
2007-01-05 03:31:54 +00:00
Behdad Esfahbod
61b40ad765 Add bug number to ChangeLog
svn path=/trunk/; revision=5207
2007-01-03 23:17:52 +00:00
Behdad Esfahbod
d2a9b31e61 Take zerowidth and double-width chars into consideration when computing
2007-01-03  Behdad Esfahbod  <behdad@gnome.org>

        * glib/goption.c (_g_unichar_get_width), (_g_utf8_strwidth),
        (calculate_max_length), (print_entry), (print_help): Take zerowidth
        and double-width chars into consideration when computing width of a
        string.  Also fix another bug in width computation.

        * glib/guniprop.c (g_unichar_iszerowidth): Fix typo.  It was not
        working correctly.


svn path=/trunk/; revision=5204
2007-01-03 23:05:36 +00:00
Behdad Esfahbod
a0c60a62d6 Add g_unichar_iszerowidth(). (#347645)
2007-01-03  Behdad Esfahbod  <behdad@gnome.org>

        * glib/glib.symbols:
        * glib/gunicode.h:
        * glib/guniprop.c: Add g_unichar_iszerowidth(). (#347645)


svn path=/trunk/; revision=5202
2007-01-03 20:48:24 +00:00
Behdad Esfahbod
048efdfbd5 Fix bug in g_bit_nth_lsf (#371631) and use __builtin_clzl for
2007-01-03  Behdad Esfahbod  <behdad@gnome.org>

        * glib/gutils.h: Fix bug in g_bit_nth_lsf (#371631) and use 
        __builtin_clzl for g_bit_storage if available (#371670).

        * tests/Makefile.am:
        * tests/bit-test.c: New test, to test g_bit_* operations against
        naive and builtin implementations.


svn path=/trunk/; revision=5200
2007-01-03 20:08:53 +00:00
Behdad Esfahbod
bf1b1d2711 Avoid more warnings from running libtool --config. (#391364)
2007-01-02  Behdad Esfahbod  <behdad@gnome.org>

        * configure.in: Avoid more warnings from running libtool --config.
        (#391364)


svn path=/trunk/; revision=5199
2007-01-03 18:32:04 +00:00