platform/upstream/glib.git
17 years agoAdd GRegex for regular expression matching. (#50075)
Marco Barisione [Thu, 15 Mar 2007 13:01:31 +0000 (13:01 +0000)]
Add GRegex for regular expression matching. (#50075)

2007-03-15  Marco Barisione <marco@barisione.org>

Add GRegex for regular expression matching.  (#50075)

* configure.in: Handle GRegex compilation.

* glib/gregex.c:
* glib/gregex.h: Code for GRegex.

* glib/Makefile.am:
* glib/makefile.msc.in: Updated makefiles.

* glib/pcre/*: Internal copy of PCRE.

* glib/update-pcre/*: Stuff to automatically update the internal PCRE
to a newer version.

* tests/regex-test.c:
* tests/Makefile.am:
* tests/makefile.msc.in: Add tests for GRegex.

svn path=/trunk/; revision=5408

17 years agoReplace a g_slist_prepend/g_slist_remove pair with an on-stack link and
Chris Wilson [Thu, 15 Mar 2007 08:47:28 +0000 (08:47 +0000)]
Replace a g_slist_prepend/g_slist_remove pair with an on-stack link and

2007-03-15  Chris Wilson  <chris@chris-wilson.co.uk>

* glib/gmain.c (g_main_dispatch): Replace a
g_slist_prepend/g_slist_remove pair with an on-stack link
and open coding. (#416094)

svn path=/trunk/; revision=5407

17 years agoUse g_slice. (#404430, Chris Wilson)
Matthias Clasen [Thu, 15 Mar 2007 05:01:20 +0000 (05:01 +0000)]
Use g_slice. (#404430, Chris Wilson)

2007-03-15  Matthias Clasen  <mclasen@redhat.com>

        * gvaluearray.c: Use  g_slice.  (#404430, Chris Wilson)

svn path=/trunk/; revision=5406

17 years agoSome optimizations, use a lookup table for character classes, pre-allocate
Matthias Clasen [Thu, 15 Mar 2007 04:54:03 +0000 (04:54 +0000)]
Some optimizations, use a lookup table for character classes, pre-allocate

2007-03-15  Matthias Clasen  <mclasen@redhat.com>

        * glib/gscanner.[hc]: Some optimizations, use a lookup
        table for character classes, pre-allocate GStrings with
        reasonable sizes.  (#415323, Charlie Brej)

svn path=/trunk/; revision=5405

17 years agoFix a small typo. (#417947, Bobby Jack)
Matthias Clasen [Thu, 15 Mar 2007 03:08:08 +0000 (03:08 +0000)]
Fix a small typo. (#417947, Bobby Jack)

2007-03-14  Matthias Clasen  <mclasen@redhat.com>

        * glib/gkeyfile.c (g_key_file_get_double): Fix a
        small typo.  (#417947, Bobby Jack)

svn path=/trunk/; revision=5404

17 years agoReadd docs for G_PARAM_STATIC_NICK and add docs for new
Stefan Kost [Wed, 14 Mar 2007 19:09:49 +0000 (19:09 +0000)]
Readd docs for G_PARAM_STATIC_NICK and add docs for new

* gobject/tmpl/gparamspec.sgml:
Readd docs for G_PARAM_STATIC_NICK and add docs for new
G_PARAM_STATIC_STRINGS (fixes #418021).

svn path=/trunk/; revision=5403

17 years agoAdd G_PARAM_STATIC_STRINGS define (fixes #418021).
Stefan Kost [Wed, 14 Mar 2007 19:09:33 +0000 (19:09 +0000)]
Add G_PARAM_STATIC_STRINGS define (fixes #418021).

* gparam.h:
Add G_PARAM_STATIC_STRINGS define (fixes #418021).

svn path=/trunk/; revision=5402

17 years agomarked purely functional g_type accessors as PURE or CONST, closes
Tim Janik [Mon, 12 Mar 2007 12:28:56 +0000 (12:28 +0000)]
marked purely functional g_type accessors as PURE or CONST, closes

Mon Mar 12 13:30:20 2007  Tim Janik  <timj@gtk.org>

        * gtype.h: marked purely functional g_type accessors as PURE or CONST,
        closes #305100.

svn path=/trunk/; revision=5400

17 years agoUpdated Serbian translation
Goran Rakic [Sun, 11 Mar 2007 18:11:04 +0000 (18:11 +0000)]
Updated Serbian translation

svn path=/trunk/; revision=5398

17 years agoUpdated Romanian translation by Mişu Moldovan <dumol@gnome.ro>
Mugurel Tudor [Sat, 10 Mar 2007 23:00:17 +0000 (23:00 +0000)]
Updated Romanian translation by Mişu Moldovan <dumol@gnome.ro>

2007-03-11  Mugurel Tudor  <mugurelu@gnome.ro>

* ro.po: Updated Romanian translation by
Mişu Moldovan <dumol@gnome.ro>

svn path=/trunk/; revision=5395

17 years agoReturn negative values. (#416062)
Matthias Clasen [Fri, 9 Mar 2007 03:40:43 +0000 (03:40 +0000)]
Return negative values. (#416062)

2007-03-08  Matthias Clasen  <mclasen@redhat.com>

        * glib/gstrfuncs.c (g_strtoll): Return negative values.
        (#416062)

        * tests/strtoll-test.c: Add more testcases.

svn path=/trunk/; revision=5390

17 years agoUpdated Bulgarian translation by Alexander Shopov <ash@contact.bg>
Alexander Shopov [Thu, 8 Mar 2007 06:50:42 +0000 (06:50 +0000)]
Updated Bulgarian translation by Alexander Shopov <ash@contact.bg>

2007-03-08  Alexander Shopov  <ash@contact.bg>

* bg.po: Updated Bulgarian translation by
Alexander Shopov <ash@contact.bg>

svn path=/trunk/; revision=5387

17 years agoDocument errorchecking mutexes
Matthias Clasen [Tue, 6 Mar 2007 19:44:19 +0000 (19:44 +0000)]
Document errorchecking mutexes

svn path=/trunk/; revision=5381

17 years agoFix a typo in the docs for g_node_first_child(). (#409395, Vincent Untz)
Matthias Clasen [Tue, 6 Mar 2007 19:29:54 +0000 (19:29 +0000)]
Fix a typo in the docs for g_node_first_child(). (#409395, Vincent Untz)

2007-03-06  Matthias Clasen  <mclasen@redhat.com>

        * glib/tmpl/trees-nary.sgml: Fix a typo in the docs for
        g_node_first_child().  (#409395, Vincent Untz)

svn path=/trunk/; revision=5380

17 years agoClarify docs. (#364026, Bastian Nocera)
Matthias Clasen [Tue, 6 Mar 2007 19:27:20 +0000 (19:27 +0000)]
Clarify docs. (#364026, Bastian Nocera)

2007-03-06  Matthias Clasen  <mclasen@redhat.com>

        * glib/gstring.c (g_str_equal): Clarify docs.  (#364026,
        Bastian Nocera)

svn path=/trunk/; revision=5379

17 years agoAdd G_QUEUE_INIT, g_queue_init(), and g_queue_clear() to better support
Matthew Barnes [Tue, 6 Mar 2007 18:43:10 +0000 (18:43 +0000)]
Add G_QUEUE_INIT, g_queue_init(), and g_queue_clear() to better support

2007-03-06  Matthew Barnes  <mbarnes@redhat.com>

* glib/gqueue.h:
* glib/gqueue.c: Add G_QUEUE_INIT, g_queue_init(), and
g_queue_clear() to better support statically allocated
queues.  (#413244)

svn path=/trunk/; revision=5378

17 years ago2007-03-06 Jovan Naumovski <jovanna@svn.gnome.org> *mk.po: Updated Macedonian transla...
Jovan Naumovski [Tue, 6 Mar 2007 10:20:48 +0000 (10:20 +0000)]
2007-03-06 Jovan Naumovski <jovanna@svn.gnome.org> *mk.po: Updated Macedonian translation.

svn path=/trunk/; revision=5376

17 years agoRemove a NULL check that didn't do any good. (#360904, Paolo Borelli)
Matthias Clasen [Tue, 6 Mar 2007 07:22:04 +0000 (07:22 +0000)]
Remove a NULL check that didn't do any good. (#360904, Paolo Borelli)

2007-03-06  Matthias Clasen  <mclasen@redhat.com>

        * glib/gkeyfile.c (g_key_file_parse_value_as_boolean):
        Remove a NULL check that didn't do any good.  (#360904,
        Paolo Borelli)

svn path=/trunk/; revision=5375

17 years agoReport more accurate position for invalid UTF-8. (#350802, Simon Budig)
Matthias Clasen [Tue, 6 Mar 2007 07:12:50 +0000 (07:12 +0000)]
Report more accurate position for invalid UTF-8. (#350802, Simon Budig)

2007-03-06  Matthias Clasen  <mclasen@redhat.com>

        * glib/gmarkup.c (g_markup_parse_context_parse): Report
        more accurate position for invalid UTF-8.  (#350802,
        Simon Budig)

svn path=/trunk/; revision=5373

17 years agoAdd NULL checks to the base64 functions that take pointers. (#399611,
Matthias Clasen [Tue, 6 Mar 2007 05:36:57 +0000 (05:36 +0000)]
Add NULL checks to the base64 functions that take pointers. (#399611,

2007-03-06  Matthias Clasen  <mclasen@redhat.com>

        * glib/gbase64.c: Add NULL checks to the base64
        functions that take pointers.  (#399611, Martyn Russell)

svn path=/trunk/; revision=5371

17 years agoWork with Solaris gettext (#341988, Laszlo Peter)
Matthias Clasen [Tue, 6 Mar 2007 05:23:26 +0000 (05:23 +0000)]
Work with Solaris gettext (#341988, Laszlo Peter)

2007-03-06  Matthias Clasen  <mclasen@redhat.com>

        Work with Solaris gettext (#341988, Laszlo Peter)

        * m4macros/glib-gettext.m4: Make GLIB_WITH_NLS define
        MSGFMT_OPTS if msgfmt supports -c.

        * po/Makefile.in.in: Use MSGFMT_OPTS when calling
        msgfmt.

svn path=/trunk/; revision=5369

17 years agoApply a patch by Loïc Minier to fix building with -Wl,-z,defs. (#149144)
Matthias Clasen [Tue, 6 Mar 2007 05:01:45 +0000 (05:01 +0000)]
Apply a patch by Loïc Minier to fix building with -Wl,-z,defs. (#149144)

2007-03-06  Matthias Clasen  <mclasen@Redhat.com>

        * tests/Makefile.am: Apply a patch by Loïc Minier
        to fix building with -Wl,-z,defs.  (#149144)

svn path=/trunk/; revision=5367

17 years agoAdded Malagasy translation. Added Malagasy 'mg' to ALL_LINGUAS
Thierry Randrianiriana [Sun, 4 Mar 2007 05:36:20 +0000 (05:36 +0000)]
Added Malagasy translation. Added Malagasy 'mg' to ALL_LINGUAS

 * po/mg.po: Added Malagasy translation.
 * configure.in: Added Malagasy 'mg' to ALL_LINGUAS

svn path=/trunk/; revision=5362

17 years agoAdded Belarusian Latin transtaion.
Ihar Hrachyshka [Thu, 1 Mar 2007 19:31:16 +0000 (19:31 +0000)]
Added Belarusian Latin transtaion.

svn path=/trunk/; revision=5353

17 years agoUpdated traditional Chinese translation
Kwok-Koon Cheung [Tue, 27 Feb 2007 18:08:46 +0000 (18:08 +0000)]
Updated traditional Chinese translation

svn path=/trunk/; revision=5352

17 years agoUpdated Lithuanian translation.
Gintautas Miliauskas [Tue, 27 Feb 2007 14:40:51 +0000 (14:40 +0000)]
Updated Lithuanian translation.

2007-02-27  Gintautas Miliauskas  <gintas@akl.lt>

* lt.po: Updated Lithuanian translation.

svn path=/trunk/; revision=5349

17 years agoUpdated Lithuanian translation.
Gintautas Miliauskas [Wed, 21 Feb 2007 23:54:36 +0000 (23:54 +0000)]
Updated Lithuanian translation.

2007-02-22  Gintautas Miliauskas  <gintas@akl.lt>

* lt.po: Updated Lithuanian translation.

svn path=/trunk/; revision=5347

17 years agoUpdated Norwegian bokmål translation.
Kjartan Maraas [Sat, 17 Feb 2007 14:56:07 +0000 (14:56 +0000)]
Updated Norwegian bokmål translation.

2007-02-17  Kjartan Maraas  <kmaraas@gnome.org>

* nb.po: Updated Norwegian bokmål translation.

svn path=/trunk/; revision=5341

17 years agoNew Win32-only function. Use the wide character Win32 API to do the work
Tor Lillqvist [Sat, 17 Feb 2007 08:51:12 +0000 (08:51 +0000)]
New Win32-only function. Use the wide character Win32 API to do the work

2007-02-17  Tor Lillqvist  <tml@novell.com>

* glib/gdate.c (win32_strftime_helper): New Win32-only
function. Use the wide character Win32 API to do the work of
strftime(): GetThreadLocale(), GetLocaleInfoW(), GetDateFormatW()
and GetTimeFormatW().
(g_date_strftime): On Windows use win32_strftime_helper()
instead of strftime() to avoid codepage issues with strftime().
Unfortunately using wcsftime() would not help either. (#404832)

svn path=/trunk/; revision=5339

17 years agoFor move, test moving between two sequences. Add test for swap.
Soren Sandmann [Fri, 16 Feb 2007 06:00:08 +0000 (06:00 +0000)]
For move, test moving between two sequences. Add test for swap.

2007-02-16  Soren Sandmann <sandmann@redhat.com>

* tests/sequence-test.c: For move, test moving between two
sequences. Add test for swap.

* glib/gsequence.c: Replace splay tree with a treap.
(check_node): Add checks for the treap invariants.

svn path=/trunk/; revision=5337

17 years agoAdd comment about dup(0) and lack of /dev/stdin on Win32. (#407431)
Tor Lillqvist [Tue, 13 Feb 2007 20:19:09 +0000 (20:19 +0000)]
Add comment about dup(0) and lack of /dev/stdin on Win32. (#407431)

2007-01-02  Tor Lillqvist  <tml@novell.com>

* glib-genmarshal.c (main): Add comment about dup(0) and
lack of /dev/stdin on Win32. (#407431)

svn path=/trunk/; revision=5335

17 years agoFormat XML to be more editable. Describe Interfaces better. Add a footnote
Stefan Kost [Sat, 10 Feb 2007 22:08:42 +0000 (22:08 +0000)]
Format XML to be more editable. Describe Interfaces better. Add a footnote

* gobject/tut_gobject.xml:
* gobject/tut_gsignal.xml:
* gobject/tut_gtype.xml:
* gobject/tut_howto.xml:
* gobject/tut_intro.xml:
* gobject/tut_tools.xml:
Format XML to be more editable. Describe Interfaces better. Add a
footnote at first occurance of 'maman_'.

svn path=/trunk/; revision=5334

17 years agoadded gsequence.obj
Hans Breuer [Sat, 10 Feb 2007 18:30:40 +0000 (18:30 +0000)]
added gsequence.obj

2007-02-10  Hans Breuer  <hans@breuer.org>

* glib/makefile.msc.in : added gsequence.obj

svn path=/trunk/; revision=5333

17 years agoRemove assertion. Return TRUE if the iter doesn't have a parent. Fix
Søren Sandmann [Fri, 9 Feb 2007 22:53:42 +0000 (22:53 +0000)]
Remove assertion. Return TRUE if the iter doesn't have a parent. Fix

Fri Feb  9 17:46:18 2007  Søren Sandmann  <sandmann@redhat.com>

       * glib/gsequence.c (g_sequence_get_end_iter): Remove assertion.
       * glib/gsequence.c (is_end): Return TRUE if the iter doesn't have
       a parent.
       * glib/gsequence.c: Fix grammar of comment.
       * glib/gsequence.c (node_update_fields): Use a temporary variable
       for the n_nodes.

svn path=/trunk/; revision=5331

17 years agoForce an arbitrary order on otherwise identical items.
Soren Sandmann [Thu, 8 Feb 2007 02:22:52 +0000 (02:22 +0000)]
Force an arbitrary order on otherwise identical items.

2007-02-07  Soren Sandmann <sandmann@daimi.au.dk>

* tests/sequence-test.c (compare_items): Force an arbitrary order
on otherwise identical items.

* glib/gsequence.c: Add comment discussing splay trees vs. other trees.
* glib/gsequence.c (is_end): Add fast path for the common case
when the node is not actually the end node.

svn path=/trunk/; revision=5328

17 years agoUnify spelling of GObject and GType. Improve some wording. Update the
Stefan Kost [Wed, 7 Feb 2007 22:15:34 +0000 (22:15 +0000)]
Unify spelling of GObject and GType. Improve some wording. Update the

* gobject/tut_gobject.xml:
* gobject/tut_gsignal.xml:
* gobject/tut_gtype.xml:
* gobject/tut_howto.xml:
* gobject/tut_tools.xml:
Unify spelling of GObject and GType. Improve some wording. Update the
usage of private data. Make tables use row-spans and add id's to them.

svn path=/trunk/; revision=5327

17 years agoDon't prohibit access until after the g_sequence_move_range() call. Bug
Soren Sandmann [Tue, 6 Feb 2007 04:49:41 +0000 (04:49 +0000)]
Don't prohibit access until after the g_sequence_move_range() call. Bug

2007-02-05  Soren Sandmann <sandmann@daimi.au.dk>

* glib/gsequence.c (g_sequence_sort_iter): Don't prohibit access
until after the g_sequence_move_range() call.  Bug 404759,
Christian Persch.

       * tests/sequence-test.c: Formatting fix.

svn path=/trunk/; revision=5325

17 years agoCompile fix.
Cody Russell [Mon, 5 Feb 2007 20:03:28 +0000 (20:03 +0000)]
Compile fix.

svn path=/trunk/; revision=5324

17 years agoAdd a new 'real_sequence' field. (g_sequence_new): Initialize
Soren Sandmann [Sun, 4 Feb 2007 03:39:57 +0000 (03:39 +0000)]
Add a new 'real_sequence' field. (g_sequence_new): Initialize

2007-02-03  Soren Sandmann <sandmann@daimi.au.dk>

        * glib/gsequence.c (struct _GSequence): Add a new 'real_sequence'
        field.
        (g_sequence_new): Initialize real_sequence to the sequence
        (g_sequence_sort_iter): Set real_sequence of the temporary
        sequence to the real sequence.
        (g_sequence_sort_changed_iter): Same
        (g_sequence_insert_sorted_iter): Same
        (g_sequence_search_iter): Same
        (g_sequence_iter_get_sequence): Return real_sequence

        * tests/sequence-test.c (compare_iters): Insert assertions that
        the iters point to the sequence being manipulated.

svn path=/trunk/; revision=5323

17 years agoNew files implementing GSequence, a list implemented using a binary tree.
Soren Sandmann [Sat, 3 Feb 2007 23:24:50 +0000 (23:24 +0000)]
New files implementing GSequence, a list implemented using a binary tree.

2007-02-03  Soren Sandmann <sandmann@daimi.au.dk>

* glib/gsequence.[ch]: New files implementing GSequence, a list
implemented using a binary tree.
* glib/glib.h, glib/glib.symbols: Update for GSequence.
* docs/reference: Add documentation for GSequence
* tests: Add sequence-test.c, a thorough test of all of
the GSequence API.

svn path=/trunk/; revision=5322

17 years agoFix a typo
Matthias Clasen [Tue, 30 Jan 2007 18:56:09 +0000 (18:56 +0000)]
Fix a typo

svn path=/trunk/; revision=5319

17 years agoDon't make ABI depend on G_ENABLE_DEBUG, just add an empty
Matthias Clasen [Tue, 30 Jan 2007 18:12:28 +0000 (18:12 +0000)]
Don't make ABI depend on G_ENABLE_DEBUG, just add an empty

2007-01-30  Matthias Clasen <mclasen@redhat.com>

        * glib/glib.symbols:
        * glib/gslice.h:
        * glib/gslice.c: Don't make ABI depend on G_ENABLE_DEBUG,
        just add an empty g_slice_debug_tree_statistics () implementation
        in the !G_ENABLE_DEBUG case.

svn path=/trunk/; revision=5318

17 years agoDefine G_GNUC_INTERNAL for Sun Studio as __hidden. (#342981, Brian
Matthias Clasen [Sat, 27 Jan 2007 03:34:48 +0000 (03:34 +0000)]
Define G_GNUC_INTERNAL for Sun Studio as __hidden. (#342981, Brian

2007-01-26  Matthias Clasen <mclasen@redhat.com>

        * configure.in: Define G_GNUC_INTERNAL for Sun Studio
        as __hidden.  (#342981, Brian Cameron)

        * glib/gconvert.c:
        * glib/gutf8.c: Move G_GNUC_INTERNAL uses to the right
        spot.

2

svn path=/trunk/; revision=5317

17 years agoMake some structs which are used only once non-static.
Matthias Clasen [Fri, 26 Jan 2007 20:59:54 +0000 (20:59 +0000)]
Make some structs which are used only once non-static.

2007-01-26  Matthias Clasen <mclasen@redhat.com>

        * gmem.c:
        * gslice.c:
        * gmessages.c:
        * gutils.c: Make some structs which are used only once
        non-static.

svn path=/trunk/; revision=5316

17 years agoClarify the documentation + regarding overflows (wording by Jan Schmidt)
Benjamin Otte [Wed, 24 Jan 2007 16:23:23 +0000 (16:23 +0000)]
Clarify the documentation + regarding overflows (wording by Jan Schmidt)

* glib/gprintf.c (g_sprintf): Clarify the documentation
+       regarding overflows (wording by Jan Schmidt)

svn path=/trunk/; revision=5315

17 years agoRemove mention of no-longer-existing PATCH keyword in bugzilla. (#396899)
Roozbeh Pournader [Wed, 24 Jan 2007 12:55:34 +0000 (12:55 +0000)]
Remove mention of no-longer-existing PATCH keyword in bugzilla. (#396899)

2007-01-23  Roozbeh Pournader  <roozbeh@farsiweb.info>

* README: Remove mention of no-longer-existing PATCH
keyword in bugzilla. (#396899)

svn path=/trunk/; revision=5313

17 years agoClarify the behaviour is max_len is zero. (#400044, Benjamin Dauvergne)
Matthias Clasen [Wed, 24 Jan 2007 04:38:57 +0000 (04:38 +0000)]
Clarify the behaviour is max_len is zero. (#400044, Benjamin Dauvergne)

2007-01-23  Matthias Clasen  <mclasen@redhat.com>

        * glib/gutf8.c (g_utf8_get_char_validated): Clarify
        the behaviour is max_len is zero.  (#400044,
        Benjamin Dauvergne)

svn path=/trunk/; revision=5311

17 years agoUpdates
Matthias Clasen [Wed, 24 Jan 2007 04:13:33 +0000 (04:13 +0000)]
Updates

svn path=/trunk/; revision=5310

17 years agoUse bitwise & when operating on flags. (#399971, Jon Oberheide)
Matthias Clasen [Wed, 24 Jan 2007 04:02:33 +0000 (04:02 +0000)]
Use bitwise & when operating on flags. (#399971, Jon Oberheide)

2007-01-23  Matthias Clasen  <mclasen@redhat.com>

        * glib/goption.c (print_help): Use bitwise &
        when operating on flags.  (#399971, Jon Oberheide)

svn path=/trunk/; revision=5308

17 years agoMaxim Dziumanenko <dziumanenko@gmail.com>
Maxim V. Dziumanenko [Fri, 19 Jan 2007 15:59:03 +0000 (15:59 +0000)]
Maxim Dziumanenko <dziumanenko@gmail.com>

* Updated Ukrainian translation.

svn path=/trunk/; revision=5304

17 years agoSome file list updates (#398069, Owen Taylor)
Matthias Clasen [Fri, 19 Jan 2007 15:50:30 +0000 (15:50 +0000)]
Some file list updates (#398069, Owen Taylor)

2007-01-19  Matthias Clasen  <mclasen@redhat.com>

        Some file list updates (#398069, Owen Taylor)

        * docs/Changes-2.0.txt
        * docs/reference/README.cvs-commits
        * glib.spec.in: Remove obsolete files

        * tests/Makefile.am:
        * glib/libcharset/Makefile.am:
        * gobject/Makefile.am:
        * Makefile.am: Add some missing files to EXTRA_DIST

        * tests/timeloop-basic.c: Make it build
        * HACKING: Small updates

svn path=/trunk/; revision=5302

17 years agoRevert accidental commit
Matthias Clasen [Fri, 19 Jan 2007 14:54:57 +0000 (14:54 +0000)]
Revert accidental commit

svn path=/trunk/; revision=5301

17 years agogmodule/Makefile.am (gmodule-2.0.lib) Use $(srcdir) for builds outside
Tor Lillqvist [Fri, 19 Jan 2007 12:15:52 +0000 (12:15 +0000)]
gmodule/Makefile.am (gmodule-2.0.lib) Use $(srcdir) for builds outside

2007-01-19  Tor Lillqvist  <tml@novell.com>

* gmodule/Makefile.am (gmodule-2.0.lib)
* gthread/Makefile.am (gthread-2.0.lib): Use $(srcdir) for
builds outside srcdir.

svn path=/trunk/; revision=5300

17 years agoFix a typo. (#398203, Owen Taylor)
Matthias Clasen [Fri, 19 Jan 2007 04:10:42 +0000 (04:10 +0000)]
Fix a typo. (#398203, Owen Taylor)

2007-01-18  Matthias Clasen  <mclasen@redhat.com>

        * glib/gdate.c (g_date_set_time): Fix a typo.  (#398203,
        Owen Taylor)

svn path=/trunk/; revision=5297

17 years agoremoving again
Tor Lillqvist [Thu, 18 Jan 2007 19:55:35 +0000 (19:55 +0000)]
removing again

svn path=/trunk/; revision=5296

17 years agojust testing
Tor Lillqvist [Thu, 18 Jan 2007 19:53:44 +0000 (19:53 +0000)]
just testing

svn path=/trunk/; revision=5295

17 years agoconfig.h.win32.in glib/galloca.h glib/gbacktrace.h glib/gwin32.c
Tor Lillqvist [Thu, 18 Jan 2007 19:05:21 +0000 (19:05 +0000)]
config.h.win32.in glib/galloca.h glib/gbacktrace.h glib/gwin32.c

2007-01-17  Tor Lillqvist  <tml@novell.com>

* config.h.win32.in
* glib/galloca.h
* glib/gbacktrace.h
* glib/gwin32.c
* glibconfig.h.win32.in
* README.win32: More minor tweaks for Digital Mars
compiler. (#346808, Serhat Sevki Dincer)

svn path=/trunk/; revision=5294

17 years agoPut back G_GNUC_HAVE_VISIBILITY doc that was removed accidentally.
Behdad Esfahbod [Wed, 17 Jan 2007 17:38:22 +0000 (17:38 +0000)]
Put back G_GNUC_HAVE_VISIBILITY doc that was removed accidentally.

2007-01-17  Behdad Esfahbod  <behdad@gnome.org>

        * glib/tmpl/macros_misc.sgml: Put back G_GNUC_HAVE_VISIBILITY
        doc that was removed accidentally.

svn path=/trunk/; revision=5289

17 years agoDLLs are always installed in "bin" with current libtool, drop unnecessary
Tor Lillqvist [Wed, 17 Jan 2007 13:27:31 +0000 (13:27 +0000)]
DLLs are always installed in "bin" with current libtool, drop unnecessary

2007-01-17  Tor Lillqvist  <tml@novell.com>

* glib-zip.in: DLLs are always installed in "bin" with current
libtool, drop unnecessary logic to check where they are. Include
also the COPYING file.

svn path=/trunk/; revision=5287

17 years agoUse <malloc.h> also with Digital Mars compiler on Win32. (#346808, Serhat
Tor Lillqvist [Wed, 17 Jan 2007 02:28:13 +0000 (02:28 +0000)]
Use <malloc.h> also with Digital Mars compiler on Win32. (#346808, Serhat

2007-01-17  Tor Lillqvist  <tml@novell.com>

* glib/galloca.h: Use <malloc.h> also with Digital Mars compiler
on Win32. (#346808, Serhat Sevki Dincer)

svn path=/trunk/; revision=5285

17 years agoRevert an accidental ABI break by moving gettime out of the
Matthias Clasen [Tue, 16 Jan 2007 21:25:03 +0000 (21:25 +0000)]
Revert an accidental ABI break by moving gettime out of the

2007-01-16  Matthias Clasen  <mclasen@redhat.com>

        * glib/gthread.h:
        * glib/gthread.c:
        * glib/glib.symbols: Revert an accidental ABI break by
        moving gettime out of the GThreadFunctions struct and making
        it a separate variable.  (#397139, Joe Marcus Clarke)

        * gthread/*.c: Adapt.

svn path=/trunk/; revision=5279

17 years agoglib/gthread.c (gettime) GetSystemTimeAsFileTime() returns 100s of
Tor Lillqvist [Tue, 16 Jan 2007 13:57:05 +0000 (13:57 +0000)]
glib/gthread.c (gettime) GetSystemTimeAsFileTime() returns 100s of

2007-01-16  Tor Lillqvist  <tml@novell.com>

* glib/gthread.c (gettime)
* gthread-win32.c (g_gettime_win32_impl):
GetSystemTimeAsFileTime() returns 100s of nanoseconds since 1601,
so offset to Unix epoch (1970) and multiply by 100 to get
nanoseconds which is what we want.

svn path=/trunk/; revision=5277

17 years agoglib/gthread.c (gettime) GetSystemTimeAsFileTime() returns 100s of
Tor Lillqvist [Tue, 16 Jan 2007 10:45:58 +0000 (10:45 +0000)]
glib/gthread.c (gettime) GetSystemTimeAsFileTime() returns 100s of

2007-01-16  Tor Lillqvist  <tml@novell.com>

* glib/gthread.c (gettime)
* gthread-win32.c (g_gettime_win32_impl):
GetSystemTimeAsFileTime() returns 100s of nanoseconds, so multiply
by 100 to get nanoseconds which is what we want.

svn path=/trunk/; revision=5276

17 years agoFix typo.
Tor Lillqvist [Mon, 15 Jan 2007 13:43:23 +0000 (13:43 +0000)]
Fix typo.

svn path=/trunk/; revision=5272

17 years agoFix mistake in my last commit.
Tor Lillqvist [Mon, 15 Jan 2007 13:41:51 +0000 (13:41 +0000)]
Fix mistake in my last commit.

2007-01-15  Tor Lillqvist  <tml@novell.com>

* glib/gmain.h (struct _GPollFD): Fix mistake in my last commit.

svn path=/trunk/; revision=5271

17 years agoCleanups
Matthias Clasen [Mon, 15 Jan 2007 03:57:41 +0000 (03:57 +0000)]
Cleanups

svn path=/trunk/; revision=5265

17 years agoRemove redundant NULL checks
Matthias Clasen [Mon, 15 Jan 2007 03:49:43 +0000 (03:49 +0000)]
Remove redundant NULL checks

svn path=/trunk/; revision=5264

17 years agoCorrect the gettime calculations once more. (#395203, Chris Wilson)
Matthias Clasen [Mon, 15 Jan 2007 03:34:42 +0000 (03:34 +0000)]
Correct the gettime calculations once more. (#395203, Chris Wilson)

2005-01-15  Matthias Clasen  <mclasen@redhat.com>

        * glib/gthread.c:
        * gthread/gthread-posix.c: Correct the gettime calculations
        once more.  (#395203, Chris Wilson)

svn path=/trunk/; revision=5262

17 years agoAdditions
Matthias Clasen [Mon, 15 Jan 2007 03:05:27 +0000 (03:05 +0000)]
Additions

svn path=/trunk/; revision=5261

17 years agoPrepare for potential Win64 build: Use gint64 for the fd field on Win64,
Tor Lillqvist [Mon, 15 Jan 2007 02:28:01 +0000 (02:28 +0000)]
Prepare for potential Win64 build: Use gint64 for the fd field on Win64,

2007-01-15  Tor Lillqvist  <tml@novell.com>

* glib/gmain.h (struct _GPollFD): Prepare for potential Win64
build: Use gint64 for the fd field on Win64, as we want to be able
to store a HANDLE in it. (#395422) (Other changes will surely also
be necessary when building on Win64, at least in gwin32.c.)

svn path=/trunk/; revision=5260

17 years agoMention that my last change to gwin32.c also fixes #395419.
Tor Lillqvist [Mon, 15 Jan 2007 02:06:30 +0000 (02:06 +0000)]
Mention that my last change to gwin32.c also fixes #395419.

svn path=/trunk/; revision=5258

17 years agoSimplify greatly. Instead of hardcoding a large switch statement, just ask
Tor Lillqvist [Mon, 15 Jan 2007 01:13:57 +0000 (01:13 +0000)]
Simplify greatly. Instead of hardcoding a large switch statement, just ask

2007-01-15  Tor Lillqvist  <tml@novell.com>

* glib/gwin32.c (g_win32_getlocale): Simplify greatly. Instead of
hardcoding a large switch statement, just ask Windows for the
ISO639 and ISO3166 codes. Tack on @Latn or @Cyrl for those
languages which can alternatively be written in Latin or Cyrillic.

svn path=/trunk/; revision=5257

17 years agoRework the handling of invalid keys/groups again. We are back to being
Matthias Clasen [Fri, 12 Jan 2007 20:25:57 +0000 (20:25 +0000)]
Rework the handling of invalid keys/groups again. We are back to being

2007-01-12  Matthias Clasen  <mclasen@redhat.com>

        * glib/gkeyfile.c: Rework the handling of invalid
        keys/groups again. We are back to being liberal about
        what we accept, and only reject things that would lead
        to non-rereadable keyfiles.

        * tests/keyfile-test.c: Adapt tests.

svn path=/trunk/; revision=5254

17 years agofix stupid thinko
Matthias Clasen [Fri, 12 Jan 2007 19:23:27 +0000 (19:23 +0000)]
fix stupid thinko

svn path=/trunk/; revision=5252

17 years agoImprove docs
Matthias Clasen [Fri, 12 Jan 2007 17:54:13 +0000 (17:54 +0000)]
Improve docs

svn path=/trunk/; revision=5251

17 years agoInclude windows.h and fix include order. (#394258, Kazuki Iwamoto)
Matthias Clasen [Fri, 12 Jan 2007 17:31:31 +0000 (17:31 +0000)]
Include windows.h and fix include order. (#394258, Kazuki Iwamoto)

2007-01-12  Matthias Clasen  <mclasen@redhat.com>

        * glib/gthread.c: Include windows.h and fix
        include order. (#394258, Kazuki Iwamoto)

svn path=/trunk/; revision=5249

17 years agofix the build
Matthias Clasen [Fri, 12 Jan 2007 15:54:00 +0000 (15:54 +0000)]
fix the build

svn path=/trunk/; revision=5247

17 years agoMake G_GNUC_INTERNAL a no-op for gcc 2.95. (#329031, David Schleef, Marc
Matthias Clasen [Fri, 12 Jan 2007 15:17:00 +0000 (15:17 +0000)]
Make G_GNUC_INTERNAL a no-op for gcc 2.95. (#329031, David Schleef, Marc

2007-01-12  Matthias Clasen  <mclasen@redhat.com>

        * configure.in: Make G_GNUC_INTERNAL a no-op for
        gcc 2.95.    (#329031, David Schleef, Marc Brockschmidt)

svn path=/trunk/; revision=5245

17 years agoFix errors in the recently moved time calculations. (#395203, Chris
Matthias Clasen [Fri, 12 Jan 2007 05:55:16 +0000 (05:55 +0000)]
Fix errors in the recently moved time calculations. (#395203, Chris

2007-01-12  Matthias Clasen  <mclasen@redhat.com>

        * gthread/gthread-posix.c:
        * glib/gtimer.c:
        * glib/gthread.c: Fix errors in the recently moved
        time calculations.  (#395203, Chris Wilson)

svn path=/trunk/; revision=5244

17 years agoActually link gthread against librt. (#394641, Marco Pesenti Gritti)
Matthias Clasen [Wed, 10 Jan 2007 13:52:04 +0000 (13:52 +0000)]
Actually link gthread against librt. (#394641, Marco Pesenti Gritti)

2007-01-10  Matthias Clasen  <mclasen@redhat.com>

        * configure.in: Actually link gthread against librt.
        (#394641, Marco Pesenti Gritti)

svn path=/trunk/; revision=5241

17 years agoGrr, allow '*' in keys, too. (#394262)
Matthias Clasen [Wed, 10 Jan 2007 13:46:45 +0000 (13:46 +0000)]
Grr, allow '*' in keys, too. (#394262)

2007-01-10  Matthias Clasen  <mclasen@redhat.com>

        * glib/gkeyfile.c (g_key_file_is_key_name): Grr, allow '*' in keys,
        too.  (#394262)

svn path=/trunk/; revision=5239

17 years agoUpdated Bulgarian translation by Alexander Shopov <ash@contact.bg>
Alexander Shopov [Tue, 9 Jan 2007 23:10:19 +0000 (23:10 +0000)]
Updated Bulgarian translation by Alexander Shopov <ash@contact.bg>

2007-01-10  Alexander Shopov  <ash@contact.bg>

        * bg.po: Updated Bulgarian translation by
        Alexander Shopov <ash@contact.bg>

svn path=/trunk/; revision=5237

17 years agoUpdated Bulgarian translation by Alexander Shopov <ash@contact.bg>
Alexander Shopov [Tue, 9 Jan 2007 22:57:16 +0000 (22:57 +0000)]
Updated Bulgarian translation by Alexander Shopov <ash@contact.bg>

2007-01-10  Alexander Shopov  <ash@contact.bg>

        * bg.po: Updated Bulgarian translation by
        Alexander Shopov <ash@contact.bg>

svn path=/trunk/; revision=5235

17 years agoUse a more optimized g_bit_storage() when gcc is available. (#371670,
Behdad Esfahbod [Tue, 9 Jan 2007 19:05:36 +0000 (19:05 +0000)]
Use a more optimized g_bit_storage() when gcc is available. (#371670,

2007-01-09  Behdad Esfahbod  <behdad@gnome.org>

        * glib/gutils.h: Use a more optimized g_bit_storage() when gcc is
        available.  (#371670, Daniel Elstner)

svn path=/trunk/; revision=5234

17 years agoUpdated English (British) translation
David Lodge [Tue, 9 Jan 2007 07:19:05 +0000 (07:19 +0000)]
Updated English (British) translation

svn path=/trunk/; revision=5233

17 years agoDon't use _SC_MONOTONIC_CLOCK unless USE_CLOCK_GETTIME is defined.
Matthias Clasen [Mon, 8 Jan 2007 12:59:05 +0000 (12:59 +0000)]
Don't use _SC_MONOTONIC_CLOCK unless USE_CLOCK_GETTIME is defined.

2007-01-08  Matthias Clasen  <mclasen@redhat.com>

        * gthread/gthread-posix.c (g_thread_impl_init): Don't
        use _SC_MONOTONIC_CLOCK unless USE_CLOCK_GETTIME is
        defined.  (#394150)

svn path=/trunk/; revision=5230

17 years agoUpdated Italian translation.
Luca Ferretti [Mon, 8 Jan 2007 11:19:37 +0000 (11:19 +0000)]
Updated Italian translation.

2007-01-08  Luca Ferretti  <elle.uca@libero.it>

* it.po: Updated Italian translation.

svn path=/trunk/; revision=5229

17 years agoDon't link glib against libpthread. (#393812)
Matthias Clasen [Mon, 8 Jan 2007 05:13:15 +0000 (05:13 +0000)]
Don't link glib against libpthread. (#393812)

2007-01-07  Matthias Clasen  <mclasen@redhat.com>

Don't link glib against libpthread.  (#393812)

* configure.in: Link gthread against librt, not glib itself.

* glib/gthread.h:
* glib/gthread.c: Add a new thread function, gettime.

* glib/gtimer.c: Use gettime instead of directly working with
the various system interfaces.

* gthread/gthread-impl.c:
* gthread/gthread-posix.c:
* gthread/gthread-win32.c: Implement gettime.

svn path=/trunk/; revision=5227

17 years agoUse PKG_PROG_PKG_CONFIG. (#392636, Yevgen Muntyan)
Matthias Clasen [Mon, 8 Jan 2007 04:42:31 +0000 (04:42 +0000)]
Use PKG_PROG_PKG_CONFIG. (#392636, Yevgen Muntyan)

2007-01-07  Matthias Clasen  <mclasen@redhat.com>

        * m4macros/glib-2.0.m4: Use PKG_PROG_PKG_CONFIG.  (#392636,
        Yevgen Muntyan)

svn path=/trunk/; revision=5225

17 years agoEstonian translation update by Ivar Smolin.
Priit Laes [Sun, 7 Jan 2007 10:02:36 +0000 (10:02 +0000)]
Estonian translation update by Ivar Smolin.

2007-01-07  Priit Laes  <plaes@svn.gnome.org>
* et.po: Estonian translation update by Ivar Smolin.

svn path=/trunk/; revision=5223

17 years agoHandle GIOChannels for file descriptors connected to the console
Tor Lillqvist [Sun, 7 Jan 2007 03:02:28 +0000 (03:02 +0000)]
Handle GIOChannels for file descriptors connected to the console

2007-01-07  Tor Lillqvist  <tml@novell.com>

* glib/giowin32.c: Handle GIOChannels for file descriptors
connected to the console separately. This would typically be the
fd 0, 1, or 2 (if not redirected) in a console application. For
such fds we don't need a separate thread, as console HANDLEs are
waitable objects. (#359202, Michiel de Hoon)

svn path=/trunk/; revision=5222

17 years agoUpdated Czech translation.
Jakub Friedl [Fri, 5 Jan 2007 12:35:32 +0000 (12:35 +0000)]
Updated Czech translation.

2007-01-05  Jakub Friedl  <jfriedl@suse.cz>

  * cs.po: Updated Czech translation.

svn path=/trunk/; revision=5219

17 years agoupdated hebrew translaion
Yair Hershkovitz [Fri, 5 Jan 2007 11:09:07 +0000 (11:09 +0000)]
updated hebrew translaion

svn path=/trunk/; revision=5218

17 years agoFix tests on x86_64.
Behdad Esfahbod [Fri, 5 Jan 2007 03:31:54 +0000 (03:31 +0000)]
Fix tests on x86_64.

2007-01-04  Behdad Esfahbod  <behdad@gnome.org>

        * tests/bit-test.c (builtin_bit_nth_lsf1), (builtin_bit_nth_lsf2),
        (builtin_bit_nth_msf): Fix tests on x86_64.

svn path=/trunk/; revision=5216

17 years agoUpdated German translation.
Hendrik Richter [Thu, 4 Jan 2007 14:32:26 +0000 (14:32 +0000)]
Updated German translation.

2007-01-04  Hendrik Richter  <hendrikr@gnome.org>

* de.po: Updated German translation.

svn path=/trunk/; revision=5212

17 years agoUpdated German translation.
Hendrik Richter [Thu, 4 Jan 2007 14:17:33 +0000 (14:17 +0000)]
Updated German translation.

2007-01-04  Hendrik Richter  <hendrikr@gnome.org>

* de.po: Updated German translation.

svn path=/trunk/; revision=5210

17 years agoAdd bug number to ChangeLog
Behdad Esfahbod [Wed, 3 Jan 2007 23:17:52 +0000 (23:17 +0000)]
Add bug number to ChangeLog

svn path=/trunk/; revision=5207

17 years agoRemove unneeded strlen.
Behdad Esfahbod [Wed, 3 Jan 2007 23:09:12 +0000 (23:09 +0000)]
Remove unneeded strlen.

svn path=/trunk/; revision=5205

17 years agoTake zerowidth and double-width chars into consideration when computing
Behdad Esfahbod [Wed, 3 Jan 2007 23:05:36 +0000 (23:05 +0000)]
Take zerowidth and double-width chars into consideration when computing

2007-01-03  Behdad Esfahbod  <behdad@gnome.org>

        * glib/goption.c (_g_unichar_get_width), (_g_utf8_strwidth),
        (calculate_max_length), (print_entry), (print_help): Take zerowidth
        and double-width chars into consideration when computing width of a
        string.  Also fix another bug in width computation.

        * glib/guniprop.c (g_unichar_iszerowidth): Fix typo.  It was not
        working correctly.

svn path=/trunk/; revision=5204

17 years agoAdd g_unichar_iszerowidth(). (#347645)
Behdad Esfahbod [Wed, 3 Jan 2007 20:48:24 +0000 (20:48 +0000)]
Add g_unichar_iszerowidth(). (#347645)

2007-01-03  Behdad Esfahbod  <behdad@gnome.org>

        * glib/glib.symbols:
        * glib/gunicode.h:
        * glib/guniprop.c: Add g_unichar_iszerowidth(). (#347645)

svn path=/trunk/; revision=5202