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