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