make this a "const gpointer" rather than a gconstpointer to avoid warnings
[platform/upstream/glib.git] / ChangeLog
1 2008-09-26  Dan Winship  <danw@gnome.org>
2
3         * glib/gthreadpool.c (wakeup_thread_marker): make this a "const
4         gpointer" rather than a gconstpointer to avoid warnings later
5
6         * glib/pcre/pcre_ucp_searchfuncs.c:
7         * glib/pcre/pcre_valid_utf8.c: #include "config.h"
8
9         * glib/tests/printf.c (test_d): fool gcc into not warning about
10         some printf format strings that we know are dubious
11
12 2008-09-26  Matthias Clasen  <mclasen@redhat.com>
13
14         Bug 553857 – gbacktrace.h requires signal.h
15
16         * glib/gbacktrace.h: Include signal.h for raise(). 
17         Pointed out by Sebastien Bacher
18
19 2008-09-26  Matthias Clasen  <mclasen@redhat.com>
20
21         Bug 553724 – python interpretter path not patched in correctly
22
23         * glib/Makefile.am: Fix the sed magic to replace python.
24
25 2008-09-26  Matthias Clasen  <mclasen@redhat.com>
26
27         * glib/gmain.c: Add some more docs.
28
29         * glib/giochannel.c: Move more docs inline, and improve them
30         on the way.
31
32 2008-09-25  Tor Lillqvist  <tml@novell.com>
33
34         Bug 553820 - gpoll.c: undeclared identifier
35
36         * glib/gmain.c
37         * glib/gpoll.c: Make the g_poll() function non-static also on
38         Windows. Prefix an underscore to the g_main_poll_debug variable
39         and make it non-static in gmain.c so that it can be used in
40         gpoll.c. Add back missing variable declaration.
41
42 2008-09-25  Tor Lillqvist  <tml@novell.com>
43
44         * glib/gspawn-win32.c (do_spawn_with_pipes) (do_spawn_directly):
45         Just ignore the child_setup function, never call it. The is no
46         situation in which it could be useful on Windows. Do print a
47         warning, like before.
48
49         * glib/gspawn.c (g_spawn_async_with_pipes): Corresponding change
50         in documentation.
51
52 2008-09-24  Sven Herzberg  <sven@imendio.com>
53
54         Be a little more explcit in the docs. Includes Owen's requested
55         changes.
56
57         * glib/gmain.c: improved documentation for g_source_attach() and
58         g_source_destroy()
59
60 2008-09-23  Michael Natterer  <mitch@imendio.com>
61
62         * glib/glib.h: #include <glib/gpoll.h>
63
64         * glib/gpoll.h: #error out if gpoll.h is included directly.
65
66         * glib/gpoll.c: remove trailing whitespace.
67
68 2008-09-23  Dan Winship  <danw@gnome.org>
69
70         * glib/gpoll.[ch] (g_poll): Move this out of gmain.c and make it part
71         of the public API. (Part of Bug 505361 - gunixinputstream.c assumes
72         poll() available.)
73
74 2008-09-23  Tor Lillqvist  <tml@novell.com>
75
76         * glib/gmain.c (poll_rest) [Win32]: Fix embarrassing bug: I was
77         passing an incorrect third parameter to memmove(), had forgotten
78         to multiply by the size of the table entry. Just use a for loop
79         instead, clearer. Odd I didn't notice when testing this code.
80
81 2008-09-19  Hans Petter Jansson  <hpj@novell.com>
82
83         Rewrite most of GHashTable to use open addressing with quadratic
84         probing instead of chaining. This has the potential to reduce memory
85         fragmentation significantly, while being slightly faster due to
86         better locality and no need to call alloc/free functions for nodes.
87         Benchmarks suggest it also uses less memory overall.
88
89         * glib/ghash.c (prime_mod): Table of suitable primes for
90         initial-probe distribution.
91         (g_hash_table_set_shift): New function.
92         (g_hash_table_find_closest_shift): New function.
93         (g_hash_table_set_shift_from_size): New function.
94         (g_hash_table_lookup_node_for_insertion): New function.
95         (g_hash_table_lookup_node): Rewritten to return node index instead of
96         pointer, use quadratic probe on flat table, and not return insertion
97         data. The latter saves some computation for read-only lookups.
98         (g_hash_table_remove_node): Rewrite to take a pointer directly to the
99         node structure to remove, and clear that. Remove unlinking code.
100         (g_hash_table_remove_all_nodes): Rewrite to not clear nodes
101         individually, but en masse using memset () after potentially calling
102         notify functions.
103         (iter_remove_or_steal): Use new data structure and algorithm. Vastly
104         simplified - now just a call to g_hash_table_remove_node ().
105         (g_hash_table_resize): New resize code, re-indexing with new prime
106         and cleaning up tombstones.
107         (g_hash_table_maybe_resize): Table may hold 8 buckets minimum, no less
108         than 1/4 load excluding tombstones, and no more than 15/16 load
109         including tombstones. These numbers are the results of a lot of
110         benchmarking with multiple complex applications, and should not be
111         changed lightly.
112         (g_hash_table_iter_next)
113         (g_hash_table_lookup)
114         (g_hash_table_lookup_extended)
115         (g_hash_table_insert_internal)
116         (g_hash_table_remove_internal)
117         (g_hash_table_foreach_remove_or_steal)
118         (g_hash_table_foreach)
119         (g_hash_table_find)
120         (g_hash_table_get_keys)
121         (g_hash_table_get_values): Use new data structure and algorithm,
122         fairly trivial changes.
123
124 2008-09-19  Tor Lillqvist  <tml@novell.com>
125
126         * glib-zip.in: Look for man pages in share/man.
127
128         * glib/gutils.c (_glib_get_dll_directory)
129         * glib/gspawn-win32.c (do_spawn_with_pipes): Be a bit less
130         restrictive, look for the helper programs in the same folder where
131         the GLib DLL is, not necessarily in a "bin" subfolder of the top
132         GLib installation folder.
133
134 2008-09-18  Matthias Clasen <mclasen@redhat.com>
135
136         * configure.in: Bump version to 2.19.0
137
138         * ChangeLog.pre-2-18: rotate ChangeLog
139         
140         * === branch for 2.18 ===