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