Commit Graph

3958 Commits

Author SHA1 Message Date
Matthias Clasen
14538bb8d6 Avoid running in an assertion with small writes. (#343566, Chris Wilson)
2006-06-01  Matthias Clasen  <mclasen@redhat.com>

	* glib/giochannel.c (g_io_channel_write_chars): Avoid
	running in an assertion with small writes.  (#343566, Chris
	Wilson)

	* tests/iochannel-test.c: Add a testcase for small writes.
2006-06-01 15:57:38 +00:00
Matthias Clasen
a5b4b8bfb1 Add g_hash_table_{remove,steal}_all to remove all nodes from a hash table.
2006-06-01  Matthias Clasen  <mclasen@redhat.com>

	* glib/glib.symbols:
	* glib/ghash.h:
	* glib/ghash.c: Add g_hash_table_{remove,steal}_all to
	remove all nodes from a hash table.  (#168538, Matt Barnes)
2006-06-01 14:16:39 +00:00
Behdad Esfahbod
38b53eed54 Cleanup. Use return value of g_string_free(...). (#343548, Chris Wilson)
2006-06-01  Behdad Esfahbod  <behdad@gnome.org>

        * glib/gkeyfile.c (g_key_file_to_data),
        (g_key_file_parse_value_as_comment),
        (g_key_file_parse_comment_as_value):
        * glib/gscanner.c (g_scanner_get_token_ll): Cleanup. Use return
        value of g_string_free(...). (#343548, Chris Wilson)
2006-06-01 04:51:25 +00:00
Tim Janik
01e5d78f6d amend G_TYPE_CHAR according to #303622.
Wed May 31 11:35:48 2006  Tim Janik  <timj@gtk.org>

        * gobject/tmpl/gtype.sgml (Note): amend G_TYPE_CHAR according to #303622.
2006-05-31 09:41:30 +00:00
Pema Geyleg
580d28904e *** empty log message *** 2006-05-29 05:28:05 +00:00
Matthias Clasen
c4d88c74c8 Small optimizations 2006-05-29 00:57:22 +00:00
Matthias Clasen
f4f6480042 Add a GMarkupParseFlags flag for treating CDATA as text.
2006-05-28  Matthias Clasen  <mclasen@redhat.com>

	* glib/gmarkup.h: Add a GMarkupParseFlags flag for
	treating CDATA as text.

	* glib/gmarkup.c (g_markup_parse_context_parse):
	Implement it here.
2006-05-29 00:08:30 +00:00
Matthias Clasen
c8922bb143 Output that test-markup is expected to produce when run on the valid
2006-05-28  Matthias Clasen  <mclasen@redhat.com>

	* tests/markups/expected-*: Output that test-markup
	is expected to produce when run on the valid gmarkup
	examples.

	* tests/markup-test.c: Only dump the results of the
	first, unchunked parse, to compare it against the expected
	output.

	* tests/run-markup-tests.sh: For valid examples, compare
	the output of test-markup against the corresponding
	expected-<n> file.
2006-05-28 22:58:41 +00:00
Clytie Siddall
2585e9aadb vi.po: Updated Vietnamese translation. 2006-05-25 12:23:22 +00:00
Vincent van Adrighem
dbc90e7439 Translation updated by Tino Meinen.
2006-05-25  Vincent van Adrighem  <adrighem@gnome.org>

	* nl.po: Translation updated by Tino Meinen.
2006-05-25 09:42:32 +00:00
Inaki Larranaga
c49c4ae229 Updated Basque translation.
2006-05-24  Inaki Larranaga  <doteo@euskalgnu.org>

	* eu.po: Updated Basque translation.
2006-05-24 18:01:19 +00:00
Matthias Clasen
6d1461b478 Don't compile timeloop on Minix 2006-05-24 12:58:26 +00:00
Theppitak Karoonboonyanan
31aa10560f Updated Thai translation.
2006-05-23  Theppitak Karoonboonyanan  <thep@linux.thai.net>

	* th.po: Updated Thai translation.
2006-05-23 08:44:22 +00:00
Sebastian Wilhelmi
9645c707c0 Run _g_atomic_thread_init as the first of the full fledged initializers to
2006-05-22  Sebastian Wilhelmi  <wilhelmi@google.com>

	* glib/gthread.c (g_thread_init_glib): Run _g_atomic_thread_init
	as the first of the full fledged initializers to allow the later
	to potentially use atomic ints (which they currently do
	not). (#342563, Peter Kjellerstedt)
2006-05-23 01:33:16 +00:00
Alexander Shopov
9634d131ba Updated Bulgarian translation by Alexander Shopov <ash@contact.bg>
2006-05-21  Alexander Shopov  <ash@contact.bg>

	* bg.po: Updated Bulgarian translation
	by Alexander Shopov  <ash@contact.bg>
2006-05-21 07:37:31 +00:00
Matthias Clasen
75aa0676a0 Forgotten file 2006-05-20 03:16:46 +00:00
Takeshi AIHANA
88438e432f Updated Japanese translation for v2.11.1 (HEAD).
2006-05-17  Takeshi AIHANA <takeshi.aihana@gmail.com>

	* ja.po: Updated Japanese translation for v2.11.1 (HEAD).
2006-05-16 15:18:32 +00:00
Tim Janik
4c6e514add turn off compiler warnings, #337129.
Tue May 16 14:01:43 2006  Tim Janik  <timj@imendio.com>

        * gtype.h (G_IMPLEMENT_INTERFACE): turn off compiler warnings, #337129.
2006-05-16 12:02:29 +00:00
Ignacio Casal Quinteiro
3dd6df72cb *** empty log message *** 2006-05-16 11:07:31 +00:00
Matthias Clasen
49ab402f5a g_ascii_strtoll 2006-05-16 05:49:46 +00:00
Matthias Clasen
503db3a1fa bump version 2006-05-15 17:40:38 +00:00
Matthias Clasen
ba7dd25959 2.11.1 2006-05-15 17:16:28 +00:00
Matthias Clasen
24fb387fb9 Fix a ChangeLog misedit 2006-05-15 15:29:21 +00:00
Matthias Clasen
f765f65eda Fix several cases of deref-before-NULL-check. (#341191, Pascal Terjan)
2006-05-13  Matthias Clasen  <mclasen@redhat.com>

	* glib/grel.c: Fix several cases of deref-before-NULL-check.
	(#341191, Pascal Terjan)
2006-05-13 04:36:45 +00:00
Matthias Clasen
a052fd1202 Allow optional summary and description texts before and after the option
2006-05-13  Matthias Clasen  <mclasen@redhat.com>

	* glib/glib.symbols:
	* glib/goption.h:
	* glib/goption.c: Allow optional summary and description
	texts before and after the option descriptions, and add
	a way to translate them.  (#336120, Behdad Esfahbod)
2006-05-13 04:23:38 +00:00
Tor Lillqvist
d5b919142b Implement setting/clearing G_IO_FLAG_NONBLOCK for channels attached to
2006-05-12  Tor Lillqvist  <tml@novell.com>

	* glib/giowin32.c (g_io_win32_sock_set_flags): Implement
	setting/clearing G_IO_FLAG_NONBLOCK for channels attached to
	sockets. (#341192)
	(g_io_win32_unimpl_set_flags): set_flags method for the
	unimplemented case.
2006-05-12 13:20:36 +00:00
Bastien Nocera
93ec25ad67 add documentation for G_OPTION_ARG_INT64
2006-05-11  Bastien Nocera  <hadess@hadess.net>

	* glib/tmpl/option.sgml: add documentation for G_OPTION_ARG_INT64

2006-05-11  Bastien Nocera  <hadess@hadess.net>

	* glib/goption.c: (parse_int64), (parse_arg), (free_changes_list):
	* glib/goption.h:
	* tests/option-test.c: (arg_test6), (main): add an int64 type for
	GOption (G_OPTION_ARG_INT64) (#341237)
2006-05-11 18:37:15 +00:00
Sebastian Wilhelmi
268084caf9 Make the magic and location arguments to the error-checking-mutex
2006-05-10  Sebastian Wilhelmi  <wilhelmi@google.com>

	* glib/gthread.h, gthread/gthread-impl.c: Make the magic and
	location arguments to the error-checking-mutex functions const and
	do not write to them, as we might not own them. Clean up the
	error-checking-mutex code quite a bit. (#335198, Chris Wilson)
2006-05-11 00:18:46 +00:00
Sebastian Wilhelmi
a93560b83d Use g_atomic_pointer_set instead of old homegrown version now that we have
2006-05-10  Sebastian Wilhelmi  <wilhelmi@google.com>

	* glib/gthread.c: Use g_atomic_pointer_set instead of old
	homegrown version now that we have it. (#335198, Chris Wilson)
2006-05-11 00:10:29 +00:00
Sebastian Wilhelmi
685da6b099 Prevent calling into g_cond_wait resp. g_mutex_lock/unlock directly to
2006-05-10  Sebastian Wilhelmi  <wilhelmi@google.com>

	* gthread/gthread-posix.c, gthread/gthread-win32.c: Prevent
	calling into g_cond_wait resp. g_mutex_lock/unlock directly to
	avoid recursions into the errorcheking mutex code (and out of
	principle anyway). (#335198, Chris Wilson)
2006-05-11 00:08:31 +00:00
Sebastian Wilhelmi
a194e2e971 Adapt to GLib coding standards.
2006-05-10  Sebastian Wilhelmi  <wilhelmi@google.com>

	* tests/errorcheck-mutex-test.c: Adapt to GLib coding standards.
2006-05-10 23:58:27 +00:00
Matthias Clasen
530b06b7e5 Updates
2006-05-10  Matthias Clasen  <mclasen@redhat.com>

	* gobject/tmpl/gtype.sgml: Updates
2006-05-10 18:26:45 +00:00
Sebastian Wilhelmi
e4f8f3b95c Renamed to glib/gthreadprivate.h and moved system thread identifier
2006-05-09  Sebastian Wilhelmi  <wilhelmi@google.com>

	* glib/gthreadinit.h: Renamed to glib/gthreadprivate.h and moved
	system thread identifier comparision and assignment macros from
	glib/gthread.c to glib/gthreadprivate.h.

	* glib/Makefile.am, glib/gatomic.c, glib/gconvert.c, glib/gmain.c,
	glib/gmem.c, glib/gmessages.c, glib/grand.c, glib/gslice.c,
	glib/gthread.c, glib/gutils.c, gthread/gthread-impl.c: Use
	glib/gthreadprivate.h instead of glib/gthreadinit.h.

	* gthread/gthread-impl.c: Use GSystemThread instead of GThread for
	owner determination. This fixes #311043 and is mostly modeled
	after the patch from jylefort@FreeBSD.org.
2006-05-10 00:44:50 +00:00
Sebastian Wilhelmi
307391459d Use canonical include form for internal headers. config.h is always there.
2006-05-09  Sebastian Wilhelmi  <wilhelmi@google.com>

	* glib/gprintf.c, glib/gspawn-win32.c, glib/gutf8.c,
	gthread/gthread-impl.c, gthread/gthread-posix.c,
	gthread/gthread-win32.c: Use canonical include form for internal
	headers. config.h is always there.
2006-05-09 23:07:27 +00:00
Sebastian Wilhelmi
3668e63687 Remove obsolete gthread/gthread-solaris.c.
2006-05-09  Sebastian Wilhelmi  <wilhelmi@google.com>

	* Remove obsolete gthread/gthread-solaris.c.
2006-05-09 23:00:04 +00:00
Matthias Clasen
eb9ff05320 Use encoding names which may work better on Solaris. (#340434, Alessandro
2006-05-08  Matthias Clasen  <mclasen@redhat.com>

	* tests/convert-test.c (test_one_half): Use encoding names which
	may work better on Solaris.  (#340434, Alessandro Vesely)
2006-05-08 16:58:24 +00:00
Matthias Clasen
eda3af5546 Add some tests for invalid floating point numbers.
2006-05-08  Matthias Clasen  <mclasen@redhat.com>

	* tests/keyfile-test.c (test_number): Add some tests for
	invalid floating point numbers.
2006-05-08 16:48:47 +00:00
Matthias Clasen
727f0fea57 Make const, noticed by Kjartan Maraas.
2006-05-08  Matthias Clasen  <mclasen@redhat.com>

	* glib/gscanner.c (g_scanner_config_template): Make const,
	noticed by Kjartan Maraas.
2006-05-08 13:38:55 +00:00
Matthias Clasen
6fbcec14dc Fix invalid memory reads. (#340816, Nick Treleaven)
2006-05-06  Matthias Clasen  <mclasen@redhat.com>

	* glib/gkeyfile.c (g_key_file_set_string_list)
	(g_key_file_set_locale_string_list): Fix invalid memory
	reads.  (#340816, Nick Treleaven)
2006-05-07 04:02:06 +00:00
Francisco Javier F. Serrador
adf3537d60 Updated Spanish translation.
2006-05-06  Francisco Javier F. Serrador  <serrador@cvs.gnome.org>

	* es.po: Updated Spanish translation.
2006-05-05 23:10:44 +00:00
Alexander Larsson
ac059df75b Fix OOB write (#340538)
2006-05-04  Alexander Larsson  <alexl@redhat.com>

	* glib/gbase64.c: (g_base64_decode_step):
	Fix OOB write (#340538)
2006-05-04 15:53:36 +00:00
Matthias Clasen
92dc9fe794 Add some more tests.
2006-05-03  Matthias Clasen  <mclasen@redhat.com>

	* tests/base64-test.c: Add some more tests.
2006-05-03 15:27:40 +00:00
Tor Lillqvist
e1d80e9f7c Free with free() and not g_free() what has been allocated with calloc().
2006-05-03  Tor Lillqvist  <tml@novell.com>

	* gthread-win32.c (g_thread_exit_win32_impl): Free with free() and
	not g_free() what has been allocated with calloc(). (#340530, Jake
	Goulding)
2006-05-03 14:53:06 +00:00
Matthias Clasen
9208517188 Use malloced memory instead of stack-allocated, so that MALLOC_CHECK_=2
2006-05-03  Matthias Clasen  <mclasen@redhat.com>

	* tests/base64-test.c (test_incremental): Use malloced memory
	instead of stack-allocated, so that MALLOC_CHECK_=2 catches
	the OOB write...
2006-05-03 12:23:44 +00:00
Matthias Clasen
a71284ce30 Bump version 2006-05-03 02:12:01 +00:00
Matthias Clasen
4b17ee97a5 2.11.0 2006-05-03 02:05:01 +00:00
Matthias Clasen
4d0f3cf076 document a little pitfall 2006-05-02 15:42:18 +00:00
Tim Janik
a7e1f29f03 added test code from Behdad Esfahbod, see #337128.
Tue May  2 15:00:00 2006  Tim Janik  <timj@gtk.org>

        * tests/gobject/deftype.c: added test code from Behdad Esfahbod,
        see #337128.
2006-05-02 13:01:10 +00:00
Tim Janik
f2649abe84 split up G_DEFINE_*TYPE macro definitions so C CODE arguments are not
Tue May  2 14:51:03 2006  Tim Janik  <timj@gtk.org>

        * gtype.h: split up G_DEFINE_*TYPE macro definitions so C CODE arguments
        are not passed on to nested macro calls. patch mostly courtesy of Behdad
        Esfahbod, fixes #337128.
2006-05-02 13:00:52 +00:00
Tim Janik
34ee852317 fixed leak in short option parsing. rewrote parts of the code to be more
Tue May  2 14:18:25 2006  Tim Janik  <timj@gtk.org>

        * glib/goption.c (g_option_context_parse): fixed leak in short
        option parsing. rewrote parts of the code to be more concise to
        enhance readability. fixed exaggerated uses of strlen.
2006-05-02 12:20:39 +00:00