Commit Graph

2562 Commits

Author SHA1 Message Date
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
Michael Natterer
feb07512f0 removed all .cvsignore files. SVN doesn't need them.
2007-01-03  Michael Natterer  <mitch@imendio.com>

	* removed all .cvsignore files. SVN doesn't need them.


svn path=/trunk/; revision=5198
2007-01-03 11:22:36 +00:00
Emmanuele Bassi
029d43222f Add support for expanding the desktop entry spec variables %U (list of
2007-01-02  Emmanuele Bassi  <ebassi@gnome.org>

	* glib/gbookmarkfile.c (expand_exec_line): Add support for
	expanding the desktop entry spec variables %U (list of URIs)
	and %F (list of filenames), so that using the command line
	from the Exec and TryExec key of a desktop entry file works
	as intended.

svn path=/trunk/; revision=5196
2007-01-02 16:20:48 +00:00
Matthias Clasen
7eab26d13b 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=/trunk/; revision=5194
2007-01-02 13:58:54 +00:00
Matthias Clasen
01c3535fe6 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=/trunk/; revision=5192
2007-01-02 13:53:15 +00:00
Matthias Clasen
db9c08d08b Guard g_slice_debug_tree_statistics by G_ENABLE_DEBUG. (#390940, Kazuki
2007-01-02  Matthias Clasen  <mclasen@redhat.com>

        * glib/glib.symbols: Guard g_slice_debug_tree_statistics
        by G_ENABLE_DEBUG.  (#390940, Kazuki Iwamoto)



svn path=/trunk/; revision=5190
2007-01-02 13:09:03 +00:00
Michael Natterer
99b531f425 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=/trunk/; revision=5189
2007-01-02 10:40:27 +00:00
Matthias Clasen
4dd6d0fd22 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=/trunk/; revision=5186
2007-01-02 05:26:14 +00:00
Matthias Clasen
e319147a9e Fix some C99isms. (#390913, Kazuki Iwamoto)
2006-12-31  Matthias Clasen  <mclasen@redhat.com>

        * glib/gslice.c: Fix some C99isms.  (#390913, Kazuki Iwamoto)



svn path=/trunk/; revision=5183
2006-12-31 16:27:45 +00:00
Tim Janik
0f9cf7898b turned detection of too late g_thread_init() calls into a warning. this is
Fri Dec 29 13:28:07 2006  Tim Janik  <timj@imendio.com>

        * glib/gslice.c: turned detection of too late g_thread_init() calls
        into a warning. this is a temporary work-around for some head-room
        to fix affected programs, memory corruption still occours regardless.
2006-12-29 12:29:55 +00:00
Matthias Clasen
d7b7c44e40 Define G_DEFINE_DYNAMIC_TYPE and and _EXTENDED variant. (#334437)
2006-12-29 Matthias Clasen  <mclasen@redhat.com>

        * gtypemodule.h: Define G_DEFINE_DYNAMIC_TYPE and
        and _EXTENDED variant.  (#334437)
2006-12-29 06:12:11 +00:00
Tim Janik
5fef9365d8 removed pthread-dependant debugging bits, the code was already converted
Thu Dec 28 21:14:45 2006  Tim Janik  <timj@imendio.com>

        * glib/gslice.c: removed pthread-dependant debugging bits, the code
        was already converted to GMutex. this obsoletes Tor's recent fixups.
2006-12-28 20:15:35 +00:00
Tor Lillqvist
98d5dea18a : Use only the wide character API here, too.
2006-12-28  Tor Lillqvist  <tml@novell.com>

	* glib/gutils.c (get_windows_directory_root): : Use only the wide
	character API here, too.
2006-12-28 15:47:42 +00:00
Tor Lillqvist
a45be29beb Use only the wide character API here, too.
2006-12-28  Tor Lillqvist  <tml@novell.com>

	* glib/gutils.h (G_WIN32_DLLMAIN_FOR_DLL_NAME): Use only the wide
	character API here, too.
2006-12-28 15:41:28 +00:00
Tor Lillqvist
b713fbc11a Make it compile on Win32 without pthreads: Use a Win32 critical section
2006-12-28  Tor Lillqvist  <tml@novell.com>

	* glib/gslice.c: Make it compile on Win32 without pthreads: Use a
	Win32 critical section instead.
2006-12-28 15:39:47 +00:00
Tor Lillqvist
fd1f409e41 On Win32, if we get a fatal error message while being debugged we break
2006-12-28  Tor Lillqvist  <tml@novell.com>

	* glib/gmessages.c (g_logv): On Win32, if we get a fatal error
	message while being debugged we break into the debugger with
	G_BREAKPOINT(). Don't call abort() if the user is foolhardy enough
	to continue after the breakpoint. The user presumably knows what
	he is doing and deserves what he gets. (#376645, Andreas Köhler)
2006-12-28 14:47:54 +00:00
Tim Janik
1bd8993451 implemented static debugging hash-tree to validate slice adresses and
Thu Dec 28 12:50:31 2006  Tim Janik  <timj@imendio.com>

        * glib/gslice.h, glib/gslice.c: implemented static debugging
        hash-tree to validate slice adresses and sizes with G_SLICE=debug-blocks.
        use abort() to exit in mem_error() to allow catching of these in gdb.
        abort programs with a descriptive error message if g_thread_init() is
        called after GSlice was in use. previously this just silently corrupted
        the magazines.

        * glib/ghash.c (struct _GHashNode): reordered fields to keep 8-byte
        pointer alignment on 64bit systems and request smaller slice sizes
        on 32bit systems.

        * tests/slice-test.c: support '~' option flag to introduce slice
        allocation/release corruption with a significant probability. this
        allowes testing of G_SLICE=debug-blocks.
2006-12-28 11:50:43 +00:00
Matthias Clasen
98d552e0cd Consistently use gsize rather than size_t. (#333310, Morten Welinder)
2006-12-27  Matthias Clasen  <mclasen@redhat.com>

        * glib/gconvert.[hc]:
        * glib/gfileutils.c:
        * glib/giochannel.c:
        * glib/goption.c:
        * glib/gspawn.c:
        * glib/gunicollate.c:
        * glib/gutils.c:
        * tests/timeloop-basic.c:
        Consistently use gsize rather than size_t.  (#333310,
        Morten Welinder)
2006-12-28 04:48:06 +00:00
Matthias Clasen
f678ea9725 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:41:23 +00:00
Tor Lillqvist
90d70c5967 glib/gwin32.h Add const to gchar* arguments. (#384523, Yevgen Muntyan)
2006-12-27  Tor Lillqvist  <tml@novell.com>

	* glib/gwin32.h
	* glib/gwin32.c (get_package_directory_from_module)
	(g_win32_get_package_installation_directory)
	(g_win32_get_package_installation_subdirectory): Add const to
	gchar* arguments. (#384523, Yevgen Muntyan)
2006-12-27 14:50:17 +00:00
Ryan Lortie
e6b78c9af1 cache the value of the hash function in the GHashNode. this speeds up
2006-12-27  Ryan Lortie  <desrt@desrt.ca>

        * glib/ghash.c: cache the value of the hash function
        in the GHashNode.  this speeds up resizing the hash
        table and it also allows a slight optimisation on
        lookups.  (#388332)
2006-12-27 05:43:40 +00:00
Matthias Clasen
d1be55cccb 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:12:47 +00:00
Matthias Clasen
3ab1139aef Add hints for locale-dependent interfaces. Add hints for locale-dependent
2006-12-26  Matthias Clasen  <mclasen@redhat.com>

        * glib/gutf8.c: Add hints for locale-dependent interfaces.
        * glib/gconvert.c: Add hints for locale-dependent interfaces.
2006-12-27 05:09:48 +00:00
Matthias Clasen
635341877f Improve formatting of docs.
2006-12-26  Matthias Clasen  <mclasen@redhat.com>

        * glib/gconvert.c (g_get_filename_charsets): Improve
        formatting of docs.
2006-12-27 04:29:27 +00:00
Behdad Esfahbod
992a0c5ed5 Use libtool to determine shared library suffix. (#357245)
2006-12-26  Behdad Esfahbod  <behdad@gnome.org>

        * configure.in: Use libtool to determine shared library suffix.
        (#357245)
2006-12-26 20:18:58 +00:00
Matthias Clasen
ca7dc0e94c 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:47:05 +00:00
Matthias Clasen
01f78fa7f5 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.

2
2006-12-19 21:08:32 +00:00
Matthias Clasen
493e7ca45f 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:28:17 +00:00
Matthias Clasen
2d7fa2dd18 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:49:39 +00:00
Matthias Clasen
330e9ffc1b 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:50:36 +00:00
Matthias Clasen
558383d62c 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:38:07 +00:00
Matthias Clasen
52ef9438ca Accept '@' in locale names.
2006-12-18  Matthias Clasen  <mclasen@redhat.com>

        * glib/gkeyfile.c: Accept '@' in locale names.
2006-12-18 14:13:34 +00:00
Matthias Clasen
6b52690bb5 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:29:56 +00:00
Matthias Clasen
81aee2e13e 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:02:37 +00:00
Behdad Esfahbod
fdef315ba2 Improve docs about string functions taking a length. (#378727)
2006-12-17  Behdad Esfahbod  <behdad@gnome.org>

        * glib/gstring.c: Improve docs about string functions taking a
        length.  (#378727)
2006-12-18 03:04:48 +00:00
Matthias Clasen
1787a7e164 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:16:03 +00:00
Matthias Clasen
73d870f9b7 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:27:02 +00:00
Matthias Clasen
7d0a0206d8 Improve docs 2006-12-17 20:22:20 +00:00
Matthias Clasen
e2285f085d Move docs inline, and improve wording. (#372598, Behdad Esfahbod)
2006-12-17  Matthias Clasen  <mclasen@redhat.com>

        * glib/gstrfuncs.c (g_strndup, g_strnfill): Move docs
        inline, and improve wording.  (#372598, Behdad Esfahbod)
2006-12-17 19:12:58 +00:00
Matthias Clasen
ff290367a5 Add some pointers to the gdk_spawn_ variants. (#338134, Federico Mena
2006-12-17  Matthias Clasen  <mclasen@redhat.com>

        * glib/gspawn.c: Add some pointers to the gdk_spawn_
        variants.  (#338134, Federico Mena Quintero)
2006-12-17 18:49:57 +00:00
Matthias Clasen
37df9c784d 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 ? Also, move the clock
        tests below the thread checks to fix #364663.
2006-12-17 18:39:10 +00:00
Matthias Clasen
c01a364fb4 Don't use diff -u (#380801, Marek Rouchal)
2006-12-17  Matthias Clasen  <mclasen@redhat.com>

        * tests/run-markup-tests.sh: Don't use diff -u  (#380801,
        Marek Rouchal)
2006-12-17 18:01:15 +00:00
Matthias Clasen
a7d0392b4d 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:45:03 +00:00
Matthias Clasen
80cc5b6c3e Don't shadow size parameter 2006-12-17 14:54:01 +00:00
Matthias Clasen
16953c313a Move more documentation inline.
2006-12-16  Matthias Clasen  <mclasen@redhat.com>

	* glib/gstring.c: Move more documentation inline.
2006-12-16 22:39:55 +00:00
Matthias Clasen
d4dc24fc1b 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:11:23 +00:00
Matthias Clasen
10d14998d8 Move documentation inline.
2006-12-16  Matthias Clasen  <mclasen@redhat.com>

	* glib/gstring.c: Move documentation inline.
2006-12-16 06:14:45 +00:00
Matthias Clasen
4efa98d75b 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:05:32 +00:00
Matthias Clasen
0aa53c3a3d 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:52:27 +00:00
Matthias Clasen
814f0bec5c 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:33:23 +00:00
Matthias Clasen
0a3afe448b Add a function for clearing a GStringChunk. (#364608, Matt Barnes)
2006-12-15  Matthias Clasen  <mclasen@redhat.com>

        * glib/glib.symbols:
        * glib/gstring.[hc] (g_string_chunk_clear): Add a function
        for clearing a GStringChunk. (#364608, Matt Barnes)
2006-12-15 22:57:15 +00:00
Matthias Clasen
eaec9bb86e 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:13:53 +00:00
Matthias Clasen
0047db2bf0 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:27:51 +00:00
Matthias Clasen
af475972c6 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:33:32 +00:00
Matthias Clasen
0fffe4abc4 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:35:13 +00:00
Matthias Clasen
dc78f9b202 Improve the docs. (#345569, Tim-Philipp Müller)
2006-12-14  Matthias Clasen  <mclasen@redhat.com>

	* glib/gmain.c (g_child_watch_add_full): Improve the docs.
	(#345569, Tim-Philipp Müller)
2006-12-15 03:42:24 +00:00
Matthias Clasen
966872d789 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.
2006-12-14 23:19:28 +00:00
Matthias Clasen
b6aad8a6f0 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:08:22 +00:00
Matthias Clasen
caecf2dda0 Add a check for broken poll on Mac OS X.
2006-12-12  Matthias Clasen  <mclasen@redhat.com>

        * configure.in: Add a check for broken poll on Mac OS X.

        * glib/gmain.c: Use poll emulation on OS X.  (#302672, Toby Peterson,
        patch by Dave Vasilevsky)
2006-12-12 20:04:45 +00:00
Matthias Clasen
dc6f720c59 Don't use local numeric labels in inline assembler on AIX. (#316434, Hans
2006-12-11  Matthias Clasen  <mclasen@redhat.com>

        * glib/gatomic.c: Don't use local numeric labels in
        inline assembler on AIX.  (#316434, Hans Rosenfeld)
2006-12-11 14:25:07 +00:00
Matthias Clasen
15df020ddd Cast to const char *, not char *. (#138153, Nikolai Weibull)
2006-12-11  Matthias Clasen  <mclasen@redhat.com>

        * glib/gunicode.h (g_utf8_next_char): Cast to const char *,
        not char *.  (#138153, Nikolai Weibull)
2006-12-11 14:17:14 +00:00
Tim Janik
6cf97938ec added G_GNUC_MAY_ALIAS, suggested by Mathias Hasselmann in bug #335341,
Wed Nov 22 16:09:13 2006  Tim Janik  <timj@gtk.org>

        * glib/gmacros.h: added G_GNUC_MAY_ALIAS, suggested by Mathias
        Hasselmann in bug #335341, fixes bug #335853.
2006-11-22 15:54:58 +00:00
Matthias Clasen
ea372366de fix 343825 2006-11-15 19:17:16 +00:00
Behdad Esfahbod
5df73fe1fb Replace bash-specific == with sh-understood =. Fixes bug #373864.
2006-11-14  Behdad Esfahbod  <behdad@gnome.org>

        * sanity_check: Replace bash-specific == with sh-understood =.
        Fixes bug #373864.
2006-11-14 18:23:48 +00:00
Hans Breuer
707dce4444 glib/ version not the gobject/ one I accidentially commited. Fixes bug
2006-11-05  Hans Breuer  <hans@breuer.org>

	* glib/makefile.msc.in : glib/ version not the gobject/
	one I accidentially commited. Fixes bug #371074.
2006-11-05 21:18:09 +00:00
Tor Lillqvist
256ba23b98 makefile.mingw gmodule/makefile.mingw.in glib/makefile.mingw.in
2006-11-05  Tor Lillqvist  <tml@novell.com>

	* makefile.mingw
	* gmodule/makefile.mingw.in
	* glib/makefile.mingw.in
	* gobject/makefile.mingw.in
	* gthread/makefile.mingw.in
	* tests/makefile.mingw.in: Remove from CVS. Haven't been
	maintained or distributed for long.
2006-11-05 15:42:42 +00:00
Pascal Terjan
dedf19723f Fix small leak on failed realloc in _g_locale_get_charset_aliases
2006-10-26  Pascal Terjan  <pterjan@linuxfr.org>

	* glib/libcharset/localcharset.c: Fix small leak on failed
	realloc in _g_locale_get_charset_aliases (#338582)
2006-10-26 21:09:04 +00:00
Behdad Esfahbod
3fb0fb2ef4 Add $(GLIB_DEBUG_FLAGS). (#362543, Peter Kjellerstedt)
2006-10-16  Behdad Esfahbod  <behdad@gnome.org>

        * glib/gnulib/Makefile.am: Add $(GLIB_DEBUG_FLAGS).  (#362543,
        Peter Kjellerstedt)
2006-10-16 12:51:54 +00:00
Sebastian Wilhelmi
38c633aed6 Compile errorcheck-mutex-test with thread libraries explicitly. (#74748,
2006-10-15  Sebastian Wilhelmi  <seppi@seppi.de>

        * tests/Makefile.am: Compile errorcheck-mutex-test with thread
        libraries explicitly. (#74748, Javier Villavicencio)
2006-10-15 12:18:25 +00:00
Matthias Clasen
68e78574db Add Unicode script support 2006-10-09 04:23:58 +00:00
Matthias Clasen
9c19905b0e portability fix 2006-10-08 19:59:26 +00:00
Tor Lillqvist
891fcada5d g_strdup the keys that we are passed before adding them to the hash
2006-10-07  Tor Lillqvist  <tml@novell.com>

	* glib/gwin32.c (get_package_directory_from_module)
	(g_win32_get_package_installation_directory): g_strdup the keys
	that we are passed before adding them to the hash tables, to guard
	against the caller freeing them. (#355955, Andreas Köhler)
2006-10-07 19:27:17 +00:00
Matthias Clasen
6b21f5f6d7 fix a typo 2006-10-06 18:52:33 +00:00
Behdad Esfahbod
5e4364aac6 Include pltcheck.sh in EXTRA_DIST, and remove redefinition of TESTS.
2006-10-02  Behdad Esfahbod  <behdad@gnome.org>

        * glib/Makefile.am:
        * gobject/Makefile.am:
        Include pltcheck.sh in EXTRA_DIST, and remove redefinition of TESTS.
        (#358966)
2006-10-02 18:03:50 +00:00
Matthias Clasen
088c08a2a5 Use nsleep to implement g_usleep on AIX. (#321974, Andrew Paprocki)
2006-10-01  Matthias Clasen  <mclasen@redhat.com>

	* glib/gtimer.c (g_usleep): Use nsleep to implement
	g_usleep on AIX.  (#321974, Andrew Paprocki)

	* configure.in: Check for nsleep
2006-10-01 05:53:49 +00:00
Matthias Clasen
3080ebdaa8 Fix typos in doc comments. (#358421, Tom Tromey)
2006-10-01  Matthias Clasen  <mclasen@redhat.com>

	* glib/gmain.c: Fix typos in doc comments.
	(#358421, Tom Tromey)
2006-10-01 05:35:29 +00:00
Matthias Clasen
48876d7fb5 Fix PLT issues 2006-09-30 14:06:45 +00:00
Hans Breuer
b3a8c3288b better filtering of G_GNUC_* stuff when generating .def files. Now also
2006-09-17  Hans Breuer  <hans@breuer.org>

	* glib/makefile.msc.in gobject/makefile.msc.in : better filtering
	of G_GNUC_* stuff when generating .def files. Now also works with
	newer (less tolerant) linkers, e.g. from vc2500e
2006-09-17 16:17:44 +00:00
Matthias Clasen
e9da546b81 Assume string.h is available 2006-09-10 05:50:50 +00:00
Matthias Clasen
47133ec63f Bump version 2006-09-10 05:45:45 +00:00
Matthias Clasen
f8c1c1f9e0 Add functions for approximate timeouts 2006-09-10 05:44:46 +00:00
Matthias Clasen
4a7aeef16f Initialize save_errno. (#355206, Mike Edenfield)
2006-09-10  Matthias Clasen  <mclasen@redhat.com>

	* glib/gstdio.c (g_rename): Initialize save_errno.
	(#355206, Mike Edenfield)
2006-09-10 05:13:52 +00:00
Matthias Clasen
80aa03f7a2 Allocate GErrors using the slice allocator. (#354054, Matt Barnes)
2006-09-03  Matthias Clasen  <mclasen@redhat.com>

	* glib/gerror.c: Allocate GErrors using the slice allocator.
	(#354054, Matt Barnes)
2006-09-03 06:03:39 +00:00
Matthias Clasen
51453eab5d Forgotten macros 2006-09-03 03:49:38 +00:00
Tor Lillqvist
f8f4e16eb9 Correct C99ism (mixed declarations and code) in Win32 ifdef branch.
2006-09-02  Tor Lillqvist  <tml@novell.com>

	* glib/gutils.c (g_get_any_init_do): Correct C99ism (mixed
	declarations and code) in Win32 ifdef branch. (#353903, Mike
	Edenfield)
2006-09-01 23:32:05 +00:00
Abel Cheung
d6a4b61c33 Added 'dz' 'hy' to ALL_LINGUAS.
2006-09-01  Abel Cheung  <abel@oaka.org>

	* configure.in: Added 'dz' 'hy' to ALL_LINGUAS.
2006-09-01 11:28:14 +00:00
Matthias Clasen
514351b127 Improve clock_gettime check 2006-09-01 06:08:23 +00:00