platform/upstream/glib.git
21 years agoIt is a 2.2 addition.
Matthias Clasen [Fri, 29 Nov 2002 19:35:10 +0000 (19:35 +0000)]
It is a 2.2 addition.

* glib/gstrfuncs.c (g_ascii_strtoull): It is a 2.2 addition.

21 years agoAdjust to changed parameter names.
Matthias Clasen [Thu, 28 Nov 2002 23:11:58 +0000 (23:11 +0000)]
Adjust to changed parameter names.

* glib/gtimer.c (g_time_val_add): Adjust to changed parameter names.

* glib/gutils.c (g_get_application_name): Mark as 2.2. addition.

* glib/gstrfuncs.c (g_ascii_strtoull): Mark as 2.0.7 addition.

* glib/tmpl/main.sgml: Write something about GSourceDummyMarshal.

* glib/tmpl/date.sgml:
* glib/tmpl/string_utils.sgml: Remove redundant docs.

* glib/glib-sections.txt: Add g_ascii_strtoull and
g_get_application_name.

21 years agoMove some docs inline, and add deprecation information. To see the list of
Matthias Clasen [Thu, 28 Nov 2002 20:46:29 +0000 (20:46 +0000)]
Move some docs inline, and add deprecation information. To see the list of

* glib/gutils.c:
* glib/gtree.c:
* glib/gstring.c:
* glib/gstrfuncs.c:
* glib/giochannel.c: Move some docs inline, and add deprecation
information. To see the list of affected functions, grep for
"Deprecated:".

* glib/tmpl/strings.sgml:
* glib/tmpl/string_utils.sgml:
* glib/tmpl/misc_utils.sgml: Move some docs inline.

21 years agoFix the definitions around printf: either we use system printf in which
Matthias Clasen [Thu, 28 Nov 2002 18:50:41 +0000 (18:50 +0000)]
Fix the definitions around printf: either we use system printf in which

