platform/upstream/glib.git
22 years agoUpdate to latest gtk-doc version.
Matthias Clasen [Sat, 19 Oct 2002 23:41:27 +0000 (23:41 +0000)]
Update to latest gtk-doc version.

22 years agoavoid creating negative values out of unsigned values using MAX, check to
Manish Singh [Fri, 18 Oct 2002 20:43:56 +0000 (20:43 +0000)]
avoid creating negative values out of unsigned values using MAX, check to

Fri Oct 18 13:41:30 2002  Manish Singh  <yosh@gimp.org>

        * glib/giochannel.c (g_io_channel_read_line_backend): avoid
        creating negative values out of unsigned values using MAX,
        check to see if the result would be positive before doing
        the calculation.

22 years agouse gsize instead of int where appropriate (64-bit cleanliness fix).
Manish Singh [Tue, 15 Oct 2002 22:39:16 +0000 (22:39 +0000)]
use gsize instead of int where appropriate (64-bit cleanliness fix).

Tue Oct 15 15:28:47 2002  Manish Singh  <yosh@gimp.org>

        * tests/iochannel-test.c: use gsize instead of int where appropriate
        (64-bit cleanliness fix). Removed leftover line_term cruft.

22 years agoSupport for template files.
Matthias Clasen [Tue, 15 Oct 2002 22:26:39 +0000 (22:26 +0000)]
Support for template files.

22 years agoadd -DG_DISABLED_DEPRECATED
Manish Singh [Tue, 15 Oct 2002 22:16:57 +0000 (22:16 +0000)]
add -DG_DISABLED_DEPRECATED

Tue Oct 15 15:07:45 2002  Manish Singh  <yosh@gimp.org>

        * gmodule/Makefile.am gobject/Makefile.am gthread/Makefile.am:
        add -DG_DISABLED_DEPRECATED

        * tests/gio-test.c tests/mainloop-test.c tests/string-test.c
        tests/testglib.c test/tree-test.c tests/unicode-collate.c
        tests/unicode-normalize.c: Deprecation cleanup

22 years agoAdd g_type_interface_prerequisites.
Matthias Clasen [Tue, 15 Oct 2002 21:16:20 +0000 (21:16 +0000)]
Add g_type_interface_prerequisites.

