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