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