22 years agoFix a memory leak. (#94550, Sebastian Rittau)
Owen Taylor [Mon, 14 Oct 2002 22:18:16 +0000 (22:18 +0000)]
Fix a memory leak. (#94550, Sebastian Rittau)

Mon Oct 14 15:51:05 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/gdate.c (g_date_fill_parse_tokens): Fix a memory
        leak. (#94550, Sebastian Rittau)

22 years agoDist the xml/*.xml, not sgml/*.sgml. (#95678, Owen Taylor)
Matthias Clasen [Mon, 14 Oct 2002 21:54:11 +0000 (21:54 +0000)]
Dist the xml/*.xml, not sgml/*.sgml. (#95678, Owen Taylor)

* gobject/Makefile.am (dist-hook):
* glib/Makefile.am (dist-hook): Dist the xml/*.xml, not
sgml/*.sgml.  (#95678, Owen Taylor)

22 years agoMake prefix argument const. (#91662, Gustavo Carneiro)
Owen Taylor [Mon, 14 Oct 2002 19:38:30 +0000 (19:38 +0000)]
Make prefix argument const. (#91662, Gustavo Carneiro)

Mon Oct 14 15:36:11 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/gcompletion.[ch] (g_completion_complete): Make
        prefix argument const. (#91662, Gustavo Carneiro)

22 years agoFix a minor memory leak.
Owen Taylor [Mon, 14 Oct 2002 19:33:37 +0000 (19:33 +0000)]
Fix a minor memory leak.

Mon Oct 14 15:32:14 2002  Owen Taylor  <otaylor@redhat.com>

        * tests/mainloop-test.c (adder_response): Fix a minor memory
        leak.

22 years agoAdapt to latest gtk-doc changes.
Matthias Clasen [Mon, 14 Oct 2002 00:14:27 +0000 (00:14 +0000)]
Adapt to latest gtk-doc changes.

22 years agoAdded "sq" to ALL_LINGUAGES
Laurent Dhima [Sun, 13 Oct 2002 16:57:22 +0000 (16:57 +0000)]
Added "sq" to ALL_LINGUAGES

* configure.in: Added "sq" to ALL_LINGUAGES

22 years ago*** empty log message ***
Laurent Dhima [Sun, 13 Oct 2002 16:50:09 +0000 (16:50 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Laurent Dhima [Sun, 13 Oct 2002 15:49:27 +0000 (15:49 +0000)]
*** empty log message ***

22 years agotest creation of new fundamental types.
Tim Janik [Sat, 12 Oct 2002 20:04:58 +0000 (20:04 +0000)]
test creation of new fundamental types.

Sat Oct 12 22:02:32 2002  Tim Janik  <timj@gtk.org>

        * merged up from 2.0:

        * testgobject.c: test creation of new fundamental types.

        * gtype.c (g_type_fundamental_next), (type_node_fundamental_new_W):
        account for static_fundamental_next storing non-shifted fundamental
        IDs. this fixes g_type_fundamental_next() not returning a new usable
        fundamental ID.

22 years agofix comment. (g_ascii_strtoull): new function, acting like strtoull(3) in
Tim Janik [Sat, 12 Oct 2002 19:37:48 +0000 (19:37 +0000)]
fix comment. (g_ascii_strtoull): new function, acting like strtoull(3) in

Sat Oct 12 21:30:41 2002  Tim Janik  <timj@gtk.org>

        * merged up from glib-2-0:

        * glib/gstrfuncs.c (g_ascii_strtod): fix comment.
        (g_ascii_strtoull): new function, acting like strtoull(3) in the C
        locale.

        * glib/gscanner.[hc]: fix 32bit issues with integer parsing and
        support storing 64bit values in GTokenValue by
        using g_ascii_strtoull().

22 years agoDocumentation fixes: #71778, Owen Taylor; #85095, Bill Janssen, Owen
Soeren Sandmann [Sat, 12 Oct 2002 10:36:45 +0000 (10:36 +0000)]
Documentation fixes: #71778, Owen Taylor; #85095, Bill Janssen, Owen

Sat Oct 12 12:34:22 2002  Soeren Sandmann  <sandmann@daimi.au.dk>

* glib/gtree.c (g_tree_search), glib/gspawn.c
(g_spawn_async_with_pipes):

Documentation fixes: #71778, Owen Taylor; #85095, Bill Janssen,
Owen Taylor.

22 years agoif input_name is NULL, print out "<memory>" instead of completely skipping
Tim Janik [Thu, 10 Oct 2002 21:26:25 +0000 (21:26 +0000)]
if input_name is NULL, print out "<memory>" instead of completely skipping

Thu Oct 10 23:27:02 2002  Tim Janik  <timj@gtk.org>

        * glib/gscanner.c (g_scanner_msg_handler): if input_name is NULL,
        print out "<memory>" instead of completely skipping input specification
        and thusly loosing error line information.

22 years agoUpdated Norwegian (bokmål) translation.
Kjartan Maraas [Sat, 5 Oct 2002 21:48:20 +0000 (21:48 +0000)]
Updated Norwegian (bokmål) translation.

2002-10-04  Kjartan Maraas  <kmaraas@gnome.org>

* no.po: Updated Norwegian (bokmål) translation.

22 years agouse gsize instead of int where appropriate (64-bit cleanliness fix)
Manish Singh [Sun, 29 Sep 2002 19:16:31 +0000 (19:16 +0000)]
use gsize instead of int where appropriate (64-bit cleanliness fix)

Sun Sep 29 12:15:44 2002  Manish Singh  <yosh@gimp.org>

        * tests/mainloop-test.c: use gsize instead of int where appropriate
        (64-bit cleanliness fix)

22 years agoInstead of forcing -fnative-struct into CFLAGS when using gcc for Win32,
Tor Lillqvist [Sat, 28 Sep 2002 23:52:52 +0000 (23:52 +0000)]
Instead of forcing -fnative-struct into CFLAGS when using gcc for Win32,

2002-09-29  Tor Lillqvist  <tml@iki.fi>

* configure.in: Instead of forcing -fnative-struct into CFLAGS
when using gcc for Win32, check for gcc version 3.x which uses
-mms-bitfields instead. Also check if either of these switches is
actually available at all, and warn if not. Thanks to Soren
Andersen for the inspiration.

22 years agoSay we require autoconf 2.52 as that is what configure.in does.
Tor Lillqvist [Sat, 28 Sep 2002 22:15:05 +0000 (22:15 +0000)]
Say we require autoconf 2.52 as that is what configure.in does.

2002-09-29  Tor Lillqvist  <tml@iki.fi>

* HACKING: Say we require autoconf 2.52 as that is what
configure.in does.

22 years agowhen the child fails we need to reap it to avoid a zombie. This would
Arvind Samptur [Mon, 23 Sep 2002 06:45:10 +0000 (06:45 +0000)]
when the child fails we need to reap it to avoid a zombie. This would

2002-09-23  Arvind Samptur <arvind.samptur@wipro.com>
        * glib/gspawn.c (fork_exec_with_pipes) : when the child fails
        we need to reap it to avoid a zombie. This would
        happen in case of g_spawn_sync. Fixes #92658

22 years agoadded italian translation
Christopher R. Gabriel [Sat, 21 Sep 2002 23:41:46 +0000 (23:41 +0000)]
added italian translation

22 years agoDon't print scanner->input_name when it is NULL. (#93752)
Matthias Clasen [Fri, 20 Sep 2002 21:35:50 +0000 (21:35 +0000)]
Don't print scanner->input_name when it is NULL. (#93752)

* glib/gscanner.c (g_scanner_msg_handler): Don't print
scanner->input_name when it is NULL.  (#93752)

22 years agoReplace G_LOG_FLAG_RECURSIVE by G_LOG_FLAG_RECURSION throughout. (#93390)
Matthias Clasen [Mon, 16 Sep 2002 20:55:59 +0000 (20:55 +0000)]
Replace G_LOG_FLAG_RECURSIVE by G_LOG_FLAG_RECURSION throughout. (#93390)

* glib/tmpl/messages.sgml: Replace G_LOG_FLAG_RECURSIVE by
G_LOG_FLAG_RECURSION throughout.  (#93390)

22 years agoFix problems with excessive C++ warnings: "ISO C++ forbids nested groups
Dom Lachowicz [Thu, 12 Sep 2002 04:03:54 +0000 (04:03 +0000)]
Fix problems with excessive C++ warnings: "ISO C++ forbids nested groups

Wed Sep 11 16:50:20 2002  Dom Lachowicz <cinamod@hotmail.com>

        * gtype.h: Fix problems with excessive C++ warnings: "ISO C++ forbids nested groups within expressions"

22 years agoautomake 1.4
Havoc Pennington [Fri, 6 Sep 2002 19:28:28 +0000 (19:28 +0000)]
automake 1.4

2002-09-06  Havoc Pennington  <hp@redhat.com>

* autogen.sh: automake 1.4

22 years agoDocumentation fixes: (#75255, Martin Schulze; #76104, Daryll Strauss)
Soeren Sandmann [Sun, 1 Sep 2002 13:04:02 +0000 (13:04 +0000)]
Documentation fixes: (#75255, Martin Schulze; #76104, Daryll Strauss)

2002-09-01  Soeren Sandmann  <sandmann@daimi.au.dk>

* docs/reference/glib/tmpl/datalist.sgml, glib/gmain.c:

Documentation fixes: (#75255, Martin Schulze; #76104, Daryll Strauss)

22 years agoDon't link with -lwsock32 on Cygwin (#91696, Masahiro Sakai).
Tor Lillqvist [Mon, 26 Aug 2002 19:39:28 +0000 (19:39 +0000)]
Don't link with -lwsock32 on Cygwin (#91696, Masahiro Sakai).

2002-08-26  Tor Lillqvist  <tml@iki.fi>

* configure.in (G_LIBS_EXTRA): Don't link with -lwsock32 on
Cygwin (#91696, Masahiro Sakai).

22 years agoHumble...
Fatih Demir [Sat, 24 Aug 2002 13:57:18 +0000 (13:57 +0000)]
Humble...

22 years agoUpdated Persian translation.
Roozbeh Pournader [Fri, 23 Aug 2002 19:53:36 +0000 (19:53 +0000)]
Updated Persian translation.

22 years agoUpdated Persian translation.
Roozbeh Pournader [Fri, 23 Aug 2002 19:02:57 +0000 (19:02 +0000)]
Updated Persian translation.

22 years agovalidate 'len' argument properly for the case that input string is not
Hidetoshi Tajima [Tue, 20 Aug 2002 23:03:17 +0000 (23:03 +0000)]
validate 'len' argument properly for the case that input string is not

* glib/gconvert.c (strdup_len): validate 'len' argument properly
for the case that input string is not null-terminated. (#91222)

22 years agoUpdate Persian translation.
Roozbeh Pournader [Tue, 20 Aug 2002 13:51:09 +0000 (13:51 +0000)]
Update Persian translation.

22 years agoAdded Persian translation.
Roozbeh Pournader [Tue, 20 Aug 2002 11:33:57 +0000 (11:33 +0000)]
Added Persian translation.

22 years agoAdd g_markup_parse_context_get_element and g_utf8_strreverse.
Matthias Clasen [Mon, 12 Aug 2002 21:28:45 +0000 (21:28 +0000)]
Add g_markup_parse_context_get_element and g_utf8_strreverse.

* glib/glib-sections.txt: Add g_markup_parse_context_get_element
and g_utf8_strreverse.

22 years agonew translation
Gustavo Noronha Silva [Sat, 10 Aug 2002 18:12:14 +0000 (18:12 +0000)]
new translation

22 years agoUse g_return_val_if_fail, no g_return_if_fail.
Matthias Clasen [Wed, 7 Aug 2002 22:15:43 +0000 (22:15 +0000)]
Use g_return_val_if_fail, no g_return_if_fail.

* glib/gmarkup.c (g_markup_parse_context_get_element):
Use g_return_val_if_fail, no g_return_if_fail.

22 years agoFactor out g_main_context_init_pipe from g_main_context_new to initialize
Sebastian Wilhelmi [Tue, 6 Aug 2002 14:50:52 +0000 (14:50 +0000)]
Factor out g_main_context_init_pipe from g_main_context_new to initialize

2002-08-06  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* glib/gmain.c: Factor out g_main_context_init_pipe from
g_main_context_new to initialize the wakeup pipe of a
context. Call that function from g_main_context_new if threads are
initialized and for all contexts when threads are initialized
in g_main_thread_init. (#86872)

* gthread/gthread-impl.c: Call g_main_thread_init. (#86872)

22 years agoSet the normal PID surrogate priority according to getpid() to avoid
Sebastian Wilhelmi [Tue, 6 Aug 2002 13:31:26 +0000 (13:31 +0000)]
Set the normal PID surrogate priority according to getpid() to avoid

2002-08-06  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* glib/gthread.c: Set the normal PID surrogate priority according
to getpid() to avoid errors for niced processes. (#86116)

* gthread/gthread-impl.c, gthread/gthread-posix.c,
gthread/gthread-solaris.c: Do the same for the posix/dce
implementation. Solaris still needs to set priority of the main
thread, because all unbound threads will schedule according to
that value and it defaults to 0 (the minimal value).

22 years agohu Jul 25 14:23:15 2002 Owen Taylor <otaylor@redhat.com>
Owen Taylor [Fri, 26 Jul 2002 19:59:07 +0000 (19:59 +0000)]
hu Jul 25 14:23:15 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/gfileutils.c: Clarify the behavior of g_build_path()
        for empty elements and for leading and trailing copies
        of the separator in the docs.

        * glib/gfileutils.c: Fix problems with leading elements
        consisting only of "/" characters. (#85928, Guillaume Chazarain)

        * tests/strfunc-test.c (main): Add more test cases
        for g_build_filename().

22 years agoNew function to revert a utf8 string. Gone, replaced by g_utf8_strreverse.
Matthias Clasen [Fri, 26 Jul 2002 19:48:02 +0000 (19:48 +0000)]
New function to revert a utf8 string. Gone, replaced by g_utf8_strreverse.

* glib/gunicode.h:
* glib/gutf8.c (g_utf8_strreverse): New function to revert
a utf8 string.
* glib/gpattern.c (g_utf8_reverse): Gone, replaced by
g_utf8_strreverse.  (#87725)

22 years agoFix problems with excess ';' by addition of strategic 'extern void
Owen Taylor [Fri, 26 Jul 2002 19:48:00 +0000 (19:48 +0000)]
Fix problems with excess ';' by addition of strategic 'extern void

Fri Jul 26 15:46:36 2002  Owen Taylor  <otaylor@redhat.com>

        * gvaluetransform.c: Fix problems with excess ';'
        by addition of strategic 'extern void glib_dummy_decl (void)'
        (#83272, David L. Cooper II)

22 years agoFix docs for @str_return to conform to the main docs and the
Owen Taylor [Fri, 26 Jul 2002 00:59:07 +0000 (00:59 +0000)]
Fix docs for @str_return to conform to the main docs and the

Thu Jul 25 20:57:20 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/giochannel.c (g_io_channel_read_line): Fix
        docs for @str_return to conform to the main docs
        and the implementation as to whether the terminator
        is included. (#87964, Jacob Berkman)

22 years agoWhen adding ancestral prerequisites, add the grandparents, not the
Owen Taylor [Fri, 26 Jul 2002 00:42:21 +0000 (00:42 +0000)]
When adding ancestral prerequisites, add the grandparents, not the

Thu Jul 25 20:34:39 2002  Owen Taylor  <otaylor@redhat.com>

        * gtype.c (g_type_interface_add_prerequisite): When
        adding ancestral prerequisites, add the grandparents,
        not the siblings. (Problem found by Jon Trowbridge, patch from
        Dave Camp, #86879)

22 years agoHandle the end of the string properly when max_len is set. (#88545, Morten
Owen Taylor [Thu, 25 Jul 2002 23:58:00 +0000 (23:58 +0000)]
Handle the end of the string properly when max_len is set. (#88545, Morten

Thu Jul 25 19:52:41 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/guniprop.c (real_tolower): Handle the
        end of the string properly when max_len is set.
        (#88545, Morten Welinder.) Rename the next_t
        variable to next_type to make cc-mode happy.

        * glib/gconvert.c (g_iconv_open): Fix missing
        label from previous commit.

22 years agohu Jul 25 19:41:03 2002 Owen Taylor <otaylor@redhat.com>
Owen Taylor [Thu, 25 Jul 2002 23:42:25 +0000 (23:42 +0000)]
hu Jul 25 19:41:03 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/giochannel.c (g_io_channel_get_flags): Fix
        incorrect return value in g_return_val_if_fail
        (#85545, David L. Cooper II)

22 years agoClarify that only one of the conditions listed in the docs need to be
Owen Taylor [Thu, 25 Jul 2002 23:15:41 +0000 (23:15 +0000)]
Clarify that only one of the conditions listed in the docs need to be

Thu Jul 25 19:12:43 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/giochannel.c (g_io_channel_set_encoding): Clarify
        that only one of the conditions listed in the docs
        need to be true, not all of them. (#87176,
        Sebastian Rittau)

        * glib/giochannel.c (g_io_channel_read_line): Fix
        description of the return value. (#87754, Manuel Clos)

22 years agoRemove reference in the docs to @notify parameter. (#87768, Manuel Clos)
Owen Taylor [Thu, 25 Jul 2002 23:04:22 +0000 (23:04 +0000)]
Remove reference in the docs to @notify parameter. (#87768, Manuel Clos)

Thu Jul 25 19:02:53 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/gmain.c (g_timeout_add): Remove reference
        in the docs to @notify parameter. (#87768,
        Manuel Clos)

22 years agoFix reference to non-existing @priority parameter. (#88500, Linux Walleij)
Owen Taylor [Thu, 25 Jul 2002 22:59:54 +0000 (22:59 +0000)]
Fix reference to non-existing @priority parameter. (#88500, Linux Walleij)

Thu Jul 25 18:58:29 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/tmpl/threads.sgml: Fix reference to non-existing
        @priority parameter. (#88500, Linux Walleij)

22 years agoDocument the (GIConv)-1 return value on failure. (#87559, Jarek Dukat)
Owen Taylor [Thu, 25 Jul 2002 22:35:17 +0000 (22:35 +0000)]
Document the (GIConv)-1 return value on failure. (#87559, Jarek Dukat)

Thu Jul 25 17:57:07 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/gconvert.c (g_iconv_open): Document the
        (GIConv)-1 return value on failure. (#87559,
        Jarek Dukat)

        * glib/gconvert.c (g_iconv_open): Fix potential
        problems with the assumption that (GIConv)(iconv_t)-1
        is the same as (GIConv)-1.

22 years agoNew function to get the currently open element. (#70448)
Matthias Clasen [Mon, 15 Jul 2002 21:33:18 +0000 (21:33 +0000)]
New function to get the currently open element. (#70448)

* glib/gmarkup.h:
* glib/gmarkup.c (g_markup_parse_context_get_element): New
function to get the currently open element.  (#70448)

22 years agoRemove debugging message, approved by Tim Janik.
Anders Carlsson [Fri, 5 Jul 2002 07:55:22 +0000 (07:55 +0000)]
Remove debugging message, approved by Tim Janik.

2002-07-05  Anders Carlsson  <andersca@gnu.org>

* gobject.c (g_object_base_class_finalize): Remove debugging
message, approved by Tim Janik.

22 years agoAdded #undef G_DISABLE_ASSERT and #undef G_LOG_DOMAIN throughout the
Sebastian Wilhelmi [Thu, 4 Jul 2002 15:19:30 +0000 (15:19 +0000)]
Added #undef G_DISABLE_ASSERT and #undef G_LOG_DOMAIN throughout the

2002-07-04  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* tests/*.c: Added #undef G_DISABLE_ASSERT and #undef G_LOG_DOMAIN
throughout the files, which didn't already have them. (#87312)

22 years agoMade the thread flags determination tests first check for the canonical
Sebastian Wilhelmi [Wed, 3 Jul 2002 16:43:22 +0000 (16:43 +0000)]
Made the thread flags determination tests first check for the canonical

2002-07-03  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

        * configure.in: Made the thread flags determination tests first
check for the canonical form -pthread[s], then for other
possibilities. Also recognize some more platforms. Modeled after
patch from Miroslaw Dobrzanski-Neumann <mne@mosaic-ag.com>
(#77981).

22 years agoFixed bugs in posix thread priority resolution. Also added AIX priorities.
Sebastian Wilhelmi [Wed, 3 Jul 2002 15:30:46 +0000 (15:30 +0000)]
Fixed bugs in posix thread priority resolution. Also added AIX priorities.

2002-07-03  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* configure.in: Fixed bugs in posix thread priority
resolution. Also added AIX priorities. Fix from
Laurent Vivier <Laurent.Vivier@bull.net>. (#82599)

22 years agoUse thr_min_stack() instead of sysconf (_SC_THREAD_STACK_MIN). if
Sebastian Wilhelmi [Wed, 3 Jul 2002 10:38:49 +0000 (10:38 +0000)]
Use thr_min_stack() instead of sysconf (_SC_THREAD_STACK_MIN). if

2002-07-03  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* gthread/gthread-solaris.c: Use thr_min_stack() instead of
sysconf (_SC_THREAD_STACK_MIN). if stack_size is 0 on entry to
g_thread_create_solaris_impl, also pass 0 to thr_create. Otherwise
the stack might be to small for any nontrivial thread. Discovered
on intel-solaris by Rajkumar Sivasamy <rajkumar.siva@wipro.com>.

22 years agoAdd a forgotten trailing ` in the GLIB_BINARY_AGE expression. Also fixup
Anders Carlsson [Wed, 3 Jul 2002 08:14:42 +0000 (08:14 +0000)]
Add a forgotten trailing ` in the GLIB_BINARY_AGE expression. Also fixup

2002-07-03  Anders Carlsson  <andersca@gnu.org>

* configure.in: Add a forgotten trailing ` in the
GLIB_BINARY_AGE expression. Also fixup LT_CURRENT.

22 years agoImprove checks for dce/posix threads to also do the right thing, if the
Sebastian Wilhelmi [Tue, 2 Jul 2002 12:41:46 +0000 (12:41 +0000)]
Improve checks for dce/posix threads to also do the right thing, if the

2002-07-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* configure.in: Improve checks for dce/posix threads to also do
the right thing, if the thread functions are not declared in the
pthread.h. Idea from Miroslaw Dobrzanski-Neumann
<mne@mosaic-ag.com> in #77981.

22 years agoSet binary age to 0 to make it compile.
Sebastian Wilhelmi [Tue, 2 Jul 2002 07:18:48 +0000 (07:18 +0000)]
Set binary age to 0 to make it compile.

2002-07-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* configure.in: Set binary age to 0 to make it compile.

22 years agoUp version to 2.1.0.
Anders Carlsson [Mon, 1 Jul 2002 16:56:25 +0000 (16:56 +0000)]
Up version to 2.1.0.

2002-07-01  Anders Carlsson  <andersca@gnu.org>

* configure.in: Up version to 2.1.0.

22 years agoFixed ChangeLog entry
Sebastian Wilhelmi [Mon, 1 Jul 2002 12:42:20 +0000 (12:42 +0000)]
Fixed ChangeLog entry

Fixed ChangeLog entry

22 years agoAdd parenthesis to protect macro argument. Spotted by Sam Couter"
Sebastian Wilhelmi [Mon, 1 Jul 2002 12:41:50 +0000 (12:41 +0000)]
Add parenthesis to protect macro argument. Spotted by Sam Couter"

2002-07-01  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* glib/garray.h: Add parenthesis to protect macro
argument. Spotted by Sam Couter" <sam@topic.com.au>. (#86826)

22 years agoIn case of G_DISABLE_ASSERT replace "G_STMT_START{ }G_STMT_END" with
Sebastian Wilhelmi [Fri, 28 Jun 2002 08:41:16 +0000 (08:41 +0000)]
In case of G_DISABLE_ASSERT replace "G_STMT_START{ }G_STMT_END" with

2002-06-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* glib/gmessages.h (g_assert, g_assert_not_reached,
g_return_if_fail, g_return_val_if_fail): In case of
G_DISABLE_ASSERT replace "G_STMT_START{ }G_STMT_END" with
"G_STMT_START{ (void)0; }G_STMT_END", because the former chokes
gcc prior to 3.0. (#86664)

22 years agoAdded Bulgarian (bg).
Yanko Kaneti [Wed, 26 Jun 2002 08:27:48 +0000 (08:27 +0000)]
Added Bulgarian (bg).

2002-06-26  Yanko Kaneti <yaneti@declera.com>

   * configure.in: (ALL_LINGUAS) Added Bulgarian (bg).

po/

   * bg.po (added): Bulgarian translation by
   Borislav Aleksandrov <B.Aleksandrov@cnsys.bg>.

22 years agoUpdated
Andrew V. Samoilov [Wed, 19 Jun 2002 11:43:48 +0000 (11:43 +0000)]
Updated

22 years agoMake interval unsigned to match g_timeout_source_new(). (#82624, Tim
Owen Taylor [Thu, 13 Jun 2002 20:14:43 +0000 (20:14 +0000)]
Make interval unsigned to match g_timeout_source_new(). (#82624, Tim

Thu Jun 13 16:12:04 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/gmain.c (struct _GTimeoutSource): Make
        interval unsigned to match g_timeout_source_new().
        (#82624, Tim Janik.)

        * glib/gmain.c (g_timeout_prepare): Add some
        extra gymnastics to avoid signed/unisgned integer
        overflows.

22 years agoAdd a note about the deficiency of Tru64 iconv. (#81699, Manuel Op de
Owen Taylor [Thu, 13 Jun 2002 20:00:58 +0000 (20:00 +0000)]
Add a note about the deficiency of Tru64 iconv. (#81699, Manuel Op de

Thu Jun 13 15:57:46 2002  Owen Taylor  <otaylor@redhat.com>

* INSTALL.in: Add a note about the deficiency
of Tru64 iconv. (#81699, Manuel Op de Coul)

22 years agoChangeLog fixes
Owen Taylor [Tue, 11 Jun 2002 23:27:33 +0000 (23:27 +0000)]
ChangeLog fixes

22 years agoFix argument order. Fixes #82806.
Anders Carlsson [Tue, 11 Jun 2002 21:44:35 +0000 (21:44 +0000)]
Fix argument order. Fixes #82806.

2002-06-11  Anders Carlsson  <andersca@gnu.org>

* gtypemodule.c: (g_type_module_complete_interface_info):
* gtypeplugin.h:
Fix argument order. Fixes #82806.

22 years agotests/patterntest.c (test_compilation) A couple of 64-bit printf format
Owen Taylor [Tue, 11 Jun 2002 21:04:50 +0000 (21:04 +0000)]
tests/patterntest.c (test_compilation) A couple of 64-bit printf format

Tue Jun 11 17:03:39 2002  Owen Taylor  <otaylor@redhat.com>

        * tests/patterntest.c (test_compilation)
        * glib/gmem.c (profiler_try_realloc): A couple
        of 64-bit printf format fix from George Lebl.

        * glib/gconvert.c (open_converter): Fix gsize/gint
        mixup for g_iconv() arguments.

22 years agoUpdated Slovenian translation
Andraz Tori [Fri, 7 Jun 2002 21:25:58 +0000 (21:25 +0000)]
Updated Slovenian translation

22 years agoUpdated French translation.
Christophe Merlet [Wed, 5 Jun 2002 11:31:45 +0000 (11:31 +0000)]
Updated French translation.

22 years agoUpdated Catalan translation.
Jordi Mallach [Mon, 3 Jun 2002 23:24:12 +0000 (23:24 +0000)]
Updated Catalan translation.

22 years agoReplace homegrown "hash" entity by standard ISO entity "num".
Matthias Clasen [Mon, 3 Jun 2002 17:34:37 +0000 (17:34 +0000)]
Replace homegrown "hash" entity by standard ISO entity "num".

* glib/gwin32.c (g_win32_get_package_installation_directory):
Replace homegrown "hash" entity by standard ISO entity "num".

* gobject/gobject-docs.sgml:
* glib/glib-docs.sgml:
* glib/tmpl/macros.sgml:
* glib/tmpl/string_utils.sgml: Replace homegrown "nbsp", "hash"
and "percent" entities by standard ISO entities "nbsp", "num" and
"percnt".

22 years agoSmall formatting fixes.
Matthias Clasen [Thu, 30 May 2002 21:55:14 +0000 (21:55 +0000)]
Small formatting fixes.

* glib/tmpl/string_utils.sgml:
* glib/tmpl/threads.sgml: Small formatting fixes.

22 years agoRemove references to nonexisting functions
Matthias Clasen [Sun, 26 May 2002 22:46:28 +0000 (22:46 +0000)]
Remove references to nonexisting functions

* glib/gmain.c: Remove references to nonexisting functions
g_source_set_callback_closure(), g_source_poll(), g_source_add()
from docs.

* glib/gdir.c (g_dir_open): Typo fix in docs.

* glib/gasyncqueue.c (g_async_queue_lock):
(g_async_queue_unref_and_unlock): Fix markup to avoid erroneous
<link>s in docs.

* glib/gwin32.c: Escape #'s leading to erroneous <link>s in docs.

* glib/gtree.c: Replace some occurances of Gtree by GTree in docs.

* glib/gstring.c (g_string_insert_unichar): Typo fix in docs.

* glib/tmpl/conversions.sgml: Add GIConv.

* glib/tmpl/main.sgml: Fix references to nonexisting functions
g_main_loop_destroy(), g_source_add(), g_source_connect().

* glib/glib-sections.txt: Add GIConv, g_str_has_prefix, g_str_has_suffix.

* glib/tmpl/linked_lists_single.sgml:
* glib/tmpl/linked_lists_double.sgml: GListAllocator doesn't exist.

* glib/glib-docs.sgml: Declare hash entity.

* glib/tmpl/macros.sgml: Escape # in #ifdef to suppress erroneous links.

* gobject/Makefile.am, gobject/gobject-docs.sgml, gobject/tmpl/*:
* glib/Makefile.am, glib/glib-docs.sgml, glib/tmpl/*: Produce XML,
not SGML.

22 years agoon success, close the pipes from the child. Fix from Tim.
Havoc Pennington [Thu, 23 May 2002 15:36:53 +0000 (15:36 +0000)]
on success, close the pipes from the child. Fix from Tim.

2002-05-23  Havoc Pennington  <hp@redhat.com>

* glib/gspawn.c (fork_exec_with_pipes): on success, close the
pipes from the child. Fix from Tim.

22 years agofix tyop
jacob berkman [Wed, 22 May 2002 23:11:13 +0000 (23:11 +0000)]
fix tyop

2002-05-22  jacob berkman  <jacob@ximian.com>

* m4macros/glib-gettext.m4 (AM_GLIB_WITH_NLS): fix tyop

22 years agoRemove notes about now-fixed-bugs.
Owen Taylor [Wed, 22 May 2002 19:52:41 +0000 (19:52 +0000)]
Remove notes about now-fixed-bugs.

Wed May 22 15:40:47 2002  Owen Taylor  <otaylor@redhat.com>

        * README.in: Remove notes about now-fixed-bugs.

        * m4macros/glib-gettext.m4 acinclude.m4: Get rid
        of AC_MSG_NOTICE() usage, since some broken systems
        (Hi Debian!) might not be using autoconf-2.5x for
        downstream packages even though we require it for
        glib itself.

        * INSTALL.in: Add a note about installing extra
        converters for Solaris.

        * glib/gutils.h (g_bit_nth_msf): Fix termination
        condition. (#82582, Paolo Molaro)

Wed May 22 15:24:04 2002  Owen Taylor  <otaylor@redhat.com>

        * README.translators: Add from GTK+.

        * *.po: Convert all po files to UTF-8.

22 years agoue May 21 15:51:17 2002 Owen Taylor <otaylor@redhat.com>
Owen Taylor [Tue, 21 May 2002 19:53:31 +0000 (19:53 +0000)]
ue May 21 15:51:17 2002  Owen Taylor  <otaylor@redhat.com>

        * configure.in: $with_libiconv, not $with_iconv.

22 years agoMove iconv tests before gettext checks. (#81999)
Owen Taylor [Tue, 21 May 2002 19:09:37 +0000 (19:09 +0000)]
Move iconv tests before gettext checks. (#81999)

Mon May 20 18:02:46 2002  Owen Taylor  <otaylor@redhat.com>

        * configure.in: Move iconv tests before gettext
        checks. (#81999)

        * m4macros/glib-gettext.m4 acinclude.m4: If we can't
        link to gettext, try adding in -liconv. (#80076,
        Boyd Lynn Gerber)

        * m4macros/glib-gettext.m4 acinclude.m4: Suppress
        warnings about xgettext not being GNU gettext when
        libintl wasn't found at all.
        (#79016, Andrew P. Lentvorski, Jr.)

22 years agoAdded proper support for CDATA sections. Updates.
Matthias Clasen [Mon, 20 May 2002 22:59:11 +0000 (22:59 +0000)]
Added proper support for CDATA sections. Updates.

* glib/gmarkup.c (g_markup_parse_context_parse): Added
proper support for CDATA sections.
* glib/tmpl/markup.sgml: Updates.

22 years agoinclude sys/types.h before dirent.h to build on darwin (fixes #72859)
jacob berkman [Mon, 20 May 2002 22:51:51 +0000 (22:51 +0000)]
include sys/types.h before dirent.h to build on darwin (fixes #72859)

2002-05-20  jacob berkman  <jacob@ximian.com>

* glib/gdir.c: include sys/types.h before dirent.h to build on
darwin (fixes #72859)

22 years agoWhen printing errors, handle NULL returns from g_type_debug(). (#73559,
Owen Taylor [Mon, 20 May 2002 19:58:16 +0000 (19:58 +0000)]
When printing errors, handle NULL returns from g_type_debug(). (#73559,

Mon May 20 15:57:47 2002  Owen Taylor  <otaylor@redhat.com>

        * gsignal.c: When printing errors, handle NULL
        returns from g_type_debug(). (#73559, Laszlo Peter)

        * gtype.c (type_descriptive_name_I): De-inline,
        since it's only used for debugging.

22 years agoFix double close of file descriptor on error. (#82139, Wayne Schuller)
Owen Taylor [Mon, 20 May 2002 19:36:58 +0000 (19:36 +0000)]
Fix double close of file descriptor on error. (#82139, Wayne Schuller)

Mon May 20 15:35:59 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/gfileutils.c (get_contents_regfile): Fix double
        close of file descriptor on error. (#82139, Wayne Schuller)

        * glib/gspawn.c (close_and_invalidate): Don't close
        fd's that have already been closed. (Fix from Michael
        Meeks, #81959)

        * glib/giochannel.c (g_io_channel_close): If not flushing,
        dump the contents of the write buffers, so we won't try
        to write them to an invalid fd later. (Patch from Ron Steinke,
        fixing #78290, Andreas Persenius.)

22 years agoNew testcases.
Matthias Clasen [Sat, 18 May 2002 22:06:54 +0000 (22:06 +0000)]
New testcases.

2002-05-18  Matthias Clasen  <maclas@gmx.de>

* tests/markups/fail-36.gmarkup:
* tests/markups/fail-35.gmarkup:
* tests/markups/valid-8.gmarkup:
* tests/markups/valid-7.gmarkup:
* tests/markups/valid-6.gmarkup:
* tests/markups/valid-5.gmarkup: New testcases.

* tests/markup-test.c (passthrough_handler):
(text_handler): Don't ignore the text_len parameter.

* glib/gmarkup.c (find_current_text_end): Don't hang on embedded
nuls.  (#81977)
(g_markup_parse_context_parse): Fix passthrough handling to
correctly skip processing instructions, comments, doctype
declarations and CDATA marked sections.  (#81977)

22 years agoUpdated Swedish translation.
Christian Rose [Sat, 18 May 2002 00:15:52 +0000 (00:15 +0000)]
Updated Swedish translation.

2002-05-18  Christian Rose  <menthos@menthos.com>

* sv.po: Updated Swedish translation.

22 years ago[merged from stable]
Tim Janik [Fri, 17 May 2002 22:49:06 +0000 (22:49 +0000)]
[merged from stable]

Sat May 18 00:44:35 2002  Tim Janik  <timj@gtk.org>

        [merged from stable]

        * glib/tmpl/scanner.sgml: fix documentation for g_scanner_unexp_token().

22 years ago[merged from stable]
Tim Janik [Fri, 17 May 2002 22:46:49 +0000 (22:46 +0000)]
[merged from stable]

Sat May 18 00:21:51 2002  Tim Janik  <timj@gtk.org>

        [merged from stable]

        * glib/gscanner.c (g_scanner_unexp_token): fix missing cases for
        expected_token.

22 years agogssize and gsize as in a configure-produced glibconfig.h.
Tor Lillqvist [Fri, 17 May 2002 21:07:59 +0000 (21:07 +0000)]
gssize and gsize as in a configure-produced glibconfig.h.

2002-05-17  Tor Lillqvist  <tml@iki.fi>

* glibconfig.h.win32.in: gssize and gsize as in a
configure-produced glibconfig.h.

22 years agoMatch new additions in a configure-produced config.h.
Tor Lillqvist [Fri, 17 May 2002 21:02:13 +0000 (21:02 +0000)]
Match new additions in a configure-produced config.h.

2002-05-17  Tor Lillqvist  <tml@iki.fi>

* config.h.win32.in: Match new additions in a configure-produced
config.h.

22 years agoAdd new functions.
Tor Lillqvist [Fri, 17 May 2002 20:27:48 +0000 (20:27 +0000)]
Add new functions.

2002-05-17  Tor Lillqvist  <tml@iki.fi>

* glib/glib.def: Add new functions.

22 years agoIncorporate AM_LC_MESSAGES, AM_PATH_PROG_WITH_TEST as AM_GLIB_* to avoid
Owen Taylor [Thu, 16 May 2002 16:29:37 +0000 (16:29 +0000)]
Incorporate AM_LC_MESSAGES, AM_PATH_PROG_WITH_TEST as AM_GLIB_* to avoid

Thu May 16 12:24:00 2002  Owen Taylor  <otaylor@redhat.com>

        * acinclude.m4 m4macros/glib-gettext.m4: Incorporate
        AM_LC_MESSAGES, AM_PATH_PROG_WITH_TEST as AM_GLIB_* to avoid
        dependencies on gettext m4 files. (#81885, Hidetoshi Tajima.)

22 years agoUpdated Portuguese translation.
Duarte Loreto [Thu, 16 May 2002 00:29:51 +0000 (00:29 +0000)]
Updated Portuguese translation.

2002-05-16  Duarte Loreto <happyguy_pt@hotmail.com>

        * pt.po: Updated Portuguese translation.

22 years agoNew functions g_str_has_suffix and g_str_has_prefix.
Alex Larsson [Tue, 14 May 2002 18:49:50 +0000 (18:49 +0000)]
New functions g_str_has_suffix and g_str_has_prefix.

2002-05-14  Alex Larsson <alexl@redhat.com>

* glib/gstrfuncs.c:
* glib/gstrfuncs.h:
New functions g_str_has_suffix and g_str_has_prefix.

* tests/string-test.c: (main):
Test the new functions.

22 years agoon May 13 23:20:00 2002 Owen Taylor <otaylor@redhat.com>
Owen Taylor [Tue, 14 May 2002 03:26:37 +0000 (03:26 +0000)]
on May 13 23:20:00 2002  Owen Taylor  <otaylor@redhat.com>

        * autogen.sh (have_gettext): Add a check for GNU gettext.
        (Pointed out by Dan Winship in #59386.)

22 years agoIf sizeof(int) == sizeof(long) run compilation tests to determine which
Owen Taylor [Mon, 13 May 2002 15:57:25 +0000 (15:57 +0000)]
If sizeof(int) == sizeof(long) run compilation tests to determine which

Mon May 13 11:55:33 2002  Owen Taylor  <otaylor@redhat.com>

        * configure.in acglib.m4: If sizeof(int) == sizeof(long)
        run compilation tests to determine which way gsize should
        be defined. (#74413, reported by Miroslaw Dobrzanski-Neumann)

22 years agoUpdate from libcharset CVS. Includes additional encodings for Solaris
Owen Taylor [Mon, 13 May 2002 15:51:44 +0000 (15:51 +0000)]
Update from libcharset CVS. Includes additional encodings for Solaris

Mon May 13 11:42:23 2002  Owen Taylor  <otaylor@redhat.com>

       * glib/libcharset/*: Update from libcharset CVS.
        Includes additional encodings for Solaris (#80396,
        Qingjiang Yuan)

        * configure.in: Add getc_unlocked to CHECK_FUNCS().

        * glib/gmessages.c (strdup_convert): If
        g_convert_with_fallback() fails, print the error
        message to stderr the first time, then return
        the original string. (#78197)