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
Tim Janik
636dae32c3
document G_SLICE=debug-blocks.
...
Wed Dec 27 15:56:53 2006 Tim Janik <timj@gtk.org>
* glib/tmpl/memory_slices.sgml:
* glib/running.sgml: document G_SLICE=debug-blocks.
2006-12-28 11:50:00 +00:00
Tor Lillqvist
9216f204e5
Correct link to discussion about CRITICAL_SECTIONs vs. mutexes. Thanks to
...
2006-12-28 Tor Lillqvist <tml@novell.com>
* gthread-win32.c (g_thread_impl_init): Correct link to discussion
about CRITICAL_SECTIONs vs. mutexes. Thanks to Felix Kater for
pointing this out.
2006-12-28 10:48:39 +00:00
Matthias Clasen
08e5183b36
Clean up includes.
...
2006-12-28 Matthias Clasen <mclasen@redhat.com>
* gmodule.c: Clean up includes.
2006-12-28 05:02:30 +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
Matthias Clasen
700b6c4b87
forgotten file
2006-12-27 23:08:52 +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
33acbf5b76
Forgotten file
2006-12-27 05:10:54 +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
b8bcb2b839
Forgotten file
2006-12-18 20:17:35 +00:00
Matthias Clasen
e7715bdc4e
Small clarification ( #369908 , Tapani Pälli)
...
2006-12-18 Matthias Clasen <mclasen@redhat.com>
* glib/tmpl/keyfile.sgml: Small clarification (#369908 ,
Tapani Pälli)
2006-12-18 20:09:12 +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
Matthias Clasen
5e287750f7
Fix a typo
2006-12-18 04:44:44 +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
fdfc2fc6fc
Expand GObject::notify documentation. ( #381722 , Nickolay V. Shmyrev)
...
2006-12-17 Matthias Clasen <mclasen@redhat.com>
* gobject/tmpl/objects.sgml: Expand GObject::notify
documentation. (#381722 , Nickolay V. Shmyrev)
* gobject/tmpl/gparamspec.sgml: Add canonical-parameter-name id.
2006-12-17 19:59:02 +00:00
Matthias Clasen
acd7325895
typo fix
2006-12-17 19:51:28 +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
284678d239
Silence autoconf 2.60
2006-12-17 18:35:23 +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
0eb82133c5
Fri Dec 15 2006 Matthias Clasen <mclasen@redhat.com>
...
* gtype.c (instance_real_class_get): Dereference the pointer
before dropping the lock. (#378078 , Jonathan Matthew)
2006-12-16 04:28:43 +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
86346d02c7
add a comment
2006-12-16 03:36:14 +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
a7651b067e
broken pipe
2006-12-15 22:58:04 +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