* configure.in: Fix the definitions around printf: either we use
system printf in which case HAVE_VASPRINTF, HAVE_C99_VSNPRINTF and
HAVE_UNIX98_PRINTF have already been determined by earlier tests,
or we use the included printf, in which case we know that these
three can be defined as 1.  (#99826)

21 years agoMark 2.2 API additions.
Matthias Clasen [Thu, 28 Nov 2002 00:15:45 +0000 (00:15 +0000)]
Mark 2.2 API additions.

21 years agoFix the gtk-doc version check.
Matthias Clasen [Thu, 28 Nov 2002 00:02:17 +0000 (00:02 +0000)]
Fix the gtk-doc version check.

* configure.in: Fix the gtk-doc version check.

21 years agoUse G_LIKELY without surrounding parentheses in g_assert() and
Matthias Clasen [Wed, 27 Nov 2002 18:50:34 +0000 (18:50 +0000)]
Use G_LIKELY without surrounding parentheses in g_assert() and

* glib/gmessages.h: Use G_LIKELY without surrounding parentheses
in g_assert() and g_return_[val]_if_fail() so that we always trigger
the gcc warning about "assignment used as truth value".

* glib/gmacros.h: Always put parentheses in G_LIKELY and G_UNLIKELY.

21 years agoUpdated Swedish translation.
Christian Rose [Tue, 26 Nov 2002 19:55:40 +0000 (19:55 +0000)]
Updated Swedish translation.

2002-11-26  Christian Rose  <menthos@menthos.com>

* sv.po: Updated Swedish translation.

21 years agoOnly use G_LIKELY in g_assert() and g_return_[val]_if_fail() if it is
Matthias Clasen [Tue, 26 Nov 2002 19:48:52 +0000 (19:48 +0000)]
Only use G_LIKELY in g_assert() and g_return_[val]_if_fail() if it is

* glib/gmessages.h: Only use G_LIKELY in g_assert() and
g_return_[val]_if_fail() if it is actually doing something.

21 years agoAvoid non-ANSI pointer comparison. (#54344, Morten Welinder)
Owen Taylor [Tue, 26 Nov 2002 15:04:06 +0000 (15:04 +0000)]
Avoid non-ANSI pointer comparison. (#54344, Morten Welinder)

Tue Nov 26 09:51:43 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/gstrfuncs.c (g_strchomp): Avoid non-ANSI pointer
        comparison. (#54344, Morten Welinder)

        * tests/strfunc-test.c (main): Add tests for strchomp().

21 years agoImproved the seeding algorithm. Old behaviour can be achived by setting
Sebastian Wilhelmi [Tue, 26 Nov 2002 14:09:00 +0000 (14:09 +0000)]
Improved the seeding algorithm. Old behaviour can be achived by setting

2002-11-26  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* glib/grand.c, gthread/gthread-impl.c, tests/rand-test.c:
Improved the seeding algorithm. Old behaviour can be achived by
setting envvar G_RANDOM_VERSION to "2.0". (#99262)

* docs/reference/glib/glib-docs.sgml,
docs/reference/glib/Makefile.am: Renamed
docs/reference/glib/changes-2.0.sgml to
docs/reference/glib/changes.sgml and added section for changes
from 2.0 to 2.2 (Also corrected 1.0 to 1.2).

* README.in, docs/reference/glib/running.sgml,
docs/reference/glib/tmpl/random_numbers.sgml,
docs/reference/glib/changes.sgml: Added notes about the new
seeding algorithm.

21 years agoMake CPPFLAGS, not CFLAGS, include G_THREAD_CFLAGS. CFLAGS is used while
Sebastian Wilhelmi [Tue, 26 Nov 2002 12:57:16 +0000 (12:57 +0000)]
Make CPPFLAGS, not CFLAGS, include G_THREAD_CFLAGS. CFLAGS is used while

2002-11-26  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* configure.in: Make CPPFLAGS, not CFLAGS, include
G_THREAD_CFLAGS. CFLAGS is used while linking too and thus GLib
programs would link to the threads library on some platforms. Also
fixed a bug manifesting through this change.

21 years agoMassive copy-paste from stable branch.
Vincent van Adrighem [Tue, 26 Nov 2002 02:09:01 +0000 (02:09 +0000)]
Massive copy-paste from stable branch.

2002-11-25 Vincent van Adrighem <V.vanAdrighem@dirck.mine.nu>

* nl.po: Massive copy-paste from stable branch.

21 years agoFix the non-gcc-3.x definitions of G_LIKELY and G_UNLIKELY. (Reported by
Matthias Clasen [Tue, 26 Nov 2002 00:35:11 +0000 (00:35 +0000)]
Fix the non-gcc-3.x definitions of G_LIKELY and G_UNLIKELY. (Reported by

* glib/gmacros.h: Fix the non-gcc-3.x definitions of G_LIKELY
and G_UNLIKELY.  (Reported by Dan Mills)

21 years agoUpdated Slovenian translation
Andraz Tori [Tue, 26 Nov 2002 00:25:12 +0000 (00:25 +0000)]
Updated Slovenian translation

21 years agoFix two bugs: 1) If abs_time is NULL, should use infinite time. 2) Check
Tor Lillqvist [Mon, 25 Nov 2002 23:08:27 +0000 (23:08 +0000)]
Fix two bugs: 1) If abs_time is NULL, should use infinite time. 2) Check

2002-11-23  Tor Lillqvist  <tml@iki.fi>

* gthread-win32.c (g_cond_timed_wait_win32_impl): Fix two bugs: 1)
If abs_time is NULL, should use infinite time. 2) Check for
current time already being past abs_time. (#99294, Christopher
R. Palmer, fix by Sebastian Wilhelmi)

21 years agoDocument that the varargs must be NULL-terminated. (#99510)
Matthias Clasen [Mon, 25 Nov 2002 21:43:35 +0000 (21:43 +0000)]
Document that the varargs must be NULL-terminated. (#99510)

* glib/gfileutils.c (g_build_path):
(g_build_filename): Document that the varargs must be
NULL-terminated. (#99510)

21 years agoRemove the (no longer effective) empty if-branch.
Matthias Clasen [Mon, 25 Nov 2002 21:34:16 +0000 (21:34 +0000)]
Remove the (no longer effective) empty if-branch.

* glib/gmessages.h (g_assert):
(g_return_if_fail):
(g_return_val_if_fail): Remove the (no longer effective) empty
if-branch.

* glib/gmacros.h: Change the definition of G_LIKELY, so that
g_return_if_fail() and friends still trigger a gcc warning if
the expr is an assignment.

21 years agoUpdated Malay Translation. 1 je
Hasbullah Bin Pit [Mon, 25 Nov 2002 17:49:23 +0000 (17:49 +0000)]
Updated Malay Translation. 1 je

2002-11-25  Hasbullah Bin Pit <sebol@ikhlas.com>

        * ms.po: Updated Malay Translation.
1 je

21 years agoAdd missing short descriptions, standardize them to start with a capital
Matthias Clasen [Sat, 23 Nov 2002 22:57:35 +0000 (22:57 +0000)]
Add missing short descriptions, standardize them to start with a capital

* gobject/tmpl/gclosure.sgml:
* gobject/tmpl/signals.sgml:
* gobject/tmpl/gparamspec.sgml:
* gobject/tmpl/value_collection.sgml:
* gobject/tmpl/generic_values.sgml:
* gobject/tmpl/param_value_types.sgml:
* gobject/tmpl/gboxed.sgml:
* gobject/tmpl/enumerations_flags.sgml:
* gobject/tmpl/objects.sgml:
* gobject/tmpl/gtypemodule.sgml:
* gobject/tmpl/gtypeplugin.sgml: Add missing short descriptions,
standardize them to start with a capital and end without a period.

* glib/tmpl/arrays.sgml:
* glib/tmpl/memory_chunks.sgml:
* glib/tmpl/macros.sgml: Remove periods from titles in examples.

21 years agoExplain --enable-include-printf.
Matthias Clasen [Sat, 23 Nov 2002 21:37:54 +0000 (21:37 +0000)]
Explain --enable-include-printf.

* glib/building.sgml: Explain --enable-include-printf.

21 years agoAdd version info to API docs.
Matthias Clasen [Sat, 23 Nov 2002 01:37:17 +0000 (01:37 +0000)]
Add version info to API docs.

21 years agoAdd Copyright notice.
Matthias Clasen [Fri, 22 Nov 2002 23:45:32 +0000 (23:45 +0000)]
Add Copyright notice.

* glib/gdir.h: Add Copyright notice.

21 years agoUpdated Norwegian (bokmal) translation.
Kjartan Maraas [Fri, 22 Nov 2002 20:17:20 +0000 (20:17 +0000)]
Updated Norwegian (bokmal) translation.

2002-11-22  Kjartan Maraas  <kmaraas@gnome.org>

* no.po: Updated Norwegian (bokmal) translation.

21 years agoFixed typo: PTHREAD_PRIO_MIN -> PTHREAD_PRIO_MAX. (Laurent Vivier, #99293)
Sebastian Wilhelmi [Fri, 22 Nov 2002 17:40:03 +0000 (17:40 +0000)]
Fixed typo: PTHREAD_PRIO_MIN -> PTHREAD_PRIO_MAX. (Laurent Vivier, #99293)

2002-11-22  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* configure.in: Fixed typo: PTHREAD_PRIO_MIN ->
PTHREAD_PRIO_MAX. (Laurent Vivier, #99293)

21 years agoRemove broken G_HIDDEN_SYMBOL definition which wasn't supposed to be
Owen Taylor [Fri, 22 Nov 2002 14:41:06 +0000 (14:41 +0000)]
Remove broken G_HIDDEN_SYMBOL definition which wasn't supposed to be

Fri Nov 22 09:39:09 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/gmacros.h: Remove broken G_HIDDEN_SYMBOL
        definition which wasn't supposed to be committed
        at all.

21 years agobe.po: Updated Belarusian translation from Belarusian team <i18n@mova.org>.
Dmitry Mastrukov [Fri, 22 Nov 2002 05:39:19 +0000 (05:39 +0000)]
be.po: Updated Belarusian translation from Belarusian team <i18n@mova.org>.

21 years agoAllow NULL to be cast to any type. (Frequently requested, most recently
Owen Taylor [Fri, 22 Nov 2002 03:03:15 +0000 (03:03 +0000)]
Allow NULL to be cast to any type. (Frequently requested, most recently

Thu Nov 21 16:05:50 2002  Owen Taylor  <otaylor@redhat.com>

        * gtype.c (g_type_check_instance_cast): Allow
        NULL to be cast to any type. (Frequently requested,
        most recently #99023, Lars Clausen.)

21 years agoPatch from Morten Welinder to make ghash.c properly obey
Owen Taylor [Thu, 21 Nov 2002 21:22:04 +0000 (21:22 +0000)]
Patch from Morten Welinder to make ghash.c properly obey

Thu Nov 21 16:19:21 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/ghash.c: Patch from Morten Welinder to
        make ghash.c properly obey DISABLE_MEM_POOLS. (#96600)

21 years agoAdd helpful comments about the encoding of a new iochannel. (Amaury
Owen Taylor [Thu, 21 Nov 2002 20:54:44 +0000 (20:54 +0000)]
Add helpful comments about the encoding of a new iochannel. (Amaury

Thu Nov 21 15:52:04 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/tmpl/iochannels.sgml: Add helpful comments about
        the encoding of a new iochannel. (Amaury Jacquot,
        #96444)

21 years agoAdd G_GNUC_DEPRECATED. (Tom Tromey, #87969)
Owen Taylor [Thu, 21 Nov 2002 20:44:54 +0000 (20:44 +0000)]
Add G_GNUC_DEPRECATED. (Tom Tromey, #87969)

Thu Nov 21 14:09:44 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/gmacros.h: Add G_GNUC_DEPRECATED. (Tom Tromey,
        #87969)

21 years agoHardcode 2.0 in the names, as that is what Makefile.am does.
Tor Lillqvist [Thu, 21 Nov 2002 03:25:35 +0000 (03:25 +0000)]
Hardcode 2.0 in the names, as that is what Makefile.am does.

2002-11-21  Tor Lillqvist  <tml@iki.fi>

* {glib,gmodule,gobject,gthread}/makefile.{mingw,msc}.in:
Hardcode 2.0 in the names, as that is what Makefile.am does.

21 years agoTypo.
Tor Lillqvist [Thu, 21 Nov 2002 03:09:55 +0000 (03:09 +0000)]
Typo.

21 years agogmodule/gmodule.rc.in gobject/gobject.rc.in Hardcode 2.0 in the names, as
Tor Lillqvist [Thu, 21 Nov 2002 03:08:50 +0000 (03:08 +0000)]
gmodule/gmodule.rc.in gobject/gobject.rc.in Hardcode 2.0 in the names, as

2002-11-21  Tor Lillqvist  <tml@iki.fi>

* gmodule/gmodule.rc.in
* gobject/gobject.rc.in
* gthread/gthread.rc.in: Hardcode 2.0 in the names, as that is
what the Makefile.am does.

21 years agoUpdate to match what is currently produced by autotools.
Tor Lillqvist [Thu, 21 Nov 2002 03:04:53 +0000 (03:04 +0000)]
Update to match what is currently produced by autotools.

2002-11-21  Tor Lillqvist  <tml@iki.fi>

* config.h.win32.in: Update to match what is currently produced by
autotools.

* configure.in: Remove superfluous spaces on two shell variable
assignment lines. Don't define HAVE_GOOD_PRINTF as 0 if we don't
have a good printf, it is tested with #ifdef.

* glib/glib.def: Add new functions.

* glib/Makefile.am: If !HAVE_GOOD_PRINTF, add libtio.la to LIBADD
and DEPENDENCIES.

* glib/glib.rc.in: Hardcode 2.0 in the names, as that is what the
Makefile.am does.

21 years ago Include a printf implementation supporting C99 snprintf and SUS
Matthias Clasen [Thu, 21 Nov 2002 00:35:15 +0000 (00:35 +0000)]
Include a printf implementation supporting C99 snprintf and SUS
positional parameters:  (#79488)

* glib/gstrfuncs.c:
* glib/gspawn-win32.c:
* glib/gscanner.c:
* glib/gconvert.c:
* glib/gbacktrace.c: Use _g_printf wrappers.

* glib/gutils.c (g_vsnprintf): Simplify, since we can assume C99
snprintf semantics now.

* glib/gmessages.c (printf_string_upper_bound): No longer needed,
since we can assume C99 snprintf semantics now.
(g_logv): Simplify.

* acinclude.m4 (AC_FUNC_PRINTF_UNIX98): New macro to check wether
printf supports SUS positional parameters.

* configure.in: New option --enable-included-printf to force
compilation of trio; otherwise trio is compiled if the system
printf misses either C99 snprintf semantics of SUS positional
parameters.

* glib/Makefile.am (SUBDIRS): Conditionally compile trio.
(libglib_2_0_la_SOURCES): Add gprintf.c and gprintfint.h.
(glibsubinclude_HEADERS): Add gprintf.h.

* glib/gprintfint.h: New private wrapping either system printf
or trio printf variants in _g_printf wrappers for use inside glib.

* glib/gprintf.h: New public header declaring g_printf variants.
* glib/gprintf.c: Corresponding implementations.

* glib/trio/*: New directory, containing the trio-1.9 sources.

* glib/tmpl/string_utils.sgml: Add note on including gprintf.h,
move some docs inline.

* glib/glib-sections.txt: Add g_printf, g_vprintf, g_fprintf,
g_vfprintf, g_sprintf, g_vsprintf.

21 years agoUse G_LIKELY. (#69022)
Matthias Clasen [Wed, 20 Nov 2002 21:50:16 +0000 (21:50 +0000)]
Use G_LIKELY. (#69022)

* glib/gmessages.h (g_return_if_fail):
(g_return_val_if_fail): Use G_LIKELY.  (#69022)

* glib/gmacros.h (G_LIKELY):
(G_UNLIKELY): New macros for hinting the compiler about the
expected result of expressions. For gcc 3.x, define these
using __builtin_expect.  (#69022)

* glib/tmpl/macros_misc.sgml: Document G_LIKELY, G_UNLIKELY.

* glib/glib-sections.txt: Add G_LIKELY, G_UNLIKELY.

21 years agoFix strtull/strtoull type in docs (#99012, Morten Welinder.) Add copyright
Owen Taylor [Tue, 19 Nov 2002 19:42:05 +0000 (19:42 +0000)]
Fix strtull/strtoull type in docs (#99012, Morten Welinder.) Add copyright

Tue Nov 19 14:38:18 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/gstrfuncs.c (g_ascii_strtoull): Fix
        strtull/strtoull type in docs (#99012, Morten
        Welinder.) Add copyright information for code
        taken from GNU libc.

21 years agoDo handle G_SPAWN_DO_NOT_REAP_CHILD after all, similarily as on Unix. If
Tor Lillqvist [Mon, 18 Nov 2002 09:58:39 +0000 (09:58 +0000)]
Do handle G_SPAWN_DO_NOT_REAP_CHILD after all, similarily as on Unix. If

2002-11-18  Tor Lillqvist  <tml@iki.fi>

* glib/gspawn-win32.c (do_spawn_with_pipes): Do handle
G_SPAWN_DO_NOT_REAP_CHILD after all, similarily as on Unix. If the
flag is not set, don't call DuplicateHandle() on the handle
returned by the helper process, and set the "child pid" returned
to the caller to zero. Close the handle to the helper process in
all cases.

* glib/gspawn.c (g_spawn_async_with_pipes): Document Windows
behaviour of G_SPAWN_DO_NOT_REAP_CHILD.

21 years ago[Win32] Fix the asynchronous g_spawn* to return the process handle of the
Tor Lillqvist [Sun, 17 Nov 2002 23:30:32 +0000 (23:30 +0000)]
[Win32] Fix the asynchronous g_spawn* to return the process handle of the

2002-11-18  Tor Lillqvist  <tml@iki.fi>

[Win32] Fix the asynchronous g_spawn* to return the process handle
of the started program properly. (Note: not the process id. The
spawn*() functions in the C runtime return the created process's
handle. There doesn't seem to be any way to get the process id of
a child process if you have the handle. But then, the process
handle usually is more useful anyway.)

* glib/gspawn-win32-helper.c (WinMain): If the spawning of the
child process succeeded, and if asynchronous spawn (P_NOWAIT),
write the result handle up to the parent process, waiting to read
it in do_spawn_with_pipes().

* glib/gspawn-win32.c (do_spawn): Use return value from spawning
the helper. If it is -1 the helper wasn't found or couldn't be run
for some reason. Otherwise it is the helper's process handle.

(g_spawn_async_with_pipes): Pass the child_pid parameter on to
do_spawn_with_pipes().

(do_spawn_with_pipes): Take also a child_pid parameter. If
do_spawn() returned -1, fail immediately. Otherwise make the
handle passed to us by the helper process into a handle valid in
this process by calling DuplicateHandle().

21 years agoIgnore the G_SPAWN_DO_NOT_REAP_CHILD flag, can't be meaninfully
Tor Lillqvist [Sun, 17 Nov 2002 03:52:55 +0000 (03:52 +0000)]
Ignore the G_SPAWN_DO_NOT_REAP_CHILD flag, can't be meaninfully

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

* glib/gspawn-win32.c (g_spawn_async_with_pipes): Ignore the
G_SPAWN_DO_NOT_REAP_CHILD flag, can't be meaninfully implemented
on Windows, at least not now. Always pass dont_wait as TRUE to
do_spawn_with_pipes(). The semantics of the dont_wait parameter is
very different from the semantics of the intermediate_child
parameter to fork_exec_with_pipes() in the Unix version. This
fixes a serious bug, g_spawn_async() in fact behaved
synchronously.

(do_spawn_with_pipes, do_spawn): Rename from
fork_exec_with_pipes() and do_exec(), those names were from the
Unix bersion, and misleading.

(close_and_invalidate): Don't try to close invalid fds.

* glib/gspawn.c (g_spawn_async_with_pipes): Add warning about
Windows behaviour. There is no fork(), so the child_setup()
function is in fact called in the parent.

* glib/gspawn-win32-helper.c (WinMain): Insert spaces in argv
debugging output.

* tests/spawn-test-win32-gui.c: New file. Test program to be
linked as a GUI application. Behaves differently depending on how
invoked (by spawn-test).

* tests/spawn-test.c (run_tests): On Win32, run the
spawn-test-win32-gui program, too, in several ways, synchronously
and asynchronously.

* tests/Makefile.am: Corresponding change.

21 years agoupdated
Laurent Dhima [Wed, 13 Nov 2002 13:02:52 +0000 (13:02 +0000)]
updated

* sq.po: updated

21 years agoupdated
Laurent Dhima [Wed, 13 Nov 2002 13:00:56 +0000 (13:00 +0000)]
updated

21 years agoTrivial s/foo/foo_/ fixes to make <glib.h> includable with -Wshadow
Soeren Sandmann [Fri, 8 Nov 2002 18:47:56 +0000 (18:47 +0000)]
Trivial s/foo/foo_/ fixes to make <glib.h> includable with -Wshadow

Fri Nov  8 19:44:20 2002  Soeren Sandmann  <sandmann@daimi.au.dk>

* docs/reference/glib/tmpl/arrays.sgml:
* docs/reference/glib/tmpl/arrays_byte.sgml:
* docs/reference/glib/tmpl/arrays_pointer.sgml:
* docs/reference/glib/tmpl/date.sgml:
* docs/reference/glib/tmpl/linked_lists_double.sgml:
* docs/reference/glib/tmpl/linked_lists_single.sgml:
* docs/reference/glib/tmpl/main.sgml:
* docs/reference/glib/tmpl/queue.sgml:
* docs/reference/glib/tmpl/random_numbers.sgml:
* docs/reference/glib/tmpl/relations.sgml:
* docs/reference/glib/tmpl/scanner.sgml:
* docs/reference/gobject/tmpl/gtype.sgml:
* docs/reference/gobject/tmpl/value_arrays.sgml glib/garray.h:
* glib/gdate.h glib/giochannel.h glib/glist.h glib/gmain.c:
* glib/gmain.h glib/gqueue.c glib/gqueue.h glib/grand.c glib/grand.h:
* glib/grel.h glib/gslist.h glib/gtimer.h gobject/gvaluearray.h:

Trivial s/foo/foo_/ fixes to make <glib.h> includable with
-Wshadow without warnings (#91680)

21 years agoPatch from Havoc Pennington to add functions for setting and getting a
Owen Taylor [Fri, 8 Nov 2002 00:51:25 +0000 (00:51 +0000)]
Patch from Havoc Pennington to add functions for setting and getting a

Thu Nov  7 19:32:26 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/gutils.[ch] (g_set/get_application_name):
        Patch from Havoc Pennington to add functions for
        setting and getting a human readable application
        name.

        * configure.in: Up to version 2.1.3, since we'll
        need to depend on last addition for GTK+.

21 years agoAdd g_main_thread_init.
Tor Lillqvist [Wed, 6 Nov 2002 23:53:01 +0000 (23:53 +0000)]
Add g_main_thread_init.

2002-11-06  Tor Lillqvist  <tml@iki.fi>

* glib/glib.def: Add g_main_thread_init.

21 years agoMinor doc markup fix.
Matthias Clasen [Wed, 6 Nov 2002 22:17:12 +0000 (22:17 +0000)]
Minor doc markup fix.

21 years agoForgotten ChangeLog
Matthias Clasen [Wed, 6 Nov 2002 22:14:52 +0000 (22:14 +0000)]
Forgotten ChangeLog

21 years agoUpdated Malay Translation.
Hasbullah Bin Pit [Tue, 5 Nov 2002 17:49:10 +0000 (17:49 +0000)]
Updated Malay Translation.

2002-11-04  Hasbullah Bin Pit <sebol@ikhlas.com>

        * ms.po: Updated Malay Translation.

21 years agoAdd -DG_DISABLE_CAST_CHECKS for everything but --enable-debug.
Owen Taylor [Tue, 5 Nov 2002 00:27:15 +0000 (00:27 +0000)]
Add -DG_DISABLE_CAST_CHECKS for everything but --enable-debug.

Mon Nov  4 10:45:48 2002  Owen Taylor  <otaylor@redhat.com>

        * configure.in: Add -DG_DISABLE_CAST_CHECKS for
        everything but --enable-debug.

        * configure.in: Require pkg-config 0.14. (#97553)

21 years agoInclude config.h so DISABLE_MEMPOOLS actually has an effect. (#96437,
Owen Taylor [Mon, 4 Nov 2002 20:09:48 +0000 (20:09 +0000)]
Include config.h so DISABLE_MEMPOOLS actually has an effect. (#96437,

Mon Nov  4 14:41:48 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/gbsearcharray.c: Include config.h
        so DISABLE_MEMPOOLS actually has an effect.
        (#96437, Morten Welinder)

        * tests/uri-test.c: Include <config.h>

Mon Nov  4 14:42:36 2002  Owen Taylor  <otaylor@redhat.com>

        * gtype.c gsignal.c gvaluearray.c: Include config.h
        so DISABLE_MEMPOOLS actually has an effect.
        (#96437, Morten Welinder)

        * gsignal.c: Conditionalize definition of g_handler_ts
        on DISABLE_MEM_POOLS (#96437)

Mon Nov  4 14:45:24 2002  Owen Taylor  <otaylor@redhat.com>

        * gthread-posix.c gthread-solaris.c: Include <config.h>

21 years agoconfigure.in: Added Belarusian to ALL_LINGUAS
Dmitry Mastrukov [Sun, 3 Nov 2002 04:08:13 +0000 (04:08 +0000)]
configure.in: Added Belarusian to ALL_LINGUAS

21 years agobe.po: Added Belarusian translation from Belarusian team <i18n@infonet.by>.
Dmitry Mastrukov [Sun, 3 Nov 2002 03:41:13 +0000 (03:41 +0000)]
be.po: Added Belarusian translation from Belarusian team <i18n@infonet.by>.

21 years agoFix left_len calculation in the from UTF-8 to UTF-8 case: left_len should
Daniel Elstner [Sat, 2 Nov 2002 00:14:55 +0000 (00:14 +0000)]
Fix left_len calculation in the from UTF-8 to UTF-8 case: left_len should

2002-11-02  Daniel Elstner  <daniel.elstner@gmx.net>

* glib/giochannel.c (g_io_channel_write_chars): Fix left_len calculation in the from UTF-8 to UTF-8 case: left_len should be the number of bytes left in the input buffer rather than channel->write_buf. (#96373)

21 years agoDon't set on Win32, only causes trouble.
Tor Lillqvist [Sat, 26 Oct 2002 22:53:21 +0000 (22:53 +0000)]
Don't set on Win32, only causes trouble.

2002-10-27  Tor Lillqvist  <tml@iki.fi>

* configure.in (G_MODULE_LDFLAGS): Don't set on Win32, only causes
trouble.

* glib/gmain.c (g_poll): Fix for bug reported by Herman Bloggs
(http://mail.gnome.org/archives/gtk-devel-list/2002-October/msg00101.html)
and others. We waited for events only for GPollFDs whose events
field had G_IO_IN set. We need to wait also for events for
GPollFDs that have just G_IO_OUT set. Non-blocking sockets in the
process of being connect()ed are one such case. Also silence a
couple of gcc warnings.

21 years agoupdated R_2_0_core
Laurent Dhima [Tue, 22 Oct 2002 16:20:59 +0000 (16:20 +0000)]
updated

21 years agoUpdate
Kjartan Maraas [Mon, 21 Oct 2002 10:21:42 +0000 (10:21 +0000)]
Update

21 years agoReport only the most specific instantiatable prerequisite, filter out all
Matthias Clasen [Sat, 19 Oct 2002 23:59:51 +0000 (23:59 +0000)]
Report only the most specific instantiatable prerequisite, filter out all

* gtype.c (g_type_interface_prerequisites): Report only the most
specific instantiatable prerequisite, filter out all supertypes of
this one (the supertypes are added to the prerequisites array for
technical reasons).

21 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.

21 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.

21 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.

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

21 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

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

21 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)

21 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)

21 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)

21 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.

21 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.

21 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

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

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

21 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.

21 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().

21 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.

21 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.

21 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.

21 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)

21 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.

21 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.

21 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

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

21 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)

21 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)

21 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"

21 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

21 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)

21 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).

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

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

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

21 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)

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

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

21 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.

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

21 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.

21 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)

21 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).

21 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().