Commit Graph

2947 Commits

Author SHA1 Message Date
Matthias Clasen
6dc2fe2078 Remove leftover ENABLE_NLS #ifdefs.
2007-11-24  Matthias Clasen  <mclasen@redhat.com>

        * glib/gutils.c: Remove leftover ENABLE_NLS #ifdefs.



svn path=/trunk/; revision=5920
2007-11-24 05:13:41 +00:00
Matthias Clasen
78c06eafe1 Don't refuse to encode a single byte. (Milan Crha)
2007-11-23  Matthias Clasen  <mclasen@redhat.com>

        * glib/gbase64.c (g_base64_encode): Don't refuse to encode
        a single byte.  (Milan Crha)

        * tests/base64-test.c: Test encoding short strings.



svn path=/trunk/; revision=5919
2007-11-23 17:58:00 +00:00
Matthias Clasen
a1ac3c0e23 Define a two-argument macro C_() for marking translatable strings with
2007-11-23  Matthias Clasen  <mclasen@redhat.com>

        * glib/gi18n-lib.h:
        * glib/gi18n.h: Define a two-argument macro C_() for marking
        translatable strings with context and implement C_() and Q_()
        using g_dpgettext().  (#142676, Morten Welinder)

        * glib/glib.symbols:
        * glib/gstrfuncs.[hc]: Implement g_dpgettext().


svn path=/trunk/; revision=5917
2007-11-23 07:50:54 +00:00
Matthias Clasen
0d723a240e Use g_print to print out --help text in locale encoding. (#469551, Takao
2007-11-23  Matthias Clasen  <mclasen@redhat.com>

        * glib/goption.c: Use g_print to print out --help text in
        locale encoding.  (#469551, Takao Fujiwara)



svn path=/trunk/; revision=5916
2007-11-23 05:58:51 +00:00
Matthias Clasen
ccf93c8693 Set length out param in list-returning functions to 0 when returning NULL.
2007-11-22  Matthias Clasen  <mclasen@redhat.com>

        * glib/gkeyfile.c: Set length out param in list-returning functions
        to 0 when returning NULL.  (#498728, Christian Persch)



svn path=/trunk/; revision=5915
2007-11-23 04:17:58 +00:00
21:06:47 Tim Janik
1e55738f31 initialize automake variables EXTRA_DIST and TEST_PROGS for unconditional
2007-11-21 21:06:47  Tim Janik  <timj@imendio.com>

	* Makefile.decl: initialize automake variables EXTRA_DIST and
	TEST_PROGS for unconditional appending via += in other makefiles.
	define recursive test targets: test, test-report, perf-report,
	full-report, as described here:
      http://mail.gnome.org/archives/gtk-devel-list/2007-November/msg00000.html

	* Makefile.am:
	* build/win32/vs8/Makefile.am, build/win32/dirent/Makefile.am:
	* build/win32/Makefile.am, build/Makefile.am:
	* docs/Makefile.am, docs/reference/Makefile.am:
	* docs/reference/glib/Makefile.am, docs/reference/gobject/Makefile.am:
	* gmodule/Makefile.am, tests/Makefile.am:
	* tests/refcount/Makefile.am, tests/gobject/Makefile.am:
	* glib/update-pcre/Makefile.am, glib/libcharset/Makefile.am:
	* glib/tests/Makefile.am, glib/pcre/Makefile.am:
	* glib/gnulib/Makefile.am, gobject/Makefile.am, m4macros/Makefile.am:
	* gthread/Makefile.am, glib/Makefile.am:
	include $(top_srcdir)/Makefile.decl, adapted EXTRA_DIST assignments.

	* glib/tests/Makefile.am: removed example testing rules.

	* glib/tests/testing.c: conditionalized performance and slow tests.

	* glib/gtestutils.h:
	* glib/gtestutils.c: work around g_test_config_vars not changing its
	exported value after value assignments, aparently due to symbol aliases.

	* glib/gtester.c: fixed off-by-one error which produced junk in logs.

	* configure.in: check for python >= 2.4 and provide $PYTHON for scripts.


svn path=/trunk/; revision=5914
2007-11-21 20:09:46 +00:00
Tim Janik
fa9a420c8e ChangeLog: added GLib testing utility development history.
svn path=/trunk/; revision=5911
2007-11-20 15:01:04 +00:00
Sven Neumann
d07f85e11e use g_strconcat() instead of g_strjoin() to concatenate two strings.
2007-11-20  Sven Neumann  <sven@gimp.org>

	* glib/gerror.c (g_error_add_prefix): use g_strconcat() instead of
	g_strjoin() to concatenate two strings.

svn path=/trunk/; revision=5873
2007-11-20 10:46:15 +00:00
Marco Barisione
cd238e4869 Forgot to say that the last commit fixed bug #498113 (Kouhei Sutou)
svn path=/trunk/; revision=5870
2007-11-19 14:08:20 +00:00
Marco Barisione
9f86f44826 Pass an unsigned long instead of an int to pcre_fullinfo() to avoid
2007-11-19  Marco Barisione  <marco@barisione.org>

	* glib/gregex.c: Pass an unsigned long instead of an int to
	pcre_fullinfo() to avoid problems on 64-bit systems

svn path=/trunk/; revision=5869
2007-11-19 14:06:18 +00:00
Marco Barisione
d887ff42eb When the compilation of a pattern fails in the error message use the
2007-11-19  Marco Barisione  <marco@barisione.org>

	* glib/gregex.c: When the compilation of a pattern fails in the error
	message use the character offset and not the byte offset.

svn path=/trunk/; revision=5867
2007-11-19 11:27:43 +00:00
10:30:33 Tim Janik
c8de81804c updated version number to 2.15.0 for development.
2007-11-19 10:30:33  Tim Janik  <timj@imendio.com>

        * configure.in: updated version number to 2.15.0 for development.



svn path=/trunk/; revision=5866
2007-11-19 09:40:49 +00:00
Matthias Clasen
29a0692575 Documentation improvements. (#496518, Stefan Schulze Frielinghaus)
2007-11-18  Matthias Clasen  <mclasen@redhat.com>

        * glib/gbase64.c: Documentation improvements.  (#496518,
        Stefan Schulze Frielinghaus)


svn path=/trunk/; revision=5864
2007-11-19 03:39:37 +00:00
Matthias Clasen
79668cdf02 Check whether assembler supports numerical local labels.
2007-11-18  Matthias Clasen  <mclasen@redhat.com>

        * configure.in: Check whether assembler supports numerical local
        labels.

        * glib/gatomic.c: Fix powerpc implementation of atomic ops for
        platforms where the assembler doesn't support numerical local
        labels.  (#445362)


svn path=/trunk/; revision=5861
2007-11-18 17:42:59 +00:00
Ryan Lortie
1e2c77ecbc new flag G_MARKUP_PREFIX_ERROR_POSITION to cause the parser to prepend
006-11-15  Ryan Lortie  <desrt@desrt.ca>

        * docs/reference/glib/tmpl/markup.sgml:
        * glib/gmarkup.h:
        * glib/gmarkup.c: new flag G_MARKUP_PREFIX_ERROR_POSITION to cause the
        parser to prepend location information (ie: "Error on line %d, char
        %d:") to errors generated by the GMarkupParser callbacks.

        Closes #496046.

svn path=/trunk/; revision=5860
2007-11-16 03:36:51 +00:00
Ryan Lortie
f2a5aa6700 new functions g_prefix_error and g_propagate_prefixed_error.
2006-11-15  Ryan Lortie  <desrt@desrt.ca>

        * docs/reference/glib/glib-sections.txt:
        * glib/glib.symbols:
        * glib/gerror.h:
        * glib/gerror.c: new functions g_prefix_error and
        g_propagate_prefixed_error.


svn path=/trunk/; revision=5859
2007-11-16 03:05:45 +00:00
Cody Russell
515f42c9ed Documentation fixes. Recommend macro type names such as
2007-11-13  Cody Russell  <bratsche@gnome.org>

        * docs/reference/gobject/gobject-docs.sgml:
        * docs/reference/gobject/tut_gsignal.xml:
        * docs/reference/gobject/tut_gtype.xml:
        * docs/reference/gobject/tut_intro.xml:
        * docs/reference/gobject/tut_tools.xml:
        * docs/reference/gobject/tut_howto.xml:
        * docs/reference/gobject/tut_gobject.xml: Documentation fixes.
        Recommend macro type names such as NAUTILUS_TYPE_WINDOW (not
        NAUTILUS_WINDOW_TYPE).  Fixed text which erroneously stated that 
        superclass initializers don't run when an object is 
        instantiated.  Fixed numerous spelling mistakes.  Minor grammar 
        edits. (#490637, Adam Dingle)


svn path=/trunk/; revision=5857
2007-11-13 07:10:42 +00:00
Matthias Clasen
dbe4c82b65 One more
svn path=/trunk/; revision=5853
2007-11-10 01:47:51 +00:00
Matthias Clasen
662f9e46d1 Coding style cleanups and doc improvements. (#491979, Areg Beketovski)
2007-11-09  Matthias Clasen <mclasen@redhat.com>

        * glib/gkeyfile.c: Coding style cleanups and doc
        improvements.  (#491979, Areg Beketovski)



svn path=/trunk/; revision=5852
2007-11-10 01:45:12 +00:00
Matthias Clasen
897cf88edf Coding style cleanups and doc improvements. (#491975, Areg Beketovski)
2007-11-09  Matthias Clasen <mclasen@redhat.com>

        * glib/giochannel.c: Coding style cleanups and doc
        improvements.  (#491975, Areg Beketovski)



svn path=/trunk/; revision=5851
2007-11-10 01:11:58 +00:00
Matthias Clasen
4abb6c13be Improve the docs. (#491974, Areg Beketovski)
2007-11-09  Matthias Clasen <mclasen@redhat.com>

        * glib/gmain.c (g_main_context_iteration): Improve the
        docs.  (#491974, Areg Beketovski)



svn path=/trunk/; revision=5850
2007-11-10 00:23:16 +00:00
Matthias Clasen
0a967d39e7 Improve g_date_clamp docs. (#491970, Areg Beketovski)
2007-11-09  Matthias Clasen <mclasen@redhat.com>

        * glib/tmpl/date.sgml: Improve g_date_clamp docs.  (#491970,
        Areg Beketovski)


svn path=/trunk/; revision=5849
2007-11-10 00:16:23 +00:00
Matthias Clasen
284c7e559b Add AM_PROG_CC_C_O.
2007-11-09  Matthias Clasen <mclasen@redhat.com>

        * configure.in: Add AM_PROG_CC_C_O.

        * Makefile.am: Remove the install-exec-local hook and use
        configexecincludedir_DATA instead, in an attempt to avoid
        automake 1.9 <> 1.10 incompatibilities.

        * glib/Makefile.am: Rename MIRRORING_TAB_SOURCES, since
        automake 1.10 complains.


svn path=/trunk/; revision=5848
2007-11-09 23:40:41 +00:00
Matthias Clasen
d451314384 Improve the docs. (#491968, Areg Beketovski)
2007-11-09  Matthias Clasen <mclasen@redhat.com>

        * glib/gspawn.c (g_spawn_sync): Improve the docs.  (#491968,
        Areg Beketovski)


svn path=/trunk/; revision=5846
2007-11-09 16:45:42 +00:00
Matthias Clasen
e8900bc3b7 More docs fixes
svn path=/trunk/; revision=5842
2007-11-09 03:33:35 +00:00
Matthias Clasen
0a7dc4c7ad Add bug ref
svn path=/trunk/; revision=5841
2007-11-09 03:30:58 +00:00
Matthias Clasen
58178261fd More doc fixes
svn path=/trunk/; revision=5840
2007-11-09 03:29:51 +00:00
Matthias Clasen
dbfdac8d22 Fix the doc wording. (#491957, Areg Beketovski)
2007-11-08  Matthias Clasen <mclasen@redhat.com>

        * glib/gmain.c (g_main_context_release): Fix the doc
        wording.  (#491957, Areg Beketovski)



svn path=/trunk/; revision=5836
2007-11-09 03:01:01 +00:00
Matthias Clasen
bd92e97e08 Add a missing since tag. (#464259, Mark Doliner)
2007-11-08  Matthias Clasen <mclasen@redhat.com>

        * glib/gutils.c (g_set_application_name): Add a missing
        since tag.  (#464259, Mark Doliner)



svn path=/trunk/; revision=5835
2007-11-09 02:56:04 +00:00
Matthias Clasen
62ba4fa91a Improve the docs. (#436293, Vincent Untz)
2007-11-08  Matthias Clasen <mclasen@redhat.com>

        * glib/goption.c (g_option_context_new): Improve the docs.
        (#436293, Vincent Untz)


svn path=/trunk/; revision=5834
2007-11-09 02:50:44 +00:00
Matthias Clasen
ed7e9b2459 Expand the docs a bit. (#317775, Søren Sandmann)
2007-11-08  Matthias Clasen <mclasen@redhat.com>

        * glib/gmain.c (g_main_loop_quit): Expand the docs
        a bit.  (#317775, Søren Sandmann)



svn path=/trunk/; revision=5833
2007-11-09 02:46:41 +00:00
Matthias Clasen
6181cd47e2 Accept automake 1.10, too
svn path=/trunk/; revision=5831
2007-11-09 01:57:26 +00:00
Matthias Clasen
799abb1a77 Temporarily add this script, to fix building from svn.
2007-11-08  Matthias Clasen <mclasen@redhat.com>

        * mkinstalldirs: Temporarily add this script, to fix building
        from svn.


svn path=/trunk/; revision=5830
2007-11-09 01:38:23 +00:00
Matthias Clasen
11c7634af3 Use MKDIRS_P instead of mkinstalldirs.
2007-11-08  Matthias Clasen <mclasen@redhat.com>

        * Makefile.am: Use MKDIRS_P instead of mkinstalldirs.



svn path=/trunk/; revision=5829
2007-11-09 01:33:40 +00:00
Matthias Clasen
7af5eccdb5 Fix up includes
svn path=/trunk/; revision=5823
2007-11-08 12:23:55 +00:00
Matthias Clasen
d303704549 Try harder to reset shift state with AIX iconv(). (#467537)
2007-11-08  Matthias Clasen <mclasen@redhat.com>

        * glib/gconvert.c (g_convert_with_iconv): Try harder to reset
        shift state with AIX iconv().  (#467537)


svn path=/trunk/; revision=5821
2007-11-08 06:04:00 +00:00
Matthias Clasen
e243169979 Require pkg-config 0.16 in configure and in AM_PATH_GLIB_2_0 to be
2007-11-08  Matthias Clasen <mclasen@redhat.com>

        * configure.in:
        * m4macros/glib-2.0.m4: Require pkg-config 0.16 in configure
        and in AM_PATH_GLIB_2_0 to be consistent with the use of
        PKG_PROG_PKG_CONFIG which was introduced in 0.16.  (#418778,
        Loïc Minier)


svn path=/trunk/; revision=5820
2007-11-08 05:48:35 +00:00
Matthias Clasen
263a48aaec Don't leave out parameters uninitialized. (#490061, Benjamin Otte)
2007-11-08  Matthias Clasen <mclasen@redhat.com>

        * glib/gstrfuncs.c (g_parse_long_long): Don't leave
        out parameters uninitialized.  (#490061, Benjamin Otte)


svn path=/trunk/; revision=5819
2007-11-08 05:24:29 +00:00
Matthias Clasen
1c93d867fc Don't leak the condvar. (#479724, Areg Beketovski)
2007-11-07  Matthias Clasen <mclasen@redhat.com>

        * glib/gmain.c (g_main_context_unref): Don't leak the
        condvar.  (#479724, Areg Beketovski)


svn path=/trunk/; revision=5818
2007-11-08 03:53:41 +00:00
Matthias Clasen
589bd2f463 New function, to get the stack of open elements. (#452887, Ryan Lortie)
2007-11-07  Matthias Clasen <mclasen@redhat.com>

        * glib/glib.symbols:
        * glib/gmarkup.[hc] (g_markup_parse_context_get_element_stack):
        New function, to get the stack of open elements.  (#452887,
        Ryan Lortie)


svn path=/trunk/; revision=5816
2007-11-08 03:28:09 +00:00
Matthias Clasen
1dc3d6f088 Make some functions that take a GError return boolean instead of void.
2007-11-07  Matthias Clasen <mclasen@redhat.com>

        * glib/gkeyfile.[hc]: Make some functions that take
        a GError return boolean instead of void.  (#375651, Matt Barnes)



svn path=/trunk/; revision=5815
2007-11-08 03:19:37 +00:00
Matthias Clasen
5c971cb504 Use automake 1.9
svn path=/trunk/; revision=5814
2007-11-08 02:54:39 +00:00
Matthias Clasen
10de39976c Move some inter-*.m4 includes from configure.in to acinclude.m4 to avoid
2007-11-07  Matthias Clasen <mclasen@redhat.com>

        * acinclude.m4:
        * configure.in: Move some inter-*.m4 includes from
        configure.in to acinclude.m4 to avoid warnings when
        using automake 1.9.  (#449937)


svn path=/trunk/; revision=5812
2007-11-08 02:43:17 +00:00
Matthias Clasen
f36e4a42d8 Split ChangeLog
svn path=/trunk/; revision=5811
2007-11-08 01:59:15 +00:00
Matthias Clasen
126d98216a Improve docs
svn path=/trunk/; revision=5807
2007-11-07 16:44:21 +00:00
Matthias Clasen
e346a16571 Fix builddir != srcdir
svn path=/trunk/; revision=5806
2007-11-07 16:27:41 +00:00
Tor Lillqvist
7d2ec70a49 Not needed, just use -DPCRE_STATIC.
2007-11-07  Tor Lillqvist  <tml@novell.com>

	* glib/update-pcre/notdll.patch: Not needed, just use -DPCRE_STATIC.

	* glib/update-pcre/Makefile.am: Drop notdll.patch.

	* glib/update-pcre/Makefile.am-1
	* glib/update-pcre/update.sh
	* glib/pcre/Makefile.am
	* glib/Makefile.am: Use -DPCRE_STATIC.

	* tests/gio-test.c
	* tests/mainloop-test.c
	* tests/spawn-test.c: #define pipe(fds) _pipe(fds, 4096,
	_O_BINARY) on Windows.

	* tests/regex-test.c (test_expand): Don't print NULL with %s.


svn path=/trunk/; revision=5805
2007-11-07 09:49:25 +00:00
Matthias Clasen
15cc4be96c Bump version
svn path=/trunk/; revision=5804
2007-11-07 06:02:46 +00:00
Matthias Clasen
1c6dffc356 2.14.3
svn path=/trunk/; revision=5802
2007-11-07 05:42:02 +00:00
Matthias Clasen
62df696da1 Updates
svn path=/trunk/; revision=5801
2007-11-07 05:12:13 +00:00
Matthias Clasen
5b81acfae2 Update the internal copy of PCRE to 7.4
2007-11-06  Matthias Clasen <mclasen@redhat.com>

        * glib/pcre/*: Update the internal copy of PCRE to 7.4



svn path=/trunk/; revision=5800
2007-11-07 04:57:22 +00:00
Tor Lillqvist
43c16432fc Plug small one-time leak on Windows. (#488068, Daniel Atallah)
2007-10-22  Tor Lillqvist  <tml@novell.com>

	* glib/gutils.c (_glib_gettext): Plug small one-time leak on
	Windows. (#488068, Daniel Atallah)


svn path=/trunk/; revision=5795
2007-10-22 20:13:55 +00:00
Behdad Esfahbod
9df1f4fcc7 Fix warnings from sparse. (#487491, Kjartan Maraas)
2007-10-21  Behdad Esfahbod  <behdad@gnome.org>

        * glib/gdate.c (g_date_strftime):
        * glib/gmain.c (g_main_context_check):
        * glib/gregex.c (g_match_info_fetch_all), (g_regex_split_full):
        * glib/gthread.c (g_once_init_enter_impl), (g_once_init_leave):
        * glib/gthread.h:
        * glib/gutf8.c (g_utf16_to_utf8), (g_utf16_to_ucs4):
        * tests/errorcheck-mutex-test.c (lock_locked_mutex),
        (trylock_locked_mutex), (unlock_unlocked_mutex),
        (free_locked_mutex), (wait_on_unlocked_mutex),
        (wait_on_otherwise_locked_mutex), (timed_wait_on_unlocked_mutex),
        (timed_wait_on_otherwise_locked_mutex):
        Fix warnings from sparse. (#487491, Kjartan Maraas)


svn path=/trunk/; revision=5792
2007-10-21 17:01:29 +00:00
Matthias Clasen
e1b7097247 Bump version
svn path=/trunk/; revision=5789
2007-10-17 05:11:06 +00:00
Matthias Clasen
83684e4b03 2.14.2
svn path=/trunk/; revision=5786
2007-10-16 06:33:50 +00:00
Matthias Clasen
2cc03c7fe7 Updates
svn path=/trunk/; revision=5785
2007-10-16 05:42:16 +00:00
Matthias Clasen
a57cf3893c Check for sys/resource.h
2007-10-16  Matthias Clasen  <mclasen@redhat.com>

        * configure.in: Check for sys/resource.h

        * glib/gspawn.c: Improve the fdwalk implementation on Linux
        to only walk over actually open file descriptors. (#469231,
        Lennart Poettering)


svn path=/trunk/; revision=5783
2007-10-16 05:28:10 +00:00
Sven Herzberg
63c721b6d0 Reviewed by Tim Janik.
2007-10-13  Sven Herzberg  <herzi@gnome-de.org>

	Reviewed by Tim Janik.

	Created marshallers that don't throw gcc warnings when compiling with
	-WUnused (fixes #359165).

	* gobject/glib-genmarshal.c: decorate return_value and invocation_hint
	with G_GNUC_UNUSED


svn path=/trunk/; revision=5781
2007-10-13 10:51:04 +00:00
Tor Lillqvist
64312b72c9 Always define G_CAN_INLINE. Even MSVC6 is capable of inlining. (#483337,
2007-10-04  Tor Lillqvist  <tml@novell.com>

	* glibconfig.h.win32.in: Always define G_CAN_INLINE. Even MSVC6 is
	capable of inlining. (#483337, Steve Lhomme)


svn path=/trunk/; revision=5780
2007-10-05 17:01:13 +00:00
Behdad Esfahbod
5fa8c6ef89 Check for NULL finalizer. (#476849, Areg Beketovski)
2007-09-19  Behdad Esfahbod  <behdad@gnome.org>

        * glib/ghook.c (g_hook_free): Check for NULL finalizer. (#476849, Areg
        Beketovski)


svn path=/trunk/; revision=5776
2007-09-19 20:36:53 +00:00
Matthias Clasen
dc61469e8b Bump version
svn path=/trunk/; revision=5772
2007-09-16 19:51:16 +00:00
Matthias Clasen
ae35ce1aa6 2.14.1
svn path=/trunk/; revision=5770
2007-09-16 19:49:44 +00:00
Matthias Clasen
97850735fa Fix doc formatting
svn path=/trunk/; revision=5769
2007-09-16 18:32:51 +00:00
Matthias Clasen
34a9878985 Fix a doc formatting problem
svn path=/trunk/; revision=5766
2007-09-16 17:30:57 +00:00
Matthias Clasen
4732600578 Replace -pthread by -lpthread for Freebsd, too. (#475619, Roy Marples)
2007-09-16  Matthias Clasen  <mclasen@redhat.com>

        * configure.in: Replace -pthread by -lpthread for
        Freebsd, too.  (#475619, Roy Marples)



svn path=/trunk/; revision=5763
2007-09-16 16:15:34 +00:00
Matthias Clasen
6972901388 Fix static build against system pcre
svn path=/trunk/; revision=5762
2007-09-16 15:48:11 +00:00
Matthias Clasen
9bb58ae9d2 Updates
svn path=/trunk/; revision=5759
2007-09-16 06:04:36 +00:00
15:07:28 Tim Janik
63828ea746 applied fix for bug #476840.
2007-09-14 15:07:28  Tim Janik  <timj@gtk.org>

        * glib/gutf8.c (g_utf8_strreverse): applied fix for bug #476840.

        * tests/utf8-pointer.c (test_misc): added test for g_utf8_strreverse().



svn path=/trunk/; revision=5757
2007-09-14 13:28:07 +00:00
Marco Barisione
324ee4c07c fix a typo in the previous commit. (#475854, comment #4)
2007-09-11  Marco Barisione <marco@barisione.org>
	* configure.in: fix a typo in the previous commit. (#475854, comment
	#4)

svn path=/trunk/; revision=5750
2007-09-11 20:22:18 +00:00
Marco Barisione
3c4e0759d6 propagate the pcre flags to libglib and not to all parts of glib.
2007-09-11  Marco Barisione <marco@barisione.org>

	* glib/Makefile.am:
	* configure.in: propagate the pcre flags to libglib and not to all
	parts of glib. (#475854, dmacks@netspace.org)

svn path=/trunk/; revision=5749
2007-09-11 20:10:31 +00:00
Matthias Clasen
f4a8a220b5 Add arm atomic operations
svn path=/trunk/; revision=5748
2007-09-11 04:16:59 +00:00
Marco Barisione
6273407af6 change the type of ref_count from guint to gint, so we can remove some
2007-09-10  Marco Barisione <marco@barisione.org>

	* glib/gregex.c: change the type of ref_count from guint to gint, so
	we can remove some ugly casts.

svn path=/trunk/; revision=5746
2007-09-10 16:27:38 +00:00
Marco Barisione
4356f18a3d use pcre_get_stringnumber() in get_matched_substring_number() if
2007-09-10  Marco Barisione <marco@barisione.org>

	* glib/gregex.c: use pcre_get_stringnumber() in
	get_matched_substring_number() if G_REGEX_DUPNAMES was not set.
	(#444765, Yevgen Muntyan)

svn path=/trunk/; revision=5745
2007-09-10 16:20:51 +00:00
Marco Barisione
963a7572c0 bump PCRE requirement to version 7.2.
2007-09-10  Marco Barisione <marco@barisione.org>

	* configure.in: bump PCRE requirement to version 7.2.

svn path=/trunk/; revision=5743
2007-09-10 15:30:00 +00:00
Marco Barisione
eb5d1e18b1 define PCRE_ERROR_NULLWSLIMIT if it's not defined by PCRE, has PCRE 7.3
2007-09-10  Marco Barisione <marco@barisione.org>

	* glib/gregex.c: define PCRE_ERROR_NULLWSLIMIT if it's not defined by
	PCRE, has PCRE 7.3 removed this definition. (#475474)

svn path=/trunk/; revision=5742
2007-09-10 15:17:19 +00:00
Behdad Esfahbod
2f14244e24 Fix header inclusion. (#473879, Peter Kjellerstedt)
2007-09-05  Behdad Esfahbod  <behdad@gnome.org>

        * glib/gregex.c: Fix header inclusion. (#473879, Peter Kjellerstedt)


svn path=/trunk/; revision=5735
2007-09-05 15:44:52 +00:00
Tim Janik
37dbc09080 fixed compiler warning about loosing volatile qualifier, bug #457641.
Wed Aug 29 12:08:40 2007  Tim Janik  <timj@imendio.com>

        * glib/gthread.h (g_once_init_enter): fixed compiler warning about
        loosing volatile qualifier, bug #457641.



svn path=/trunk/; revision=5725
2007-08-29 10:09:30 +00:00
Michael Natterer
8a442ede82 make g_slice_copy() take a gconstpointer instead of a gpointer.
2007-08-24  Michael Natterer  <mitch@imendio.com>

	* glib/gslice.[ch]: make g_slice_copy() take a gconstpointer
	instead of a gpointer.


svn path=/trunk/; revision=5720
2007-08-24 14:40:14 +00:00
Cody Russell
0a4b663771 Fixing my changelog
svn path=/trunk/; revision=5719
2007-08-22 20:42:57 +00:00
Cody Russell
609931a1d7 Fixing my changelog
svn path=/trunk/; revision=5718
2007-08-22 20:42:15 +00:00
Cody Russell
2ffcf767a2 Update fix for #469051
svn path=/trunk/; revision=5717
2007-08-22 19:31:27 +00:00
Cody Russell
ae70a4e5af Document g_snprintf to return "bytes" rather than "characters".
2007-08-22  Cody Russell  <bratsche@gnome.org>

        * glib/gprintf.c: Document g_snprintf to return "bytes" rather
        than "characters".


svn path=/trunk/; revision=5716
2007-08-22 17:25:59 +00:00
Behdad Esfahbod
9d6ace02aa Document that GUnicodeScript is interchangeable with PangoScript.
2007-08-20  Behdad Esfahbod  <behdad@gnome.org>

        * glib/tmpl/unicode.sgml: Document that GUnicodeScript is
        interchangeable with PangoScript.

2007-08-20  Behdad Esfahbod  <behdad@gnome.org>

        * glib/guniprop.c: Document that g_unichar_get_script() is
        equivalent to pango_script_for_unichar().


svn path=/trunk/; revision=5713
2007-08-21 02:51:11 +00:00
Behdad Esfahbod
bf04380d3c Fix typos
svn path=/trunk/; revision=5712
2007-08-20 23:34:35 +00:00
Cody Russell
edf4c17165 g_type_default_interface_ref() was not ensuring working g_signal_list_ids.
2007-08-14  Cody Russell  <bratsche@gnome.org>

        * gobject/gsignal.c: g_type_default_interface_ref() was not
        ensuring working g_signal_list_ids.  Added checks for
        !G_TYPE_IS_INTERFACE (itype).                          
        (#465625, by some guy who calls himself Yeti)


svn path=/trunk/; revision=5704
2007-08-14 22:55:23 +00:00
Tim Janik
d5c4370813 prevent race covered by g_once_init_enter(), by checking for previous
Tue Aug 14 02:06:10 2007  Tim Janik  <timj@imendio.com>

        * glib/gthread.c (g_once_init_enter_impl): prevent race covered
        by g_once_init_enter(), by checking for previous initializations
        before entering initialisation branch.

        * tests/onceinit.c: added multi-thread/multi-initializer stress test
        using unoptimized g_once_init_enter_impl().



svn path=/trunk/; revision=5701
2007-08-14 00:05:52 +00:00
Tim Janik
e0dffd03fb fixed array size typo.
Mon Aug 13 14:30:15 2007  Tim Janik  <timj@imendio.com>

        * tests/onceinit.c (main): fixed array size typo.



svn path=/trunk/; revision=5699
2007-08-13 12:30:08 +00:00
Tim Janik
1ce6d47e3a test g_once_init_*() before and after g_thread_init() and test concurrency
Mon Aug 13 14:21:44 2007  Tim Janik  <timj@imendio.com>

        * tests/onceinit.c: test g_once_init_*() before and after
        g_thread_init() and test concurrency resolution.



svn path=/trunk/; revision=5698
2007-08-13 12:25:21 +00:00
Tim Janik
8aa559d72f prevent linking a freed GThread structure into global thread list in error
Mon Aug 13 14:18:22 2007  Tim Janik  <timj@imendio.com>

       * glib/gthread.c (g_thread_create_full): prevent linking a freed
       GThread structure into global thread list in error cases.



svn path=/trunk/; revision=5697
2007-08-13 12:18:55 +00:00
Matthias Clasen
28f781501e Handle restricted characters by converting them to numeric character
2007-08-08  Matthias Clasen  <mclasen@redhat.com>

        * glib/gmarkup.c (append_escaped_text): Handle restricted
        characters by converting them to numeric character
        entities.  (#464145, Andreas Monitzer)

        * tests/markup-escape-test.c: Add tests for restricted
        characters and numeric character entities.


svn path=/trunk/; revision=5684
2007-08-09 02:06:04 +00:00
Matthias Clasen
c4b9053e16 Make it work regardless of --enable-debug
svn path=/trunk/; revision=5683
2007-08-08 22:06:47 +00:00
Tristan Van Berkom
24e24fed8b fixed a typo in docs.
svn path=/trunk/; revision=5682
2007-08-08 18:02:57 +00:00
Matthias Clasen
9fe29ccbca Update file format
svn path=/trunk/; revision=5681
2007-08-08 03:13:55 +00:00
Tor Lillqvist
6b5e23435a Revert my earlier change, see #440544.
svn path=/trunk/; revision=5680
2007-08-06 15:40:48 +00:00
Tor Lillqvist
faaaa24885 Move the G_ENABLE_DEBUG ifdef inside g_slice_debug_tree_statistics() so
2007-08-06  Tor Lillqvist  <tml@novell.com>

	* glib/gslice.c: Move the G_ENABLE_DEBUG ifdef inside
	g_slice_debug_tree_statistics() so that the function exists (but
	doesn't do anything) also in a non-debug build. (#440544)


svn path=/trunk/; revision=5679
2007-08-06 14:23:54 +00:00
Matthias Clasen
39ed0c0264 bump version
svn path=/trunk/; revision=5676
2007-08-04 03:07:44 +00:00
Matthias Clasen
0b434a3cbd 2.14.0
svn path=/trunk/; revision=5674
2007-08-04 03:03:02 +00:00
Matthias Clasen
35247b9711 Updates
svn path=/trunk/; revision=5673
2007-08-04 01:52:27 +00:00
Matthias Clasen
3e21d19bdf Bump version to 2.14.0
svn path=/trunk/; revision=5672
2007-08-04 01:09:05 +00:00
Matthias Clasen
1331663939 Revert the J handling change
svn path=/trunk/; revision=5671
2007-08-04 00:38:12 +00:00
Matthias Clasen
daa4a93583 Fix a C99ism
svn path=/trunk/; revision=5670
2007-08-03 18:13:56 +00:00
Matthias Clasen
d9ef72e4e9 Handle J changes in the pattern correctly. (#444765, Yevgen Muntyan)
2007-08-03  Matthias Clasen  <mclasen@redhat.com>

        * glib/gregex.c: Handle J changes in the pattern
        correctly.  (#444765, Yevgen Muntyan)



svn path=/trunk/; revision=5669
2007-08-03 18:07:55 +00:00
Pramod Raghavendra
ab1cb9b309 Added Kannada (kn) to ALL_LINGUAS
svn path=/trunk/; revision=5667
2007-08-03 08:35:02 +00:00
Tor Lillqvist
8c5493f019 Update so it applies again.
2007-08-01  Tor Lillqvist  <tml@novell.com>

	* glib/update-pcre/notdll.patch: Update so it applies again.

	* glib/pcre/pcre.h: Corresponding change.


svn path=/trunk/; revision=5662
2007-08-01 09:57:17 +00:00
Tor Lillqvist
75f974d1d9 Drop leftover use of a union.
2007-08-01  Tor Lillqvist  <tml@novell.com>

	* glib/gutils.c (get_special_folder): Drop leftover use of a
	union.


svn path=/trunk/; revision=5661
2007-08-01 09:49:02 +00:00
Tor Lillqvist
164f21f66e Update to match what configure produces.
2007-08-01  Tor Lillqvist  <tml@novell.com>

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


svn path=/trunk/; revision=5660
2007-08-01 09:46:08 +00:00
Matthias Clasen
d966e93faf Update to PCRE 7.2
svn path=/trunk/; revision=5659
2007-07-31 17:22:56 +00:00
Matthias Clasen
4067475919 Fix some glitches
svn path=/trunk/; revision=5658
2007-07-31 17:14:12 +00:00
Matthias Clasen
9b4f6314dd remove debug spew
svn path=/trunk/; revision=5657
2007-07-31 17:04:10 +00:00
Matthias Clasen
bda8d80b6d Documentation cleanups
svn path=/trunk/; revision=5652
2007-07-22 04:14:54 +00:00
Alexander Larsson
018edf5e0f Add goffset type (64bit file size) Add G_MAXSSIZE and G_MINSSIZE
2007-07-20  Alexander Larsson  <alexl@redhat.com>

        * configure.in:
	Add goffset type (64bit file size)
	Add G_MAXSSIZE and G_MINSSIZE


svn path=/trunk/; revision=5647
2007-07-20 16:41:47 +00:00
Matthias Clasen
6031eed482 Fix the build
svn path=/trunk/; revision=5645
2007-07-20 16:37:57 +00:00
Behdad Esfahbod
613b489b6b Make g_unichar_combining_class() public. (#453998)
2007-07-19  Behdad Esfahbod  <behdad@gnome.org>

        * glib/glib.symbols:
        * glib/gunicode.h:
        * glib/gunicodeprivate.h:
        * glib/gunidecomp.c (g_unichar_combining_class):
        * glib/guniprop.c (has_more_above):
        Make g_unichar_combining_class() public. (#453998)


svn path=/trunk/; revision=5644
2007-07-19 13:46:05 +00:00
Tim Janik
95e5ffb695 more atomic ops pointer cast fixes. this time it'll work with atomic op
Fri Jul 13 01:01:46 2007  Tim Janik  <timj@imendio.com>

        * glib/gthread.[hc]: more atomic ops pointer cast fixes. this time it'll
        work with atomic op macros *and* atomic op functions.



svn path=/trunk/; revision=5638
2007-07-12 23:03:06 +00:00
Tim Janik
b1e888b60e fixed missing pointer casts when using atomic ops.
Fri Jul 13 00:50:40 2007  Tim Janik  <timj@imendio.com>

        * glib/gthread.[hc]: fixed missing pointer casts when using atomic ops.



svn path=/trunk/; revision=5637
2007-07-12 22:51:56 +00:00
Matthias Clasen
7bfc2b8a92 Bump version
svn path=/trunk/; revision=5636
2007-07-12 17:55:02 +00:00
Matthias Clasen
b09c2ff4cd 2.13.7
svn path=/trunk/; revision=5634
2007-07-12 17:53:42 +00:00
Matthias Clasen
6b3b223646 Updates
svn path=/trunk/; revision=5633
2007-07-12 17:26:20 +00:00
Tim Janik
f2fa3c8593 beautified output somewhat. fixed long sleeps by reducing sleep
Thu Jul 12 17:31:08 2007  Tim Janik  <timj@imendio.com>

        * tests/slice-concurrent.c: beautified output somewhat. fixed long
        sleeps by reducing sleep accumulating and using randomized re-scheduling
        (which works on UP and SMP). increased possible blocksizes.



svn path=/trunk/; revision=5631
2007-07-12 15:35:26 +00:00
Tim Janik
223754f627 added GSLice test from Stefan Westerfeld, bug #433314.
Thu Jul 12 17:26:05 2007  Tim Janik  <timj@imendio.com>

        * tests/slice-concurrent.c: added GSLice test from Stefan Westerfeld,
        bug #433314.



svn path=/trunk/; revision=5630
2007-07-12 15:26:47 +00:00
Tim Janik
964d75ebe3 migrate per-thread magazine caches from single-thread scenario to first
Thu Jul 12 15:46:40 2007  Tim Janik  <timj@imendio.com>

        * glib/gslice.c: migrate per-thread magazine caches from single-thread
        scenario to first thread using GSlice after g_thread_init(); based on
        a patch by Tor Lillqvist, fixes #331853.
        removed warning about g_thread_init() being called after other glib
        functions (in particular g_slice* calls), because GSlice can cope
        with this now and the rest of glib is believed to cope as well.

        * tests/slice-threadinit.c: new test program which tests GSlice working
        across g_thread_init() calls.



svn path=/trunk/; revision=5629
2007-07-12 15:07:52 +00:00
Matthias Clasen
8edc846918 Fix 'make check'
svn path=/trunk/; revision=5622
2007-07-10 17:49:46 +00:00
Tim Janik
c9ccc828f1 implemented g_once_init_enter(), g_once_init_enter_impl() and
Tue Jul 10 12:24:35 2007  Tim Janik  <timj@imendio.com>

        * glib/gthread.[hc]: implemented g_once_init_enter(),
        g_once_init_enter_impl() and g_once_init_leave(), based on a patch by
        Antoine Tremblay, fixes #65041.
        adapted exported inline function mechanism from gutils.[hc] for inlining
        g_once_init_enter_impl() in gthread.[hc].



svn path=/trunk/; revision=5616
2007-07-10 10:30:36 +00:00
Matthias Clasen
b8ecfeeb65 Updates
svn path=/trunk/; revision=5613
2007-07-09 23:04:54 +00:00
Loïc Minier
e9e1d9d45f Output newlines after thousand iterations of the inner-loop of the
2007-07-09  Loïc Minier  <lool@dooz.org>

       * tests/refcount/closures.c: (main): Output newlines after thousand
       iterations of the inner-loop of the closures test; this helps having
       smaller lines and continuously outputting new lines.  (#447048).

svn path=/trunk/; revision=5609
2007-07-09 07:42:30 +00:00
Ryan Lortie
702549ddc1 save errno to prevent it being clobbered by call to
2007-07-09  Ryan Lortie  <desrt@desrt.ca>

        * glib/gfileutils.c (write_to_temp_file): save errno to prevent it
        being clobbered by call to g_filename_display_name().  Bug #453796.


svn path=/trunk/; revision=5608
2007-07-09 05:32:15 +00:00
Matthias Clasen
7a55a55fdc Fix a small problem with msgfmt -c detection
svn path=/trunk/; revision=5606
2007-07-09 05:21:05 +00:00
Matthias Clasen
77363936cc Handle all states. (#454473)
2007-07-07  Matthias Clasen  <mclasen@redhat.com>

        * glib/gmarkup.c (g_markup_parse_context_end_parse): Handle
        all states.  (#454473)



svn path=/trunk/; revision=5604
2007-07-08 00:18:38 +00:00
Tor Lillqvist
09d6197943 When WSAEnumNetworkEvents() signals FD_CONNECT that means that the
2007-07-06  Tor Lillqvist  <tml@novell.com>

	* glib/giowin32.c (g_io_win32_check): When WSAEnumNetworkEvents()
	signals FD_CONNECT that means that the connection attempt
	finished, either successfully or failed. Test explicitly whether
	the connnection succeeded and set either G_IO_OUT if it did,
	G_IO_ERR|G_IO_HUP if it failed.

	Make sure we never set both G_IO_OUT and G_IO_HUP simultaneously
	because in Unix poll(2) POLLOUT and POLLHUP are mutually
	exclusive.

	Ignore whether the caller wants to watch G_IO_HUP or not. Always
	select for FD_CLOSE because Unix poll(2) also ignores whether
	POLLHUP in set the requested events bitmask or not.


svn path=/trunk/; revision=5600
2007-07-06 01:22:53 +00:00
Matthias Clasen
5bd418c5e5 Bump version
svn path=/trunk/; revision=5593
2007-06-29 17:52:18 +00:00
Matthias Clasen
c4a98c9265 2.13.6
svn path=/trunk/; revision=5591
2007-06-29 17:50:00 +00:00
Matthias Clasen
894556b79f Updates
svn path=/trunk/; revision=5590
2007-06-29 17:36:10 +00:00
Tim Janik
2ef43de2af g_hash_table_find(), g_hash_table_foreach(): document performance caveats
Mon Jun 25 16:43:13 2007  Tim Janik  <timj@gtk.org>                                                                                                           
                                                                                                                                                              
        * glib/ghash.c: g_hash_table_find(), g_hash_table_foreach():                                                                                          
        document performance caveats for linear order searches.                                                                                               
                                                                                                                                                              


svn path=/trunk/; revision=5587
2007-06-25 14:44:41 +00:00
Mathias Hasselmann
c36ffea807 Use memcpy in g_string_append_vprintf (#57693).
2007-06-22  Mathias Hasselmann  <mathias.hasselmann@gmx.de>

	* glib/gstring.c: Use memcpy in g_string_append_vprintf (#57693).

svn path=/trunk/; revision=5584
2007-06-22 17:04:07 +00:00
Mathias Hasselmann
90240bf12d Restore old behaviour of g_string_append_vprintf: g_vasprintf seems to be
2007-06-18  Mathias Hasselmann  <mathias.hasselmann@gmx.de>

	* glib/gstring.c: Restore old behaviour of
	g_string_append_vprintf: g_vasprintf seems to be faster
	than g_printf_string_upper_bound (#57693).

svn path=/trunk/; revision=5581
2007-06-18 21:14:49 +00:00
Matthias Clasen
c03ddad312 More docs
svn path=/trunk/; revision=5580
2007-06-18 19:12:10 +00:00
Matthias Clasen
7bb6a8eebe Bump version
svn path=/trunk/; revision=5579
2007-06-18 17:33:45 +00:00
Matthias Clasen
fc0a52ca3a 2.13.5
svn path=/trunk/; revision=5577
2007-06-18 17:31:49 +00:00
Matthias Clasen
3d2d4c2771 Updates
svn path=/trunk/; revision=5576
2007-06-18 17:03:16 +00:00
Emmanuele Bassi
00ab83b8e8 Add full variant to the approximate timeout functiont
The g_timeout_add_seconds() API lacks a _full() counterpart, allowing the
setting of a destroy notification function to be invoked when the timeout
source is removed.

This patch adds g_timeout_add_seconds_full() to the public API and
reimplements g_timeout_add_seconds() as a call to g_timeout_add_seconds_full().

svn path=/trunk/; revision=5575
2007-06-18 16:55:50 +00:00
Matthias Clasen
7a6d2233e4 Prevent segfaults on long paths. (#447935, Robby Griffin)
2007-06-17  Matthias Clasen  <mclasen@redhat.com>

        * glib/gutils (g_get_current_dir): Prevent segfaults on
        long paths.  (#447935, Robby Griffin)


svn path=/trunk/; revision=5574
2007-06-18 16:35:41 +00:00
Behdad Esfahbod
f50d64c6ad Accept NULL and return GQuark value of zero. (#446859)
2007-06-17  Behdad Esfahbod  <behdad@gnome.org>

        * glib/gdataset.c (g_quark_from_string),
        (g_quark_from_static_string): Accept NULL and return GQuark
        value of zero. (#446859)


svn path=/trunk/; revision=5572
2007-06-17 07:43:34 +00:00
Mathias Hasselmann
506fd2d2e1 Correctly use g_printf_string_upper_bound in g_string_append_vprintf.
2007-06-16  Mathias Hasselmann  <mathias.hasselmann@gmx.de>

	* glib/gstring.c: Correctly use g_printf_string_upper_bound
	in g_string_append_vprintf. Fixes #447933.


svn path=/trunk/; revision=5570
2007-06-16 12:04:25 +00:00
Sebastian Wilhelmi
16b4963816 Extended the comments on those functions, that are NOOPs, before
2007-06-15  Sebastian Wilhelmi  <wilhelmi@google.com>

	* docs/reference/glib/tmpl/threads.sgml: Extended the comments on
	those functions, that are NOOPs, before g_thread_init() has been
	called. (#447583)

	* glib/gthread.c (g_static_mutex_free): Clarified comment to
	remind myself, tha calling g_static_mutex_free() before
	g_thread_init() is safe.


svn path=/trunk/; revision=5567
2007-06-15 17:03:13 +00:00
Cody Russell
49f802b83e Added GRegex boxed type. (#445065, Carlos Garnacho)
2007-06-15  Cody Russell  <bratsche@gnome.org>

	* docs/reference/gobject/tmpl/gboxed.sgml:
	* docs/reference/gobject/gobject-sections.txt:
	* glib/gregex.c:
	* gobject/gboxed.[ch]:
	* gobject/gobject.symbols: Added GRegex boxed type.
	(#445065, Carlos Garnacho)


svn path=/trunk/; revision=5566
2007-06-15 16:31:21 +00:00
Sebastian Wilhelmi
e674f5fe77 Replaced & by &amp; in <programlisting> to make gtk-doc happy.
2007-06-15  Sebastian Wilhelmi  <wilhelmi@google.com>

	* glib/gregex.c: Replaced & by &amp; in <programlisting> to make
	gtk-doc happy.


svn path=/trunk/; revision=5565
2007-06-15 15:55:37 +00:00
Ryan Lortie
020af9f1dc Improve performance by removing the use of an intermediate g_malloc'd
2007-06-14  Ryan Lortie  <desrt@desrt.ca>

	* docs/reference/glib/glib-sections.txt:
	* glib/glib/symbols:
	* glib/gstring.[ch] (g_string_printf_internal): Improve
	performance by removing the use of an intermediate g_malloc'd
	buffer.  Rename to g_string_append_vprintf, document, and expose
	along with g_string_vprintf as new public API (#57693).


svn path=/trunk/; revision=5564
2007-06-15 12:43:54 +00:00
Mathias Hasselmann
ed4d216d2b Introduce g_string_overwrite(_len)? for overwriting parts of strings (#368686, Samuel Cormier-Iijima)
svn path=/trunk/; revision=5563
2007-06-15 11:54:21 +00:00
Cody Russell
19086497ab Check for 0-sized private data. (#443869)
2007-06-14  Cody Russell  <bratsche@gnome.org>

        * gobject/gtype.c (g_type_class_add_private): Check for 0-sized
        private data. (#443869)


svn path=/trunk/; revision=5561
2007-06-15 03:50:27 +00:00
Matthias Clasen
b2d6494a5e Fix typos
svn path=/trunk/; revision=5558
2007-06-14 13:52:01 +00:00
Behdad Esfahbod
50cf599eb3 Add bug number.
svn path=/trunk/; revision=5557
2007-06-13 22:21:54 +00:00
Behdad Esfahbod
157abb2da4 Whitelist g_atomic_{int,pointer}_[gs]et() as we don't alias them
2007-06-13  Behdad Esfahbod  <behdad@gnome.org>

        * glib/pltcheck.sh: Whitelist g_atomic_{int,pointer}_[gs]et() as
        we don't alias them intentionally.


svn path=/trunk/; revision=5556
2007-06-13 22:21:06 +00:00
Sven Neumann
57336cec3f glib/gslice.[ch] added g_slice_copy() and g_slice_dup() (#442029).
2007-06-13  Sven Neumann  <sven@gimp.org>

	* glib/gslice.[ch] added g_slice_copy() and g_slice_dup() 
(#442029).

	* glib/glib.symbols: updated.


svn path=/trunk/; revision=5554
2007-06-13 18:56:51 +00:00
Behdad Esfahbod
ae2830688d Add more G_GNUC_CONST and G_GNUC_PURE.
2007-06-12  Behdad Esfahbod  <behdad@gnome.org>

        * glib/gunicode.h: Add more G_GNUC_CONST and G_GNUC_PURE.


svn path=/trunk/; revision=5551
2007-06-12 04:58:07 +00:00
Emmanuele Bassi
72024709cc Remove the cache expiration logic: it makes g_get_user_special_dir() not
2007-06-11  Emmanuele Bassi  <ebassi@gnome.org>

	* glib/gutils.c (maybe_expire_user_special_dirs),
	(g_get_user_special_dir): Remove the cache expiration logic: it
	makes g_get_user_special_dir() not thread-safe. Document the fact
	that on some platform the value might be changed by the user and
	that GLib won't be able to reflect the change.

svn path=/trunk/; revision=5550
2007-06-11 15:31:29 +00:00
Tor Lillqvist
e55e867793 Update doc comments. Mention that it is not recommeded to use the Registry
2007-06-11  Tor Lillqvist  <tml@novell.com>

	* glib/gwin32.c (g_win32_get_package_installation_directory)
	(g_win32_get_package_installation_subdirectory): Update doc
	comments. Mention that it is not recommeded to use the Registry
	features.


svn path=/trunk/; revision=5547
2007-06-11 07:59:33 +00:00
Tor Lillqvist
e087f8c43c Add definitions for more CSIDL_* constants in case missing from headers.
2007-06-06  Tor Lillqvist  <tml@novell.com>

	* glib/gutils.c: Add definitions for more CSIDL_* constants in
	case missing from headers. Use CSIDL_PERSONAL instead of
	CSIDL_MYDOCUMENTS as CSIDL_MYDOCUMENTS seems to be a new thing
	that doesn't work in XP SP2 even.


svn path=/trunk/; revision=5544
2007-06-06 19:13:45 +00:00
Matthias Clasen
f6f9877b50 Fall back to $HOME/Desktop for the DESKTOP directory, like
2007-06-06  Matthias Clasen  <mclasen@redhat.com>

        * glib/gutils.c (g_get_user_special_dir): Fall back to
        $HOME/Desktop for the DESKTOP directory, like
        xdg_user_dir_lookup() does.


svn path=/trunk/; revision=5543
2007-06-06 19:05:53 +00:00
Matthias Clasen
9d1be184c1 Bump version
svn path=/trunk/; revision=5542
2007-06-06 04:58:21 +00:00
Matthias Clasen
9bb331cf6c 2.13.4
svn path=/trunk/; revision=5540
2007-06-06 04:57:11 +00:00
Matthias Clasen
789254f522 Updates
svn path=/trunk/; revision=5538
2007-06-06 04:05:42 +00:00
Matthias Clasen
0911f2e907 Don't assume the string is valid UTF-8, since it may be user data.
2007-06-05  Matthias Clasen  <mclasen@redhat.com>

        * glib/gkeyfile.c (g_key_file_is_key_name):
        (g_key_file_is_group_name): Don't assume the string is
        valid UTF-8, since it may be user data.  (#444161, Ben Combee)



svn path=/trunk/; revision=5537
2007-06-05 19:14:46 +00:00
Behdad Esfahbod
ed6b059bc2 Add not to g_utf8_get_char_validated() about nul-terminated strings.
2007-06-05  Behdad Esfahbod  <behdad@gnome.org>

        * glib/gutf8.c: Add not to g_utf8_get_char_validated() about
        nul-terminated strings.


svn path=/trunk/; revision=5536
2007-06-05 17:52:04 +00:00
Matthias Clasen
bcc342b81b Don't deadlock when running with threads. (#444121, Christian Persch)
2007-06-05  Matthias Clasen  <mclasen@redhat.com>

        * glib/gutils.c (g_get_user_special_dir): Don't deadlock
        when running with threads.  (#444121, Christian Persch)


svn path=/trunk/; revision=5535
2007-06-05 17:36:17 +00:00
Vincent Untz
cc4b0a5452 don't replace the usage line with the description for optional parameters,
2007-06-05  Vincent Untz  <vuntz@gnome.org>

	* glib/goption.c: (g_option_context_get_help): don't replace the usage
	line with the description for optional parameters, but append the
	description. (#444130)

svn path=/trunk/; revision=5534
2007-06-05 08:44:20 +00:00
Matthias Clasen
8c2f0b709f Bump version
svn path=/trunk/; revision=5533
2007-06-04 15:42:44 +00:00
Matthias Clasen
f69d1b7439 2.13.3
svn path=/trunk/; revision=5531
2007-06-04 15:40:33 +00:00
Matthias Clasen
29e8e7850e Updates
svn path=/trunk/; revision=5529
2007-06-04 15:02:29 +00:00
Matthias Clasen
d154485bc7 Add support for a number of special directories, as defined by the
2007-06-04  Matthias Clasen  <mclasen@redhat.com>

        Add support for a number of special directories, as
        defined by the xdg-user-dirs specification.  (#432651,
        Bastien Nocera, Emmanuele Bassi, Michael Natterer)

        * glib/glib.symbols:
        * glib/gutils.[hc]: Add the GUserDirectory enum and
        g_get_user_special_dir(), with implementations based
        on the xdg-user-dirs spec and on native interfaces
        for Win32 and Carbon.

        * configure.in: Add Carbon checks.

        * tests/tetsglib.c: Test g_get_user_special_dir().


svn path=/trunk/; revision=5528
2007-06-04 14:54:49 +00:00
Yevgen Muntyan
1db61c07d2 fixed g_regex_fetch_named* for cases when (?J) is used inside a pattern
2007-06-03  Yevgen Muntyan  <muntyan@tamu.edu>

	* glib/gregex.c: fixed g_regex_fetch_named* for cases when (?J)
	is used inside a pattern (#442265, comment #12).
	* tests/regex-test.c: Test it.


svn path=/trunk/; revision=5526
2007-06-03 06:05:23 +00:00
Matthias Clasen
318b4ce486 Updates
svn path=/trunk/; revision=5525
2007-06-03 05:52:51 +00:00
Yevgen Muntyan
904c42896f New functions: g_regex_ref(), g_regex_unref() which replaces
2007-06-03  Yevgen Muntyan  <muntyan@tamu.edu>

	* glib/gregex.c:
	* glib/gregex.h: New functions: g_regex_ref(), g_regex_unref() which
	replaces g_regex_free(); g_match_info_get_regex(), g_match_info_get_string();
	g_regex_check_replacement().
	Made g_match_info_expand_references() accept NULL; changed GRegexEvalCallback
	to take only arguments which are likely to be actualy used.

	* docs/reference/glib/glib-sections.txt:
	* glib/glib.symbols: Added new functions.

	* tests/regex-test.c: Test them.

	* docs/reference/glib/tmpl/gregex.sgml: Updated GRegexEvalCallback docs.


svn path=/trunk/; revision=5524
2007-06-03 05:48:17 +00:00
Matthias Clasen
458c58ae43 Fix a typo
svn path=/trunk/; revision=5523
2007-05-31 23:23:37 +00:00
Dan Winship
90320fba4f add defines for desktop file handling. #339225, original patch from
* glib/gkeyfile.h: add defines for desktop file handling. #339225,
	original patch from Vincent Untz.

svn path=/trunk/; revision=5521
2007-05-30 14:25:34 +00:00
Cody Russell
92ebd4eac0 Fix a sed script that doesn't correctly detect i586-mingw32-gcc-3.4
2007-05-29  Cody Russell  <bratsche@gnome.org>

	* configure.in: Fix a sed script that doesn't correctly detect
	i586-mingw32-gcc-3.4 compiler, and was causing -Wno-pointer-sign
	errors when building with that compiler. (#440896, Yevgen Muntyan)


svn path=/trunk/; revision=5520
2007-05-30 02:45:22 +00:00
Marco Barisione
0fc6c7288a Fix g_regex_fetch_named() and g_regex_fetch_named_pos() when
2007-05-29  Marco Barisione <marco@barisione.org>

	* glib/gregex.c: Fix g_regex_fetch_named() and
	g_regex_fetch_named_pos() when G_REGEX_DUPNAMES is used  (#434358,
	Yevgen Muntyan and #419376, Marco Barisione, patch by Yevgen Muntyan)

svn path=/trunk/; revision=5518
2007-05-29 09:32:34 +00:00
Behdad Esfahbod
a2f7c5d631 Update to Markus Kuhn's updated wcwidth for Unicode 5.0.
2007-05-25  Behdad Esfahbod  <behdad@gnome.org>

        * glib/guniprop.c (g_unichar_iswide), (g_unichar_iswide_cjk):
        Update to Markus Kuhn's updated wcwidth for Unicode 5.0.


svn path=/trunk/; revision=5515
2007-05-25 17:15:28 +00:00
Matthias Clasen
325a6df834 Bump version
svn path=/trunk/; revision=5513
2007-05-23 04:35:14 +00:00
Matthias Clasen
aa088c4072 2.13.2
svn path=/trunk/; revision=5511
2007-05-23 04:30:07 +00:00
Matthias Clasen
afdc9e98e0 Updates
svn path=/trunk/; revision=5510
2007-05-23 02:30:05 +00:00
Matthias Clasen
d4622da675 Updates
svn path=/trunk/; revision=5509
2007-05-23 02:26:39 +00:00
Matthias Clasen
8ab346fc86 Fix visibility checks
svn path=/trunk/; revision=5504
2007-05-18 14:04:27 +00:00
Matthias Clasen
4ebbb74b98 Fix attribution
svn path=/trunk/; revision=5503
2007-05-18 13:30:42 +00:00
Michael Natterer
47e96a0c58 Don't let PERL_PATH be ''. (#356769, Joseph Sacco)
2007-05-18  Michael Natterer  <mitch@imendio.com>

        * configure.in: Don't let PERL_PATH be ''.  (#356769, Joseph Sacco)



svn path=/trunk/; revision=5502
2007-05-18 04:22:46 +00:00
Michael Natterer
1f9e7cf36b hotfix: revert last change to fix the build on OS X.
2007-05-17  Michael Natterer  <mitch@imendio.com>

	* configure.in: hotfix: revert last change to fix the build on OS X.


svn path=/trunk/; revision=5501
2007-05-17 19:29:57 +00:00
Matthias Clasen
d5b622fcc4 Fix a doc typo. (#439232, Vincent Untz)
2007-05-17  Matthias Clasen  <mclasen@redhat.com>

        * glib/goption.c (g_option_context_set_translate_func): Fix
        a doc typo.  (#439232, Vincent Untz)


svn path=/trunk/; revision=5500
2007-05-17 17:43:07 +00:00
Matthias Clasen
793da74d00 Move the compiler-dependency in the G_GNUC_INTERNAL definition from
2007-05-17  Matthias Clasen  <mclasen@redhat.com>

        * configure.in: Move the compiler-dependency in the G_GNUC_INTERNAL
        definition from configure-time to runtime (of the compiler).
        (#438869, Damien Carbery)

        * glib/gdebug.h:
        * glib/gmessages.h:
        * glib/gunicodeprivate.h:
        * glib/gthreadprivate.h: Move G_GNUC_INTERNAL before function
        declarations to fix compilation with sun studio.  (#438873,
        Damien Carbery)


svn path=/trunk/; revision=5497
2007-05-17 16:36:53 +00:00
Matthias Clasen
a061009f52 Make g_slice_debug_tree_statistics() debug-only functionality again.
2007-05-14  Matthias Clasen  <mclasen@redhat.com>

        * glib/gslice.h:
        * glib/gslice.c:
        * glib/glib.symbols: Make g_slice_debug_tree_statistics()
        debug-only functionality again.


svn path=/trunk/; revision=5492
2007-05-15 03:32:29 +00:00
Christian Persch
15d995bc79 Improve g_strerror and g_strsignal docs. Bug #438293.
2007-05-14  Christian Persch  <chpe@gnome.org>

	* docs/reference/glib/tmpl/string_utils.sgml: Improve g_strerror and
	g_strsignal docs. Bug #438293.

svn path=/trunk/; revision=5491
2007-05-14 17:14:11 +00:00
Tor Lillqvist
20d47d6f9b Drop the pipe() macro. Defining macros outside of its namespace that look
2007-05-13  Tor Lillqvist  <tml@novell.com>

	* glib/gwin32.h: Drop the pipe() macro. Defining macros outside of
	its namespace that look like POSIX functions is not GLib's
	business in my opinion. This means pipe()-using code that has
	relied on this definition will need changing to call _pipe() on
	Windows, and make the decision itself on what size pipe buffer to
	use, and whether to use text or binary mode, and whether the pipe
	handles should be inheritable or not.

	* glib/gspawn-win32.c (make_pipe): Use _pipe() instead of pipe().


svn path=/trunk/; revision=5490
2007-05-13 20:46:59 +00:00
Matthias Clasen
8f88ba6ffa Allow G_OPTION_ARG_CALLBACK for G_OPTION_REMAINING. (#437297, Dave Benson)
2007-05-11  Matthias Clasen  <mclasen@redhat.com>

        * glib/goption.c: Allow G_OPTION_ARG_CALLBACK for
        G_OPTION_REMAINING.  (#437297, Dave Benson)

        * tests/option-test.c: Add a test for this.



svn path=/trunk/; revision=5487
2007-05-11 18:53:57 +00:00
Dan Winship
4b6a5ee2e0 Document the error return values rather than calling them undefined.
* glib/gkeyfile.c (g_key_file_get_boolean)
	(g_key_file_get_boolean_list, g_key_file_get_integer)
	(g_key_file_get_integer_list, g_key_file_get_double)
	(g_key_file_get_double_list): Document the error return values
	rather than calling them undefined. #435885.

svn path=/trunk/; revision=5484
2007-05-04 19:14:47 +00:00
Behdad Esfahbod
f2cfe19d15 Oops.
2007-05-03  Behdad Esfahbod  <behdad@gnome.org>

        * glib/glib.symbols:
        * glib/gunicode.h:
        * glib/guniprop.c (g_unichar_ismark):
        Add g_unichar_ismark(). Patch from Yevgen Muntyan. Fixes #339991.


svn path=/trunk/; revision=5483
2007-05-03 23:42:41 +00:00
Matthias Clasen
1650fd46c0 Bump version
svn path=/trunk/; revision=5480
2007-05-03 05:11:38 +00:00
Matthias Clasen
4d996274a3 2.13.1
svn path=/trunk/; revision=5478
2007-05-03 05:09:20 +00:00
Matthias Clasen
9d3c408fbe Stop unused threads before the last test, to make the test terminate
* tests/threadpool-test.c: Stop unused threads before
        the last test, to make the test terminate reliably.



svn path=/trunk/; revision=5477
2007-05-03 04:48:10 +00:00
Matthias Clasen
36917dbee3 Updates
svn path=/trunk/; revision=5476
2007-05-03 02:45:02 +00:00
Marco Barisione
850ad7e494 Made more clear that the string passed to the match functions cannot be
2007-05-02  Marco Barisione <marco@barisione.org>

	* glib/gregex.c: Made more clear that the string passed to the match
	functions cannot be freed before using g_match_info_fetch() and
	similar functions, and fixed a typo.

svn path=/trunk/; revision=5474
2007-05-02 10:39:23 +00:00
Matthias Clasen
88651f758b Add g_regex_get_max_backref() and g_regex_get_capture_count(). (#419371,
2007-04-30  Matthias Clasen  <mclasen@redhat.com>

        * glib/glib.symbols:
        * glib/gregex.[hc]: Add g_regex_get_max_backref() and
        g_regex_get_capture_count().  (#419371, Marco Barisione)


svn path=/trunk/; revision=5469
2007-04-30 16:37:38 +00:00
Matthias Clasen
a793051fda Split GRegex into GRegex and GMatchInfo. (#419368, Marco Barisione)
2007-04-30  Matthias Clasen  <mclasen@redhat.com>

        * glib/glib.symbols:
        * glib/gregex.[hc]: Split GRegex into GRegex and GMatchInfo.
        (#419368, Marco Barisione)

        * tests/regex-test.c: Adapt.


svn path=/trunk/; revision=5468
2007-04-30 16:02:26 +00:00