platform/upstream/glib.git
16 years ago Bumps documentation to 93% symbol coverage, touching most
Andrew Walton [Tue, 27 Nov 2007 14:00:13 +0000 (14:00 +0000)]
Bumps documentation to 93% symbol coverage, touching most
of the public files. Fixes broken function documentation prototypes.
Fixes GCancellable inaccuracies. Removes unnecessary incomplete
gtk-doc headers in private files.

svn path=/trunk/; revision=5953

16 years agoNew functions for efficient access to buffer and simple single byte reads.
Juerg Billeter [Tue, 27 Nov 2007 13:44:48 +0000 (13:44 +0000)]
New functions for efficient access to buffer and simple single byte reads.

2007-11-27  Juerg Billeter  <j@bitron.ch>

* gbufferedinputstream.c: (g_buffered_input_stream_peek_buffer),
(g_buffered_input_stream_read_byte):
* gbufferedinputstream.h:
New functions for efficient access to buffer and simple single byte
reads.

* gdatainputstream.c: (scan_for_newline), (scan_for_chars),
(g_data_input_stream_read_until):
* gdatainputstream.h:
Use peek_buffer to avoid memcpy in scan_for_newline, implement
read_until with multiple stop chars.

svn path=/trunk/; revision=5952

16 years agoAllow configuration of gio-module-dir
Alexander Larsson [Tue, 27 Nov 2007 12:39:14 +0000 (12:39 +0000)]
Allow configuration of gio-module-dir

2007-11-27  Alexander Larsson  <alexl@redhat.com>

        * configure.in:
Allow configuration of gio-module-dir

        * gio-2.0.pc.in:
Export giomodules location as giomodule variable

2007-11-27  Alexander Larsson  <alexl@redhat.com>

        * Makefile.am:
        * fam/Makefile.am:
        * inotify/Makefile.am:
Use the user-specified giomoduledir

svn path=/trunk/; revision=5951

16 years agoMakefile.am Add catch-all gio.h header Don't install gdummyfile.h
Alexander Larsson [Tue, 27 Nov 2007 10:46:45 +0000 (10:46 +0000)]
Makefile.am Add catch-all gio.h header Don't install gdummyfile.h

2007-11-27  Alexander Larsson  <alexl@redhat.com>

* Makefile.am
* gio.h:
Add catch-all gio.h header
Don't install gdummyfile.h

svn path=/trunk/; revision=5950

16 years agoAdd some tests for invalid booleans
Matthias Clasen [Tue, 27 Nov 2007 02:29:31 +0000 (02:29 +0000)]
Add some tests for invalid booleans

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

        * tests/markup-collect.c: Add some tests for invalid booleans

svn path=/trunk/; revision=5949

16 years agoadd missing file off last commit
Ryan Lortie [Tue, 27 Nov 2007 01:57:53 +0000 (01:57 +0000)]
add missing file off last commit

svn path=/trunk/; revision=5948

