Don't use alloca and avoid allocating memory for small keys that are
[platform/upstream/glib.git] / ChangeLog
1 2006-12-14  Matthias Clasen  <mclasen@redhat.com>
2
3         * glib/gconvert.c (open_converter): Don't use alloca
4         and avoid allocating memory for small keys that are 
5         already cached.  (#172406, Morten Welinder)
6
7         * glib/gmain.c (g_child_watch_add_full): Improve the docs.
8         (#345569, Tim-Philipp Müller)
9
10         * glib/gkeyfile.c (g_key_file_add_group): If the group
11         is already there, make it current.  (#385910, Joe Halliwell)
12
13         * tests/keyfile-test.c: Add a test for duplicate groups/keys.
14
15 2006-12-13  Matthias Clasen  <mclasen@redhat.com>
16
17         * m4macros/glib-gettext.m4: Require AC_CANONICAL_HOST in
18         GLIB_WITH_NLS.  (#385132, Laszlo Peter)
19
20 2006-12-12  Matthias Clasen  <mclasen@redhat.com>
21
22         * configure.in: Add a check for broken poll on Mac OS X.
23
24         * glib/gmain.c: Use poll emulation on OS X.  (#302672, Toby Peterson,
25         patch by Dave Vasilevsky)
26
27 2006-12-11  Matthias Clasen  <mclasen@redhat.com>
28
29         * glib/gatomic.c: Don't use local numeric labels in
30         inline assembler on AIX.  (#316434, Hans Rosenfeld)
31
32         * glib/gunicode.h (g_utf8_next_char): Cast to const char *,
33         not char *.  (#138153, Nikolai Weibull)
34
35 Wed Nov 22 16:09:13 2006  Tim Janik  <timj@gtk.org>
36
37         * glib/gmacros.h: added G_GNUC_MAY_ALIAS, suggested by Mathias
38         Hasselmann in bug #335341, fixes bug #335853.
39
40 2006-11-15  Matthias Clasen  <mclasen@redhat.com>
41
42         * m4macros/glib-gettext.m4: Apply a patch from James 
43         Henstridge for compatibility with automake 2.60 (#343825)
44
45 2006-11-14  Behdad Esfahbod  <behdad@gnome.org>
46
47         * sanity_check: Replace bash-specific == with sh-understood =.
48         Fixes bug #373864.
49
50 2006-11-05  Hans Breuer  <hans@breuer.org>
51
52         * glib/makefile.msc.in : glib/ version not the gobject/ 
53         one I accidentially commited. Fixes bug #371074.
54         
55 2006-11-05  Tor Lillqvist  <tml@novell.com>
56
57         * makefile.mingw
58         * gmodule/makefile.mingw.in
59         * glib/makefile.mingw.in
60         * gobject/makefile.mingw.in
61         * gthread/makefile.mingw.in
62         * tests/makefile.mingw.in: Remove from CVS. Haven't been
63         maintained or distributed for long.
64
65 2006-10-26  Pascal Terjan  <pterjan@linuxfr.org>
66
67         * glib/libcharset/localcharset.c: Fix small leak on failed
68         realloc in _g_locale_get_charset_aliases (#338582)
69
70 2006-10-16  Behdad Esfahbod  <behdad@gnome.org>
71
72         * glib/gnulib/Makefile.am: Add $(GLIB_DEBUG_FLAGS).  (#362543,
73         Peter Kjellerstedt)
74
75 2006-10-15  Sebastian Wilhelmi  <seppi@seppi.de>
76
77         * tests/Makefile.am: Compile errorcheck-mutex-test with thread
78         libraries explicitly. (#74748, Javier Villavicencio)
79
80 2006-10-08  Matthias Clasen  <mclasen@redhat.com>
81
82         Add a way to obtain Unicode script information.  (#348348,
83         Marco Barisione)
84
85         * glib/glib.symbols:
86         * glib/gunicode.h: Add GUnicodeScript enumeration and
87         g_unichar_get_script. 
88         
89         * glib/guniprop.c: Implement g_unichar_get_script.
90
91         * glib/gscripttable.h: Generated private header containing
92         script tables.
93
94         * glib/gen-script-table.pl: Script to generate gscripttable.h.
95
96         * glib/Makefile.am: Update
97
98 2006-10-08  Matthias Clasen  <mclasen@redhat.com>
99
100         * tests/run-markup-tests.sh: Small portability fix.  (#347944,
101         Dan McMahill)
102
103 2006-10-07  Tor Lillqvist  <tml@novell.com>
104
105         * glib/gwin32.c (get_package_directory_from_module)
106         (g_win32_get_package_installation_directory): g_strdup the keys
107         that we are passed before adding them to the hash tables, to guard
108         against the caller freeing them. (#355955, Andreas Köhler)
109
110 2006-10-06  Matthias Clasen  <mclasen@redhat.com> 
111
112         * glib/gtimer.c: Fix a typo.  (#359190)
113
114 2006-10-02  Behdad Esfahbod  <behdad@gnome.org>
115
116         * glib/Makefile.am:
117         * gobject/Makefile.am:
118         Include pltcheck.sh in EXTRA_DIST, and remove redefinition of TESTS.
119         (#358966)
120
121 2006-10-01  Matthias Clasen  <mclasen@redhat.com>
122
123         * glib/gtimer.c (g_usleep): Use nsleep to implement
124         g_usleep on AIX.  (#321974, Andrew Paprocki)
125
126         * configure.in: Check for nsleep
127
128         * glib/gmain.c: Fix typos in doc comments.  
129         (#358421, Tom Tromey)
130
131 2006-09-30  Matthias Clasen  <mclasen@redhat.com>
132
133         * glib/pltcheck.sh: A script to check PLT entries.
134         * glib/Makefile.am (TESTS): Run pltcheck.sh
135
136         * glib/*: Fix includes to correct some issues with
137         PLT entries.  (#354522, Behdad Esfahbod)
138
139 2006-09-17  Hans Breuer  <hans@breuer.org>
140
141         * glib/makefile.msc.in gobject/makefile.msc.in : better filtering
142         of G_GNUC_* stuff when generating .def files. Now also works with
143         newer (less tolerant) linkers, e.g. from vc2500e
144
145 2006-09-10  Matthias Clasen  <mclasen@redhat.com>
146
147         * glib/gbacktrace.c: Assume string.h is available. 
148         (#354523, Behdad Esfahbod)
149
150         * configure.in: Bump version to 2.13.0
151
152         * glib/glib.symbols:
153         * glib/gmain.[hc]: Add functions to create approximate
154         timeouts.  (#353942, Arjan van de Ven)
155
156         * glib/gstdio.c (g_rename): Initialize save_errno.
157         (#355206, Mike Edenfield)
158
159 2006-09-03  Matthias Clasen  <mclasen@redhat.com>
160
161         * glib/gerror.c: Allocate GErrors using the slice allocator.
162         (#354054, Matt Barnes)
163
164 2006-09-02  Matthias Clasen  <mclasen@redhat.com>
165
166         * glib/gtimer.c: Forgotten HAVE_CLOCK_GETTIME.
167
168 2006-09-02  Tor Lillqvist  <tml@novell.com>
169
170         * glib/gutils.c (g_get_any_init_do): Correct C99ism (mixed
171         declarations and code) in Win32 ifdef branch. (#353903, Mike
172         Edenfield)
173
174 2006-09-01  Abel Cheung  <abel@oaka.org>
175
176         * configure.in: Added 'dz' 'hy' to ALL_LINGUAS.
177
178 2006-09-01  Matthias Clasen  <mclasen@redhat.com>
179
180         * configure.in: Check for CLOCK_MONOTONIC.
181
182         * glib/gtimer.c: Only use clock_gettime if we
183         have a monotonic clock.
184
185 2006-08-31  Matthias Clasen  <mclasen@redhat.com>
186
187         * configure.in: Add missing includes to a few test
188         programs.  (#353580, Chris Wilson)
189
190 2006-08-30  Matthias Clasen  <mclasen@redhat.com>
191
192         * glib/gmarkup.c (g_markup_vprintf_escaped): Don't call
193         va_end on caller-provided va_args.  (#353584, Chris Wilson)
194
195 2006-08-29  Tor Lillqvist  <tml@novell.com>
196
197         Remove support for Windows 9x/ME, as will be done also in Pango
198         and GTK+. GTK+ hasn't worked on Win9x since 2.6 or 2.8 anyway, so
199         it's pretty pointless to keep the Win9x code in here either. If
200         somebody is interested, the code can always be found in older GLib
201         versions, and in CVS.
202
203         * glib/gdir.c
204         * glib/gfileutils.c
205         * glib/gspawn-win32-helper.c
206         * glib/gspawn-win32.c
207         * glib/gstdio.c
208         * glib/gutils.c
209         * glib/gwin32.c
210         * glib/gwin32.h: Remove the G_WIN32_IS_NT_BASED() and
211         G_WIN32_HAVE_WIDECHAR_API() tests and their false (Win9x)
212         branches, and any variables or static functions used only by the
213         Win9x branches.
214
215         * glib/gwin32.c (g_win32_windows_version_init): Call g_error() if
216         run on Win9x.
217
218 2006-08-27  Matthias Clasen  <mclasen@redhat.com>
219
220         * configure.in: Fix pthread compiler flag detection.
221
222         * glib/gtimer.c: Use Posix monotonic clocks instead of 
223         gettimeofday when available.  (#336114, William Jon McCann)
224
225 2006-08-26  Matthias Clasen  <mclasen@redhat.com>
226
227         * glib/gutils.h: 
228         * glib/gscanner.c: Fix some typos.  (#351741, Kjartan Maraas)
229
230 2006-08-25  Matthias Clasen  <mclasen@redhat.com>
231
232         * configure.in: Fix the pthread compiler flag detection.
233
234         * glib/gunicode.h: 
235         * glib/gutf8.c (_g_utf8_make_valid): Rename make_valid_utf8
236         from gconvert.c, move it to gutf8.c, and export it privately.
237
238         * glib/gconvert.c (g_filename_display_name): Adjust callers.
239
240         * glib/gkeyfile.c: Use _g_utf8_make_valid() in a number of
241         places to ensure error messages are valid UTF-8.  (#351853,
242         Simon Budig)
243
244 2006-08-22  Matthias Clasen <mclasen@redhat.com>
245
246         * Branch for 2.12
247