platform/upstream/glib.git
20 years agoClarify docs on the return. Fix a memory leak if a type with a value table
Owen Taylor [Mon, 25 Aug 2003 18:23:58 +0000 (18:23 +0000)]
Clarify docs on the return. Fix a memory leak if a type with a value table

Mon Aug 25 14:16:48 2003  Owen Taylor  <otaylor@redhat.com>

        * gtypemodule.c (g_type_module_register_type): Clarify
        docs on the return. Fix a memory leak if a type with a
        value table is reloaded.

20 years agoEscape control characters in g_logv() output. (#108287, Christian Biere)
Owen Taylor [Mon, 25 Aug 2003 16:36:03 +0000 (16:36 +0000)]
Escape control characters in g_logv() output. (#108287, Christian Biere)

Mon Aug 25 12:34:36 2003  Owen Taylor  <otaylor@redhat.com>

        * glib/gmessages.c: Escape control characters in g_logv() output.
        (#108287, Christian Biere)

20 years agoWhen DISABLE_MEM_POOLS is set, loop through and free the poll records
Owen Taylor [Mon, 25 Aug 2003 16:20:41 +0000 (16:20 +0000)]
When DISABLE_MEM_POOLS is set, loop through and free the poll records

Mon Aug 25 12:17:20 2003  Owen Taylor  <otaylor@redhat.com>

        * glib/gmain.c (g_main_context_unref_and_unlock):
        When DISABLE_MEM_POOLS is set, loop through and free
        the poll records explicitely, since g_mem_chunk_destroy()
        won't do it. (#118121, Morten Welinder)

20 years agoFlush
Kjartan Maraas [Sat, 23 Aug 2003 11:41:46 +0000 (11:41 +0000)]
Flush

20 years agoAdded "is" to ALL_LINGUAS.
Samúel Jón Gunnarsson [Sat, 23 Aug 2003 01:05:02 +0000 (01:05 +0000)]
Added "is" to ALL_LINGUAS.

2003-08-23  Samúel Jón Gunnarsson  <sammi@techattack.nu>

* configure.in: Added "is" to ALL_LINGUAS.

20 years agoAdded Icelandic translation
Richard Allen [Wed, 20 Aug 2003 16:14:25 +0000 (16:14 +0000)]
Added Icelandic translation

20 years ago[Win32] Make the fatal error message box easier to notice with
Tor Lillqvist [Tue, 19 Aug 2003 19:12:07 +0000 (19:12 +0000)]
[Win32] Make the fatal error message box easier to notice with

2003-08-19  Tor Lillqvist  <tml@iki.fi>

* glib/gmessages.c (g_logv): [Win32] Make the fatal error message
box easier to notice with MB_SETFOREGROUND. Also use MB_ICONERROR
to get a nice stop-sign icon.

20 years agoAdd $INTLLIBS to $LIBS temporarily, not -lintl. (Problem with fix for
Owen Taylor [Tue, 19 Aug 2003 13:45:33 +0000 (13:45 +0000)]
Add $INTLLIBS to $LIBS temporarily, not -lintl. (Problem with fix for

Tue Aug 19 09:42:06 2003  Owen Taylor  <otaylor@redhat.com>

        * m4macros/glib-gettext.m4: Add $INTLLIBS to $LIBS
        temporarily, not -lintl. (Problem with fix for
        #119171, pointed out by James Henstridge)

20 years agocheck private instance data after initialization.
Tim Janik [Tue, 19 Aug 2003 03:25:46 +0000 (03:25 +0000)]
check private instance data after initialization.

Tue Aug 19 05:21:04 2003  Tim Janik  <timj@gtk.org>

        * testgobject.c (main): check private instance data after
        initialization.

        * gtype.c: for instances with private data, store the real class
        pointer in a bsearch array during class initialization.
        (g_type_instance_get_private): fetch the real class of
        an instance from the bsearch array if necessary.

20 years agolicense change, no restrictions are made in the new license at all, the
Tim Janik [Tue, 19 Aug 2003 02:16:00 +0000 (02:16 +0000)]
license change, no restrictions are made in the new license at all, the

Tue Aug 19 03:55:29 2003  Tim Janik  <timj@gtk.org>

        * glib/gbsearcharray.h: license change, no restrictions are made
        in the new license at all, the implmentation is simply provided
        "as is" to allow copy-pasting the code into any third-party app.
        naturally, the implementation is self-contained within the header
        file to allow this.
        default to non-shrinking behaviour, allow users to request shrinking
        via G_BSEARCH_ARRAY_AUTO_SHRINK.
        creation, deletion functions are now named g_bsearch_array_create()
        and g_bsearch_array_free().
        fixed const in prototypes, removed cruft.
        (g_bsearch_array_insert): take only three arguments, do nothing if the
        node to insert is already there.
        (g_bsearch_array_replace): insert or replace if the node is already
        there.
        (g_bsearch_array_remove): remove nodes by index, the index of a node
        can be found via g_bsearch_array_get_index().
        removed other g_bsearch_array_remove*() variants.
        (g_bsearch_array_lookup): minor optimizations.
        (g_bsearch_array_lookup_sibling): return nodes on mismatches.

        * glib/gbsearcharray.c: removed.

20 years agoadapt to new gbsearcharray.h code. (g_value_register_transform_func): turn
Tim Janik [Tue, 19 Aug 2003 02:15:40 +0000 (02:15 +0000)]
adapt to new gbsearcharray.h code. (g_value_register_transform_func): turn

Tue Aug 19 04:08:14 2003  Tim Janik  <timj@gtk.org>

        * gvalue.c: adapt to new gbsearcharray.h code.
        (g_value_register_transform_func): turn transform function
        replacement into a valid operation.

        * gsignal.c: adapt to new gbsearcharray.h code.

        * gboxed.c: adapt to new gbsearcharray.h code.

20 years agoadded optimizations to skip NOP signal emissions.
Tim Janik [Mon, 18 Aug 2003 23:32:17 +0000 (23:32 +0000)]
added optimizations to skip NOP signal emissions.

Tue Aug 19 01:31:28 2003  Tim Janik  <timj@gtk.org>

        * gsignal.c: added optimizations to skip NOP signal emissions.

20 years agoUpdate Norwegian translation.
Kjartan Maraas [Mon, 18 Aug 2003 20:50:47 +0000 (20:50 +0000)]
Update Norwegian translation.

2003-08-18  Kjartan Maraas  <kmaraas@gnome.org>

* no.po: Update Norwegian translation.

20 years agoUpdated Azerbaijani translation.
Metin Amiroff [Mon, 18 Aug 2003 10:13:33 +0000 (10:13 +0000)]
Updated Azerbaijani translation.

2003-08-18  Metin Amiroff <metin@karegen.com>

* az.po: Updated Azerbaijani translation.

20 years agoFix #117925 (Dov Grobgeld):
Tor Lillqvist [Sat, 16 Aug 2003 19:45:25 +0000 (19:45 +0000)]
Fix #117925 (Dov Grobgeld):

2003-08-16  Tor Lillqvist  <tml@iki.fi>

Fix #117925 (Dov Grobgeld):

* glib/gutils.c (g_find_program_in_path, g_basename,
g_path_get_basename, g_path_is_absolute, g_path_skip_root,
g_path_get_dirname, g_get_any_init): On Win32, look also for
slashes ('/') as pathname separators.

* glib/gfileutils.c (g_file_open_tmp): Ditto. If the template
contains a pathname separator, include the actual one in the error
message, instead of always the canonical one.

(g_build_filename): Separate implementation on Win32 that looks
for either slash or backslash. Document Unix/Windows differences.

* tests/testglib.c
* tests/strfunc-test.c: Test above functionality on Win32.

20 years agoUpdated Serbian translation.
Danilo Šegan [Fri, 15 Aug 2003 23:47:33 +0000 (23:47 +0000)]
Updated Serbian translation.

2003-08-16  Danilo Šegan  <dsegan@gmx.net>

* sr.po, sr@Latn.po: Updated Serbian translation.

20 years ago[Win32] Don't exceed handle array bounds. Warn if there would be too many
Tor Lillqvist [Fri, 15 Aug 2003 05:06:16 +0000 (05:06 +0000)]
[Win32] Don't exceed handle array bounds. Warn if there would be too many

2003-08-15  Tor Lillqvist  <tml@iki.fi>

* glib/gmain.c (g_poll): [Win32] Don't exceed handle array
bounds. Warn if there would be too many handles to wait
for. (WaitForMultipleObjects() has a relatively low limit of 64
handles. The Win32 IO channel code should be fixed not to need to
wait for one handle per file or socket being watched. Later.)

20 years agoAdd .cvsignore
Anders Carlsson [Wed, 13 Aug 2003 08:39:41 +0000 (08:39 +0000)]
Add .cvsignore

20 years agoglib/Makefile.am gmodule/Makefile.am gobject/Makefile.am Use srcdir also
Tor Lillqvist [Wed, 13 Aug 2003 00:24:21 +0000 (00:24 +0000)]
glib/Makefile.am gmodule/Makefile.am gobject/Makefile.am Use srcdir also

2003-08-13  Tor Lillqvist  <tml@iki.fi>

* glib/Makefile.am
* gmodule/Makefile.am
* gobject/Makefile.am
* gthread/Makefile.am: Use srcdir also in references to the .def
files. (#118885, Jeff Bonggren)

20 years agoDrop the Win32-specific implementation. It used WideCharToMultiByte(),
Tor Lillqvist [Wed, 13 Aug 2003 00:13:02 +0000 (00:13 +0000)]
Drop the Win32-specific implementation. It used WideCharToMultiByte(),

2003-08-12  Tor Lillqvist  <tml@iki.fi>

* glib/gconvert.c (g_locale_from_utf8): Drop the Win32-specific
implementation. It used WideCharToMultiByte(), which is broken as
it stores unconvertable characters as fallback characters
(question marks) in the destination string without being able to
tell how much of the conversion succeeded. Using g_convert() like
on Unix is better and simpler. (#117872)

(g_locale_to_utf8): No need for the Win32-specific implementation
here, either.

(have_broken_filenames): Define as TRUE on Win32.

(g_filename_to_utf8, g_filename_from_utf8): Drop Win32 ifdefs. As
have_broken_filenames() now is defined TRUE on Win32, works as
before.

20 years agoWrap to 80 columns.
Matthias Clasen [Mon, 11 Aug 2003 20:49:32 +0000 (20:49 +0000)]
Wrap to 80 columns.

20 years agoCopy newer versions of JH_CHECK_XML_CATALOG and JH_PATH_XML_CATALOG from
Matthias Clasen [Sun, 10 Aug 2003 22:24:17 +0000 (22:24 +0000)]
Copy newer versions of JH_CHECK_XML_CATALOG and JH_PATH_XML_CATALOG from

* acinclude.m4: Copy newer versions of JH_CHECK_XML_CATALOG and JH_PATH_XML_CATALOG from
gtk-doc to enable configuring without xmlcatalog in PATH.  (#119115)

20 years agoDon't use a cache of variable name to value mappings on Win32, as that
Tor Lillqvist [Sun, 10 Aug 2003 08:04:10 +0000 (08:04 +0000)]
Don't use a cache of variable name to value mappings on Win32, as that

2003-08-10  Tor Lillqvist  <tml@iki.fi>

* glib/gutils.c (g_getenv): Don't use a cache of variable name to
value mappings on Win32, as that breaks g_setenv() and
g_unsetenv(). Only call ExpandEnvironmentStrings() if necessary,
and in that case return a quarkified string. It is still
questionable how necessary expanding embedded environment variable
references is. Possibly the whole Win32-specific g_getenv()
implementation could be removed. (#119520)

20 years agoAdd g_once_impl.
Tor Lillqvist [Sun, 10 Aug 2003 01:54:02 +0000 (01:54 +0000)]
Add g_once_impl.

2003-08-08  Tor Lillqvist  <tml@iki.fi>

* glib/glib.def: Add g_once_impl.

20 years agoFix syntax error in the !HAVE_SETENV case.
Tor Lillqvist [Fri, 8 Aug 2003 20:38:15 +0000 (20:38 +0000)]
Fix syntax error in the !HAVE_SETENV case.

2003-08-08  Tor Lillqvist  <tml@iki.fi>

* glib/gutils.c (g_setenv): Fix syntax error in the !HAVE_SETENV
case.

20 years agoImprove the wording of the warning for invalid
Matthias Clasen [Fri, 8 Aug 2003 19:47:35 +0000 (19:47 +0000)]
Improve the wording of the warning for invalid
values.  (#117246, Mariano Suarez-Alvarez)

20 years agoRemove a test for getenv() behaviour which isn't specified by SUS and
Matthias Clasen [Fri, 8 Aug 2003 19:28:24 +0000 (19:28 +0000)]
Remove a test for getenv() behaviour which isn't specified by SUS and

2003-08-08  Matthias Clasen  <maclas@gmx.de>

* tests/env-test.c (main): Remove a test for getenv() behaviour which isn't specified by SUS
and doesn't work on Solaris.

20 years agoAdd tests for '=' in names and values.
Matthias Clasen [Thu, 7 Aug 2003 21:51:38 +0000 (21:51 +0000)]
Add tests for '=' in names and values.

2003-08-07  Matthias Clasen  <maclas@gmx.de>

* tests/env-test.c: Add tests for '=' in names and values.

* glib/gutils.c (g_setenv, g_unsetenv): Check that the variable name doesn't contain '='. Add a
declaration for environ.  (#119338)

20 years agoTighten the snprintf() test to check behaviour on zero-size buffers.
Matthias Clasen [Thu, 7 Aug 2003 20:48:10 +0000 (20:48 +0000)]
Tighten the snprintf() test to check behaviour on zero-size buffers.

2003-08-07  Matthias Clasen  <maclas@gmx.de>

* acinclude.m4: Tighten the snprintf() test to check behaviour on zero-size buffers.  (#106091)

20 years agoSpecify test strings in UTF-8, remove all charset conversion. Replace the
Matthias Clasen [Thu, 7 Aug 2003 19:39:36 +0000 (19:39 +0000)]
Specify test strings in UTF-8, remove all charset conversion. Replace the

2003-08-07  Matthias Clasen  <maclas@gmx.de>

* tests/patterntest.c: Specify test strings in UTF-8, remove all charset conversion.
Replace the NOISY define by a cmdline arg --noisy.   (#115757)

20 years agoSet $LIBS to include -lintl when checking for dcgettext and
Owen Taylor [Thu, 7 Aug 2003 19:10:41 +0000 (19:10 +0000)]
Set $LIBS to include -lintl when checking for dcgettext and

Thu Aug  7 15:01:09 2003  Owen Taylor  <otaylor@redhat.com>

        * m4macros/glib-gettext.m4: Set $LIBS to include
        -lintl when checking for dcgettext and
        _nl_msg_cat_cntr. (Tim Mooney, #119171)

20 years agoMake the default priority for idle sources G_PRIORITY_DEFAULT_IDLE as
Owen Taylor [Thu, 7 Aug 2003 18:19:23 +0000 (18:19 +0000)]
Make the default priority for idle sources G_PRIORITY_DEFAULT_IDLE as

Thu Aug  7 14:15:44 2003  Owen Taylor  <otaylor@redhat.com>

        * glib/gmain.c (g_idle_source_new): Make the default priority
        for idle sources G_PRIORITY_DEFAULT_IDLE as anybody would
        expect and document that. (#114461, reported by Andy Wingo)

20 years agoAdd test for special case not at inital position in the string, the bug
Noah Levitt [Wed, 6 Aug 2003 20:28:33 +0000 (20:28 +0000)]
Add test for special case not at inital position in the string, the bug

2003-08-06  Noah Levitt  <nlevitt@columbia.edu>

* tests/casemap.txt:
* tests/gen-casemap-txt.pl: Add test for special case not at inital
position in the string, the bug just fixed. (#118957)

20 years agoAdd check for instance private usage within in instance_init. (Currently
Owen Taylor [Wed, 6 Aug 2003 14:33:20 +0000 (14:33 +0000)]
Add check for instance private usage within in instance_init. (Currently

Wed Aug  6 09:57:14 2003  Owen Taylor  <otaylor@redhat.com>

        * testgobject.c (test_signal_accumulator): Add check
        for instance private usage within in instance_init.
        (Currently will fail.)

20 years agoFix small mistake in last commit. (still falls in the same Changelog entry) (#118957)
Noah Levitt [Wed, 6 Aug 2003 01:25:46 +0000 (01:25 +0000)]
Fix small mistake in last commit. (still falls in the same Changelog entry) (#118957)

20 years agoGet rid of "len" parameter to output_special_case and output_marks, and
Noah Levitt [Wed, 6 Aug 2003 01:08:46 +0000 (01:08 +0000)]
Get rid of "len" parameter to output_special_case and output_marks, and

2003-08-05  Noah Levitt  <nlevitt@columbia.edu>

* glib/guniprop.c: Get rid of "len" parameter to output_special_case
and output_marks, and make them work more like g_unichar_to_utf8,
fixing a bug in the process. (#118957)

20 years agofor msvc build
Hans Breuer [Tue, 5 Aug 2003 22:21:19 +0000 (22:21 +0000)]
for msvc build

2003-08-05  Hans Breuer  <hans@breuer.org>

* glib/gnulib/makefile.msc : (new file) for msvc build

* glib/gnulib/vasnprintf.c : use glib/galloc.h

* glib/gnulib/printf.h : #include <stdio.h> for FILE*

* glib/makefile.msc.in : replace trio with gnulib

* glib/glib.def : updated externals

* glib/guniprop.c : fix for guniprop.c(582) : error C2082:
redefinition of formal parameter 'len'

20 years agoAdd note about in-place editing to g_strdelimit() doc.
Matthias Clasen [Tue, 5 Aug 2003 21:35:55 +0000 (21:35 +0000)]
Add note about in-place editing to g_strdelimit() doc.
(#118875, Thomas Vander Stichele)

20 years agoWe do handle > BMP now, so test it.
Noah Levitt [Tue, 5 Aug 2003 03:41:34 +0000 (03:41 +0000)]
We do handle > BMP now, so test it.

2003-08-04  Noah Levitt  <nlevitt@columbia.edu>

* tests/unicode-normalize.c: We do handle > BMP now, so test it.

20 years agoRetrying?
Sajith VK [Sat, 2 Aug 2003 14:54:17 +0000 (14:54 +0000)]
Retrying?

20 years agos/g_read_link/g_file_read_link/ (#118727)
Noah Levitt [Thu, 31 Jul 2003 16:56:27 +0000 (16:56 +0000)]
s/g_read_link/g_file_read_link/ (#118727)

2003-07-31  Noah Levitt  <nlevitt@columbia.edu>

* tests/file-test.c: s/g_read_link/g_file_read_link/ (#118727)

20 years agoReturn nonzero exit status if the test fails. (#118729)
Noah Levitt [Thu, 31 Jul 2003 16:51:52 +0000 (16:51 +0000)]
Return nonzero exit status if the test fails. (#118729)

2003-07-31  Noah Levitt  <nlevitt@columbia.edu>

* tests/unicode-encoding.c: Return nonzero exit status if the test fails. (#118729)

20 years agoChange instances of U+10ffff to U+10fffd, since that is the last valid
Noah Levitt [Thu, 31 Jul 2003 16:48:54 +0000 (16:48 +0000)]
Change instances of U+10ffff to U+10fffd, since that is the last valid

2003-07-31  Noah Levitt  <nlevitt@columbia.edu>

* tests/utf8.txt: Change instances of U+10ffff to U+10fffd, since that
is the last valid unicode character. Add check that U+10ffff is
NOTUNICODE. (#118730)

20 years agoUpdate Unicode data to 4.0. (#107974)
Noah Levitt [Thu, 31 Jul 2003 02:27:56 +0000 (02:27 +0000)]
Update Unicode data to 4.0. (#107974)

2003-07-30  Noah Levitt  <nlevitt@columbia.edu>

* glib/gen-unicode-tables.pl:
* glib/gunibreak.c:
* glib/gunibreak.h:
* glib/gunichartables.h:
* glib/gunicode.h:
* glib/gunicomp.h:
* glib/gunidecomp.c:
* glib/gunidecomp.h:
* glib/guniprop.c:
* tests/casefold.txt:
* tests/casemap.txt:
* tests/gen-casefold-txt.pl:
* tests/gen-casemap-txt.pl: Update Unicode data to 4.0. (#107974)

20 years agoWhen possible, manage without the helper process. (Part of the
Tor Lillqvist [Thu, 31 Jul 2003 01:25:19 +0000 (01:25 +0000)]
When possible, manage without the helper process. (Part of the

2003-07-31  Tor Lillqvist  <tml@iki.fi>

* glib/gspawn-win32.c: When possible, manage without the helper
process. (Part of the enhancements outlined in #98737.) Speeds up
GIMP 1.3's first-time-run plug-in query phase a lot.

Plug a file descriptor (and thus Win32 handle) leak: close the
read end of the child error report pipe after use.

20 years agoRevert accidental commit. (Oops.)
Noah Levitt [Wed, 30 Jul 2003 22:31:23 +0000 (22:31 +0000)]
Revert accidental commit. (Oops.)

20 years ago548d0e9ce9516c80c8f5830090bfcae3
Noah Levitt [Wed, 30 Jul 2003 22:21:33 +0000 (22:21 +0000)]
548d0e9ce9516c80c8f5830090bfcae3

20 years agoSmall doc additions.
Matthias Clasen [Wed, 30 Jul 2003 19:00:36 +0000 (19:00 +0000)]
Small doc additions.

20 years agoSmall doc fixes.
Matthias Clasen [Wed, 30 Jul 2003 18:50:26 +0000 (18:50 +0000)]
Small doc fixes.

20 years agoRemove forgotten @TRIO_LIBS@. (#118616, Noah Levitt)
Matthias Clasen [Wed, 30 Jul 2003 00:01:39 +0000 (00:01 +0000)]
Remove forgotten @TRIO_LIBS@. (#118616, Noah Levitt)

* glib-2.0.pc.in (Libs): Remove forgotten @TRIO_LIBS@.  (#118616, Noah Levitt)

20 years agoAdd paragraph about multi-threading policy.
Matthias Clasen [Tue, 29 Jul 2003 22:37:37 +0000 (22:37 +0000)]
Add paragraph about multi-threading policy.

* glib/glib-docs.sgml: Add paragraph about multi-threading policy.

20 years agoRename g_read_link() to g_file_read_link() to better match the remaining
Matthias Clasen [Tue, 29 Jul 2003 22:31:40 +0000 (22:31 +0000)]
Rename g_read_link() to g_file_read_link() to better match the remaining

* glib/gfileutils.[hc]: Rename g_read_link() to g_file_read_link() to better match the remaining file
utilities in the g_file_ namespace and to better separate it from readlink(). This is hopefully no problem
as the function is just 2 days old.

20 years agoUse gchar, gint, gsize instead of char, int, size_t in the interface for
Matthias Clasen [Tue, 29 Jul 2003 18:59:23 +0000 (18:59 +0000)]
Use gchar, gint, gsize instead of char, int, size_t in the interface for

2003-07-29  Matthias Clasen  <maclas@gmx.de>

* glib/gqsort.[hc] (g_qsort_with_data):
* glib/gconvert.[hc] (g_filename_to_uri, g_filename_from_uri):
* glib/gfileutils.[hc] (g_mkstemp, g_file_open_tmp): Use gchar, gint, gsize instead of char, int, size_t
in the interface for consistency.  (#118567)

20 years agoRemove trio printf().
Matthias Clasen [Mon, 28 Jul 2003 23:00:51 +0000 (23:00 +0000)]
Remove trio printf().

20 years agoIntegrate gnulib vasnprintf().
Matthias Clasen [Mon, 28 Jul 2003 23:00:05 +0000 (23:00 +0000)]
Integrate gnulib vasnprintf().

20 years agoAdd gnulib vasnprintf().
Matthias Clasen [Mon, 28 Jul 2003 22:58:01 +0000 (22:58 +0000)]
Add gnulib vasnprintf().

20 years agoCommit autogenerated stuff.
Matthias Clasen [Mon, 28 Jul 2003 20:20:00 +0000 (20:20 +0000)]
Commit autogenerated stuff.

20 years agoconfigure.in changes forgotten in last commit.
Matthias Clasen [Mon, 28 Jul 2003 20:14:09 +0000 (20:14 +0000)]
configure.in changes forgotten in last commit.

20 years agoNew function g_read_link(). (#72545)
Matthias Clasen [Mon, 28 Jul 2003 19:49:47 +0000 (19:49 +0000)]
New function g_read_link(). (#72545)

* glib/gfileutils.h:
* glib/gfileutils.c: New function g_read_link(). (#72545)

20 years agoAdd tests for g_{get,set,unset}env().
Matthias Clasen [Mon, 28 Jul 2003 19:30:05 +0000 (19:30 +0000)]
Add tests for g_{get,set,unset}env().

20 years agoAdd g_setenv() and g_unsetenv(). (#100763)
Matthias Clasen [Mon, 28 Jul 2003 19:24:22 +0000 (19:24 +0000)]
Add g_setenv() and g_unsetenv(). (#100763)

* glib/gutils.[ch]: Add g_setenv() and g_unsetenv().  (#100763)

20 years agotest suite additions.
Matthias Clasen [Sat, 26 Jul 2003 09:24:46 +0000 (09:24 +0000)]
test suite additions.

20 years agoNew functions to remove a range of elements from an array. (#94879, Nalin
Matthias Clasen [Sat, 26 Jul 2003 08:03:16 +0000 (08:03 +0000)]
New functions to remove a range of elements from an array. (#94879, Nalin

2003-07-26  Matthias Clasen  <maclas@gmx.de>

* glib/garray.h:
* glib/garray.c (g_{,byte,pointer}_remove_range): New functions to remove a range of elements
from an array.  (#94879, Nalin Dahyabhai)

20 years agoRemove the 1024 char limit in the common (non-recursive) case.
Matthias Clasen [Fri, 25 Jul 2003 23:17:23 +0000 (23:17 +0000)]
Remove the 1024 char limit in the common (non-recursive) case.

2003-07-26  Matthias Clasen  <maclas@gmx.de>

* glib/gmessages.c (g_logv): Remove the 1024 char limit in the common (non-recursive)
case.

20 years agoRemove some explicit Docbook markup which is no longer necessary
Matthias Clasen [Fri, 25 Jul 2003 21:32:47 +0000 (21:32 +0000)]
Remove some explicit Docbook markup which is no longer necessary
since gtk-doc does the right thing.

20 years agoWork around gtk-doc stupidity.
Matthias Clasen [Thu, 24 Jul 2003 23:07:29 +0000 (23:07 +0000)]
Work around gtk-doc stupidity.

2003-07-25  Matthias Clasen  <maclas@gmx.de>

* glib/gutf8.c (g_utf8_get_char_validated): Work around gtk-doc stupidity.

21 years agoMention the restriction on message length. (#118043, Martyn Russell)
Matthias Clasen [Wed, 23 Jul 2003 22:41:23 +0000 (22:41 +0000)]
Mention the restriction on message length. (#118043, Martyn Russell)

* glib/tmpl/messages.sgml: Mention the restriction on message length.  (#118043, Martyn Russell)

21 years agofor msvc build
Hans Breuer [Sun, 20 Jul 2003 15:55:49 +0000 (15:55 +0000)]
for msvc build

2003-07-20  Hans Breuer  <hans@breuer.org>

* glib/trio/makefile.msc : (new file) for msvc build

21 years agofor msvc build
Hans Breuer [Sun, 20 Jul 2003 15:55:09 +0000 (15:55 +0000)]
for msvc build

2003-07-20  Hans Breuer  <hans@breuer.org>

* glib/trio/makefile.msc : (new file) for msvc build

* glib/glib.def : removed some duplicated entries

* glib/gscanner.c : add same workaround for MSVC(5.0)
which does not allow to cast an uint64 to float.
Same as in gvaluetransform.c
Also move #include <io.h> behind inclusion of "glib.h"
which defines the needed G_OS_WIN32

* glib/makefile.msc.in : added gprintf.obj, trio\trio.lib
as well as shell32.lib

* tests/spawn-test.c : include <io.h> on win32

21 years agoupdated externals
Hans Breuer [Sun, 20 Jul 2003 15:53:58 +0000 (15:53 +0000)]
updated externals

2003-07-20  Hans Breuer  <hans@breuer.org>

* gobject.def : updated externals

21 years agoAdd a note about double indirection in g_ptr_array_sort[_with_data]().
Matthias Clasen [Thu, 17 Jul 2003 23:11:21 +0000 (23:11 +0000)]
Add a note about double indirection in g_ptr_array_sort[_with_data]().

2003-07-18  Matthias Clasen  <maclas@gmx.de>

* glib/tmpl/arrays_pointer.sgml: Add a note about double indirection in
g_ptr_array_sort[_with_data]().  (#113697, Owen Taylor)

21 years agoAdded "eo" to ALL_LINGUAS. Added Esperanto translation from Charles
Joel Brich [Thu, 10 Jul 2003 18:24:49 +0000 (18:24 +0000)]
Added "eo" to ALL_LINGUAS. Added Esperanto translation from Charles

2003-07-10  Joel Brich  <joel.brich@laposte.net>

* configure.in: Added "eo" to ALL_LINGUAS.
* po/eo.po: Added Esperanto translation
from Charles Voegler <cvoegler@dweasel.com>

21 years agoDoc additions.
Matthias Clasen [Thu, 10 Jul 2003 18:24:46 +0000 (18:24 +0000)]
Doc additions.

2003-07-12  Matthias Clasen  <maclas@gmx.de>

* glib/gprintf.c: Doc additions.

2003-07-12  Matthias Clasen  <maclas@gmx.de>

* glib/tmpl/string_utils.sgml: Add a paragraph about string precision, add links to it.
Remove markup which is now handled better by gtk-doc.

21 years agoAdded "eo" to ALL_LINGUAS. Added Esperanto translation from Charles
Joel Brich [Thu, 10 Jul 2003 18:24:46 +0000 (18:24 +0000)]
Added "eo" to ALL_LINGUAS. Added Esperanto translation from Charles

2003-07-10  Joel Brich  <joel.brich@laposte.net>

* configure.in: Added "eo" to ALL_LINGUAS.
* po/eo.po: Added Esperanto translation
from Charles Voegler <cvoegler@dweasel.com>

21 years agogrammar fix
Manish Singh [Thu, 10 Jul 2003 00:16:46 +0000 (00:16 +0000)]
grammar fix

21 years agocheck if context->poll_chunk is set before trying to destroy it. For
Manish Singh [Wed, 9 Jul 2003 23:31:20 +0000 (23:31 +0000)]
check if context->poll_chunk is set before trying to destroy it. For

Wed Jul  9 16:27:26 2003  Manish Singh  <yosh@gimp.org>

        * glib/gmain.c (g_main_context_unref_and_unlock): check if
        context->poll_chunk is set before trying to destroy it. For example,
        This can happen if no sources are added to a context before it is
        freed.

21 years agoDoc additions.
Matthias Clasen [Wed, 9 Jul 2003 19:32:16 +0000 (19:32 +0000)]
Doc additions.

2003-07-12  Matthias Clasen  <maclas@gmx.de>

* glib/gprintf.c: Doc additions.

2003-07-12  Matthias Clasen  <maclas@gmx.de>

* glib/tmpl/string_utils.sgml: Add a paragraph about string precision, add links to it.
Remove markup which is now handled better by gtk-doc.

21 years agoAvoid var declaration after statement.
Morten Welinder [Wed, 9 Jul 2003 19:32:16 +0000 (19:32 +0000)]
Avoid var declaration after statement.

2003-07-09  Morten Welinder  <terra@gnome.org>

* glib/gprintf.c (g_vasprintf): Avoid var declaration after
statement.

21 years agoDocument the members of GOnce.
Matthias Clasen [Wed, 9 Jul 2003 00:08:39 +0000 (00:08 +0000)]
Document the members of GOnce.

21 years agoSGML fix.
Matthias Clasen [Tue, 8 Jul 2003 23:59:13 +0000 (23:59 +0000)]
SGML fix.

21 years agoSupport for one-time initialization functions. (#69668, Sebastian
Matthias Clasen [Tue, 8 Jul 2003 23:43:48 +0000 (23:43 +0000)]
Support for one-time initialization functions. (#69668, Sebastian

2003-07-09  Matthias Clasen  <maclas@gmx.de>

Support for one-time initialization functions.  (#69668, Sebastian Wilhelmi)

* configure.in: Check whether double checked locking is safe, define g_once() in
glibconfig.h accordingly.
* glib/gthread.h: Add GOnce, GOnceStatus, G_ONCE_INIT and g_once_impl.
* glib/gthread.c (g_once_impl): Fallback implementation using a mutex if double checked
locking is unsafe.
* tests/thread-test.c: Add tests for g_once().

21 years agoDoc additions.
Matthias Clasen [Tue, 8 Jul 2003 23:43:47 +0000 (23:43 +0000)]
Doc additions.

2003-07-12  Matthias Clasen  <maclas@gmx.de>

* glib/gprintf.c: Doc additions.

2003-07-12  Matthias Clasen  <maclas@gmx.de>

* glib/tmpl/string_utils.sgml: Add a paragraph about string precision, add links to it.
Remove markup which is now handled better by gtk-doc.

21 years agoSupport for one-time initialization functions. (#69668, Sebastian
Matthias Clasen [Tue, 8 Jul 2003 23:43:47 +0000 (23:43 +0000)]
Support for one-time initialization functions. (#69668, Sebastian

2003-07-09  Matthias Clasen  <maclas@gmx.de>

Support for one-time initialization functions.  (#69668, Sebastian Wilhelmi)

* configure.in: Check whether double checked locking is safe, define g_once() in
glibconfig.h accordingly.
* glib/gthread.h: Add GOnce, GOnceStatus, G_ONCE_INIT and g_once_impl.
* glib/gthread.c (g_once_impl): Fallback implementation using a mutex if double checked
locking is unsafe.
* tests/thread-test.c: Add tests for g_once().

21 years agoOnly access node->data->instance when the node is instantiable.
Soeren Sandmann [Tue, 8 Jul 2003 20:12:05 +0000 (20:12 +0000)]
Only access node->data->instance when the node is instantiable.

Tue Jul  8 22:29:31 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

* gtype.c (type_class_init_Wm): Only access node->data->instance
when the node is instantiable.

21 years agoInitialize node->data->instance.private_size here rather than in
Owen Taylor [Tue, 8 Jul 2003 18:59:04 +0000 (18:59 +0000)]
Initialize node->data->instance.private_size here rather than in

Tue Jul  8 14:55:27 2003  Owen Taylor  <otaylor@redhat.com>

        * gtype.c (type_class_init_Wm): Initialize
        node->data->instance.private_size here rather than
        in type_data_make_W() since the class init for the parent
        class may have changed pnode->data->instance.private_size.
        (#116921, reported by Soeren Sandmann)

21 years agoBroken pipe...
Matthias Clasen [Tue, 1 Jul 2003 22:15:54 +0000 (22:15 +0000)]
Broken pipe...

21 years agoMove g_strfreev() docs inline.
Matthias Clasen [Tue, 1 Jul 2003 22:15:54 +0000 (22:15 +0000)]
Move g_strfreev() docs inline.

2003-07-02  Matthias Clasen  <maclas@gmx.de>

* glib/tmpl/string_utils.sgml: Move g_strfreev() docs inline.

21 years agoUse C99 style \uxxxx and \Uxxxxyyyy escapes instead for fallback instead
Abigail Brady [Wed, 25 Jun 2003 18:03:38 +0000 (18:03 +0000)]
Use C99 style \uxxxx and \Uxxxxyyyy escapes instead for fallback instead

2003-06-25  Abigail Brady  <morwen@evilmagic.org>

  * glib/gconvert.c (g_convert_with_fallback): Use C99 style \uxxxx
  and \Uxxxxyyyy escapes instead for fallback instead of perl-style
  \X{xxxx} ones, fixing bug #114284.

21 years agoPass real &optval and &optlen to getsockopt() instead of NULL. Don't
Tor Lillqvist [Wed, 25 Jun 2003 03:06:24 +0000 (03:06 +0000)]
Pass real &optval and &optlen to getsockopt() instead of NULL. Don't

2003-06-25  Tor Lillqvist  <tml@iki.fi>

* glib/giowin32.c (g_io_channel_unix_new): Pass real &optval and
&optlen to getsockopt() instead of NULL. Don't remember why I
thought that NULL could be used (as we don't actually use the
returned value for anything), the Platform SDK documentation
doesn't imply so.

21 years agoUpdated Azerbaijani translation.
Metin Amiroff [Sun, 22 Jun 2003 16:21:43 +0000 (16:21 +0000)]
Updated Azerbaijani translation.

2003-06-22  Metin Amiroff <metin@karegen.com>

* az.po: Updated Azerbaijani translation.

21 years agoMove the documentation inline and add details. (#108505) Move
Matthias Clasen [Wed, 18 Jun 2003 23:12:56 +0000 (23:12 +0000)]
Move the documentation inline and add details. (#108505) Move

2003-06-19  Matthias Clasen  <maclas@gmx.de>

* glib/gutils.c (g_path_get_basename): Move the documentation
inline and add details.  (#108505)
* glib/tmpl/misc_utils.sgml: Move g_path_get_basename() docs inline.

21 years agoAdd g_thread_init_glib to silence gtk-doc.
Matthias Clasen [Wed, 18 Jun 2003 21:47:16 +0000 (21:47 +0000)]
Add g_thread_init_glib to silence gtk-doc.

* glib/glib-sections.txt: Add g_thread_init_glib to silence gtk-doc.

21 years agoforgotten ChangeLog
Matthias Clasen [Tue, 17 Jun 2003 23:10:04 +0000 (23:10 +0000)]
forgotten ChangeLog

21 years agoNew macros to check for XML catalog contents and path, borrowed from
Matthias Clasen [Tue, 17 Jun 2003 23:08:37 +0000 (23:08 +0000)]
New macros to check for XML catalog contents and path, borrowed from

2003-06-17  Matthias Clasen  <maclas@gmx.de>

* acinclude.m4 (JH_PATH_XML_CATALOG, JH_CHECK_XML_CATALOG): New
macros to check for XML catalog contents and path, borrowed from
gtk-doc.
* configure.in: New option --enable-man to enable regeneration of
man pages from Docbook, if the necessary tools are found.

* gobject/Makefile.am: Add rule to regenerate man pages from
Docbook.
(man_MANS): Add glib-mkenums.1, glib-genmarshal.1 and gobject-query.1.
(content_files): Add glib-mkenums.xml, glib-genmarshal.xml and
gobject-query.xml.

* gobject/glib-mkenums.xml:
* gobject/glib-genmarshal.xml:
* gobject/gobject-query.xml: New refentries.

* gobject/glib-mkenums.1:
* gobject/glib-genmarshal.1:
* gobject/gobject-query.1: Man pages generated from the .xml
sources.

* gobject/gobject-docs.sgml: Include glib-mkenums.xml,
glib-genmarshal.xml and gobject-query.xml.

* glib/Makefile.am: Add rule to regenerate man pages from
Docbook.
(man_MANS): Add glib-gettextize.1.
(content_files): Add glib-gettextize.xml.

* glib/glib-gettextize.xml: New refentry.

* glib/glib-gettextize.1: Man page generated from the .xml source.

* glib/glib-docs.sgml: Include glib-gettextize.xml.

21 years agoAdd an autogenerated index.
Matthias Clasen [Mon, 16 Jun 2003 23:01:00 +0000 (23:01 +0000)]
Add an autogenerated index.

2003-06-17  Matthias Clasen  <mc2@YAST_ASK>

* gobject/gobject-docs.sgml:
* glib/glib-docs.sgml: Add an autogenerated index.

2003-06-17  Matthias Clasen  <maclas@gmx.de>

* glib/tmpl/macros_misc.sgml: Document G_GNUC_DEPRECATED.

21 years agoTest where the DLLs actually are.
Tor Lillqvist [Sun, 15 Jun 2003 23:20:14 +0000 (23:20 +0000)]
Test where the DLLs actually are.

2003-06-15  Tor Lillqvist  <tml@iki.fi>

* glib-zip.in (DLLDIR): Test where the DLLs actually are.

* README.win32: Point to FSF's binary Win32 distributions of
libiconv and gettext-runtime.

21 years agolibtool 1.5 installs DLLs in the bin subdirectory, so get them from there.
Tor Lillqvist [Wed, 11 Jun 2003 22:06:16 +0000 (22:06 +0000)]
libtool 1.5 installs DLLs in the bin subdirectory, so get them from there.

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

* glib-zip.in (DEVZIP): libtool 1.5 installs DLLs in the bin
subdirectory, so get them from there.

* glib/gwin32.c (g_win32_getlocale): Use "sr@Latn" and "sr" in the
same way as the po files for Serbian in Latin and Cyrillic script.

21 years agoA small addition.
Matthias Clasen [Wed, 11 Jun 2003 21:18:55 +0000 (21:18 +0000)]
A small addition.

2003-06-11  Matthias Clasen  <maclas@gmx.de>

* gobject/tmpl/objects.sgml: A small addition.

21 years agoRemove false &. Spotted by Albert Chin
Sebastian Wilhelmi [Wed, 11 Jun 2003 13:34:40 +0000 (13:34 +0000)]
Remove false &. Spotted by Albert Chin

2003-06-11  Sebastian Wilhelmi  <seppi@seppi.de>

        * configure.in: Remove false &. Spotted by Albert Chin
        <gtk-devel-list@thewrittenword.com>.

21 years agoXML fix.
Owen Taylor [Sun, 8 Jun 2003 16:35:16 +0000 (16:35 +0000)]
XML fix.

Sun Jun  8 12:28:39 2003  Owen Taylor  <otaylor@redhat.com>

        * glib/tmpl/error_reporting.sgml: XML fix.

        * glib/glib-sections.txt: Updated.