16 years agoAdd new function g_markup_collect_attributes (bug #496847).
Ryan Lortie [Tue, 27 Nov 2007 01:37:33 +0000 (01:37 +0000)]
Add new function g_markup_collect_attributes (bug #496847).

2007-11-26  Ryan Lortie  <desrt@desrt.ca>

        Add new function g_markup_collect_attributes (bug #496847).

        * glib/glib.symbols: add g_markup_collect_attributes

        * docs/reference/glib/glib-sections.txt:
        * glib/gmarkup.h:
        * glib/gmarkup.c: add g_markup_collect_attributes and new enumerated
        type GMarkupCollectType.  Add new error code
        G_MARKUP_ERROR_MISSING_ATTRIBUTE that is thrown by the attribute
        collector.

svn path=/trunk/; revision=5947

16 years agoSome improvements, being upstreamed. (must_use_null_useddefaultchar): New
Tor Lillqvist [Mon, 26 Nov 2007 22:49:43 +0000 (22:49 +0000)]
Some improvements, being upstreamed. (must_use_null_useddefaultchar): New

2007-11-27  Tor Lillqvist  <tml@novell.com>

* glib/win_iconv.c: Some improvements, being upstreamed.
(must_use_null_useddefaultchar): New function, checks for those
codepages for which one must pass a NULL lpUsedDefaultChar pointer
to WideCharToMultiByte().
(kernel_wctomb): Use it.
(kernel_wctomb): Return with E2BIG immediately if bufsize is zero.

svn path=/trunk/; revision=5945

16 years agoUse either lib/locale or share/locale depending on which one is in
Tor Lillqvist [Mon, 26 Nov 2007 22:32:12 +0000 (22:32 +0000)]
Use either lib/locale or share/locale depending on which one is in

2007-11-27  Tor Lillqvist  <tml@novell.com>

* glib/gutils.c (_glib_get_locale_dir) [Win32]: Use either
lib/locale or share/locale depending on which one is in
GLIB_LOCALE_DIR. When the configury recognizes GNU gettext (based
on the _nl_msg_cat_cntr variable, eek), share/locale gets used.

* glib-zip.in: Likewise, look for message catalogs either in
lib/locale or share/locale.

svn path=/trunk/; revision=5944

16 years agoFix up a doc comment
Matthias Clasen [Mon, 26 Nov 2007 20:42:17 +0000 (20:42 +0000)]
Fix up a doc comment

svn path=/trunk/; revision=5943

16 years agoRemove trailing whitespace
Alexander Larsson [Mon, 26 Nov 2007 16:36:52 +0000 (16:36 +0000)]
Remove trailing whitespace

2007-11-26  Alexander Larsson  <alexl@redhat.com>

* Makefile.am (gioinclude_HEADERS):
Remove trailing whitespace

svn path=/trunk/; revision=5942

16 years agogio/ docs/reference/gio Merged gio-standalone into glib.
Alexander Larsson [Mon, 26 Nov 2007 16:13:05 +0000 (16:13 +0000)]
gio/ docs/reference/gio Merged gio-standalone into glib.

2007-11-26  Alexander Larsson  <alexl@redhat.com>

        * Makefile.am:
        * configure.in:
        * gio-2.0-uninstalled.pc.in:
        * gio-2.0.pc.in:
        * gio-unix-2.0-uninstalled.pc.in:
        * gio-unix-2.0.pc.in:
* gio/
* docs/reference/gio
Merged gio-standalone into glib.

        * glib/glibintl.h:
        * glib/gutils.c:
Export glib_gettext so that gio can use it
Add P_ (using same domain for now)
Add I_ as g_intern_static_string

svn path=/trunk/; revision=5941

16 years agogio/ docs/reference/gio Merged gio-standalone into glib.
Alexander Larsson [Mon, 26 Nov 2007 16:12:50 +0000 (16:12 +0000)]
gio/ docs/reference/gio Merged gio-standalone into glib.

2007-11-26  Alexander Larsson  <alexl@redhat.com>

        * Makefile.am:
        * configure.in:
        * gio-2.0-uninstalled.pc.in:
        * gio-2.0.pc.in:
        * gio-unix-2.0-uninstalled.pc.in:
        * gio-unix-2.0.pc.in:
* gio/
* docs/reference/gio
Merged gio-standalone into glib.

        * glib/glibintl.h:
        * glib/gutils.c:
Export glib_gettext so that gio can use it
Add P_ (using same domain for now)
Add I_ as g_intern_static_string

svn path=/trunk/; revision=5940

16 years agoISO8859-1 is CP28591, not CP1252.
Tor Lillqvist [Mon, 26 Nov 2007 00:50:24 +0000 (00:50 +0000)]
ISO8859-1 is CP28591, not CP1252.

2007-11-26  Tor Lillqvist  <tml@novell.com>

* glib/win_iconv.c: ISO8859-1 is CP28591, not CP1252.

svn path=/trunk/; revision=5939

16 years agoAdd win_iconv.c to EXTRA_DIST.
Tor Lillqvist [Sun, 25 Nov 2007 23:31:58 +0000 (23:31 +0000)]
Add win_iconv.c to EXTRA_DIST.

2007-11-26  Tor Lillqvist  <tml@novell.com>

* glib/Makefile.am: Add win_iconv.c to EXTRA_DIST.

svn path=/trunk/; revision=5938

16 years agoImplement #491549: On Windows, always use the native API for character set
Tor Lillqvist [Sun, 25 Nov 2007 23:27:45 +0000 (23:27 +0000)]
Implement #491549: On Windows, always use the native API for character set

2007-11-26  Tor Lillqvist  <tml@novell.com>

Implement #491549: On Windows, always use the native API for
character set conversions instead of GNU libiconv. Almost all
codesets supported by GNU libiconv exist as Windows codepages.
One missing feature is the "C99" and "JAVA" pseudo codesets, but I
doubt that is worth worrying about.

* glib/win_iconv.c: New file. iconv() implementation for
Windows. Placed in the public domain by Yukihiro Nakadaira
<yukihiro.nakadaira@gmail.com>. From
http://yukihiro.nakadaira.googlepages.com/win_iconv.zip, his
2007-11-17 version.

* glib/gconvert.c: Include win_iconv.c on Windows.

* configure.in: Bypass iconv checks on Windows.

svn path=/trunk/; revision=5937

16 years agoAdd conditionals for non-Unix. Just g_error() unless G_OS_UNIX for now.
Tor Lillqvist [Sun, 25 Nov 2007 22:47:39 +0000 (22:47 +0000)]
Add conditionals for non-Unix. Just g_error() unless G_OS_UNIX for now.

2007-11-25  Tor Lillqvist  <tml@novell.com>

* glib/gtestutils.c: Add conditionals for non-Unix. Just g_error()
unless G_OS_UNIX for now.

svn path=/trunk/; revision=5936

16 years agoDo install gtestutils.h even on Win32.
Tor Lillqvist [Sun, 25 Nov 2007 21:47:16 +0000 (21:47 +0000)]
Do install gtestutils.h even on Win32.

svn path=/trunk/; revision=5935

16 years agoBuild gtestutils etc on OS_UNIX only.
Tor Lillqvist [Sun, 25 Nov 2007 21:39:42 +0000 (21:39 +0000)]
Build gtestutils etc on OS_UNIX only.

2007-11-25  Tor Lillqvist  <tml@novell.com>

* glib/Makefile.am: Build gtestutils etc on OS_UNIX only.

svn path=/trunk/; revision=5934

16 years agoRequire gtk-doc 1.8.
Matthias Clasen [Sun, 25 Nov 2007 06:05:06 +0000 (06:05 +0000)]
Require gtk-doc 1.8.

2007-11-25  Matthias Clasen  <mclasen@redhat.com>

        * configure.in: Require gtk-doc 1.8.

        * glib/gasyncqueue.c:
        * glib/gdate.c:
        * glib/gfileutils.c:
        * glib/gmain.c:
        * glib/gmarkup.c:
        * glib/gregex.c:
        * glib/gtestutils.c:
        * glib/gutils.c: Use gtk-doc abbreviations for
        examples in doc comments.

svn path=/trunk/; revision=5933

16 years agoReplace INCLUDES by AM_CPPFLAGS, other cleanups.
Matthias Clasen [Sun, 25 Nov 2007 04:22:45 +0000 (04:22 +0000)]
Replace INCLUDES by AM_CPPFLAGS, other cleanups.

2007-11-24  Matthias Clasen  <mclasen@redhat.com>

        * */Makefile.am: Replace INCLUDES by AM_CPPFLAGS, other
        cleanups.

svn path=/trunk/; revision=5932

16 years agoFix a memory overrun
Matthias Clasen [Sat, 24 Nov 2007 16:24:30 +0000 (16:24 +0000)]
Fix a memory overrun

svn path=/trunk/; revision=5928

16 years agoUpdated French translation.
Claude Paroz [Sat, 24 Nov 2007 10:56:37 +0000 (10:56 +0000)]
Updated French translation.

2007-11-24  Claude Paroz  <claude@2xlibre.net>

* fr.po: Updated French translation.

svn path=/trunk/; revision=5926

16 years agoRemove leftover ENABLE_NLS #ifdefs.
Matthias Clasen [Sat, 24 Nov 2007 05:13:41 +0000 (05:13 +0000)]
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

16 years agoDon't refuse to encode a single byte. (Milan Crha)
Matthias Clasen [Fri, 23 Nov 2007 17:58:00 +0000 (17:58 +0000)]
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

16 years agosv.po: Updated Swedish translation
Daniel Nylander [Fri, 23 Nov 2007 11:13:33 +0000 (11:13 +0000)]
sv.po: Updated Swedish translation

svn path=/trunk/; revision=5918

16 years agoDefine a two-argument macro C_() for marking translatable strings with
Matthias Clasen [Fri, 23 Nov 2007 07:50:54 +0000 (07:50 +0000)]
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

16 years agoUse g_print to print out --help text in locale encoding. (#469551, Takao
Matthias Clasen [Fri, 23 Nov 2007 05:58:51 +0000 (05:58 +0000)]
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

16 years agoSet length out param in list-returning functions to 0 when returning NULL.
Matthias Clasen [Fri, 23 Nov 2007 04:17:58 +0000 (04:17 +0000)]
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

16 years agoinitialize automake variables EXTRA_DIST and TEST_PROGS for unconditional
21:06:47 Tim Janik [Wed, 21 Nov 2007 20:09:46 +0000 (20:09 +0000)]
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

16 years agoUpdated Occitan translation
Yannig MARCHEGAY [Tue, 20 Nov 2007 21:12:06 +0000 (21:12 +0000)]
Updated Occitan translation

svn path=/trunk/; revision=5913

16 years agoFixed copyright for newly submitted files.
Tim Janik [Tue, 20 Nov 2007 17:35:26 +0000 (17:35 +0000)]
Fixed copyright for newly submitted files.

svn path=/trunk/; revision=5912

16 years agoChangeLog: added GLib testing utility development history.
Tim Janik [Tue, 20 Nov 2007 15:01:04 +0000 (15:01 +0000)]
ChangeLog: added GLib testing utility development history.

svn path=/trunk/; revision=5911

16 years agoRenamed gtestframework to gtestutils.
Tim Janik [Tue, 20 Nov 2007 15:01:02 +0000 (15:01 +0000)]
Renamed gtestframework to gtestutils.

* glib/glib.h:
* glib/Makefile.am: added gtestutils.h to public includes.

* glib/gtestutils.c: include gtestutils.h.

* glib/gtestutils.h:
* glib/glib.symbols:
* glib/tests/testing.c: renamed gtestframework to gtestutils.

* glib/gtestframework.h: renamed to gtestutils.h.

* glib/gtestframework.c: renamed to gtestutils.c.

svn path=/trunk/; revision=5910

16 years agoglib/gtestframework.c: g_test_init(): make warnings and criticals fatal for all test...
Tim Janik [Tue, 20 Nov 2007 15:01:00 +0000 (15:01 +0000)]
glib/gtestframework.c: g_test_init(): make warnings and criticals fatal for all test programs.

svn path=/trunk/; revision=5909

16 years agogtestframework.c: added test API documentation by Sven Herzberg and Tim Janik.
Tim Janik [Tue, 20 Nov 2007 15:00:59 +0000 (15:00 +0000)]
gtestframework.c: added test API documentation by Sven Herzberg and Tim Janik.

svn path=/trunk/; revision=5908

16 years agogtestframework.[hc]: implemented g_test_queue_destroy() and g_test_queue_unref().
Tim Janik [Tue, 20 Nov 2007 15:00:57 +0000 (15:00 +0000)]
gtestframework.[hc]: implemented g_test_queue_destroy() and g_test_queue_unref().

svn path=/trunk/; revision=5907

16 years agoAdded g_test_bug() and related API.
Tim Janik [Tue, 20 Nov 2007 15:00:56 +0000 (15:00 +0000)]
Added g_test_bug() and related API.

* gtester.c: handle G_TEST_LOG_MESSAGE and test test message API.

* gtestframework.h, gtestframework.c: added test message API and convenience
API to send test messages about bug URLs.

svn path=/trunk/; revision=5906

16 years agoAdded API to access test framework configuration.
Tim Janik [Tue, 20 Nov 2007 15:00:54 +0000 (15:00 +0000)]
Added API to access test framework configuration.

* gtestframework.h, gtestframework.c: export testing configuration to test
programs with g_test_quick(), g_test_perf(), g_test_verbose(), g_test_quiet().

svn path=/trunk/; revision=5905

16 years agogtester: implemented logic to handle failing tests, self tests, and validate XML...
Tim Janik [Tue, 20 Nov 2007 15:00:53 +0000 (15:00 +0000)]
gtester: implemented logic to handle failing tests, self tests, and validate XML reports.

* gtester.c: terminate when tests failed. keep XML valid when test cases fail.
restart test binaries when tests fail, resuming after the last processed test.
support --gtester-selftest to run gtester itself as test program.
support --test-arg=<arg> to pass args along to test programs. added
main_selftest() which does a simplistic fixture test. fail if exit
code of test programs is not 0.

* gtestframework.h: added G_TEST_LOG_SKIP_CASE test log message type.

* gtestframework.c: support --GTestSkipCount=<n> to skip a number of tests.

* tests/Makefile.am: added test-report: for demonstration purposes.
added gtester-xmllint-check: and hooked it up into check:, this rule calls
gtester as test program, running it's selftest, and then uses xmllint to
validate the generate XML test log file.

svn path=/trunk/; revision=5904

16 years agogtester: implemented XML logging.
Tim Janik [Tue, 20 Nov 2007 15:00:51 +0000 (15:00 +0000)]
gtester: implemented XML logging.

* glib/gtester.c: log test messages to XML output file. beautified normal test
result output.

* glib/gtestframework.c: fixed GTimer leak.

* glib/tests/Makefile.am: start gtester with --verbose.

svn path=/trunk/; revision=5903

16 years agotests/Makefile.am: execute test programs with gtester, add test: to check:
Tim Janik [Tue, 20 Nov 2007 15:00:50 +0000 (15:00 +0000)]
tests/Makefile.am: execute test programs with gtester, add test: to check:

svn path=/trunk/; revision=5902

16 years agoFixed PLT symbol exports for gtestframework.h.
Tim Janik [Tue, 20 Nov 2007 15:00:48 +0000 (15:00 +0000)]
Fixed PLT symbol exports for gtestframework.h.

* glib/glib.symbols: added all exported gtestframework.h symbols.

* glib/gtestframework.c: include galias.h, galiasdef.c, define __G_TESTFRAMEWORK_C__.

svn path=/trunk/; revision=5901

16 years agoglib/gtester.c: fixed debugging flag.
Tim Janik [Tue, 20 Nov 2007 15:00:47 +0000 (15:00 +0000)]
glib/gtester.c: fixed debugging flag.

svn path=/trunk/; revision=5900

16 years agofixed bogus unistd.h include.
Tim Janik [Tue, 20 Nov 2007 15:00:46 +0000 (15:00 +0000)]
fixed bogus unistd.h include.

svn path=/trunk/; revision=5899

16 years agoImplemented test log IPC.
Tim Janik [Tue, 20 Nov 2007 15:00:45 +0000 (15:00 +0000)]
Implemented test log IPC.

* gtester.c: read and decode log messages from test binary child processes.
fixed GIOChannel and child watch handling to process all messages and avoid
hangs. pass --verbose and --quiet on to children, default to --quiet.

* gtestframework.h: export g_test_log_type_name().

* gtestframework.c: send test log to --GTestLogFD=<fd> if given, removed
bogus -o-option.

svn path=/trunk/; revision=5898

16 years agogtester.c: support test case listing through gtester.
Tim Janik [Tue, 20 Nov 2007 15:00:44 +0000 (15:00 +0000)]
gtester.c: support test case listing through gtester.

svn path=/trunk/; revision=5897

16 years agogtestframework.c: fixed testpath matches for automatic root suite.
Tim Janik [Tue, 20 Nov 2007 15:00:43 +0000 (15:00 +0000)]
gtestframework.c: fixed testpath matches for automatic root suite.

svn path=/trunk/; revision=5896

16 years agogtester.c: adapted to become a rudimentary test binary launcher.
Tim Janik [Tue, 20 Nov 2007 15:00:41 +0000 (15:00 +0000)]
gtester.c: adapted to become a rudimentary test binary launcher.

* gtester.c: increased read buffer size to match common unix pipe buffer size.
added argument parsing and usage. changed io handling to capture and replicate
stdout. fixed io handlers to be cleaned up when the child process exits (catch
G_IO_ERR | G_IO_HUP). we now use pending/iteration instead of a main loop
structure, to keep running until the child process exits and all io has been
processed. launch the test binaries given on the command line. don't quit when
a child couldn't be launched but --keep-going was specified.

svn path=/trunk/; revision=5895

16 years agoIntegrated gtester program into build process.
Tim Janik [Tue, 20 Nov 2007 15:00:40 +0000 (15:00 +0000)]
Integrated gtester program into build process.

* Makefile.am: build and install gtester binary.

* gtester.c: fixed up coding style and removed hard wired test coded.

svn path=/trunk/; revision=5894

16 years agoglib/gtester.c:Small -Wall fix
Tim Janik [Tue, 20 Nov 2007 15:00:39 +0000 (15:00 +0000)]
glib/gtester.c:Small -Wall fix

svn path=/trunk/; revision=5893

16 years agoglib/gtester.c:Implemented nonblocking reading properly now
Tim Janik [Tue, 20 Nov 2007 15:00:38 +0000 (15:00 +0000)]
glib/gtester.c:Implemented nonblocking reading properly now

svn path=/trunk/; revision=5892

16 years agoglib/gtester.c:Quit the application when the output is parsed completely, not just...
Tim Janik [Tue, 20 Nov 2007 15:00:37 +0000 (15:00 +0000)]
glib/gtester.c:Quit the application when the output is parsed completely, not just the process finished

svn path=/trunk/; revision=5891

16 years agoglib/gtester.c:Read the output of the child process
Tim Janik [Tue, 20 Nov 2007 15:00:36 +0000 (15:00 +0000)]
glib/gtester.c:Read the output of the child process

svn path=/trunk/; revision=5890

16 years agoglib/gtester.c:Use g_spawn_async_with_pipes()
Tim Janik [Tue, 20 Nov 2007 15:00:35 +0000 (15:00 +0000)]
glib/gtester.c:Use g_spawn_async_with_pipes()

svn path=/trunk/; revision=5889

16 years agoglib/gtester.c:Spawn a process async and quit gtester after the child process exited
Tim Janik [Tue, 20 Nov 2007 15:00:34 +0000 (15:00 +0000)]
glib/gtester.c:Spawn a process async and quit gtester after the child process exited

svn path=/trunk/; revision=5888

16 years agoglib/gtester.c:Added a first revision of gtester
Tim Janik [Tue, 20 Nov 2007 15:00:33 +0000 (15:00 +0000)]
glib/gtester.c:Added a first revision of gtester

svn path=/trunk/; revision=5887

16 years agoImplemented test log serialization.
Tim Janik [Tue, 20 Nov 2007 15:00:32 +0000 (15:00 +0000)]
Implemented test log serialization.

* glib/gtestframework.h: added g_test_log*() API.

* glib/gtestframework.c: implement test log serialization.

svn path=/trunk/; revision=5886

16 years agoImplemented test logging basics.
Tim Janik [Tue, 20 Nov 2007 15:00:31 +0000 (15:00 +0000)]
Implemented test logging basics.

* glib/gtestframework.c: added --debug-log and --verbose, implemented
test information logging.

* testing.c: test g_test_maximized_result() and g_test_minimized_result().

svn path=/trunk/; revision=5885

16 years agoImplemented g_test_timer*().
Tim Janik [Tue, 20 Nov 2007 15:00:30 +0000 (15:00 +0000)]
Implemented g_test_timer*().

* gtestframework.c: implemented g_test_timer*().

* tests/testing.c: added a g_test_timer*() test.

svn path=/trunk/; revision=5884

16 years agoImplemented support for testpaths.
Tim Janik [Tue, 20 Nov 2007 15:00:29 +0000 (15:00 +0000)]
Implemented support for testpaths.

* gtestframework.c: implemented g_test_add_vtable() and g_test_add_func().

* tests/testing.c: use g_test_add() and g_test_add_func() to majorly simplify main().

svn path=/trunk/; revision=5883

16 years agotesting.c: added tests for the g_test_rand*() API.
Tim Janik [Tue, 20 Nov 2007 15:00:28 +0000 (15:00 +0000)]
testing.c: added tests for the g_test_rand*() API.

svn path=/trunk/; revision=5882

16 years agoImplemented g_test_rand*().
Tim Janik [Tue, 20 Nov 2007 15:00:27 +0000 (15:00 +0000)]
Implemented g_test_rand*().

* gtestframework.h: fixed g_assert_cmp*() to evaluate arguments only once.
added g_assert_cmpuint(). completed g_test_rand*() to cover bits, ints,
doubles and ranges.

* gtestframework.c: fixed "--seed" option and implemented g_test_rand*().

svn path=/trunk/; revision=5881

16 years agotesting.c: added tests for g_assert_cmphex() and forked test traps.
Tim Janik [Tue, 20 Nov 2007 15:00:26 +0000 (15:00 +0000)]
testing.c: added tests for g_assert_cmphex() and forked test traps.

svn path=/trunk/; revision=5880

16 years agoImplemented g_test_trap_fork() API.
Tim Janik [Tue, 20 Nov 2007 15:00:25 +0000 (15:00 +0000)]
Implemented g_test_trap_fork() API.

* gtestframework.h: added g_assert_cmphex(). reworked g_test_trap*() API.

* gtestframework.c: implemented g_test_trap_fork() API.

svn path=/trunk/; revision=5879

16 years agothat match a given test path. (g_test_run_suite): run suite only if it
Tim Janik [Tue, 20 Nov 2007 15:00:24 +0000 (15:00 +0000)]
that match a given test path. (g_test_run_suite): run suite only if it

* glib/gtestframework.c:

that match a given test path.
(g_test_run_suite): run suite only if it matches the existing test paths.

* glib/tests/testing.c: minor rename.

svn path=/trunk/; revision=5878

16 years agoGTest framework started.
Tim Janik [Tue, 20 Nov 2007 15:00:23 +0000 (15:00 +0000)]
GTest framework started.

* glib/gtestframework.h: testing framework API as proposed on gtk-devel-list.
includes elaborate assertions, performance report functions, test traps,
test timer, test random numbers, teardoiwn garbage collection functions
and general test case / test suite management APIs.

* glib/gtestframework.c: first test framework implementation. already covers
some test suite management APIs and assertion message implementations.

* glib/tests/testing.c: test program for the testing framework.

* glib/tests/Makefile.am: complie testing.c as test. run all tests as part of
make test:.

svn path=/trunk/; revision=5877

16 years agoglib/Makefile.am: build tests/ subdir after building libglib.
Tim Janik [Tue, 20 Nov 2007 15:00:21 +0000 (15:00 +0000)]
glib/Makefile.am: build tests/ subdir after building libglib.

svn path=/trunk/; revision=5876

16 years agoFixed up internal 'g_test*' names.
Tim Janik [Tue, 20 Nov 2007 15:00:20 +0000 (15:00 +0000)]
Fixed up internal 'g_test*' names.

* refcount/signals.c:
* refcount/objects.c:
* refcount/objects2.c:
* refcount/closures.c:
* refcount/properties.c:
* refcount/properties2.c: changed namespace prefix from g_test_* to my_test_*
to not clash with newly introduced g_test* API in glib.

svn path=/trunk/; revision=5875

16 years agoAdded gtestframework.[hc] and glib/tests/.
Tim Janik [Tue, 20 Nov 2007 15:00:19 +0000 (15:00 +0000)]
Added gtestframework.[hc] and glib/tests/.

svn path=/trunk/; revision=5874

16 years agouse g_strconcat() instead of g_strjoin() to concatenate two strings.
Sven Neumann [Tue, 20 Nov 2007 10:46:15 +0000 (10:46 +0000)]
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

16 years agoTranslation updated by Ivar Smolin.
Priit Laes [Mon, 19 Nov 2007 15:51:48 +0000 (15:51 +0000)]
Translation updated by Ivar Smolin.

2007-11-19  Priit Laes  <plaes@svn.gnome.org>

* et.po: Translation updated by Ivar Smolin.

svn path=/trunk/; revision=5872

16 years agoForgot to say that the last commit fixed bug #498113 (Kouhei Sutou)
Marco Barisione [Mon, 19 Nov 2007 14:08:20 +0000 (14:08 +0000)]
Forgot to say that the last commit fixed bug #498113 (Kouhei Sutou)

svn path=/trunk/; revision=5870

16 years agoPass an unsigned long instead of an int to pcre_fullinfo() to avoid
Marco Barisione [Mon, 19 Nov 2007 14:06:18 +0000 (14:06 +0000)]
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

16 years agoWhen the compilation of a pattern fails in the error message use the
Marco Barisione [Mon, 19 Nov 2007 11:27:43 +0000 (11:27 +0000)]
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

16 years agoupdated version number to 2.15.0 for development.
10:30:33 Tim Janik [Mon, 19 Nov 2007 09:40:49 +0000 (09:40 +0000)]
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

16 years agoUpdate the example to demonstrate error handling. (#497033, Matti Katila)
Matthias Clasen [Mon, 19 Nov 2007 03:50:16 +0000 (03:50 +0000)]
Update the example to demonstrate error handling. (#497033, Matti Katila)

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

        * glib/tmpl/option.sgml: Update the example to demonstrate
        error handling.  (#497033, Matti Katila)

svn path=/trunk/; revision=5865

16 years agoDocumentation improvements. (#496518, Stefan Schulze Frielinghaus)
Matthias Clasen [Mon, 19 Nov 2007 03:39:37 +0000 (03:39 +0000)]
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

16 years agoUpdated Spanish translation
Jorge Gonzalez Gonzalez [Sun, 18 Nov 2007 21:36:23 +0000 (21:36 +0000)]
Updated Spanish translation

svn path=/trunk/; revision=5863

16 years agoUpdated Slovenian translation
Matej Urbančič [Sun, 18 Nov 2007 18:51:24 +0000 (18:51 +0000)]
Updated Slovenian translation

svn path=/trunk/; revision=5862

16 years agoCheck whether assembler supports numerical local labels.
Matthias Clasen [Sun, 18 Nov 2007 17:42:59 +0000 (17:42 +0000)]
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

16 years agonew flag G_MARKUP_PREFIX_ERROR_POSITION to cause the parser to prepend
Ryan Lortie [Fri, 16 Nov 2007 03:36:51 +0000 (03:36 +0000)]
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

16 years agonew functions g_prefix_error and g_propagate_prefixed_error.
Ryan Lortie [Fri, 16 Nov 2007 03:05:45 +0000 (03:05 +0000)]
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

16 years agoUpdated Slovenian translation
Matej Urbančič [Tue, 13 Nov 2007 13:43:29 +0000 (13:43 +0000)]
Updated Slovenian translation

svn path=/trunk/; revision=5858

16 years agoDocumentation fixes. Recommend macro type names such as
Cody Russell [Tue, 13 Nov 2007 07:10:42 +0000 (07:10 +0000)]
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

16 years agoAdd a warning about strlen vs g_utf8_strlen. (#455725, Michael Rasmussen)
Matthias Clasen [Sat, 10 Nov 2007 02:09:08 +0000 (02:09 +0000)]
Add a warning about strlen vs g_utf8_strlen. (#455725, Michael Rasmussen)

2007-11-09  Matthias Clasen <mclasen@redhat.com>

        * glib/tmpl/patterns.sgml: Add a warning about strlen vs
        g_utf8_strlen.  (#455725, Michael Rasmussen)

svn path=/trunk/; revision=5855

16 years agoAdd a footnote explain leap years
Matthias Clasen [Sat, 10 Nov 2007 01:56:13 +0000 (01:56 +0000)]
Add a footnote explain leap years

svn path=/trunk/; revision=5854

16 years agoOne more
Matthias Clasen [Sat, 10 Nov 2007 01:47:51 +0000 (01:47 +0000)]
One more

svn path=/trunk/; revision=5853

16 years agoCoding style cleanups and doc improvements. (#491979, Areg Beketovski)
Matthias Clasen [Sat, 10 Nov 2007 01:45:12 +0000 (01:45 +0000)]
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

16 years agoCoding style cleanups and doc improvements. (#491975, Areg Beketovski)
Matthias Clasen [Sat, 10 Nov 2007 01:11:58 +0000 (01:11 +0000)]
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

16 years agoImprove the docs. (#491974, Areg Beketovski)
Matthias Clasen [Sat, 10 Nov 2007 00:23:16 +0000 (00:23 +0000)]
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

16 years agoImprove g_date_clamp docs. (#491970, Areg Beketovski)
Matthias Clasen [Sat, 10 Nov 2007 00:16:23 +0000 (00:16 +0000)]
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

16 years agoAdd AM_PROG_CC_C_O.
Matthias Clasen [Fri, 9 Nov 2007 23:40:41 +0000 (23:40 +0000)]
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

16 years agoMake executable
Matthias Clasen [Fri, 9 Nov 2007 23:34:31 +0000 (23:34 +0000)]
Make executable

svn path=/trunk/; revision=5847

16 years agoImprove the docs. (#491968, Areg Beketovski)
Matthias Clasen [Fri, 9 Nov 2007 16:45:42 +0000 (16:45 +0000)]
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

16 years agoSome cleanupos
Matthias Clasen [Fri, 9 Nov 2007 03:59:00 +0000 (03:59 +0000)]
Some cleanupos

svn path=/trunk/; revision=5844

16 years agoFixes and cleanups
Matthias Clasen [Fri, 9 Nov 2007 03:47:33 +0000 (03:47 +0000)]
Fixes and cleanups

svn path=/trunk/; revision=5843

16 years agoMore docs fixes
Matthias Clasen [Fri, 9 Nov 2007 03:33:35 +0000 (03:33 +0000)]
More docs fixes

svn path=/trunk/; revision=5842

16 years agoAdd bug ref
Matthias Clasen [Fri, 9 Nov 2007 03:30:58 +0000 (03:30 +0000)]
Add bug ref

svn path=/trunk/; revision=5841

16 years agoMore doc fixes
Matthias Clasen [Fri, 9 Nov 2007 03:29:51 +0000 (03:29 +0000)]
More doc fixes

svn path=/trunk/; revision=5840