Fix the gtk-doc version check.
[platform/upstream/glib.git] / ChangeLog.pre-2-2
1 2002-11-28  Matthias Clasen  <maclas@gmx.de>
2
3         * configure.in: Fix the gtk-doc version check.
4
5 2002-11-27  Matthias Clasen  <maclas@gmx.de>
6
7         * glib/gmessages.h: Use G_LIKELY without surrounding parentheses 
8         in g_assert() and g_return_[val]_if_fail() so that we always trigger
9         the gcc warning about "assignment used as truth value".
10
11         * glib/gmacros.h: Always put parentheses in G_LIKELY and G_UNLIKELY.
12
13 2002-11-26  Matthias Clasen  <maclas@gmx.de>
14
15         * glib/gmessages.h: Only use G_LIKELY in g_assert() and 
16         g_return_[val]_if_fail() if it is actually doing something.
17
18 2002-11-26  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
19
20         * glib/grand.c, gthread/gthread-impl.c, tests/rand-test.c: 
21         Changed the seeding algorithm. Old behaviour can be achived by
22         setting envvar G_RANDOM_VERSION to "2.0". (#99262)
23
24         * docs/reference/glib/glib-docs.sgml,
25         docs/reference/glib/Makefile.am: Renamed
26         docs/reference/glib/changes-2.0.sgml to
27         docs/reference/glib/changes.sgml and added section for changes
28         from 2.0 to 2.2 (Also corrected 1.0 to 1.2).
29
30         * README.in, docs/reference/glib/running.sgml,
31         docs/reference/glib/tmpl/random_numbers.sgml,
32         docs/reference/glib/changes.sgml: Added notes about the new
33         seeding algorithm.
34
35         * configure.in: Make CPPFLAGS, not CFLAGS, include
36         G_THREAD_CFLAGS. CFLAGS is used while linking too and thus GLib
37         programs would link to the threads library on some platforms. Also
38         fixed a bug manifesting through this change. (#77981)
39
40 2002-11-26  Matthias Clasen  <maclas@gmx.de>
41
42         * glib/gmacros.h: Fix the non-gcc-3.x definitions of G_LIKELY 
43         and G_UNLIKELY.  (Reported by Dan Mills)
44
45 2002-11-25  Matthias Clasen  <maclas@gmx.de>
46
47         * glib/gfileutils.c (g_build_path): 
48         (g_build_filename): Document that the varargs must be 
49         NULL-terminated. (#99510)
50
51         * glib/gmessages.h (g_assert): 
52         (g_return_if_fail): 
53         (g_return_val_if_fail): Remove the (no longer effective) empty
54         if-branch.
55
56         * glib/gmacros.h: Change the definition of G_LIKELY, so that
57         g_return_if_fail() and friends still trigger a gcc warning if
58         the expr is an assignment. 
59
60 2002-11-23  Matthias Clasen  <maclas@gmx.de>
61
62         * configure.in: Generate docs/reference/*/version.xml.
63
64         * glib/gdir.h: Add Copyright notice.
65
66 2002-11-22  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
67
68         * configure.in: Fixed typo: PTHREAD_PRIO_MIN ->
69         PTHREAD_PRIO_MAX. (Laurent Vivier, #99293)
70
71 Fri Nov 22 09:39:09 2002  Owen Taylor  <otaylor@redhat.com>
72
73         * glib/gmacros.h: Remove broken G_HIDDEN_SYMBOL
74         definition which wasn't supposed to be committed
75         at all.
76
77 Thu Nov 21 16:19:21 2002  Owen Taylor  <otaylor@redhat.com>
78
79         * glib/ghash.c: Patch from Morten Welinder to 
80         make ghash.c properly obey DISABLE_MEM_POOLS. (#96600)
81
82 Thu Nov 21 14:09:44 2002  Owen Taylor  <otaylor@redhat.com>
83
84         * glib/gmacros.h: Add G_GNUC_DEPRECATED. (Tom Tromey,
85         #87969)
86
87 2002-11-21  Tor Lillqvist  <tml@iki.fi>
88
89         * config.h.win32.in: Update to match what is currently produced by
90         autotools.
91
92         * configure.in: Remove superfluous spaces on two shell variable
93         assignment lines. Don't define HAVE_GOOD_PRINTF as 0 if we don't
94         have a good printf, it is tested with #ifdef.
95
96         * glib/glib.def: Add new functions.
97
98         * glib/Makefile.am: If !HAVE_GOOD_PRINTF, add libtrio.la to LIBADD
99         and DEPENDENCIES.
100
101         * glib/glib.rc.in
102         * gmodule/gmodule.rc.in
103         * gobject/gobject.rc.in
104         * gthread/gthread.rc.in
105         * {glib,gmodule,gobject,gthread}/makefile.{mingw,msc}.in:
106         Hardcode 2.0 in the names, as that is what Makefile.am does.
107
108 2002-11-21  Matthias Clasen  <maclas@gmx.de>
109
110         Include a printf implementation supporting C99 snprintf and SUS
111         positional parameters:  (#79488)
112         
113         * glib/gstrfuncs.c:
114         * glib/gspawn-win32.c:
115         * glib/gscanner.c:
116         * glib/gconvert.c: 
117         * glib/gbacktrace.c: Use _g_printf wrappers. 
118
119         * glib/gutils.c (g_vsnprintf): Simplify, since we can assume C99
120         snprintf semantics now.
121
122         * glib/gmessages.c (printf_string_upper_bound): No longer needed,
123         since we can assume C99 snprintf semantics now.
124         (g_logv): Simplify.
125         
126         * acinclude.m4 (AC_FUNC_PRINTF_UNIX98): New macro to check wether
127         printf supports SUS positional parameters.
128
129         * configure.in: New option --enable-included-printf to force
130         compilation of trio; otherwise trio is compiled if the system
131         printf misses either C99 snprintf semantics of SUS positional 
132         parameters.
133
134         * glib/Makefile.am (SUBDIRS): Conditionally compile trio.
135         (libglib_2_0_la_SOURCES): Add gprintf.c and gprintfint.h.
136         (glibsubinclude_HEADERS): Add gprintf.h.
137
138         * glib/gprintfint.h: New private wrapping either system printf
139         or trio printf variants in _g_printf wrappers for use inside glib.
140
141         * glib/gprintf.h: New public header declaring g_printf variants.
142         * glib/gprintf.c: Corresponding implementations.
143
144         * glib/trio/*: New directory, containing the trio-1.9 sources. 
145
146 2002-11-20  Matthias Clasen  <maclas@gmx.de>
147
148         * glib/gmessages.h (g_return_if_fail): 
149         (g_return_val_if_fail): Use G_LIKELY.  (#69022)
150
151         * glib/gmacros.h (G_LIKELY): 
152         (G_UNLIKELY): New macros for hinting the compiler about the
153         expected result of expressions. For gcc 3.x, define these
154         using __builtin_expect.  (#69022)
155
156 Tue Nov 19 14:38:18 2002  Owen Taylor  <otaylor@redhat.com>
157
158         * glib/gstrfuncs.c (g_ascii_strtoull): Fix 
159         strtull/strtoull type in docs (#99012, Morten
160         Welinder.) Add copyright information for code
161         taken from GNU libc.
162
163 2002-11-18  Tor Lillqvist  <tml@iki.fi>
164
165         * glib/gspawn-win32.c (do_spawn_with_pipes): Do handle
166         G_SPAWN_DO_NOT_REAP_CHILD after all, similarily as on Unix. If the
167         flag is not set, don't call DuplicateHandle() on the handle
168         returned by the helper process, and set the "child pid" returned
169         to the called to zero. Close the handle to the helper process in
170         all cases.
171
172         * glib/gspawn.c (g_spawn_async_with_pipes): Document Windows
173         behaviour of G_SPAWN_DO_NOT_REAP_CHILD.
174
175 2002-11-18  Tor Lillqvist  <tml@iki.fi>
176
177         [Win32] Fix the asynchronous g_spawn* to return the process handle
178         of the started program properly. (Note: not the process id. The
179         spawn*() functions in the C runtime return the created process's
180         handle. There doesn't seem to be any way to get the process id of
181         a child process if you have the handle. But then, the process
182         handle usually is more useful anyway.)
183
184         * glib/gspawn-win32-helper.c (WinMain): If the spawning of the
185         child process succeeded, and if asynchronous spawn (P_NOWAIT),
186         write the result handle up to the parent process, waiting to read
187         it in do_spawn_with_pipes().
188
189         * glib/gspawn-win32.c (do_spawn): Use return value from spawning
190         the helper. If it is -1 the helper wasn't found or couldn't be run
191         for some reason. Otherwise it is the helper's process handle.
192
193         (g_spawn_async_with_pipes): Pass the child_pid parameter on to
194         do_spawn_with_pipes().
195
196         (do_spawn_with_pipes): Take also a child_pid parameter. If
197         do_spawn() returned -1, fail immediately. Otherwise make the
198         handle passed to us by the helper process into a handle valid in
199         this process by calling DuplicateHandle().
200
201 2002-11-17  Tor Lillqvist  <tml@iki.fi>
202
203         * glib/gspawn-win32.c (g_spawn_async_with_pipes): Ignore the
204         G_SPAWN_DO_NOT_REAP_CHILD flag, can't be meaninfully implemented
205         on Windows, at least not now. Always pass dont_wait as TRUE to
206         do_spawn_with_pipes(). The semantics of the dont_wait parameter is
207         very different from the semantics of the intermediate_child
208         parameter to fork_exec_with_pipes() in the Unix version. This
209         fixes a serious bug, g_spawn_async() in fact behaved
210         synchronously.
211
212         (do_spawn_with_pipes, do_spawn): Rename from
213         fork_exec_with_pipes() and do_exec(), those names were from the
214         Unix bersion, and misleading.
215
216         (close_and_invalidate): Don't try to close invalid fds.
217
218         * glib/gspawn.c (g_spawn_async_with_pipes): Add warning about
219         Windows behaviour. There is no fork(), so the child_setup()
220         function is in fact called in the parent.
221         
222         * glib/gspawn-win32-helper.c (WinMain): Insert spaces in argv
223         debugging output.
224
225         * tests/spawn-test-win32-gui.c: New file. Test program to be
226         linked as a GUI application. Behaves differently depending on how
227         invoked (by spawn-test).
228
229         * tests/spawn-test.c (run_tests): On Win32, run the
230         spawn-test-win32-gui program, too, in several ways, synchronously
231         and asynchronously.
232
233         * tests/Makefile.am: Corresponding change.
234
235 Fri Nov  8 19:44:20 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
236
237         * docs/reference/glib/tmpl/arrays.sgml:
238         * docs/reference/glib/tmpl/arrays_byte.sgml:
239         * docs/reference/glib/tmpl/arrays_pointer.sgml:
240         * docs/reference/glib/tmpl/date.sgml:
241         * docs/reference/glib/tmpl/linked_lists_double.sgml:
242         * docs/reference/glib/tmpl/linked_lists_single.sgml:
243         * docs/reference/glib/tmpl/main.sgml:
244         * docs/reference/glib/tmpl/queue.sgml:
245         * docs/reference/glib/tmpl/random_numbers.sgml:
246         * docs/reference/glib/tmpl/relations.sgml:
247         * docs/reference/glib/tmpl/scanner.sgml:
248         * docs/reference/gobject/tmpl/gtype.sgml:
249         * docs/reference/gobject/tmpl/value_arrays.sgml glib/garray.h:
250         * glib/gdate.h glib/giochannel.h glib/glist.h glib/gmain.c:
251         * glib/gmain.h glib/gqueue.c glib/gqueue.h glib/grand.c glib/grand.h:
252         * glib/grel.h glib/gslist.h glib/gtimer.h gobject/gvaluearray.h:
253
254         Trivial s/foo/foo_/ fixes to make <glib.h> includable with
255         -Wshadow without warnings (#91680)
256
257 Thu Nov  7 19:32:26 2002  Owen Taylor  <otaylor@redhat.com>
258
259         * glib/gutils.[ch] (g_set/get_application_name): 
260         Patch from Havoc Pennington to add functions for 
261         setting and getting a human readable application
262         name.
263
264         * configure.in: Up to version 2.1.3, since we'll
265         need to depend on last addition for GTK+.
266
267 2002-11-06  Tor Lillqvist  <tml@iki.fi>
268
269         * glib/glib.def: Add g_main_thread_init.
270
271 2002-11-06  Matthias Clasen  <maclas@gmx.de>
272
273         * glib/gstrfuncs.c (g_str_has_suffix): 
274         (g_str_has_prefix): Minor doc markup fix.
275
276 Mon Nov  4 10:45:48 2002  Owen Taylor  <otaylor@redhat.com>
277
278         * configure.in: Add -DG_DISABLE_CAST_CHECKS for 
279         everything but --enable-debug.
280
281         * configure.in: Require pkg-config 0.14. (#97553)
282
283 Mon Nov  4 14:41:48 2002  Owen Taylor  <otaylor@redhat.com>
284  
285         * glib/gbsearcharray.c: Include config.h
286         so DISABLE_MEMPOOLS actually has an effect.
287         (#96437, Morten Welinder)
288  
289         * tests/uri-test.c: Include <config.h>
290
291 2002-11-03  Dmitry G. Mastrukov  <dmitry@taurussoft.org>
292
293         * configure.in: Added Belarusian to ALL_LINGUAS
294
295 2002-11-02  Daniel Elstner  <daniel.elstner@gmx.net>
296
297         * glib/giochannel.c (g_io_channel_write_chars): Fix left_len
298         calculation in the from UTF-8 to UTF-8 case: left_len should
299         be the number of bytes left in the input buffer rather than
300         channel->write_buf. (#96373)
301
302 2002-10-27  Tor Lillqvist  <tml@iki.fi>
303
304         * configure.in (G_MODULE_LDFLAGS): Don't set on Win32, only causes
305         trouble.
306         
307         * glib/gmain.c (g_poll): Fix for bug reported by Herman Bloggs
308         (http://mail.gnome.org/archives/gtk-devel-list/2002-October/msg00101.html)
309         and others. We waited for events only for GPollFDs whose events
310         field had G_IO_IN set. We need to wait also for events for
311         GPollFDs that have just G_IO_OUT set. Non-blocking sockets in the
312         process of being connect()ed are one such case. Also silence a
313         couple of gcc warnings.
314
315 Fri Oct 18 13:41:30 2002  Manish Singh  <yosh@gimp.org>
316
317         * glib/giochannel.c (g_io_channel_read_line_backend): avoid
318         creating negative values out of unsigned values using MAX,
319         check to see if the result would be positive before doing
320         the calculation.
321
322 Tue Oct 15 15:28:47 2002  Manish Singh  <yosh@gimp.org>
323
324         * tests/iochannel-test.c: use gsize instead of int where appropriate
325         (64-bit cleanliness fix). Removed leftover line_term cruft.
326
327 Tue Oct 15 15:07:45 2002  Manish Singh  <yosh@gimp.org>
328
329         * gmodule/Makefile.am gobject/Makefile.am gthread/Makefile.am:
330         add -DG_DISABLED_DEPRECATED
331
332         * tests/gio-test.c tests/mainloop-test.c tests/string-test.c
333         tests/testglib.c test/tree-test.c tests/unicode-collate.c
334         tests/unicode-normalize.c: Deprecation cleanup
335
336 Mon Oct 14 15:51:05 2002  Owen Taylor  <otaylor@redhat.com>
337
338         * glib/gdate.c (g_date_fill_parse_tokens): Fix a memory
339         leak. (#94550, Sebastian Rittau)
340
341 Mon Oct 14 15:36:11 2002  Owen Taylor  <otaylor@redhat.com>
342
343         * glib/gcompletion.[ch] (g_completion_complete): Make
344         prefix argument const. (#91662, Gustavo Carneiro) 
345
346 Mon Oct 14 15:32:14 2002  Owen Taylor  <otaylor@redhat.com>
347  
348         * tests/mainloop-test.c (adder_response): Fix a minor memory
349         leak.
350  
351 Sat Oct 12 21:30:41 2002  Tim Janik  <timj@gtk.org>
352
353         * merged up from glib-2-0:
354
355         * glib/gstrfuncs.c (g_ascii_strtod): fix comment.
356         (g_ascii_strtoull): new function, acting like strtoull(3) in the C
357         locale.
358
359         * glib/gscanner.[hc]: fix 32bit issues with integer parsing and
360         support storing 64bit values in GTokenValue by
361         using g_ascii_strtoull().
362
363 Sat Oct 12 12:34:22 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
364
365         * glib/gtree.c (g_tree_search), glib/gspawn.c
366         (g_spawn_async_with_pipes): 
367
368         Documentation fixes: #71778, Owen Taylor; #85095, Bill Janssen,
369         Owen Taylor. 
370
371 Thu Oct 10 23:27:02 2002  Tim Janik  <timj@gtk.org>
372
373         * glib/gscanner.c (g_scanner_msg_handler): if input_name is NULL,
374         print out "<memory>" instead of completely skipping input specification
375         and thusly loosing error line information.
376
377 Sun Sep 29 12:15:44 2002  Manish Singh  <yosh@gimp.org>
378
379         * tests/mainloop-test.c: use gsize instead of int where appropriate
380         (64-bit cleanliness fix)
381
382 2002-09-29  Tor Lillqvist  <tml@iki.fi>
383
384         * configure.in: Instead of forcing -fnative-struct into CFLAGS
385         when using gcc for Win32, check for gcc version 3.x which uses
386         -mms-bitfields instead. Also check if either of these switches is
387         actually available at all, and warn if not. Thanks to Soren
388         Andersen for the inspiration.
389
390         * HACKING: Say we require autoconf 2.52 as that is what
391         configure.in does.
392
393 2002-09-23  Arvind Samptur <arvind.samptur@wipro.com>
394         * glib/gspawn.c (fork_exec_with_pipes) : when the child fails
395         we need to reap it to avoid a zombie. This would
396         happen in case of g_spawn_sync. Fixes #92658
397
398 2002-09-20  Matthias Clasen  <maclas@gmx.de>
399
400         * glib/gscanner.c (g_scanner_msg_handler): Don't print
401         scanner->input_name when it is NULL.  (#93752)
402
403 2002-09-06  Havoc Pennington  <hp@redhat.com>
404
405         * autogen.sh: automake 1.4
406
407 2002-09-01  Soeren Sandmann  <sandmann@daimi.au.dk>
408
409         * docs/reference/glib/tmpl/datalist.sgml, glib/gmain.c:
410
411         Documentation fixes: (#75255, Martin Schulze; #76104, Daryll Strauss)
412
413 2002-08-26  Tor Lillqvist  <tml@iki.fi>
414
415         * configure.in (G_LIBS_EXTRA): Don't link with -lwsock32 on
416         Cygwin (#91696, Masahiro Sakai).
417
418 Tue Aug 20 16:01:03 2002  HideToshi Tajima  <hidetoshi.tajima@sun.com>
419
420         * glib/gconvert.c (strdup_len): validate 'len' argument properly
421         for the case that input string is not null-terminated. (#91222)
422
423 2002-08-10  Gustavo Noronha Silva  <kov@debian.org>
424
425         * configure.in: added pt_BR to ALL_LINGUAS
426
427 2002-08-07  Matthias Clasen  <maclas@gmx.de>
428
429         * glib/gmarkup.c (g_markup_parse_context_get_element): 
430         Use g_return_val_if_fail, no g_return_if_fail.
431
432 2002-08-06  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
433
434         * glib/gthread.c: Set the normal PID surrogate priority according
435         to getpid() to avoid errors for niced processes. (#86116)
436
437         * gthread/gthread-impl.c, gthread/gthread-posix.c,
438         gthread/gthread-solaris.c: Do the same for the posix/dce
439         implementation. Solaris still needs to set priority of the main
440         thread, because all unbound threads will schedule according to
441         that value and it defaults to 0 (the minimal value). 
442
443         * glib/gmain.c: Factor out g_main_context_init_pipe from
444         g_main_context_new to initialize the wakeup pipe of a
445         context. Call that function from g_main_context_new if threads are
446         initialized and for all contexts when threads are initialized
447         in g_main_thread_init. (#86872) 
448
449         * gthread/gthread-impl.c: Call g_main_thread_init. (#86872) 
450
451 Thu Jul 25 14:23:15 2002  Owen Taylor  <otaylor@redhat.com>
452
453         * glib/gfileutils.c: Clarify the behavior of g_build_path()
454         for empty elements and for leading and trailing copies
455         of the separator in the docs.
456  
457         * glib/gfileutils.c: Fix problems with leading elements
458         consisting only of "/" characters. (#85928, Guillaume Chazarain)
459  
460         * tests/strfunc-test.c (main): Add more test cases
461         for g_build_filename().
462  
463 2002-07-26  Matthias Clasen  <maclas@gmx.de>
464
465         * glib/gunicode.h: 
466         * glib/gutf8.c (g_utf8_strreverse): New function to revert
467         a utf8 string.
468         * glib/gpattern.c (g_utf8_reverse): Gone, replaced by 
469         g_utf8_strreverse.  (#87725)
470
471 Thu Jul 25 20:57:20 2002  Owen Taylor  <otaylor@redhat.com>
472
473         * glib/giochannel.c (g_io_channel_read_line): Fix 
474         docs for @str_return to conform to the main docs
475         and the implementation as to whether the terminator
476         is included. (#87964, Jacob Berkman)
477
478 Thu Jul 25 19:52:41 2002  Owen Taylor  <otaylor@redhat.com>
479
480         * glib/guniprop.c (real_tolower): Handle the 
481         end of the string properly when max_len is set.
482         (#88545, Morten Welinder.) Rename the next_t
483         variable to next_type to make cc-mode happy.
484
485         * glib/gconvert.c (g_iconv_open): Fix missing
486         label from previous commit.
487
488 Thu Jul 25 19:41:03 2002  Owen Taylor  <otaylor@redhat.com>
489
490         * glib/giochannel.c (g_io_channel_get_flags): Fix 
491         incorrect return value in g_return_val_if_fail 
492         (#85545, David L. Cooper II)
493
494 Thu Jul 25 19:12:43 2002  Owen Taylor  <otaylor@redhat.com>
495
496         * glib/giochannel.c (g_io_channel_set_encoding): Clarify
497         that only one of the conditions listed in the docs
498         need to be true, not all of them. (#87176,
499         Sebastian Rittau)
500
501         * glib/giochannel.c (g_io_channel_read_line): Fix 
502         description of the return value. (#87754, Manuel Clos)
503
504 Thu Jul 25 19:02:53 2002  Owen Taylor  <otaylor@redhat.com>
505
506         * glib/gmain.c (g_timeout_add): Remove reference
507         in the docs to @notify parameter. (#87768,
508         Manuel Clos)
509
510 Thu Jul 25 17:57:07 2002  Owen Taylor  <otaylor@redhat.com>
511
512         * glib/gconvert.c (g_iconv_open): Document the
513         (GIConv)-1 return value on failure. (#87559, 
514         Jarek Dukat)
515
516         * glib/gconvert.c (g_iconv_open): Fix potential
517         problems with the assumption that (GIConv)(iconv_t)-1
518         is the same as (GIConv)-1.
519         
520 2002-07-15  Matthias Clasen  <maclas@gmx.de>
521
522         * glib/gmarkup.h: 
523         * glib/gmarkup.c (g_markup_parse_context_get_element): New
524         function to get the currently open element.  (#70448)
525
526 2002-07-04  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
527
528         * tests/*.c: Added #undef G_DISABLE_ASSERT and #undef G_LOG_DOMAIN
529         throughout the files, which didn't already have them. (#87312)
530
531 2002-07-03  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
532
533         * configure.in: Made the thread flags determination tests first
534         check for the canonical form -pthread[s], then for other
535         possibilities. Also recognize some more platforms. Modeled after
536         patch from Miroslaw Dobrzanski-Neumann <mne@mosaic-ag.com>
537         (#77981).
538         
539         * configure.in: Fixed bugs in posix thread priority
540         resolution. Also added AIX priorities. Fix from
541         Laurent Vivier <Laurent.Vivier@bull.net>. (#82599)
542         
543         * gthread/gthread-solaris.c: Use thr_min_stack() instead of
544         sysconf (_SC_THREAD_STACK_MIN). if stack_size is 0 on entry to
545         g_thread_create_solaris_impl, also pass 0 to thr_create. Otherwise
546         the stack might be to small for any nontrivial thread. Discovered
547         on intel-solaris by Rajkumar Sivasamy <rajkumar.siva@wipro.com>.
548
549 2002-07-03  Anders Carlsson  <andersca@gnu.org>
550
551         * configure.in: Add a forgotten trailing ` in the 
552         GLIB_BINARY_AGE expression. Also fixup LT_CURRENT.
553
554 2002-07-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
555
556         * configure.in: Set binary age to 0 to make it compile.
557
558         * configure.in: Improve checks for dce/posix threads to also do
559         the right thing, if the thread functions are not declared in
560         pthread.h. Idea from Miroslaw Dobrzanski-Neumann
561         <mne@mosaic-ag.com> in #77981.
562
563 2002-07-01  Anders Carlsson  <andersca@gnu.org>
564
565         * configure.in: Up version to 2.1.0.
566
567 2002-07-01  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
568
569         * glib/garray.h: Add parenthesis to protect macro
570         argument. Spotted by Sam Couter <sam@topic.com.au>. (#86826)
571
572 2002-06-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
573
574         * glib/gmessages.h (g_assert, g_assert_not_reached,
575         g_return_if_fail, g_return_val_if_fail): In case of
576         G_DISABLE_ASSERT replace "G_STMT_START{ }G_STMT_END" with
577         "G_STMT_START{ (void)0; }G_STMT_END", because the former chokes
578         gcc prior to 3.0. (#86664)
579
580 2002-06-26  Yanko Kaneti <yaneti@declera.com>
581
582         * configure.in: (ALL_LINGUAS) Added Bulgarian (bg).
583
584 Thu Jun 13 16:12:04 2002  Owen Taylor  <otaylor@redhat.com>
585
586         * glib/gmain.c (struct _GTimeoutSource): Make 
587         interval unsigned to match g_timeout_source_new().
588         (#82624, Tim Janik.)
589
590         * glib/gmain.c (g_timeout_prepare): Add some
591         extra gymnastics to avoid signed/unisgned integer
592         overflows.
593
594 Thu Jun 13 15:57:46 2002  Owen Taylor  <otaylor@redhat.com>
595
596         * INSTALL.in: Add a note about the deficiency
597         of Tru64 iconv. (#81699, Manuel Op de Coul)
598
599 Tue Jun 11 17:03:39 2002  Owen Taylor  <otaylor@redhat.com>
600
601         * tests/patterntest.c (test_compilation)
602         * glib/gmem.c (profiler_try_realloc): A couple
603         of 64-bit printf format fix from George Lebl.
604         (#82817)
605
606         * glib/gconvert.c (open_converter): Fix gsize/gint
607         mixup for g_iconv() arguments. (#83270,
608         David L. Cooper II)
609
610 2002-06-03  Matthias Clasen  <maclas@gmx.de>
611
612         * glib/gwin32.c (g_win32_get_package_installation_directory):
613         Replace homegrown "hash" entity by standard ISO entity "num".
614
615 2002-05-26  Matthias Clasen  <maclas@gmx.de>
616
617         * glib/gmain.c: Remove references to nonexisting functions 
618         g_source_set_callback_closure(), g_source_poll(), g_source_add()
619         from docs.
620
621         * glib/gdir.c (g_dir_open): Typo fix in docs.
622
623         * glib/gasyncqueue.c (g_async_queue_lock):
624         (g_async_queue_unref_and_unlock): Fix markup to avoid erroneous 
625         <link>s in docs.
626
627         * glib/gwin32.c: Escape #'s leading to erroneous <link>s in docs.
628
629         * glib/gtree.c: Replace some occurances of Gtree by GTree in docs.
630
631         * glib/gstring.c (g_string_insert_unichar): Typo fix in docs.
632
633 2002-05-23  Havoc Pennington  <hp@redhat.com>
634
635         * glib/gspawn.c (fork_exec_with_pipes): on success, close the
636         pipes from the child. Fix from Tim.
637
638 2002-05-22  jacob berkman  <jacob@ximian.com>
639
640         * m4macros/glib-gettext.m4 (AM_GLIB_WITH_NLS): fix tyop
641
642 Wed May 22 15:40:47 2002  Owen Taylor  <otaylor@redhat.com>
643
644         * README.in: Remove notes about now-fixed-bugs.
645
646         * m4macros/glib-gettext.m4 acinclude.m4: Get rid
647         of AC_MSG_NOTICE() usage, since some broken systems
648         (Hi Debian!) might not be using autoconf-2.5x for
649         downstream packages even though we require it for
650         glib itself.
651
652         * INSTALL.in: Add a note about installing extra
653         converters for Solaris.
654
655         * glib/gutils.h (g_bit_nth_msf): Fix termination
656         condition. (#82582, Paolo Molaro)
657  
658 Tue May 21 15:51:17 2002  Owen Taylor  <otaylor@redhat.com>
659
660         * configure.in: $with_libiconv, not $with_iconv.
661
662 Mon May 20 18:02:46 2002  Owen Taylor  <otaylor@redhat.com>
663
664         * configure.in: Move iconv tests before gettext
665         checks. (#81999)
666
667         * m4macros/glib-gettext.m4 acinclude.m4: If we can't
668         link to gettext, try adding in -liconv. (#80076,
669         Boyd Lynn Gerber)
670
671         * m4macros/glib-gettext.m4 acinclude.m4: Suppress
672         warnings about xgettext not being GNU gettext when
673         libintl wasn't found at all. 
674         (#79016, Andrew P. Lentvorski, Jr.)
675          
676 2002-05-21  Matthias Clasen  <maclas@gmx.de>
677
678         * glib/gmarkup.c (g_markup_parse_context_parse): Added
679         proper support for CDATA sections.
680
681 2002-05-20  jacob berkman  <jacob@ximian.com>
682
683         * glib/gdir.c: include sys/types.h before dirent.h to build on
684         darwin (fixes #72859)
685
686 Mon May 20 15:35:59 2002  Owen Taylor  <otaylor@redhat.com>
687  
688         * glib/gfileutils.c (get_contents_regfile): Fix double
689         close of file descriptor on error. (#82139, Wayne Schuller)
690  
691         * glib/gspawn.c (close_and_invalidate): Don't close
692         fd's that have already been closed. (Fix from Michael
693         Meeks, #81959)
694  
695         * glib/giochannel.c (g_io_channel_close): If not flushing,
696         dump the contents of the write buffers, so we won't try
697         to write them to an invalid fd later. (Patch from Ron Steinke,
698         fixing #78290, Andreas Persenius.)
699  
700 2002-05-18  Matthias Clasen  <maclas@gmx.de>
701
702         * tests/markups/fail-36.gmarkup: 
703         * tests/markups/fail-35.gmarkup: 
704         * tests/markups/valid-8.gmarkup: 
705         * tests/markups/valid-7.gmarkup: 
706         * tests/markups/valid-6.gmarkup: 
707         * tests/markups/valid-5.gmarkup: New testcases.
708
709         * tests/markup-test.c (passthrough_handler): 
710         (text_handler): Don't ignore the text_len parameter.
711
712         * glib/gmarkup.c (find_current_text_end): Don't hang on embedded
713         nuls.  (#81977)
714         (g_markup_parse_context_parse): Fix passthrough handling to
715         correctly skip processing instructions, comments, doctype
716         declarations and CDATA marked sections.  (#81977)
717
718 Sat May 18 00:21:51 2002  Tim Janik  <timj@gtk.org>
719
720         [merged from stable]
721
722         * glib/gscanner.c (g_scanner_unexp_token): fix missing cases for
723         expected_token.
724
725 2002-05-17  Tor Lillqvist  <tml@iki.fi>
726
727         * config.h.win32.in: Match new additions in a configure-produced
728         config.h.
729
730         * glibconfig.h.win32.in: gssize and gsize as in a
731         configure-produced glibconfig.h.
732
733         * glib/glib.def: Add new functions.
734
735 Thu May 16 12:24:00 2002  Owen Taylor  <otaylor@redhat.com>
736  
737         * acinclude.m4 m4macros/glib-gettext.m4: Incorporate 
738         AM_LC_MESSAGES, AM_PATH_PROG_WITH_TEST as AM_GLIB_* to avoid 
739         dependencies on gettext m4 files. (#81885, Hidetoshi Tajima.)
740         
741 2002-05-14  Alex Larsson <alexl@redhat.com>
742         
743         * glib/gstrfuncs.c: 
744         * glib/gstrfuncs.h:
745         New functions g_str_has_suffix and g_str_has_prefix.
746         
747         * tests/string-test.c: (main):
748         Test the new functions.
749
750 Mon May 13 23:20:00 2002  Owen Taylor  <otaylor@redhat.com>
751
752         * autogen.sh (have_gettext): Add a check for GNU gettext.
753         (Pointed out by Dan Winship in #59386.)
754
755 Mon May 13 11:55:33 2002  Owen Taylor  <otaylor@redhat.com>
756
757         * configure.in acglib.m4: If sizeof(int) == sizeof(long)
758         run compilation tests to determine which way gsize should
759         be defined. (#74413, reported by Miroslaw Dobrzanski-Neumann)
760
761 Mon May 13 11:42:23 2002  Owen Taylor  <otaylor@redhat.com>
762  
763         * glib/libcharset/*: Update from libcharset CVS.
764         Includes additional encodings for Solaris (#80396,
765         Qingjiang Yuan)
766  
767         * configure.in: Add getc_unlocked to CHECK_FUNCS().
768  
769         * glib/gmessages.c (strdup_convert): If
770         g_convert_with_fallback() fails, print the error
771         message to stderr the first time, then return
772         the original string. (#78197)
773  
774 2002-05-10  Naba Kumar  <kh_naba@users.sourceforge.net>
775
776         * configure.in: Added "hi" to ALL_LINGUAS.
777
778 2002-05-08  Michael Natterer  <mitch@gimp.org>
779
780         * configure.in: fixed yesterdays fix for cross compiling: simply
781         check the variable "cross_compiling" which gets set by autoconf.
782
783 2002-05-07  Matthias Clasen  <maclas@gmx.de>
784
785         * glib/gmarkup.c (unescape_text): Report unfinished entity
786         references as errors rather than running into an assert.  (#80441)
787
788 2002-05-07  Michael Natterer  <mitch@gimp.org>
789
790         * configure.in: added a new conditional CROSS_COMPILING which
791         indicates ($build != $host). If it is set, look for
792         glib-genmarshal in PATH. Error out if it was not found.
793
794 Tue May  7 11:24:22 2002  Owen Taylor  <otaylor@redhat.com>
795
796         Fixes for #79347, Ron Arts.
797
798         * glib/gqsort.c (g_qsort_with_data): Handle 0 elements,
799         don't g_return_if_fail().
800
801         * tests/qsort-test.c (main): Add a 0 element test.
802
803         * glib/garray.c (g_[ptr_]array_sort_with[_data]): 
804         Remove invalid assertions that array->pdata != NULL ..
805         it's NULL for 0 elements which is a valid case.
806
807 Mon May  6 16:00:41 2002  Owen Taylor  <otaylor@redhat.com>
808
809         * glib/gbacktrace.h: Exclude OSF from alpha definition
810         of G_BREAKPOINT(), since the assembler apparently
811         doesn't support bpt. (#77852, Gareth Pierce) [from stable]
812
813 Mon May  6 11:48:08 2002  Owen Taylor  <otaylor@redhat.com>
814
815         [ merged from stable ]
816  
817         * Makefile.am (EXTRA_DIST): Add ChangeLog.pre-2-0 (#78641)
818  
819         * m4macros/glib-2.0.m4: save CFLAGS/LIBS properly when
820         compiling "what went wrong" test case. (#79330)
821  
822         * m4macros/glib-2.0.m4: Remove reference to editing
823         pkg-config script. (From Jim Gettys)
824  
825         * configure.in: (Look for dyld interfaces before dlopen()
826         since OS X can have both. Patch from Jacob Berkman, 
827         #80438)
828         
829 2002-05-01  jacob berkman  <jacob@ximian.com>
830
831         * configure.in: fix typo on 64-bit printf formatting string
832         configure message (fixes #80389)
833
834 2002-04-29  Pablo Saratxaga  <pablo@mandrakesoft.com>
835
836         * configure.in: Added Vietnamese (vi) to ALL_LINGUAS
837
838 2002-04-19  Tor Lillqvist  <tml@iki.fi>
839
840         * glib/gspawn.c (g_spawn_command_line_sync): Add Windows-specific
841         note to the gtk-doc comment.
842
843         * glib/gspawn-win32.c: Remove the copy-pasted gtk-doc comment
844         blocks. It's enough to have them in gspawn.c.
845
846 2002-04-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
847
848         * gthread/gthread-impl.c (g_thread_init): Fixed typo. (#78985)
849
850 2002-04-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
851
852         * glib/gthreadpool.c (g_thread_pool_thread_proxy): Unlock the pool
853         for all threads leaving it. (#78348)
854
855 2002-04-11  Matthias Clasen  <maclas@gmx.de>
856
857         * tests/patterntest.c: Remove manual UTF-8 -> Latin1 conversion for
858         stuff fed to g_print.
859
860 2002-04-08  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
861
862         * tests/gio-test.c, tests/markup-test.c: Use gsize instead of
863         gint. From Miroslaw Dobrzanski-Neumann
864         <mne@mosaic-ag.com>. (#77982)
865         
866 2002-04-08  Stanislav Brabec  <utx@penguin.cz> 
867
868         * cs.po: Added Czech (cs) to ALL_LINGUAS.
869
870 2002-03-31  Hasbullah Bin Pit <sebol@ikhlas.com>
871
872         * configure.in: Added Malay (ms)to ALL_LINGUAS.
873
874 2002-03-29  Tor Lillqvist  <tml@iki.fi>
875
876         * glib/glib.def: Add g_convert_init.
877
878 Thu Mar 28 18:25:14 2002  Owen Taylor  <otaylor@redhat.com>
879
880         * Released 2.0.1
881
882         * configure.in: Version 2.0.1, interface, binary age 1.
883
884 Thu Mar 28 18:22:53 2002  Owen Taylor  <otaylor@redhat.com>
885
886         * README: Remove warning about g_print, etc, encoding.
887
888         * NEWS: Updates.
889
890         * glib/gmessages.c (g_log_default_handler): Use %lu
891         (plus a cast) when printing out pid_t arguments.
892         (#76770, Morten Welinder)
893
894         * glib/gstrfuncs.c (g_strdup_vprintf): Check the
895         result of vasprintf(), return NULL on failure.
896         (#76802, Akira Tagoh)
897
898         * tests/testglib.c (TEST): Supress a warning with
899         some GCC versions. 
900
901 Thu Mar 28 20:31:51 2002  Tim Janik  <timj@gtk.org>
902
903         * glib/gmessages.c:
904         (g_print): 
905         (g_printerr): convert prtinf() strings to local charset
906         when writing them to stdout or stderr.
907
908 Wed Mar 27 18:42:22 2002  Tim Janik  <timj@gtk.org>
909
910         * gmessages.[hc]:
911         major cleanups. introduced _g_log_fallback_handler() to handle
912         recursive messages which really doesn't call any GLib functions.
913         this allowes the default handler to use normal GLib functions and
914         also fixes user supplied log level handlers.
915         fixed locking issues, based on a patch from Sebastian Willhelmi,
916         attached to #74356. translate log messages from UTF-8, based
917         on the same patch. save fatal and recursion flags across flag
918         loop. use new integer format code from above patch.
919         move GLib functions out of locked mutex state to avoid deadlocks.
920         move the level prefix and filedescriptor logic into mklevel_prefix().
921         move _g_debug_init() into a place where we can figure and handle
922         recursion.
923
924 Mon Mar 25 18:13:06 2002  Owen Taylor  <otaylor@redhat.com>
925
926         * glib/gtypes.h (GUINT*_SWAP_LE_BE_X86): Remove __const__
927         qualifier from __asm__ statements... GCC since at least
928         2.96 has assumed no side effects automaticaly, and gcc-3.1
929         will warn about this usage. (#73308, Cody Russell)
930
931 Fri Mar 22 17:59:27 2002  Owen Taylor  <otaylor@redhat.com>
932
933         * glib/gmem.c (g_mem_chunk_reset): Fix problem where
934         if g_mem_chunk_reset() is called on an alloc-only
935         memchunk, then a useles GTree was created.
936
937 Wed Mar 20 18:20:21 2002  Owen Taylor  <otaylor@redhat.com>
938
939         * glib/gconvert.c (open_converter): Try to work around segfaults
940         on Solaris if NULL is passed for outbuf... supposedly gchar
941         *outbuf = NULL... &outbuf works. (#74336, Lauri Alanko)
942
943 Wed Mar 20 11:17:32 2002  Owen Taylor  <otaylor@redhat.com>
944
945         * glib/gfileutils.c (get_contents_regfile): Close the
946         file descriptor. (#75507, Matthias Clasen)
947
948 Wed Mar 20 11:00:59 2002  Owen Taylor  <otaylor@redhat.com>
949
950         * configure.in: Use $PKG_CONFIG, not pkg-config.
951         (LEE Sau Dan, #75572)
952
953 2002-03-20  Sven Neumann  <sven@gimp.org>
954
955         * glib/ghash.c (g_hash_table_resize): avoid repeated call of 
956         g_spaced_primes_closest() by moving it out of the CLAMP macro 
957         (spotted by Salmaso Raffaele).
958
959 2002-03-17  Tor Lillqvist  <tml@iki.fi>
960
961         * README.win32: Add MSVC-specific text by Hans Breuer.
962
963 2002-03-16  Tor Lillqvist  <tml@iki.fi>
964
965         * glib/giowin32.c: Some debugging output formatting changes. The
966         following changes fix a problem with buffered GIOChannels, noticed
967         with the help of Owen's test program, thanks! (#59969)
968         (g_io_win32_prepare): Return value that takes the buffer condition
969         into account, like g_io_unix_prepare() does.
970         (g_io_win32_check): Ditto, like g_io_unix_check().
971         (g_io_win32_dispatch): Ditto, like g_io_unix_dispatch().
972
973 Thu Mar 14 17:37:45 2002  Owen Taylor  <otaylor@redhat.com>
974
975         * glib/giochannel.c (g_io_channel_write_chars): Fix some
976         gsize/gint mismatches. (#74422, Miroslaw Dobrzanski-Neumann)
977
978 2002-03-14  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
979
980         * glib/gmessages.c: Fixed threading issues brought up by
981         #74577. Make g_log_find_domain, g_log_domain_new,
982         g_log_domain_check_free and g_log_domain_get_handler require being
983         called with g_messages_lock held and remove all internal locking
984         in them. Then added proper locking to g_log_set_handler,
985         g_log_remove_handler and g_logv. Problem spotted by Miroslaw
986         Dobrzanski-Neumann <mne@mosaic-ag.com>. (#74577)
987
988 2002-03-13  Erwann Chenede  <erwann.chenede@sun.com>
989         * glib/gconvert.c 
990           glib/gen-unicode-tables.pl
991           glib/gunidecomp.h : fixed cast/type problems to 
992           avoid warnings (with forte compiler) (#73898)
993         
994 2002-03-12  Alexander Larsson  <alla@lysator.liu.se>
995
996         * glib/gconvert.c:
997         Cache getenv("G_BROKEN_FILENAMES") in have_broken_filenames() and
998         use instead. Add g_convert_init() that calls have_broken_filenames()
999
1000         * gthread/gthread-impl.c:
1001         Have g_thread_init call g_convert_init.
1002
1003 2002-03-11  Matthias Clasen  <maclas@gmx.de>
1004
1005         * glib/gstrfuncs.c (g_strtod): 
1006         (g_ascii_strtod): 
1007         (g_ascii_dtostr): 
1008         (g_ascii_formatd): Doc formatting fixes.
1009