2478 Commits

Author SHA1 Message Date
Matthias Clasen
f6d2369fd0 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=/branches/glib-2-12/; revision=5250
2007-01-12 17:33:25 +00:00
Matthias Clasen
270190b698 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=/branches/glib-2-12/; revision=5246
2007-01-12 15:32:38 +00:00
Matthias Clasen
8055038c9c fix timer calculations
svn path=/branches/glib-2-12/; revision=5243
2007-01-12 05:50:45 +00:00
Matthias Clasen
e655808480 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=/branches/glib-2-12/; revision=5242
2007-01-10 13:53:33 +00:00
Matthias Clasen
4a95d9b0b4 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=/branches/glib-2-12/; revision=5240
2007-01-10 13:48:13 +00:00
Matthias Clasen
731af51493 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=/branches/glib-2-12/; revision=5231
2007-01-08 13:00:16 +00:00
Matthias Clasen
7f8d4c1ced 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=/branches/glib-2-12/; revision=5226
2007-01-08 04:44:06 +00:00
Behdad Esfahbod
950f715c06 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=/branches/glib-2-12/; revision=5217
2007-01-05 03:32:43 +00:00
Matthias Clasen
ee44560f35 Bump version
svn path=/branches/glib-2-12/; revision=5215
2007-01-04 23:25:53 +00:00
Matthias Clasen
10ad0a1c26 2.12.7
svn path=/branches/glib-2-12/; revision=5213
2007-01-04 23:12:11 +00:00
Behdad Esfahbod
5362abd937 Take double-width chars into consideration when computing width of a
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 
        double-width chars into consideration when computing width of a
        string.  Also fix another bug in width computation. (#346955)


svn path=/branches/glib-2-12/; revision=5206
2007-01-03 23:17:21 +00:00
Behdad Esfahbod
1190cf3b44 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=/branches/glib-2-12/; revision=5201
2007-01-03 20:09:25 +00:00
Matthias Clasen
b3b2d31602 Avoid warnings from running libtool --config. (#391364, Loïc Minier)
2007-01-02  Matthias Clasen  <mclasen@redhat.com>

        * configure.in: Avoid warnings from running libtool --config.
        (#391364, Loïc Minier)



svn path=/branches/glib-2-12/; revision=5195
2007-01-02 14:00:20 +00:00
Matthias Clasen
3a2d8a3db7 Return an error if the uri is bad. (#391370, Maciej Piechotka)
2007-01-02  Matthias Clasen  <mclasen@redhat.com>

        * glib/gbookmarkfile.c (g_bookmark_file_get_app_info):
        Return an error if the uri is bad. (#391370, Maciej Piechotka)



svn path=/branches/glib-2-12/; revision=5193
2007-01-02 13:55:43 +00:00
Michael Natterer
3abcde339a configure.in remove references to build/ until a proper decision has been
2007-01-02  Michael Natterer  <mitch@imendio.com>

	* configure.in
	* Makefile.am: remove references to build/ until a proper decision
	has been made what to do with it.


svn path=/branches/glib-2-12/; revision=5191
2007-01-02 13:24:13 +00:00
Matthias Clasen
7df1b30fb5 Silence autoconf warnings about datarootdir. (#391367, Loïc Minier)
2007-01-01  Matthias Clasen  <mclasen@redhat.com>

        * glib-gettextize.in: Silence autoconf warnings about
        datarootdir.  (#391367, Loïc Minier)



svn path=/branches/glib-2-12/; revision=5188
2007-01-02 06:00:45 +00:00
Matthias Clasen
b5b0b60454 Convert the recently added stricter keyfile syntax checks into critical
2007-01-01  Matthias Clasen  <mclasen@redhat.com>

        * glib/gkeyfile.c: Convert the recently added stricter
        keyfile syntax checks into critical warnings, to help apps
        which do bad things with key files. Note that the
        stricter checks will remain in place for 2.14.  (#390532,
        Loïc Minier)

        * tests/keyfile-test.c: Adapt



svn path=/branches/glib-2-12/; revision=5187
2007-01-02 05:54:42 +00:00
Matthias Clasen
ee9e7c1547 Use AC_CACHE_CHECK for the nl_langinfo check. (#304517, Lőrinczy
2006-12-27  Matthias Clasen  <mclasen@redhat.com>

        * configure.in: Use AC_CACHE_CHECK for the nl_langinfo
        check.  (#304517, Lőrinczy Zsigmond)
2006-12-28 04:39:30 +00:00
Matthias Clasen
53ca52cebd Don't modify the current locale. (#389300)
2006-12-27  Matthias Clasen  <mclasen@redhat.com>

        * glib/gunicollate.c (g_utf8_collate_key): Don't modify
        the current locale.  (#389300)
2006-12-27 05:13:51 +00:00
Matthias Clasen
065cbcb55f Silently skip tests if we can't set LC_COLLATE to en_US. (#336438)
2006-12-24  Matthias Clasen  <mclasen@redhat.com>

        * tests/run-collate-tests.sh:
        * tests/unicode-collate.c: Silently skip tests if
        we can't set LC_COLLATE to en_US.  (#336438)
2006-12-24 21:45:39 +00:00
Matthias Clasen
16e8e6414b Bump version 2006-12-20 17:40:39 +00:00
Matthias Clasen
2091fde20b 2.16.6 2006-12-20 17:22:56 +00:00
Matthias Clasen
a2f39f1295 Updates 2006-12-20 16:37:21 +00:00
Matthias Clasen
89ed772997 Accept '/', '+' and '.' in key names, since gnome-vfs uses mime types as
2006-12-19  Matthias Clasen  <mclasen@redhat.com>

        * glib/gkeyfile.c (g_key_file_is_key_name): Accept
        '/', '+' and '.' in key names, since gnome-vfs uses
        mime types as keys in some cache.
2006-12-19 21:03:01 +00:00
Matthias Clasen
f92287ebdc Fix the broken poll test. (#387260, Christian Persch)
2006-12-18  Matthias Clasen  <mclasen@redhat.com>

        * configure.in: Fix the broken poll test.  (#387260,
        Christian Persch)
2006-12-19 15:26:02 +00:00
Matthias Clasen
3ebc073340 Readd a return which was removed as dead code a while ago. icc may
* glib/gmain.c (child_watch_helper_thread): Readd a
        return which was removed as dead code a while ago.
        icc may consider it dead, but gcc doesn't like non-void
        functions without a return...  (#354707)
2006-12-19 02:47:49 +00:00
Matthias Clasen
10914a8b4c Bump version 2006-12-18 21:34:42 +00:00
Matthias Clasen
dc32d554a1 Updates 2006-12-18 21:19:34 +00:00
Matthias Clasen
d58ffb5949 Try a different fix for bug 346373.
2006-12-18  Matthias Clasen  <mclasen@redhat.com>

        * tests/Makefile.am: Try a different fix for bug 346373.
2006-12-18 14:49:10 +00:00
Matthias Clasen
bc3463f011 Fix bug 161288:
2006-12-18  Matthias Clasen  <mclasen@redhat.com>

        Fix bug 161288:

        * configure.in: Check for wcslen.

        * glib/gnulib/vasnprintf.c: Handle wcslen missing.
2006-12-18 14:37:05 +00:00
Matthias Clasen
a043967f21 Fix handling of '@' in locale names 2006-12-18 14:09:09 +00:00
Matthias Clasen
9abf964b73 Tighten up the check for allowed key and group names. (#343191, Tommi
2006-12-18  Matthias Clasen  <mclasen@redhat.com>

        * glib/gkeyfile.c: Tighten up the check for allowed
        key and group names.  (#343191, Tommi Komulainen)

        * tests/keyfile-test.c: Test handling of key and group names.
2006-12-18 07:28:03 +00:00
Matthias Clasen
071c5ef107 Don't use $RANDOM if the shell doesn't have it. (#346373, Thomas Klausner)
* tests/Makefile.am: Don't use $RANDOM if the shell doesn't
        have it.  (#346373, Thomas Klausner)
2006-12-18 05:04:40 +00:00
Matthias Clasen
966eeefa22 Put the G_GNUC_INTERNAL where gcc doesn't complain about it.
2006-12-17  Matthias Clasen  <mclasen@redhat.com>

        * glib/gconvert.c:
        * glib/gutf8.c (_g_charset_get_aliases): Put the G_GNUC_INTERNAL
        where gcc doesn't complain about it.

        * glib/ghash.c: Make ref_count an int to avoid compiler
        warnings.
2006-12-18 04:20:40 +00:00
Matthias Clasen
cba7bcc9cd Use AC_LANG_SOURCE for the clock test.
2006-12-17  Matthias Clasen  <mclasen@redhat.com>

        * configure.in: Use AC_LANG_SOURCE for the clock test.
2006-12-18 01:13:47 +00:00
Matthias Clasen
815367a003 Don't use "wait" as parameter name. (#379207, Christian Biere)
2006-12-17  Matthias Clasen  <mclasen@redhat.com>

        * glib/gthreadpool.h:
        * glib/gthreadpool.c (g_thread_pool_free): Don't use "wait"
        as parameter name.  (#379207, Christian Biere)
2006-12-17 20:32:38 +00:00
Matthias Clasen
7d48f998a1 Make montonic clock test work again. Does AC_COMPILE_IFELSE not get
2006-12-17  Matthias Clasen  <mclasen@redhat.com>

        * configure.in: Make montonic clock test work again. Does
        AC_COMPILE_IFELSE not get confdefs ?
2006-12-17 18:36:47 +00:00
Matthias Clasen
c5c9a021f1 Don't use diff -u (#380801, Marek Rouchal)
* tests/run-markup-tests.sh: Don't use diff -u  (#380801,
        Marek Rouchal)
2006-12-17 17:59:01 +00:00
Matthias Clasen
3e0d721958 Fix the recent fdwalk()-related changes to not break mapping-test.
* glib/gspawn.c: Fix the recent fdwalk()-related changes
        to not break mapping-test.  (#286838, Marco Barisione)
2006-12-17 17:44:13 +00:00
Matthias Clasen
505287cbae Use AC_COMPILE_IFELSE for the monotonic clock test. (#362918, Han-Wen
2006-12-16  Matthias Clasen  <mclasen@redhat.com>

        * configure.in: Use AC_COMPILE_IFELSE for the monotonic
        clock test.  (#362918, Han-Wen Nienhuys, Jeremy Lainé)
2006-12-16 22:10:24 +00:00
Matthias Clasen
d9b8ae15fe Make ref_count a gint to avoid compiler warnings. (#321977, Andrew
2006-12-15  Matthias Clasen  <mclasen@redhat.com>

        * glib/giochannel.h: Make ref_count a gint to avoid
        compiler warnings.  (#321977, Andrew Paprocki)
2006-12-16 04:03:26 +00:00
Matthias Clasen
6dd6f7ed11 On Solaris, set CFLAGS and LDFLAGS that work both with Sun cc and gcc.
2006-12-15  Matthias Clasen  <mclasen@redhat.com>

        * configure.in: On Solaris, set CFLAGS and LDFLAGS that
        work both with Sun cc and gcc.  (#315061, Lazlo Peter)
2006-12-16 03:50:32 +00:00
Matthias Clasen
efffa75627 Undefine READ_OK to fix the build on old versions of Darwin. (#327800)
2006-12-15  Matthias Clasen  <mclasen@redhat.com>

        * glib/gspawn.c: Undefine READ_OK to fix the build on
        old versions of Darwin.  (#327800)
2006-12-16 03:42:52 +00:00
Matthias Clasen
03f97926ba Avoid a compiler warning.
2006-12-15  Matthias Clasen  <mclasen@redhat.com>

        * glib/guniprop.c (interval_compare): Avoid a compiler
        warning.
2006-12-15 22:12:08 +00:00
Matthias Clasen
7cebef5aaa Call set_cloexec() with the right parameters. (#386252, Guillaume
2006-12-15  Matthias Clasen  <mclasen@redhat.com>

        * glib/gspawn.c (do_exec): Call set_cloexec() with
        the right parameters.  (#386252, Guillaume Desmottes)
2006-12-15 18:26:54 +00:00
Matthias Clasen
b0ec624ad8 Fix #357585, Padraig O'Briain.
2006-12-15  Matthias Clasen  <mclasen@redhat.com>

	Fix #357585, Padraig O'Briain.

	* configure.in: Check for fdwalk.

	* glib/gspawn.c (do_exec): Use fdwalk() to close all
	file descriptors.

	* glib/gspawn.c (fdwalk): Fallback implementation of
	fdwalk.
2006-12-15 05:36:14 +00:00
Matthias Clasen
2fdb41e502 Don't use alloca and avoid allocating memory for small keys that are
2006-12-14  Matthias Clasen  <mclasen@redhat.com>

	* glib/gconvert.c (open_converter): Don't use alloca
	and avoid allocating memory for small keys that are
	already cached.  (#172406, Morten Welinder)
2006-12-15 04:36:11 +00:00
Matthias Clasen
c8c0251460 If the group is already there, make it current. (#385910, Joe Halliwell)
2006-12-14  Matthias Clasen  <mclasen@redhat.com>

        * glib/gkeyfile.c (g_key_file_add_group): If the group
        is already there, make it current.  (#385910, Joe Halliwell)

        * tests/keyfile-test.c: Add a test for duplicate groups/keys.

2
2006-12-14 23:14:07 +00:00
Matthias Clasen
03b00aa81e Require AC_CANONICAL_HOST in GLIB_WITH_NLS. (#385132, Laszlo Peter)
2006-12-13  Matthias Clasen  <mclasen@redhat.com>

        * m4macros/glib-gettext.m4: Require AC_CANONICAL_HOST in
        GLIB_WITH_NLS.  (#385132, Laszlo Peter)
2006-12-13 20:06:55 +00:00
Matthias Clasen
a888d8204b Use poll emulation on OS X 2006-12-12 20:04:03 +00:00