Commit Graph

4332 Commits

Author SHA1 Message Date
Tor Lillqvist
851c7067aa Update to match what configure produces.
2007-03-15  Tor Lillqvist  <tml@novell.com>

	* config.h.win32.in: Update to match what configure produces.


svn path=/trunk/; revision=5409
2007-03-15 14:41:24 +00:00
Marco Barisione
0196d63975 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
2007-03-15 13:01:31 +00:00
Chris Wilson
af8671792d 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
2007-03-15 08:47:28 +00:00
Matthias Clasen
617862f3f0 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
2007-03-15 05:01:20 +00:00
Matthias Clasen
57c2e6f751 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
2007-03-15 04:54:03 +00:00
Matthias Clasen
b2eed3f16c 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
2007-03-15 03:08:08 +00:00
Stefan Kost
676506cf2d 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
2007-03-14 19:09:49 +00:00
Stefan Kost
399300e5e1 Add G_PARAM_STATIC_STRINGS define (fixes #418021).
* gparam.h:
Add G_PARAM_STATIC_STRINGS define (fixes #418021).

svn path=/trunk/; revision=5402
2007-03-14 19:09:33 +00:00
Tim Janik
add62500f7 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
2007-03-12 12:28:56 +00:00
Goran Rakic
f617a7f054 Updated Serbian translation
svn path=/trunk/; revision=5398
2007-03-11 18:11:04 +00:00
Mugurel Tudor
cba67928ab 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
2007-03-10 23:00:17 +00:00
Matthias Clasen
2a867b1fca 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
2007-03-09 03:40:43 +00:00
Alexander Shopov
b059f8d218 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
2007-03-08 06:50:42 +00:00
Matthias Clasen
cbaaa4006e Document errorchecking mutexes
svn path=/trunk/; revision=5381
2007-03-06 19:44:19 +00:00
Matthias Clasen
ff5419ec40 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
2007-03-06 19:29:54 +00:00
Matthias Clasen
836cac1512 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
2007-03-06 19:27:20 +00:00
Matthew Barnes
cc3e80c26a 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
2007-03-06 18:43:10 +00:00
Jovan Naumovski
6ebc6d7382 2007-03-06 Jovan Naumovski <jovanna@svn.gnome.org> *mk.po: Updated Macedonian translation.
svn path=/trunk/; revision=5376
2007-03-06 10:20:48 +00:00
Matthias Clasen
2a6150bc06 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
2007-03-06 07:22:04 +00:00
Matthias Clasen
5eaddd21bb 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
2007-03-06 07:12:50 +00:00
Matthias Clasen
5ae803a47f 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
2007-03-06 05:36:57 +00:00
Matthias Clasen
04b0520e09 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
2007-03-06 05:23:26 +00:00
Matthias Clasen
085042c6d7 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
2007-03-06 05:01:45 +00:00
Thierry Randrianiriana
addaf829f8 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
2007-03-04 05:36:20 +00:00
Ihar Hrachyshka
3591ad23e2 Added Belarusian Latin transtaion.
svn path=/trunk/; revision=5353
2007-03-01 19:31:16 +00:00
Kwok-Koon Cheung
76c57c1502 Updated traditional Chinese translation
svn path=/trunk/; revision=5352
2007-02-27 18:08:46 +00:00
Gintautas Miliauskas
6da2390fc7 Updated Lithuanian translation.
2007-02-27  Gintautas Miliauskas  <gintas@akl.lt>

	* lt.po: Updated Lithuanian translation.


svn path=/trunk/; revision=5349
2007-02-27 14:40:51 +00:00
Gintautas Miliauskas
c6af985139 Updated Lithuanian translation.
2007-02-22  Gintautas Miliauskas  <gintas@akl.lt>

	* lt.po: Updated Lithuanian translation.



svn path=/trunk/; revision=5347
2007-02-21 23:54:36 +00:00
Kjartan Maraas
55ce11da20 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
2007-02-17 14:56:07 +00:00
Tor Lillqvist
13e2070a9a 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
2007-02-17 08:51:12 +00:00
Soren Sandmann
f13d070e20 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
2007-02-16 06:00:08 +00:00
Tor Lillqvist
c6efde4f62 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
2007-02-13 20:19:09 +00:00
Stefan Kost
8ec7d6ca3f 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
2007-02-10 22:08:42 +00:00
Hans Breuer
bdca945da3 added gsequence.obj
2007-02-10  Hans Breuer  <hans@breuer.org>

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


svn path=/trunk/; revision=5333
2007-02-10 18:30:40 +00:00
Søren Sandmann
49eaf7a69b 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
2007-02-09 22:53:42 +00:00
Soren Sandmann
5fa8f600f5 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
2007-02-08 02:22:52 +00:00
Stefan Kost
b8fcf708d0 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
2007-02-07 22:15:34 +00:00
Soren Sandmann
840d9bab26 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
2007-02-06 04:49:41 +00:00
Cody Russell
7e240f7ead Compile fix.
svn path=/trunk/; revision=5324
2007-02-05 20:03:28 +00:00
Soren Sandmann
576a5d4127 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
2007-02-04 03:39:57 +00:00
Soren Sandmann
674c4df418 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
2007-02-03 23:24:50 +00:00
Matthias Clasen
20a05714cc Fix a typo
svn path=/trunk/; revision=5319
2007-01-30 18:56:09 +00:00
Matthias Clasen
6a6d92a218 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
2007-01-30 18:12:28 +00:00
Matthias Clasen
df3dd538e5 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
2007-01-27 03:34:48 +00:00
Matthias Clasen
f90d6d821d 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
2007-01-26 20:59:54 +00:00
Benjamin Otte
aa8150599d 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
2007-01-24 16:23:23 +00:00
Roozbeh Pournader
16531a5fbd 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
2007-01-24 12:55:34 +00:00
Matthias Clasen
ffabd954ee 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
2007-01-24 04:38:57 +00:00
Matthias Clasen
62534876c5 Updates
svn path=/trunk/; revision=5310
2007-01-24 04:13:33 +00:00
Matthias Clasen
3ecf6f3506 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
2007-01-24 04:02:33 +00:00